lago_ruby 0.49.0.pre.beta → 0.51.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +16 -6
  4. data/docs/CreditNoteCreateInputCreditNote.md +1 -1
  5. data/docs/CreditNoteEstimateInput.md +18 -0
  6. data/docs/CreditNoteEstimateInputCreditNote.md +20 -0
  7. data/docs/CreditNoteEstimateInputCreditNoteItemsInner.md +20 -0
  8. data/docs/CreditNoteEstimated.md +18 -0
  9. data/docs/CreditNoteEstimatedEstimatedCreditNote.md +38 -0
  10. data/docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md +32 -0
  11. data/docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md +20 -0
  12. data/docs/CreditNoteItemObjectFee.md +2 -0
  13. data/docs/CreditNoteObject.md +2 -2
  14. data/docs/CreditNotesApi.md +72 -0
  15. data/docs/EventsApi.md +7 -6
  16. data/docs/FeeObject.md +2 -0
  17. data/docs/FeeObjectItem.md +2 -0
  18. data/docs/PlanOverridesObject.md +32 -0
  19. data/docs/PlanOverridesObjectChargesInner.md +28 -0
  20. data/docs/Subscription.md +1 -1
  21. data/docs/SubscriptionCreateInputSubscription.md +3 -1
  22. data/docs/SubscriptionObjectExtended.md +52 -0
  23. data/docs/SubscriptionUpdateInputSubscription.md +3 -1
  24. data/lago_ruby.gemspec +1 -1
  25. data/lib/lago_ruby/api/add_ons_api.rb +1 -1
  26. data/lib/lago_ruby/api/billable_metrics_api.rb +1 -1
  27. data/lib/lago_ruby/api/coupons_api.rb +1 -1
  28. data/lib/lago_ruby/api/credit_notes_api.rb +65 -1
  29. data/lib/lago_ruby/api/customers_api.rb +1 -1
  30. data/lib/lago_ruby/api/events_api.rb +6 -6
  31. data/lib/lago_ruby/api/fees_api.rb +1 -1
  32. data/lib/lago_ruby/api/invoices_api.rb +1 -1
  33. data/lib/lago_ruby/api/organizations_api.rb +1 -1
  34. data/lib/lago_ruby/api/plans_api.rb +1 -1
  35. data/lib/lago_ruby/api/subscriptions_api.rb +1 -1
  36. data/lib/lago_ruby/api/taxes_api.rb +1 -1
  37. data/lib/lago_ruby/api/wallets_api.rb +1 -1
  38. data/lib/lago_ruby/api/webhook_endpoints_api.rb +1 -1
  39. data/lib/lago_ruby/api/webhooks_api.rb +1 -1
  40. data/lib/lago_ruby/api_client.rb +11 -12
  41. data/lib/lago_ruby/api_error.rb +1 -1
  42. data/lib/lago_ruby/configuration.rb +1 -1
  43. data/lib/lago_ruby/models/add_on.rb +2 -2
  44. data/lib/lago_ruby/models/add_on_base_input.rb +2 -2
  45. data/lib/lago_ruby/models/add_on_create_input.rb +2 -2
  46. data/lib/lago_ruby/models/add_on_create_input_add_on.rb +2 -2
  47. data/lib/lago_ruby/models/add_on_object.rb +2 -2
  48. data/lib/lago_ruby/models/add_on_update_input.rb +2 -2
  49. data/lib/lago_ruby/models/add_ons_paginated.rb +2 -2
  50. data/lib/lago_ruby/models/api_error_bad_request.rb +2 -2
  51. data/lib/lago_ruby/models/api_error_forbidden.rb +2 -2
  52. data/lib/lago_ruby/models/api_error_not_allowed.rb +2 -2
  53. data/lib/lago_ruby/models/api_error_not_found.rb +2 -2
  54. data/lib/lago_ruby/models/api_error_unauthorized.rb +2 -2
  55. data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +2 -2
  56. data/lib/lago_ruby/models/applied_coupon.rb +2 -2
  57. data/lib/lago_ruby/models/applied_coupon_input.rb +2 -2
  58. data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +2 -2
  59. data/lib/lago_ruby/models/applied_coupon_object.rb +2 -2
  60. data/lib/lago_ruby/models/applied_coupon_object_extended.rb +2 -2
  61. data/lib/lago_ruby/models/applied_coupons_paginated.rb +2 -2
  62. data/lib/lago_ruby/models/base_applied_tax.rb +2 -2
  63. data/lib/lago_ruby/models/billable_metric.rb +2 -2
  64. data/lib/lago_ruby/models/billable_metric_base_input.rb +2 -2
  65. data/lib/lago_ruby/models/billable_metric_create_input.rb +2 -2
  66. data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +2 -2
  67. data/lib/lago_ruby/models/billable_metric_group.rb +2 -2
  68. data/lib/lago_ruby/models/billable_metric_group_values_inner.rb +1 -1
  69. data/lib/lago_ruby/models/billable_metric_group_values_inner_one_of.rb +2 -2
  70. data/lib/lago_ruby/models/billable_metric_object.rb +2 -2
  71. data/lib/lago_ruby/models/billable_metric_update_input.rb +2 -2
  72. data/lib/lago_ruby/models/billable_metrics_paginated.rb +2 -2
  73. data/lib/lago_ruby/models/charge_object.rb +2 -2
  74. data/lib/lago_ruby/models/charge_object_properties.rb +2 -2
  75. data/lib/lago_ruby/models/charge_properties.rb +2 -2
  76. data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +2 -2
  77. data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +2 -2
  78. data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +2 -2
  79. data/lib/lago_ruby/models/country.rb +1 -1
  80. data/lib/lago_ruby/models/coupon.rb +2 -2
  81. data/lib/lago_ruby/models/coupon_base_input.rb +2 -2
  82. data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +2 -2
  83. data/lib/lago_ruby/models/coupon_create_input.rb +2 -2
  84. data/lib/lago_ruby/models/coupon_create_input_coupon.rb +2 -2
  85. data/lib/lago_ruby/models/coupon_object.rb +2 -2
  86. data/lib/lago_ruby/models/coupon_update_input.rb +2 -2
  87. data/lib/lago_ruby/models/coupons_paginated.rb +2 -2
  88. data/lib/lago_ruby/models/credit_note.rb +2 -2
  89. data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +2 -2
  90. data/lib/lago_ruby/models/credit_note_create_input.rb +2 -2
  91. data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +3 -3
  92. data/lib/lago_ruby/models/credit_note_estimate_input.rb +221 -0
  93. data/lib/lago_ruby/models/credit_note_estimate_input_credit_note.rb +241 -0
  94. data/lib/lago_ruby/models/credit_note_estimate_input_credit_note_items_inner.rb +239 -0
  95. data/lib/lago_ruby/models/credit_note_estimated.rb +221 -0
  96. data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note.rb +387 -0
  97. data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner.rb +283 -0
  98. data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner.rb +235 -0
  99. data/lib/lago_ruby/models/credit_note_item_object.rb +2 -2
  100. data/lib/lago_ruby/models/credit_note_item_object_fee.rb +20 -3
  101. data/lib/lago_ruby/models/credit_note_object.rb +13 -13
  102. data/lib/lago_ruby/models/credit_note_update_input.rb +2 -2
  103. data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +2 -2
  104. data/lib/lago_ruby/models/credit_notes.rb +2 -2
  105. data/lib/lago_ruby/models/credit_object.rb +2 -2
  106. data/lib/lago_ruby/models/credit_object_invoice.rb +2 -2
  107. data/lib/lago_ruby/models/credit_object_item.rb +2 -2
  108. data/lib/lago_ruby/models/currency.rb +1 -1
  109. data/lib/lago_ruby/models/customer.rb +2 -2
  110. data/lib/lago_ruby/models/customer_billing_configuration.rb +2 -2
  111. data/lib/lago_ruby/models/customer_charge_usage_object.rb +2 -2
  112. data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +2 -2
  113. data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +2 -2
  114. data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +2 -2
  115. data/lib/lago_ruby/models/customer_create_input.rb +2 -2
  116. data/lib/lago_ruby/models/customer_create_input_customer.rb +2 -2
  117. data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +2 -2
  118. data/lib/lago_ruby/models/customer_metadata.rb +2 -2
  119. data/lib/lago_ruby/models/customer_object.rb +2 -2
  120. data/lib/lago_ruby/models/customer_object_extended.rb +2 -2
  121. data/lib/lago_ruby/models/customer_past_usage.rb +2 -2
  122. data/lib/lago_ruby/models/customer_usage.rb +2 -2
  123. data/lib/lago_ruby/models/customer_usage_object.rb +2 -2
  124. data/lib/lago_ruby/models/customers_paginated.rb +2 -2
  125. data/lib/lago_ruby/models/event.rb +2 -2
  126. data/lib/lago_ruby/models/event_batch_input.rb +2 -2
  127. data/lib/lago_ruby/models/event_batch_input_event.rb +2 -2
  128. data/lib/lago_ruby/models/event_batch_input_event_properties.rb +2 -2
  129. data/lib/lago_ruby/models/event_estimate_fees_input.rb +2 -2
  130. data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +2 -2
  131. data/lib/lago_ruby/models/event_input.rb +2 -2
  132. data/lib/lago_ruby/models/event_input_event.rb +2 -2
  133. data/lib/lago_ruby/models/event_input_event_timestamp.rb +1 -1
  134. data/lib/lago_ruby/models/event_object.rb +6 -22
  135. data/lib/lago_ruby/models/event_object_properties.rb +2 -2
  136. data/lib/lago_ruby/models/fee.rb +2 -2
  137. data/lib/lago_ruby/models/fee_applied_tax_object.rb +2 -2
  138. data/lib/lago_ruby/models/fee_object.rb +20 -3
  139. data/lib/lago_ruby/models/fee_object_item.rb +13 -3
  140. data/lib/lago_ruby/models/fee_update_input.rb +2 -2
  141. data/lib/lago_ruby/models/fee_update_input_fee.rb +2 -2
  142. data/lib/lago_ruby/models/fees.rb +2 -2
  143. data/lib/lago_ruby/models/fees_paginated.rb +2 -2
  144. data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +2 -2
  145. data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +2 -2
  146. data/lib/lago_ruby/models/group_object.rb +2 -2
  147. data/lib/lago_ruby/models/group_properties_object.rb +2 -2
  148. data/lib/lago_ruby/models/group_properties_object_values.rb +2 -2
  149. data/lib/lago_ruby/models/groups_paginated.rb +2 -2
  150. data/lib/lago_ruby/models/invoice.rb +2 -2
  151. data/lib/lago_ruby/models/invoice_applied_tax_object.rb +2 -2
  152. data/lib/lago_ruby/models/invoice_metadata_object.rb +2 -2
  153. data/lib/lago_ruby/models/invoice_object.rb +2 -2
  154. data/lib/lago_ruby/models/invoice_object_customer.rb +2 -2
  155. data/lib/lago_ruby/models/invoice_object_extended.rb +2 -2
  156. data/lib/lago_ruby/models/invoice_one_off_create_input.rb +2 -2
  157. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +2 -2
  158. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +2 -2
  159. data/lib/lago_ruby/models/invoice_update_input.rb +2 -2
  160. data/lib/lago_ruby/models/invoice_update_input_invoice.rb +2 -2
  161. data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +2 -2
  162. data/lib/lago_ruby/models/invoices_paginated.rb +2 -2
  163. data/lib/lago_ruby/models/organization.rb +2 -2
  164. data/lib/lago_ruby/models/organization_billing_configuration.rb +2 -2
  165. data/lib/lago_ruby/models/organization_object.rb +2 -2
  166. data/lib/lago_ruby/models/organization_update_input.rb +2 -2
  167. data/lib/lago_ruby/models/organization_update_input_organization.rb +2 -2
  168. data/lib/lago_ruby/models/pagination_meta.rb +2 -2
  169. data/lib/lago_ruby/models/plan.rb +2 -2
  170. data/lib/lago_ruby/models/plan_create_input.rb +2 -2
  171. data/lib/lago_ruby/models/plan_create_input_plan.rb +2 -2
  172. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +2 -2
  173. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +2 -2
  174. data/lib/lago_ruby/models/plan_object.rb +2 -2
  175. data/lib/lago_ruby/models/plan_overrides_object.rb +289 -0
  176. data/lib/lago_ruby/models/plan_overrides_object_charges_inner.rb +268 -0
  177. data/lib/lago_ruby/models/plan_update_input.rb +2 -2
  178. data/lib/lago_ruby/models/plan_update_input_plan.rb +2 -2
  179. data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +2 -2
  180. data/lib/lago_ruby/models/plans_paginated.rb +2 -2
  181. data/lib/lago_ruby/models/subscription.rb +3 -3
  182. data/lib/lago_ruby/models/subscription_create_input.rb +2 -2
  183. data/lib/lago_ruby/models/subscription_create_input_subscription.rb +15 -6
  184. data/lib/lago_ruby/models/subscription_object.rb +2 -2
  185. data/lib/lago_ruby/models/subscription_object_extended.rb +507 -0
  186. data/lib/lago_ruby/models/subscription_update_input.rb +2 -2
  187. data/lib/lago_ruby/models/subscription_update_input_subscription.rb +15 -6
  188. data/lib/lago_ruby/models/subscriptions_paginated.rb +2 -2
  189. data/lib/lago_ruby/models/tax.rb +2 -2
  190. data/lib/lago_ruby/models/tax_base_input.rb +2 -2
  191. data/lib/lago_ruby/models/tax_create_input.rb +2 -2
  192. data/lib/lago_ruby/models/tax_create_input_tax.rb +2 -2
  193. data/lib/lago_ruby/models/tax_object.rb +2 -2
  194. data/lib/lago_ruby/models/tax_update_input.rb +2 -2
  195. data/lib/lago_ruby/models/taxes_paginated.rb +2 -2
  196. data/lib/lago_ruby/models/timezone.rb +1 -1
  197. data/lib/lago_ruby/models/wallet.rb +2 -2
  198. data/lib/lago_ruby/models/wallet_create_input.rb +2 -2
  199. data/lib/lago_ruby/models/wallet_create_input_wallet.rb +2 -2
  200. data/lib/lago_ruby/models/wallet_object.rb +2 -2
  201. data/lib/lago_ruby/models/wallet_transaction_create_input.rb +2 -2
  202. data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +2 -2
  203. data/lib/lago_ruby/models/wallet_transaction_object.rb +2 -2
  204. data/lib/lago_ruby/models/wallet_transactions.rb +2 -2
  205. data/lib/lago_ruby/models/wallet_transactions_paginated.rb +2 -2
  206. data/lib/lago_ruby/models/wallet_update_input.rb +2 -2
  207. data/lib/lago_ruby/models/wallet_update_input_wallet.rb +2 -2
  208. data/lib/lago_ruby/models/wallets_paginated.rb +2 -2
  209. data/lib/lago_ruby/models/webhook_endpoint.rb +2 -2
  210. data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +2 -2
  211. data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +2 -2
  212. data/lib/lago_ruby/models/webhook_endpoint_object.rb +2 -2
  213. data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +2 -2
  214. data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +2 -2
  215. data/lib/lago_ruby/version.rb +2 -2
  216. data/lib/lago_ruby.rb +11 -2
  217. data/spec/api_client_spec.rb +1 -1
  218. data/spec/configuration_spec.rb +1 -1
  219. data/spec/models/{credit_note_create_input_credit_note_items_inner_spec.rb → credit_note_estimate_input_credit_note_items_inner_spec.rb} +10 -8
  220. data/spec/models/credit_note_estimate_input_credit_note_spec.rb +42 -0
  221. data/spec/models/credit_note_estimate_input_spec.rb +36 -0
  222. data/spec/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner_spec.rb +78 -0
  223. data/spec/models/credit_note_estimated_estimated_credit_note_items_inner_spec.rb +42 -0
  224. data/spec/models/credit_note_estimated_estimated_credit_note_spec.rb +96 -0
  225. data/spec/models/credit_note_estimated_spec.rb +36 -0
  226. data/spec/models/plan_overrides_object_charges_inner_spec.rb +66 -0
  227. data/spec/models/plan_overrides_object_spec.rb +78 -0
  228. data/spec/models/subscription_object_extended_spec.rb +146 -0
  229. data/spec/spec_helper.rb +1 -1
  230. metadata +197 -159
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lago_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0.pre.beta
4
+ version: 0.51.0.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lago
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-05 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -125,6 +125,13 @@ files:
125
125
  - docs/CreditNoteCreateInput.md
126
126
  - docs/CreditNoteCreateInputCreditNote.md
127
127
  - docs/CreditNoteCreateInputCreditNoteItemsInner.md
128
+ - docs/CreditNoteEstimateInput.md
129
+ - docs/CreditNoteEstimateInputCreditNote.md
130
+ - docs/CreditNoteEstimateInputCreditNoteItemsInner.md
131
+ - docs/CreditNoteEstimated.md
132
+ - docs/CreditNoteEstimatedEstimatedCreditNote.md
133
+ - docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md
134
+ - docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md
128
135
  - docs/CreditNoteItemObject.md
129
136
  - docs/CreditNoteItemObjectFee.md
130
137
  - docs/CreditNoteObject.md
@@ -209,6 +216,8 @@ files:
209
216
  - docs/PlanCreateInputPlanChargesInner.md
210
217
  - docs/PlanCreateInputPlanChargesInnerGroupPropertiesInner.md
211
218
  - docs/PlanObject.md
219
+ - docs/PlanOverridesObject.md
220
+ - docs/PlanOverridesObjectChargesInner.md
212
221
  - docs/PlanUpdateInput.md
213
222
  - docs/PlanUpdateInputPlan.md
214
223
  - docs/PlanUpdateInputPlanChargesInner.md
@@ -218,6 +227,7 @@ files:
218
227
  - docs/SubscriptionCreateInput.md
219
228
  - docs/SubscriptionCreateInputSubscription.md
220
229
  - docs/SubscriptionObject.md
230
+ - docs/SubscriptionObjectExtended.md
221
231
  - docs/SubscriptionUpdateInput.md
222
232
  - docs/SubscriptionUpdateInputSubscription.md
223
233
  - docs/SubscriptionsApi.md
@@ -331,6 +341,13 @@ files:
331
341
  - lib/lago_ruby/models/credit_note_create_input.rb
332
342
  - lib/lago_ruby/models/credit_note_create_input_credit_note.rb
333
343
  - lib/lago_ruby/models/credit_note_create_input_credit_note_items_inner.rb
344
+ - lib/lago_ruby/models/credit_note_estimate_input.rb
345
+ - lib/lago_ruby/models/credit_note_estimate_input_credit_note.rb
346
+ - lib/lago_ruby/models/credit_note_estimate_input_credit_note_items_inner.rb
347
+ - lib/lago_ruby/models/credit_note_estimated.rb
348
+ - lib/lago_ruby/models/credit_note_estimated_estimated_credit_note.rb
349
+ - lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner.rb
350
+ - lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner.rb
334
351
  - lib/lago_ruby/models/credit_note_item_object.rb
335
352
  - lib/lago_ruby/models/credit_note_item_object_fee.rb
336
353
  - lib/lago_ruby/models/credit_note_object.rb
@@ -408,6 +425,8 @@ files:
408
425
  - lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb
409
426
  - lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb
410
427
  - lib/lago_ruby/models/plan_object.rb
428
+ - lib/lago_ruby/models/plan_overrides_object.rb
429
+ - lib/lago_ruby/models/plan_overrides_object_charges_inner.rb
411
430
  - lib/lago_ruby/models/plan_update_input.rb
412
431
  - lib/lago_ruby/models/plan_update_input_plan.rb
413
432
  - lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb
@@ -416,6 +435,7 @@ files:
416
435
  - lib/lago_ruby/models/subscription_create_input.rb
417
436
  - lib/lago_ruby/models/subscription_create_input_subscription.rb
418
437
  - lib/lago_ruby/models/subscription_object.rb
438
+ - lib/lago_ruby/models/subscription_object_extended.rb
419
439
  - lib/lago_ruby/models/subscription_update_input.rb
420
440
  - lib/lago_ruby/models/subscription_update_input_subscription.rb
421
441
  - lib/lago_ruby/models/subscriptions_paginated.rb
@@ -509,9 +529,15 @@ files:
509
529
  - spec/models/coupon_update_input_spec.rb
510
530
  - spec/models/coupons_paginated_spec.rb
511
531
  - spec/models/credit_note_applied_tax_object_spec.rb
512
- - spec/models/credit_note_create_input_credit_note_items_inner_spec.rb
513
532
  - spec/models/credit_note_create_input_credit_note_spec.rb
514
533
  - spec/models/credit_note_create_input_spec.rb
534
+ - spec/models/credit_note_estimate_input_credit_note_items_inner_spec.rb
535
+ - spec/models/credit_note_estimate_input_credit_note_spec.rb
536
+ - spec/models/credit_note_estimate_input_spec.rb
537
+ - spec/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner_spec.rb
538
+ - spec/models/credit_note_estimated_estimated_credit_note_items_inner_spec.rb
539
+ - spec/models/credit_note_estimated_estimated_credit_note_spec.rb
540
+ - spec/models/credit_note_estimated_spec.rb
515
541
  - spec/models/credit_note_item_object_fee_spec.rb
516
542
  - spec/models/credit_note_item_object_spec.rb
517
543
  - spec/models/credit_note_object_spec.rb
@@ -588,6 +614,8 @@ files:
588
614
  - spec/models/plan_create_input_plan_spec.rb
589
615
  - spec/models/plan_create_input_spec.rb
590
616
  - spec/models/plan_object_spec.rb
617
+ - spec/models/plan_overrides_object_charges_inner_spec.rb
618
+ - spec/models/plan_overrides_object_spec.rb
591
619
  - spec/models/plan_spec.rb
592
620
  - spec/models/plan_update_input_plan_charges_inner_spec.rb
593
621
  - spec/models/plan_update_input_plan_spec.rb
@@ -595,6 +623,7 @@ files:
595
623
  - spec/models/plans_paginated_spec.rb
596
624
  - spec/models/subscription_create_input_spec.rb
597
625
  - spec/models/subscription_create_input_subscription_spec.rb
626
+ - spec/models/subscription_object_extended_spec.rb
598
627
  - spec/models/subscription_object_spec.rb
599
628
  - spec/models/subscription_spec.rb
600
629
  - spec/models/subscription_update_input_spec.rb
@@ -654,184 +683,193 @@ signing_key:
654
683
  specification_version: 4
655
684
  summary: Ruby wrapper for the Lago API
656
685
  test_files:
657
- - spec/api/wallets_api_spec.rb
658
- - spec/api/invoices_api_spec.rb
659
- - spec/api/fees_api_spec.rb
660
- - spec/api/subscriptions_api_spec.rb
661
- - spec/api/webhook_endpoints_api_spec.rb
662
686
  - spec/api/events_api_spec.rb
663
- - spec/api/taxes_api_spec.rb
664
- - spec/api/customers_api_spec.rb
665
- - spec/api/billable_metrics_api_spec.rb
666
- - spec/api/coupons_api_spec.rb
667
- - spec/api/credit_notes_api_spec.rb
687
+ - spec/api/subscriptions_api_spec.rb
688
+ - spec/api/fees_api_spec.rb
668
689
  - spec/api/add_ons_api_spec.rb
669
- - spec/api/organizations_api_spec.rb
690
+ - spec/api/invoices_api_spec.rb
670
691
  - spec/api/plans_api_spec.rb
692
+ - spec/api/credit_notes_api_spec.rb
693
+ - spec/api/customers_api_spec.rb
694
+ - spec/api/coupons_api_spec.rb
695
+ - spec/api/billable_metrics_api_spec.rb
696
+ - spec/api/wallets_api_spec.rb
671
697
  - spec/api/webhooks_api_spec.rb
698
+ - spec/api/taxes_api_spec.rb
699
+ - spec/api/webhook_endpoints_api_spec.rb
700
+ - spec/api/organizations_api_spec.rb
672
701
  - spec/api_client_spec.rb
673
702
  - spec/configuration_spec.rb
674
- - spec/models/fee_update_input_fee_spec.rb
675
- - spec/models/billable_metric_group_values_inner_spec.rb
676
- - spec/models/charge_object_spec.rb
677
- - spec/models/invoices_paginated_spec.rb
678
- - spec/models/customers_paginated_spec.rb
679
- - spec/models/wallet_update_input_wallet_spec.rb
680
- - spec/models/charge_object_properties_spec.rb
681
- - spec/models/invoice_update_input_spec.rb
703
+ - spec/models/organization_update_input_organization_spec.rb
704
+ - spec/models/add_on_create_input_add_on_spec.rb
705
+ - spec/models/billable_metric_object_spec.rb
706
+ - spec/models/tax_base_input_spec.rb
707
+ - spec/models/coupon_spec.rb
708
+ - spec/models/charge_properties_graduated_ranges_inner_spec.rb
709
+ - spec/models/event_batch_input_event_spec.rb
710
+ - spec/models/event_input_event_spec.rb
711
+ - spec/models/customer_metadata_spec.rb
712
+ - spec/models/billable_metric_group_values_inner_one_of_spec.rb
713
+ - spec/models/invoice_one_off_create_input_spec.rb
714
+ - spec/models/event_input_event_timestamp_spec.rb
715
+ - spec/models/credit_note_update_input_credit_note_spec.rb
682
716
  - spec/models/coupon_update_input_spec.rb
683
- - spec/models/credit_note_item_object_spec.rb
684
- - spec/models/event_batch_input_event_properties_spec.rb
685
- - spec/models/plans_paginated_spec.rb
686
- - spec/models/fee_object_item_spec.rb
687
- - spec/models/event_estimate_fees_input_event_spec.rb
688
- - spec/models/invoice_spec.rb
689
- - spec/models/billable_metric_create_input_spec.rb
690
- - spec/models/webhook_endpoint_create_input_spec.rb
691
- - spec/models/credit_note_create_input_credit_note_spec.rb
692
- - spec/models/billable_metric_spec.rb
693
- - spec/models/invoice_applied_tax_object_spec.rb
694
- - spec/models/customer_billing_configuration_spec.rb
717
+ - spec/models/webhook_endpoint_spec.rb
718
+ - spec/models/customer_charge_usage_object_spec.rb
719
+ - spec/models/fee_object_spec.rb
720
+ - spec/models/tax_create_input_tax_spec.rb
695
721
  - spec/models/invoice_object_extended_spec.rb
696
- - spec/models/get_customer_portal_url200_response_customer_spec.rb
697
- - spec/models/fee_update_input_spec.rb
698
- - spec/models/billable_metric_group_spec.rb
699
- - spec/models/invoice_metadata_object_spec.rb
700
- - spec/models/api_error_forbidden_spec.rb
722
+ - spec/models/tax_object_spec.rb
723
+ - spec/models/add_on_create_input_spec.rb
724
+ - spec/models/credit_note_spec.rb
725
+ - spec/models/organization_spec.rb
726
+ - spec/models/api_error_not_allowed_spec.rb
727
+ - spec/models/plan_update_input_plan_spec.rb
728
+ - spec/models/invoice_update_input_spec.rb
729
+ - spec/models/webhook_endpoint_create_input_webhook_endpoint_spec.rb
730
+ - spec/models/charge_properties_volume_ranges_inner_spec.rb
731
+ - spec/models/event_object_spec.rb
732
+ - spec/models/wallet_object_spec.rb
733
+ - spec/models/plan_overrides_object_spec.rb
734
+ - spec/models/wallet_update_input_spec.rb
735
+ - spec/models/customer_create_input_customer_metadata_inner_spec.rb
736
+ - spec/models/invoices_paginated_spec.rb
737
+ - spec/models/customer_past_usage_spec.rb
738
+ - spec/models/billable_metrics_paginated_spec.rb
739
+ - spec/models/tax_update_input_spec.rb
740
+ - spec/models/customer_usage_object_spec.rb
741
+ - spec/models/billable_metric_base_input_spec.rb
742
+ - spec/models/groups_paginated_spec.rb
701
743
  - spec/models/add_ons_paginated_spec.rb
702
- - spec/models/subscription_update_input_subscription_spec.rb
703
- - spec/models/fee_applied_tax_object_spec.rb
704
- - spec/models/tax_create_input_tax_spec.rb
705
- - spec/models/plan_create_input_plan_charges_inner_spec.rb
706
- - spec/models/api_error_unauthorized_spec.rb
707
- - spec/models/event_input_event_timestamp_spec.rb
708
- - spec/models/customer_create_input_spec.rb
709
- - spec/models/billable_metric_update_input_spec.rb
710
- - spec/models/currency_spec.rb
711
- - spec/models/coupon_create_input_coupon_spec.rb
712
- - spec/models/wallet_transaction_object_spec.rb
744
+ - spec/models/invoice_one_off_create_input_invoice_spec.rb
745
+ - spec/models/credit_note_estimate_input_spec.rb
713
746
  - spec/models/add_on_object_spec.rb
714
- - spec/models/group_properties_object_values_spec.rb
715
- - spec/models/wallet_transaction_create_input_wallet_transaction_spec.rb
716
- - spec/models/fees_paginated_spec.rb
717
- - spec/models/billable_metric_base_input_spec.rb
718
- - spec/models/tax_update_input_spec.rb
719
- - spec/models/tax_spec.rb
720
- - spec/models/subscription_spec.rb
721
- - spec/models/invoice_one_off_create_input_spec.rb
722
747
  - spec/models/customer_object_spec.rb
723
- - spec/models/applied_coupon_spec.rb
724
- - spec/models/invoice_one_off_create_input_invoice_fees_inner_spec.rb
725
- - spec/models/country_spec.rb
726
- - spec/models/api_error_unprocessable_entity_spec.rb
727
- - spec/models/credit_note_create_input_spec.rb
728
- - spec/models/customer_create_input_customer_metadata_inner_spec.rb
729
- - spec/models/wallet_update_input_spec.rb
730
- - spec/models/wallet_transaction_create_input_spec.rb
731
- - spec/models/api_error_not_found_spec.rb
732
- - spec/models/coupon_spec.rb
733
748
  - spec/models/coupons_paginated_spec.rb
734
- - spec/models/fee_object_spec.rb
735
- - spec/models/fees_spec.rb
736
- - spec/models/plan_update_input_spec.rb
737
- - spec/models/coupon_base_input_spec.rb
738
- - spec/models/coupon_base_input_applies_to_spec.rb
739
- - spec/models/credit_note_create_input_credit_note_items_inner_spec.rb
740
- - spec/models/add_on_update_input_spec.rb
741
- - spec/models/group_object_spec.rb
742
- - spec/models/charge_properties_graduated_percentage_ranges_inner_spec.rb
743
- - spec/models/billable_metrics_paginated_spec.rb
744
- - spec/models/wallet_object_spec.rb
745
- - spec/models/subscription_create_input_subscription_spec.rb
746
- - spec/models/customer_charge_usage_object_charge_spec.rb
749
+ - spec/models/billable_metric_create_input_billable_metric_spec.rb
750
+ - spec/models/credit_object_item_spec.rb
751
+ - spec/models/organization_object_spec.rb
752
+ - spec/models/applied_coupons_paginated_spec.rb
753
+ - spec/models/applied_coupon_input_spec.rb
754
+ - spec/models/currency_spec.rb
747
755
  - spec/models/charge_properties_spec.rb
748
- - spec/models/customer_usage_spec.rb
749
- - spec/models/plan_spec.rb
750
- - spec/models/base_applied_tax_spec.rb
751
- - spec/models/group_properties_object_spec.rb
752
- - spec/models/charge_properties_volume_ranges_inner_spec.rb
753
- - spec/models/groups_paginated_spec.rb
756
+ - spec/models/api_error_unauthorized_spec.rb
757
+ - spec/models/plan_update_input_plan_charges_inner_spec.rb
758
+ - spec/models/invoice_metadata_object_spec.rb
759
+ - spec/models/subscription_object_extended_spec.rb
754
760
  - spec/models/webhook_endpoint_object_spec.rb
755
- - spec/models/charge_properties_graduated_ranges_inner_spec.rb
756
- - spec/models/applied_coupon_input_applied_coupon_spec.rb
757
- - spec/models/credit_object_invoice_spec.rb
758
- - spec/models/organization_update_input_spec.rb
759
- - spec/models/subscription_create_input_spec.rb
760
- - spec/models/customer_charge_usage_object_groups_inner_spec.rb
761
- - spec/models/organization_spec.rb
762
- - spec/models/applied_coupon_input_spec.rb
763
- - spec/models/pagination_meta_spec.rb
764
- - spec/models/credit_notes_spec.rb
765
- - spec/models/event_object_spec.rb
766
- - spec/models/plan_update_input_plan_spec.rb
767
- - spec/models/invoice_one_off_create_input_invoice_spec.rb
768
- - spec/models/invoice_update_input_invoice_metadata_inner_spec.rb
769
- - spec/models/applied_coupon_object_extended_spec.rb
770
- - spec/models/customer_usage_object_spec.rb
771
- - spec/models/add_on_base_input_spec.rb
761
+ - spec/models/tax_spec.rb
762
+ - spec/models/billable_metric_create_input_spec.rb
763
+ - spec/models/credit_note_estimate_input_credit_note_spec.rb
772
764
  - spec/models/event_input_spec.rb
773
- - spec/models/tax_base_input_spec.rb
774
- - spec/models/plan_create_input_plan_charges_inner_group_properties_inner_spec.rb
775
- - spec/models/customer_object_extended_spec.rb
776
- - spec/models/billable_metric_object_spec.rb
777
- - spec/models/credit_note_object_spec.rb
778
- - spec/models/wallet_transactions_paginated_spec.rb
779
- - spec/models/coupon_object_spec.rb
780
- - spec/models/billable_metric_create_input_billable_metric_spec.rb
781
- - spec/models/invoice_object_spec.rb
782
- - spec/models/wallet_transactions_spec.rb
783
- - spec/models/subscription_update_input_spec.rb
784
- - spec/models/wallet_create_input_wallet_spec.rb
785
- - spec/models/add_on_spec.rb
786
- - spec/models/event_batch_input_event_spec.rb
765
+ - spec/models/invoice_update_input_invoice_spec.rb
766
+ - spec/models/customer_usage_spec.rb
767
+ - spec/models/invoice_spec.rb
787
768
  - spec/models/customer_charge_usage_object_billable_metric_spec.rb
788
- - spec/models/credit_note_update_input_credit_note_spec.rb
789
- - spec/models/organization_billing_configuration_spec.rb
790
- - spec/models/customer_charge_usage_object_spec.rb
791
- - spec/models/credit_note_update_input_spec.rb
792
- - spec/models/wallets_paginated_spec.rb
793
- - spec/models/tax_create_input_spec.rb
794
769
  - spec/models/credit_note_applied_tax_object_spec.rb
795
- - spec/models/event_input_event_spec.rb
796
- - spec/models/subscription_object_spec.rb
797
- - spec/models/organization_update_input_organization_spec.rb
798
- - spec/models/fee_spec.rb
799
- - spec/models/plan_object_spec.rb
800
- - spec/models/api_error_not_allowed_spec.rb
801
- - spec/models/add_on_create_input_spec.rb
770
+ - spec/models/event_batch_input_event_properties_spec.rb
771
+ - spec/models/subscription_update_input_subscription_spec.rb
772
+ - spec/models/event_spec.rb
773
+ - spec/models/event_object_properties_spec.rb
774
+ - spec/models/charge_object_properties_spec.rb
775
+ - spec/models/pagination_meta_spec.rb
776
+ - spec/models/fees_spec.rb
777
+ - spec/models/subscription_spec.rb
778
+ - spec/models/billable_metric_update_input_spec.rb
779
+ - spec/models/plan_spec.rb
780
+ - spec/models/api_error_not_found_spec.rb
781
+ - spec/models/credit_note_create_input_credit_note_spec.rb
782
+ - spec/models/credit_note_item_object_fee_spec.rb
802
783
  - spec/models/applied_coupon_object_spec.rb
803
- - spec/models/webhook_endpoint_update_input_spec.rb
804
- - spec/models/webhook_endpoints_paginated_spec.rb
805
- - spec/models/customer_past_usage_spec.rb
806
- - spec/models/api_error_bad_request_spec.rb
784
+ - spec/models/fee_object_item_spec.rb
785
+ - spec/models/tax_create_input_spec.rb
807
786
  - spec/models/taxes_paginated_spec.rb
808
- - spec/models/billable_metric_group_values_inner_one_of_spec.rb
809
- - spec/models/add_on_create_input_add_on_spec.rb
810
- - spec/models/applied_coupons_paginated_spec.rb
787
+ - spec/models/credit_note_estimated_estimated_credit_note_items_inner_spec.rb
788
+ - spec/models/fee_spec.rb
789
+ - spec/models/customer_charge_usage_object_charge_spec.rb
790
+ - spec/models/invoice_applied_tax_object_spec.rb
791
+ - spec/models/webhook_endpoints_paginated_spec.rb
792
+ - spec/models/credit_object_spec.rb
793
+ - spec/models/customer_billing_configuration_spec.rb
794
+ - spec/models/customer_object_extended_spec.rb
795
+ - spec/models/subscription_object_spec.rb
796
+ - spec/models/plan_create_input_plan_charges_inner_group_properties_inner_spec.rb
797
+ - spec/models/coupon_create_input_coupon_spec.rb
798
+ - spec/models/wallets_paginated_spec.rb
799
+ - spec/models/billable_metric_group_values_inner_spec.rb
800
+ - spec/models/subscription_update_input_spec.rb
801
+ - spec/models/group_object_spec.rb
811
802
  - spec/models/wallet_spec.rb
812
- - spec/models/plan_create_input_plan_spec.rb
803
+ - spec/models/add_on_update_input_spec.rb
804
+ - spec/models/invoice_update_input_invoice_metadata_inner_spec.rb
805
+ - spec/models/billable_metric_spec.rb
806
+ - spec/models/customer_charge_usage_object_groups_inner_spec.rb
807
+ - spec/models/invoice_object_customer_spec.rb
808
+ - spec/models/credit_notes_spec.rb
809
+ - spec/models/fee_update_input_spec.rb
810
+ - spec/models/organization_update_input_spec.rb
811
+ - spec/models/plan_create_input_plan_charges_inner_spec.rb
812
+ - spec/models/base_applied_tax_spec.rb
813
+ - spec/models/event_estimate_fees_input_event_spec.rb
814
+ - spec/models/credit_object_invoice_spec.rb
813
815
  - spec/models/subscriptions_paginated_spec.rb
814
- - spec/models/credit_object_item_spec.rb
815
- - spec/models/wallet_create_input_spec.rb
816
- - spec/models/plan_create_input_spec.rb
817
- - spec/models/organization_object_spec.rb
818
- - spec/models/plan_update_input_plan_charges_inner_spec.rb
819
- - spec/models/webhook_endpoint_spec.rb
816
+ - spec/models/api_error_forbidden_spec.rb
817
+ - spec/models/fee_update_input_fee_spec.rb
818
+ - spec/models/invoice_object_spec.rb
819
+ - spec/models/get_customer_portal_url200_response_customer_spec.rb
820
+ - spec/models/customers_paginated_spec.rb
821
+ - spec/models/credit_note_object_spec.rb
820
822
  - spec/models/customer_spec.rb
821
- - spec/models/customer_create_input_customer_spec.rb
822
- - spec/models/credit_note_item_object_fee_spec.rb
823
- - spec/models/webhook_endpoint_create_input_webhook_endpoint_spec.rb
824
- - spec/models/get_customer_portal_url200_response_spec.rb
825
- - spec/models/credit_object_spec.rb
826
- - spec/models/timezone_spec.rb
827
- - spec/models/credit_note_spec.rb
828
- - spec/models/event_object_properties_spec.rb
829
- - spec/models/coupon_create_input_spec.rb
823
+ - spec/models/wallet_transactions_paginated_spec.rb
830
824
  - spec/models/event_batch_input_spec.rb
831
- - spec/models/invoice_update_input_invoice_spec.rb
832
- - spec/models/invoice_object_customer_spec.rb
833
- - spec/models/event_spec.rb
834
- - spec/models/customer_metadata_spec.rb
825
+ - spec/models/wallet_transaction_create_input_spec.rb
826
+ - spec/models/credit_note_create_input_spec.rb
827
+ - spec/models/coupon_create_input_spec.rb
828
+ - spec/models/api_error_unprocessable_entity_spec.rb
829
+ - spec/models/subscription_create_input_subscription_spec.rb
830
+ - spec/models/credit_note_item_object_spec.rb
831
+ - spec/models/fees_paginated_spec.rb
832
+ - spec/models/plan_update_input_spec.rb
833
+ - spec/models/applied_coupon_spec.rb
834
+ - spec/models/plan_object_spec.rb
835
+ - spec/models/webhook_endpoint_update_input_spec.rb
836
+ - spec/models/fee_applied_tax_object_spec.rb
837
+ - spec/models/wallet_transaction_create_input_wallet_transaction_spec.rb
838
+ - spec/models/coupon_base_input_spec.rb
839
+ - spec/models/charge_properties_graduated_percentage_ranges_inner_spec.rb
840
+ - spec/models/wallet_create_input_wallet_spec.rb
841
+ - spec/models/credit_note_estimate_input_credit_note_items_inner_spec.rb
842
+ - spec/models/wallet_transactions_spec.rb
843
+ - spec/models/add_on_base_input_spec.rb
844
+ - spec/models/billable_metric_group_spec.rb
845
+ - spec/models/coupon_base_input_applies_to_spec.rb
835
846
  - spec/models/event_estimate_fees_input_spec.rb
836
- - spec/models/tax_object_spec.rb
847
+ - spec/models/timezone_spec.rb
848
+ - spec/models/plan_overrides_object_charges_inner_spec.rb
849
+ - spec/models/charge_object_spec.rb
850
+ - spec/models/country_spec.rb
851
+ - spec/models/wallet_update_input_wallet_spec.rb
852
+ - spec/models/subscription_create_input_spec.rb
853
+ - spec/models/wallet_create_input_spec.rb
854
+ - spec/models/coupon_object_spec.rb
855
+ - spec/models/applied_coupon_input_applied_coupon_spec.rb
856
+ - spec/models/wallet_transaction_object_spec.rb
857
+ - spec/models/applied_coupon_object_extended_spec.rb
858
+ - spec/models/plans_paginated_spec.rb
859
+ - spec/models/plan_create_input_plan_spec.rb
860
+ - spec/models/plan_create_input_spec.rb
861
+ - spec/models/add_on_spec.rb
862
+ - spec/models/get_customer_portal_url200_response_spec.rb
863
+ - spec/models/credit_note_estimated_estimated_credit_note_spec.rb
864
+ - spec/models/customer_create_input_spec.rb
865
+ - spec/models/credit_note_update_input_spec.rb
866
+ - spec/models/invoice_one_off_create_input_invoice_fees_inner_spec.rb
867
+ - spec/models/webhook_endpoint_create_input_spec.rb
868
+ - spec/models/group_properties_object_spec.rb
869
+ - spec/models/credit_note_estimated_spec.rb
870
+ - spec/models/api_error_bad_request_spec.rb
871
+ - spec/models/group_properties_object_values_spec.rb
872
+ - spec/models/organization_billing_configuration_spec.rb
873
+ - spec/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner_spec.rb
874
+ - spec/models/customer_create_input_customer_spec.rb
837
875
  - spec/spec_helper.rb