Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
misc: Version v0.51.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 6, 2023
1 parent a779b1e commit a602b76
Show file tree
Hide file tree
Showing 229 changed files with 4,496 additions and 427 deletions.
33 changes: 30 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ docs/CreditNote.md
docs/CreditNoteAppliedTaxObject.md
docs/CreditNoteCreateInput.md
docs/CreditNoteCreateInputCreditNote.md
docs/CreditNoteCreateInputCreditNoteItemsInner.md
docs/CreditNoteEstimateInput.md
docs/CreditNoteEstimateInputCreditNote.md
docs/CreditNoteEstimateInputCreditNoteItemsInner.md
docs/CreditNoteEstimated.md
docs/CreditNoteEstimatedEstimatedCreditNote.md
docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md
docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md
docs/CreditNoteItemObject.md
docs/CreditNoteItemObjectFee.md
docs/CreditNoteObject.md
Expand Down Expand Up @@ -141,6 +147,8 @@ docs/PlanCreateInputPlan.md
docs/PlanCreateInputPlanChargesInner.md
docs/PlanCreateInputPlanChargesInnerGroupPropertiesInner.md
docs/PlanObject.md
docs/PlanOverridesObject.md
docs/PlanOverridesObjectChargesInner.md
docs/PlanUpdateInput.md
docs/PlanUpdateInputPlan.md
docs/PlanUpdateInputPlanChargesInner.md
Expand All @@ -150,6 +158,7 @@ docs/Subscription.md
docs/SubscriptionCreateInput.md
docs/SubscriptionCreateInputSubscription.md
docs/SubscriptionObject.md
docs/SubscriptionObjectExtended.md
docs/SubscriptionUpdateInput.md
docs/SubscriptionUpdateInputSubscription.md
docs/SubscriptionsApi.md
Expand Down Expand Up @@ -254,7 +263,13 @@ lib/lago_ruby/models/credit_note.rb
lib/lago_ruby/models/credit_note_applied_tax_object.rb
lib/lago_ruby/models/credit_note_create_input.rb
lib/lago_ruby/models/credit_note_create_input_credit_note.rb
lib/lago_ruby/models/credit_note_create_input_credit_note_items_inner.rb
lib/lago_ruby/models/credit_note_estimate_input.rb
lib/lago_ruby/models/credit_note_estimate_input_credit_note.rb
lib/lago_ruby/models/credit_note_estimate_input_credit_note_items_inner.rb
lib/lago_ruby/models/credit_note_estimated.rb
lib/lago_ruby/models/credit_note_estimated_estimated_credit_note.rb
lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner.rb
lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner.rb
lib/lago_ruby/models/credit_note_item_object.rb
lib/lago_ruby/models/credit_note_item_object_fee.rb
lib/lago_ruby/models/credit_note_object.rb
Expand Down Expand Up @@ -331,6 +346,8 @@ lib/lago_ruby/models/plan_create_input_plan.rb
lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb
lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb
lib/lago_ruby/models/plan_object.rb
lib/lago_ruby/models/plan_overrides_object.rb
lib/lago_ruby/models/plan_overrides_object_charges_inner.rb
lib/lago_ruby/models/plan_update_input.rb
lib/lago_ruby/models/plan_update_input_plan.rb
lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb
Expand All @@ -339,6 +356,7 @@ lib/lago_ruby/models/subscription.rb
lib/lago_ruby/models/subscription_create_input.rb
lib/lago_ruby/models/subscription_create_input_subscription.rb
lib/lago_ruby/models/subscription_object.rb
lib/lago_ruby/models/subscription_object_extended.rb
lib/lago_ruby/models/subscription_update_input.rb
lib/lago_ruby/models/subscription_update_input_subscription.rb
lib/lago_ruby/models/subscriptions_paginated.rb
Expand Down Expand Up @@ -371,5 +389,14 @@ lib/lago_ruby/models/webhook_endpoints_paginated.rb
lib/lago_ruby/version.rb
spec/api_client_spec.rb
spec/configuration_spec.rb
spec/models/customer_past_usage_spec.rb
spec/models/credit_note_estimate_input_credit_note_items_inner_spec.rb
spec/models/credit_note_estimate_input_credit_note_spec.rb
spec/models/credit_note_estimate_input_spec.rb
spec/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner_spec.rb
spec/models/credit_note_estimated_estimated_credit_note_items_inner_spec.rb
spec/models/credit_note_estimated_estimated_credit_note_spec.rb
spec/models/credit_note_estimated_spec.rb
spec/models/plan_overrides_object_charges_inner_spec.rb
spec/models/plan_overrides_object_spec.rb
spec/models/subscription_object_extended_spec.rb
spec/spec_helper.rb
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build lago_ruby.gemspec
- gem install ./lago_ruby-0.49.0-beta.gem
- gem install ./lago_ruby-0.51.0-beta.gem
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Lago API allows your application to push customer information and metrics (event

This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.49.0-beta
- Package version: 0.49.0-beta
- API version: 0.51.0-beta
- Package version: 0.51.0-beta
- Build package: org.openapitools.codegen.languages.RubyClientCodegen

[![Gem Version](https://badge.fury.io/rb/lago-ruby.svg)](https://badge.fury.io/rb/lago-ruby)
Expand All @@ -26,16 +26,16 @@ gem build lago_ruby.gemspec
Then either install the gem locally:

```shell
gem install ./lago_ruby-0.49.0-beta.gem
gem install ./lago_ruby-0.51.0-beta.gem
```

(for development, run `gem install --dev ./lago_ruby-0.49.0-beta.gem` to install the development dependencies)
(for development, run `gem install --dev ./lago_ruby-0.51.0-beta.gem` to install the development dependencies)

or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).

Finally add this to the Gemfile:

gem 'lago_ruby', '~> 0.49.0-beta'
gem 'lago_ruby', '~> 0.51.0-beta'

### Install from Git

Expand Down Expand Up @@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
*LagoAPI::CouponsApi* | [**update_coupon**](docs/CouponsApi.md#update_coupon) | **PUT** /coupons/{code} | Update a coupon
*LagoAPI::CreditNotesApi* | [**create_credit_note**](docs/CreditNotesApi.md#create_credit_note) | **POST** /credit_notes | Create a credit note
*LagoAPI::CreditNotesApi* | [**download_credit_note**](docs/CreditNotesApi.md#download_credit_note) | **POST** /credit_notes/{lago_id}/download | Download a credit note PDF
*LagoAPI::CreditNotesApi* | [**estimate_credit_note**](docs/CreditNotesApi.md#estimate_credit_note) | **POST** /credit_notes/estimate | Estimate amounts for a new credit note
*LagoAPI::CreditNotesApi* | [**find_all_credit_notes**](docs/CreditNotesApi.md#find_all_credit_notes) | **GET** /credit_notes | List all credit notes
*LagoAPI::CreditNotesApi* | [**find_credit_note**](docs/CreditNotesApi.md#find_credit_note) | **GET** /credit_notes/{lago_id} | Retrieve a credit note
*LagoAPI::CreditNotesApi* | [**update_credit_note**](docs/CreditNotesApi.md#update_credit_note) | **PUT** /credit_notes/{lago_id} | Update a credit note
Expand Down Expand Up @@ -218,7 +219,13 @@ Class | Method | HTTP request | Description
- [LagoAPI::CreditNoteAppliedTaxObject](docs/CreditNoteAppliedTaxObject.md)
- [LagoAPI::CreditNoteCreateInput](docs/CreditNoteCreateInput.md)
- [LagoAPI::CreditNoteCreateInputCreditNote](docs/CreditNoteCreateInputCreditNote.md)
- [LagoAPI::CreditNoteCreateInputCreditNoteItemsInner](docs/CreditNoteCreateInputCreditNoteItemsInner.md)
- [LagoAPI::CreditNoteEstimateInput](docs/CreditNoteEstimateInput.md)
- [LagoAPI::CreditNoteEstimateInputCreditNote](docs/CreditNoteEstimateInputCreditNote.md)
- [LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner](docs/CreditNoteEstimateInputCreditNoteItemsInner.md)
- [LagoAPI::CreditNoteEstimated](docs/CreditNoteEstimated.md)
- [LagoAPI::CreditNoteEstimatedEstimatedCreditNote](docs/CreditNoteEstimatedEstimatedCreditNote.md)
- [LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner](docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md)
- [LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner](docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md)
- [LagoAPI::CreditNoteItemObject](docs/CreditNoteItemObject.md)
- [LagoAPI::CreditNoteItemObjectFee](docs/CreditNoteItemObjectFee.md)
- [LagoAPI::CreditNoteObject](docs/CreditNoteObject.md)
Expand Down Expand Up @@ -295,6 +302,8 @@ Class | Method | HTTP request | Description
- [LagoAPI::PlanCreateInputPlanChargesInner](docs/PlanCreateInputPlanChargesInner.md)
- [LagoAPI::PlanCreateInputPlanChargesInnerGroupPropertiesInner](docs/PlanCreateInputPlanChargesInnerGroupPropertiesInner.md)
- [LagoAPI::PlanObject](docs/PlanObject.md)
- [LagoAPI::PlanOverridesObject](docs/PlanOverridesObject.md)
- [LagoAPI::PlanOverridesObjectChargesInner](docs/PlanOverridesObjectChargesInner.md)
- [LagoAPI::PlanUpdateInput](docs/PlanUpdateInput.md)
- [LagoAPI::PlanUpdateInputPlan](docs/PlanUpdateInputPlan.md)
- [LagoAPI::PlanUpdateInputPlanChargesInner](docs/PlanUpdateInputPlanChargesInner.md)
Expand All @@ -303,6 +312,7 @@ Class | Method | HTTP request | Description
- [LagoAPI::SubscriptionCreateInput](docs/SubscriptionCreateInput.md)
- [LagoAPI::SubscriptionCreateInputSubscription](docs/SubscriptionCreateInputSubscription.md)
- [LagoAPI::SubscriptionObject](docs/SubscriptionObject.md)
- [LagoAPI::SubscriptionObjectExtended](docs/SubscriptionObjectExtended.md)
- [LagoAPI::SubscriptionUpdateInput](docs/SubscriptionUpdateInput.md)
- [LagoAPI::SubscriptionUpdateInputSubscription](docs/SubscriptionUpdateInputSubscription.md)
- [LagoAPI::SubscriptionsPaginated](docs/SubscriptionsPaginated.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/CreditNoteCreateInputCreditNote.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| **description** | **String** | The description of the credit note. | [optional] |
| **credit_amount_cents** | **Integer** | The total amount to be credited on the customer balance. | [optional] |
| **refund_amount_cents** | **Integer** | The total amount to be refunded to the customer. | [optional] |
| **items** | [**Array<CreditNoteCreateInputCreditNoteItemsInner>**](CreditNoteCreateInputCreditNoteItemsInner.md) | The list of credit note’s items. | |
| **items** | [**Array<CreditNoteEstimateInputCreditNoteItemsInner>**](CreditNoteEstimateInputCreditNoteItemsInner.md) | The list of credit note’s items. | |

## Example

Expand Down
18 changes: 18 additions & 0 deletions docs/CreditNoteEstimateInput.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# LagoAPI::CreditNoteEstimateInput

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **credit_note** | [**CreditNoteEstimateInputCreditNote**](CreditNoteEstimateInputCreditNote.md) | | |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimateInput.new(
credit_note: null
)
```

20 changes: 20 additions & 0 deletions docs/CreditNoteEstimateInputCreditNote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# LagoAPI::CreditNoteEstimateInputCreditNote

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **invoice_id** | **String** | The invoice unique identifier, created by Lago. | |
| **items** | [**Array<CreditNoteEstimateInputCreditNoteItemsInner>**](CreditNoteEstimateInputCreditNoteItemsInner.md) | The list of credit note’s items. | |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimateInputCreditNote.new(
invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
items: [{"fee_id":"1a901a90-1a90-1a90-1a90-1a901a901a90","amount_cents":10},{"fee_id":"1a901a90-1a90-1a90-1a90-1a901a901a91","amount_cents":5}]
)
```

20 changes: 20 additions & 0 deletions docs/CreditNoteEstimateInputCreditNoteItemsInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **fee_id** | **String** | The fee unique identifier, created by Lago. | |
| **amount_cents** | **Integer** | The amount of the credit note item, expressed in cents. | |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner.new(
fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
amount_cents: 10
)
```

18 changes: 18 additions & 0 deletions docs/CreditNoteEstimated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# LagoAPI::CreditNoteEstimated

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **estimated_credit_note** | [**CreditNoteEstimatedEstimatedCreditNote**](CreditNoteEstimatedEstimatedCreditNote.md) | | |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimated.new(
estimated_credit_note: null
)
```

38 changes: 38 additions & 0 deletions docs/CreditNoteEstimatedEstimatedCreditNote.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# LagoAPI::CreditNoteEstimatedEstimatedCreditNote

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **lago_invoice_id** | **String** | Unique identifier assigned to the invoice that the credit note belongs to | |
| **invoice_number** | **String** | The invoice unique number, related to the credit note. | |
| **currency** | [**Currency**](Currency.md) | | |
| **taxes_amount_cents** | **Integer** | The tax amount of the credit note, expressed in cents. | |
| **taxes_rate** | **Float** | The tax rate associated with this specific credit note. | |
| **sub_total_excluding_taxes_amount_cents** | **Integer** | The subtotal of the credit note excluding any applicable taxes, expressed in cents. | |
| **max_creditable_amount_cents** | **Integer** | The credited amount of the credit note, expressed in cents. | |
| **max_refundable_amount_cents** | **Integer** | The refunded amount of the credit note, expressed in cents. | |
| **coupons_adjustment_amount_cents** | **Integer** | The pro-rated amount of the coupons applied to the source invoice. | |
| **items** | [**Array<CreditNoteEstimatedEstimatedCreditNoteItemsInner>**](CreditNoteEstimatedEstimatedCreditNoteItemsInner.md) | Array of credit note’s items. | |
| **applied_taxes** | [**Array<CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner>**](CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md) | | [optional] |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimatedEstimatedCreditNote.new(
lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
invoice_number: LAG-1234,
currency: null,
taxes_amount_cents: 20,
taxes_rate: 20,
sub_total_excluding_taxes_amount_cents: 100,
max_creditable_amount_cents: 100,
max_refundable_amount_cents: 0,
coupons_adjustment_amount_cents: 20,
items: null,
applied_taxes: null
)
```

32 changes: 32 additions & 0 deletions docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **lago_tax_id** | **String** | Unique identifier of the tax, created by Lago. | [optional] |
| **tax_name** | **String** | Name of the tax. | [optional] |
| **tax_code** | **String** | Unique code used to identify the tax associated with the API request. | [optional] |
| **tax_rate** | **Float** | The percentage rate of the tax | [optional] |
| **tax_description** | **String** | Internal description of the taxe | [optional] |
| **base_amount_cents** | **Integer** | | [optional] |
| **amount_cents** | **Integer** | Amount of the tax | [optional] |
| **amount_currency** | [**Currency**](Currency.md) | | [optional] |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.new(
lago_tax_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
tax_name: TVA,
tax_code: french_standard_vat,
tax_rate: 20,
tax_description: French standard VAT,
base_amount_cents: 100,
amount_cents: 2000,
amount_currency: null
)
```

20 changes: 20 additions & 0 deletions docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **amount_cents** | **Integer** | The credit note’s item amount, expressed in cents. | |
| **lago_fee_id** | **String** | Unique identifier assigned to the fee within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the fee’s record within the Lago system. | |

## Example

```ruby
require 'lago_ruby'

instance = LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner.new(
amount_cents: 100,
lago_fee_id: 1a901a90-1a90-1a90-1a90-1a901a901a90
)
```

2 changes: 2 additions & 0 deletions docs/CreditNoteItemObjectFee.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
| **taxes_amount_cents** | **Integer** | The cost of the tax associated with this specific fee. | |
| **taxes_rate** | **Float** | The tax rate associated with this specific fee. | |
| **units** | **String** | The number of units used to charge the customer. This field indicates the quantity or count of units consumed or utilized in the context of the charge. It helps in determining the basis for calculating the fee or cost associated with the usage of the service or product provided to the customer. | |
| **precise_unit_amount** | **String** | The unit amount of the fee per unit, with precision. | |
| **total_amount_cents** | **Integer** | The cost of this specific fee, including any applicable taxes. | |
| **total_amount_currency** | [**Currency**](Currency.md) | | |
| **events_count** | **Integer** | The number of events that have been sent and used to charge the customer. This field indicates the count or quantity of events that have been processed and considered in the charging process. | [optional] |
Expand Down Expand Up @@ -56,6 +57,7 @@ instance = LagoAPI::CreditNoteItemObjectFee.new(
taxes_amount_cents: 20,
taxes_rate: 20,
units: 0.32,
precise_unit_amount: 312.5,
total_amount_cents: 120,
total_amount_currency: null,
events_count: 23,
Expand Down
4 changes: 2 additions & 2 deletions docs/CreditNoteObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
| **balance_amount_cents** | **Integer** | The remaining credit note amount, expressed in cents. | |
| **credit_amount_cents** | **Integer** | The credited amount of the credit note, expressed in cents. | |
| **refund_amount_cents** | **Integer** | The refunded amount of the credit note, expressed in cents. | |
| **coupons_adjustement_amount_cents** | **Integer** | The pro-rated amount of the coupons applied to the source invoice. | |
| **coupons_adjustment_amount_cents** | **Integer** | The pro-rated amount of the coupons applied to the source invoice. | |
| **created_at** | **Time** | The date when the credit note was created. It is expressed in Coordinated Universal Time (UTC). | |
| **updated_at** | **Time** | The date when the credit note was last updated. It is expressed in Coordinated Universal Time (UTC). | |
| **file_url** | **String** | The PDF file of the credit note. | [optional] |
Expand Down Expand Up @@ -53,7 +53,7 @@ instance = LagoAPI::CreditNoteObject.new(
balance_amount_cents: 100,
credit_amount_cents: 100,
refund_amount_cents: 0,
coupons_adjustement_amount_cents: 20,
coupons_adjustment_amount_cents: 20,
created_at: 2022-09-14T16:35:31Z,
updated_at: 2022-09-14T16:35:31Z,
file_url: https://getlago.com/credit_note/file,
Expand Down
Loading

0 comments on commit a602b76

Please sign in to comment.