Skip to content

Commit

Permalink
new entities (#118)
Browse files Browse the repository at this point in the history
* Update OpenAPI Generator version to 7.5.0
new 6.0.3 version
update new entities

* Update OpenAPI Generator version to 7.5.0
new 6.0.3 version
update new entities

* update mockoon/cli-action@v2

* add ruby 3.3 supports
  • Loading branch information
fcarrero authored Apr 29, 2024
1 parent 59aa61c commit 4eb2f85
Show file tree
Hide file tree
Showing 229 changed files with 3,286 additions and 223 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [2.6, 2.7, '3.0', 3.1, 3.2]
ruby-version: [2.6, 2.7, 3.0, 3.1, 3.2, 3.3]
steps:
- uses: actions/checkout@v3

Expand All @@ -24,7 +24,7 @@ jobs:
run: bundle install

- name: Run Mockoon CLI
uses: mockoon/cli-action@v1
uses: mockoon/cli-action@v2
with:
version: 'latest'
data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json'
Expand Down
18 changes: 18 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ docs/DiscountsApi.md
docs/EmailCheckoutRequest.md
docs/Error.md
docs/EventResponse.md
docs/EventTypes.md
docs/EventsApi.md
docs/EventsResendResponse.md
docs/FiscalEntityAddress.md
Expand Down Expand Up @@ -143,6 +144,14 @@ docs/PaymentMethodResponse.md
docs/PaymentMethodSpeiRecurrent.md
docs/PaymentMethodSpeiRequest.md
docs/PaymentMethodsApi.md
docs/Payout.md
docs/PayoutMethod.md
docs/PayoutOrder.md
docs/PayoutOrderPayoutsItem.md
docs/PayoutOrderResponse.md
docs/PayoutOrderResponseCustomerInfo.md
docs/PayoutOrdersApi.md
docs/PayoutOrdersResponse.md
docs/PlanRequest.md
docs/PlanResponse.md
docs/PlanUpdateRequest.md
Expand Down Expand Up @@ -211,6 +220,7 @@ lib/conekta/api/logs_api.rb
lib/conekta/api/orders_api.rb
lib/conekta/api/payment_link_api.rb
lib/conekta/api/payment_methods_api.rb
lib/conekta/api/payout_orders_api.rb
lib/conekta/api/plans_api.rb
lib/conekta/api/products_api.rb
lib/conekta/api/shipping_contacts_api.rb
Expand Down Expand Up @@ -292,6 +302,7 @@ lib/conekta/models/discount_lines_response.rb
lib/conekta/models/email_checkout_request.rb
lib/conekta/models/error.rb
lib/conekta/models/event_response.rb
lib/conekta/models/event_types.rb
lib/conekta/models/events_resend_response.rb
lib/conekta/models/fiscal_entity_address.rb
lib/conekta/models/get_api_keys_response.rb
Expand Down Expand Up @@ -346,6 +357,13 @@ lib/conekta/models/payment_method_cash_response.rb
lib/conekta/models/payment_method_response.rb
lib/conekta/models/payment_method_spei_recurrent.rb
lib/conekta/models/payment_method_spei_request.rb
lib/conekta/models/payout.rb
lib/conekta/models/payout_method.rb
lib/conekta/models/payout_order.rb
lib/conekta/models/payout_order_payouts_item.rb
lib/conekta/models/payout_order_response.rb
lib/conekta/models/payout_order_response_customer_info.rb
lib/conekta/models/payout_orders_response.rb
lib/conekta/models/plan_request.rb
lib/conekta/models/plan_response.rb
lib/conekta/models/plan_update_request.rb
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.0
7.5.0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci-test:
ruby:
rm -rf docs && rm -rf lib/models && \
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.2.0 generate \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
-g ruby \
-o /local \
Expand Down
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Conekta sdk
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2.1.0
- Package version: 6.0.2
- Build date: 2023-12-26T16:28:22.789356234Z[Etc/UTC]
- Package version: 6.0.3
- Build date: 2024-04-29T14:11:53.612104515Z[Etc/UTC]
- Generator version: 7.5.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
For more information, please visit [https://github.com/conekta/openapi/issues](https://github.com/conekta/openapi/issues)

Expand All @@ -25,16 +26,16 @@ gem build conekta.gemspec
Then either install the gem locally:

```shell
gem install ./conekta-6.0.2.gem
gem install ./conekta-6.0.3.gem
```

(for development, run `gem install --dev ./conekta-6.0.2.gem` to install the development dependencies)
(for development, run `gem install --dev ./conekta-6.0.3.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 'conekta', '~> 6.0.2'
gem 'conekta', '~> 6.0.3'

### Install from Git

Expand Down Expand Up @@ -142,6 +143,9 @@ Class | Method | HTTP request | Description
*Conekta::PaymentMethodsApi* | [**delete_customer_payment_methods**](docs/PaymentMethodsApi.md#delete_customer_payment_methods) | **DELETE** /customers/{id}/payment_sources/{payment_method_id} | Delete Payment Method
*Conekta::PaymentMethodsApi* | [**get_customer_payment_methods**](docs/PaymentMethodsApi.md#get_customer_payment_methods) | **GET** /customers/{id}/payment_sources | Get Payment Methods
*Conekta::PaymentMethodsApi* | [**update_customer_payment_methods**](docs/PaymentMethodsApi.md#update_customer_payment_methods) | **PUT** /customers/{id}/payment_sources/{payment_method_id} | Update Payment Method
*Conekta::PayoutOrdersApi* | [**create_payout_order**](docs/PayoutOrdersApi.md#create_payout_order) | **POST** /payout_orders | Create payout order
*Conekta::PayoutOrdersApi* | [**get_payout_order_by_id**](docs/PayoutOrdersApi.md#get_payout_order_by_id) | **GET** /payout_orders/{id} | Get Payout Order
*Conekta::PayoutOrdersApi* | [**get_payout_orders**](docs/PayoutOrdersApi.md#get_payout_orders) | **GET** /payout_orders | Get a list of Payout Orders
*Conekta::PlansApi* | [**create_plan**](docs/PlansApi.md#create_plan) | **POST** /plans | Create Plan
*Conekta::PlansApi* | [**delete_plan**](docs/PlansApi.md#delete_plan) | **DELETE** /plans/{id} | Delete Plan
*Conekta::PlansApi* | [**get_plan**](docs/PlansApi.md#get_plan) | **GET** /plans/{id} | Get Plan
Expand Down Expand Up @@ -253,6 +257,7 @@ Class | Method | HTTP request | Description
- [Conekta::EmailCheckoutRequest](docs/EmailCheckoutRequest.md)
- [Conekta::Error](docs/Error.md)
- [Conekta::EventResponse](docs/EventResponse.md)
- [Conekta::EventTypes](docs/EventTypes.md)
- [Conekta::EventsResendResponse](docs/EventsResendResponse.md)
- [Conekta::FiscalEntityAddress](docs/FiscalEntityAddress.md)
- [Conekta::GetApiKeysResponse](docs/GetApiKeysResponse.md)
Expand Down Expand Up @@ -307,6 +312,13 @@ Class | Method | HTTP request | Description
- [Conekta::PaymentMethodResponse](docs/PaymentMethodResponse.md)
- [Conekta::PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md)
- [Conekta::PaymentMethodSpeiRequest](docs/PaymentMethodSpeiRequest.md)
- [Conekta::Payout](docs/Payout.md)
- [Conekta::PayoutMethod](docs/PayoutMethod.md)
- [Conekta::PayoutOrder](docs/PayoutOrder.md)
- [Conekta::PayoutOrderPayoutsItem](docs/PayoutOrderPayoutsItem.md)
- [Conekta::PayoutOrderResponse](docs/PayoutOrderResponse.md)
- [Conekta::PayoutOrderResponseCustomerInfo](docs/PayoutOrderResponseCustomerInfo.md)
- [Conekta::PayoutOrdersResponse](docs/PayoutOrdersResponse.md)
- [Conekta::PlanRequest](docs/PlanRequest.md)
- [Conekta::PlanResponse](docs/PlanResponse.md)
- [Conekta::PlanUpdateRequest](docs/PlanUpdateRequest.md)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.2
6.0.3
3 changes: 2 additions & 1 deletion conekta.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
The version of the OpenAPI document: 2.1.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.2.0
Generator version: 7.5.0
=end

Expand All @@ -30,6 +30,7 @@ Gem::Specification.new do |s|

s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
s.add_runtime_dependency 'faraday-multipart'
s.add_runtime_dependency 'marcel'

s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'

Expand Down
2 changes: 1 addition & 1 deletion config-ruby.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"gemAuthor": "Conekta",
"gemName" : "conekta",
"gemLicense": "MIT",
"gemVersion": "6.0.2",
"gemVersion": "6.0.3",
"hideGenerationTimestamp": false,
"moduleName": "Conekta",
"gemSummary" : "This library provides https://api.conekta.io operations",
Expand Down
2 changes: 2 additions & 0 deletions docs/CheckoutRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
| **monthly_installments_options** | **Array&lt;Integer&gt;** | | [optional] |
| **name** | **String** | Reason for payment | [optional] |
| **on_demand_enabled** | **Boolean** | | [optional] |
| **redirection_time** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] |
| **success_url** | **String** | Redirection url back to the site in case of successful payment, applies only to HostedPayment | [optional] |
| **type** | **String** | This field represents the type of checkout | [optional] |

Expand All @@ -27,6 +28,7 @@ instance = Conekta::CheckoutRequest.new(
monthly_installments_options: [3,6,12],
name: null,
on_demand_enabled: true,
redirection_time: 10,
success_url: null,
type: Integration
)
Expand Down
15 changes: 15 additions & 0 deletions docs/EventTypes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Conekta::EventTypes

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |

## Example

```ruby
require 'conekta'

instance = Conekta::EventTypes.new()
```

2 changes: 2 additions & 0 deletions docs/OrderResponseCheckout.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| **on_demand_enabled** | **Boolean** | | [optional] |
| **paid_payments_count** | **Integer** | | [optional] |
| **recurrent** | **Boolean** | | [optional] |
| **redirection_time** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] |
| **slug** | **String** | | [optional] |
| **sms_sent** | **Integer** | | [optional] |
| **success_url** | **String** | | [optional] |
Expand Down Expand Up @@ -56,6 +57,7 @@ instance = Conekta::OrderResponseCheckout.new(
on_demand_enabled: true,
paid_payments_count: 0,
recurrent: false,
redirection_time: 2,
slug: 6fca054a85194c43971ecea35cc519bb,
sms_sent: 0,
success_url: http://187.216.228.66:2222/SysVentasPagos/Acceso.aspx,
Expand Down
16 changes: 15 additions & 1 deletion docs/OrdersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,14 @@ opts = {
limit: 56, # Integer | The numbers of items to return, the maximum value is 250
search: 'search_example', # String | General order search, e.g. by mail, reference etc.
_next: '_next_example', # String | next page
previous: 'previous_example' # String | previous page
previous: 'previous_example', # String | previous page
payment_status: 'paid', # String | Filters by order status
last_payment_info_status: 'pending_payment', # String | Filters by last payment info status
created_at: 1612137600, # Integer | created equal to
created_at_gte: 1612137600, # Integer | created at greater than or equal to
created_at_lte: 1612137600, # Integer | created at less than or equal to
updated_at_gte: 1612137600, # Integer | updated at greater than or equal to
updated_at_lte: 1612137600 # Integer | updated at less than or equal to
}

begin
Expand Down Expand Up @@ -305,6 +312,13 @@ end
| **search** | **String** | General order search, e.g. by mail, reference etc. | [optional] |
| **_next** | **String** | next page | [optional] |
| **previous** | **String** | previous page | [optional] |
| **payment_status** | **String** | Filters by order status | [optional] |
| **last_payment_info_status** | **String** | Filters by last payment info status | [optional] |
| **created_at** | **Integer** | created equal to | [optional] |
| **created_at_gte** | **Integer** | created at greater than or equal to | [optional] |
| **created_at_lte** | **Integer** | created at less than or equal to | [optional] |
| **updated_at_gte** | **Integer** | updated at greater than or equal to | [optional] |
| **updated_at_lte** | **Integer** | updated at less than or equal to | [optional] |

### Return type

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

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **payout_method** | [**PayoutMethod**](PayoutMethod.md) | | |

## Example

```ruby
require 'conekta'

instance = Conekta::Payout.new(
payout_method: null
)
```

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

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **type** | **String** | The type of the payout method. | |

## Example

```ruby
require 'conekta'

instance = Conekta::PayoutMethod.new(
type: cashout
)
```

30 changes: 30 additions & 0 deletions docs/PayoutOrder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Conekta::PayoutOrder

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **allowed_payout_methods** | **Array&lt;String&gt;** | The payout methods that are allowed for the payout order. | |
| **amount** | **Integer** | The amount of the payout order. | |
| **currency** | **String** | The currency in which the payout order is made. | [default to &#39;MXN&#39;] |
| **customer_info** | [**CustomerInfoJustCustomerId**](CustomerInfoJustCustomerId.md) | | |
| **metadata** | **Hash&lt;String, Object&gt;** | The metadata of the payout order. | [optional] |
| **payout** | [**Payout**](Payout.md) | | |
| **reason** | **String** | The reason for the payout order. | |

## Example

```ruby
require 'conekta'

instance = Conekta::PayoutOrder.new(
allowed_payout_methods: [&quot;cashout&quot;],
amount: 100,
currency: MXN,
customer_info: null,
metadata: {&quot;custom_client_id&quot;:&quot;12345&quot;},
payout: null,
reason: Payout order for the customer
)
```

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

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **amount** | **Integer** | The amount of the payout. | |
| **currency** | **String** | The currency in which the payout is made. | |
| **expires_at** | **Integer** | The expiration date of the payout. | [optional] |
| **id** | **String** | The id of the payout. | |
| **livemode** | **Boolean** | The live mode of the payout. | |
| **object** | **String** | The object of the payout. | |
| **payout_order_id** | **String** | The id of the payout order. | [optional] |
| **status** | **String** | The status of the payout. | [optional] |

## Example

```ruby
require 'conekta'

instance = Conekta::PayoutOrderPayoutsItem.new(
amount: 3000,
currency: MXN,
expires_at: 1677626837,
id: payout_2vZwsRAhhGp2dFDJx,
livemode: true,
object: payout,
payout_order_id: f2654d66-d740-457a-9a8c-f96b5196f44e,
status: open
)
```

Loading

0 comments on commit 4eb2f85

Please sign in to comment.