Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update entities #116

Merged
merged 7 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
59 changes: 25 additions & 34 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,35 @@ on:
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Lint
run: bundle install
- name: Build
run: gem build conekta.gemspec

test:
name: Test (${{ matrix.ruby-version }})
jobs:
build-and-test:
name: Build and Test (Ruby ${{ matrix.ruby-version }})
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [2.6, 2.7, '3.0', 3.1, 3.2]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: install
run: bundle install
- name: Run Mockoon CLI
uses: mockoon/cli-action@v1
with:
version: 'latest'
data-file: 'https://raw.githubusercontent.com/conekta/openapi/20230801/mocks/conekta_api.json'
port: 3000
- name: test
run: make ci-test
env:
BASE_PATH: http://localhost:3000
- uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Bundle Install
run: bundle install

- name: Run Mockoon CLI
uses: mockoon/cli-action@v1
with:
version: 'latest'
data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json'
port: 3000

- name: Test
run: make ci-test
env:
BASE_PATH: http://localhost:3000
- name: Build
run: gem build conekta.gemspec
26 changes: 0 additions & 26 deletions .gitlab-ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
git_push.sh
.gitignore
.travis.yml
.gitlab-ci.yml
29 changes: 20 additions & 9 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.gitlab-ci.yml
.rspec
.rubocop.yml
AUTHORS.md
Expand Down Expand Up @@ -36,6 +35,7 @@ docs/ChargeResponsePaymentMethod.md
docs/ChargeResponseRefunds.md
docs/ChargeResponseRefundsAllOf.md
docs/ChargeResponseRefundsData.md
docs/ChargeUpdateRequest.md
docs/ChargesApi.md
docs/ChargesDataResponse.md
docs/Checkout.md
Expand Down Expand Up @@ -67,7 +67,6 @@ docs/CustomerFiscalEntitiesResponseAllOf.md
docs/CustomerInfo.md
docs/CustomerInfoJustCustomerId.md
docs/CustomerInfoJustCustomerIdResponse.md
docs/CustomerInfoResponse.md
docs/CustomerPaymentMethodRequest.md
docs/CustomerPaymentMethods.md
docs/CustomerPaymentMethodsData.md
Expand Down Expand Up @@ -103,6 +102,7 @@ docs/ErrorAllOf.md
docs/EventResponse.md
docs/EventsApi.md
docs/EventsResendResponse.md
docs/FiscalEntityAddress.md
docs/GetApiKeysResponse.md
docs/GetApiKeysResponseAllOf.md
docs/GetChargesResponse.md
Expand Down Expand Up @@ -132,7 +132,14 @@ docs/LogsApi.md
docs/LogsResponse.md
docs/LogsResponseData.md
docs/OrderCaptureRequest.md
docs/OrderCustomerInfoResponse.md
docs/OrderDiscountLinesRequest.md
docs/OrderFiscalEntityAddressResponse.md
docs/OrderFiscalEntityAddressResponseAllOf.md
docs/OrderFiscalEntityRequest.md
docs/OrderFiscalEntityResponse.md
docs/OrderNextActionResponse.md
docs/OrderNextActionResponseRedirectToUrl.md
docs/OrderRefundRequest.md
docs/OrderRequest.md
docs/OrderRequestCustomerInfo.md
Expand All @@ -144,14 +151,12 @@ docs/OrderResponseCustomerInfo.md
docs/OrderResponseCustomerInfoAllOf.md
docs/OrderResponseDiscountLines.md
docs/OrderResponseDiscountLinesAllOf.md
docs/OrderResponseFiscalEntity.md
docs/OrderResponseFiscalEntityAddress.md
docs/OrderResponseFiscalEntityAddressAllOf.md
docs/OrderResponseProducts.md
docs/OrderResponseProductsAllOf.md
docs/OrderResponseShippingContact.md
docs/OrderResponseShippingContactAllOf.md
docs/OrderTaxRequest.md
docs/OrderUpdateFiscalEntityRequest.md
docs/OrderUpdateRequest.md
docs/OrderUpdateRequestCustomerInfo.md
docs/OrdersApi.md
Expand Down Expand Up @@ -285,6 +290,7 @@ lib/conekta/models/charge_response_payment_method.rb
lib/conekta/models/charge_response_refunds.rb
lib/conekta/models/charge_response_refunds_all_of.rb
lib/conekta/models/charge_response_refunds_data.rb
lib/conekta/models/charge_update_request.rb
lib/conekta/models/charges_data_response.rb
lib/conekta/models/checkout.rb
lib/conekta/models/checkout_order_template.rb
Expand Down Expand Up @@ -314,7 +320,6 @@ lib/conekta/models/customer_fiscal_entities_response_all_of.rb
lib/conekta/models/customer_info.rb
lib/conekta/models/customer_info_just_customer_id.rb
lib/conekta/models/customer_info_just_customer_id_response.rb
lib/conekta/models/customer_info_response.rb
lib/conekta/models/customer_payment_method_request.rb
lib/conekta/models/customer_payment_methods.rb
lib/conekta/models/customer_payment_methods_data.rb
Expand Down Expand Up @@ -347,6 +352,7 @@ lib/conekta/models/error.rb
lib/conekta/models/error_all_of.rb
lib/conekta/models/event_response.rb
lib/conekta/models/events_resend_response.rb
lib/conekta/models/fiscal_entity_address.rb
lib/conekta/models/get_api_keys_response.rb
lib/conekta/models/get_api_keys_response_all_of.rb
lib/conekta/models/get_charges_response.rb
Expand Down Expand Up @@ -375,7 +381,14 @@ lib/conekta/models/log_response.rb
lib/conekta/models/logs_response.rb
lib/conekta/models/logs_response_data.rb
lib/conekta/models/order_capture_request.rb
lib/conekta/models/order_customer_info_response.rb
lib/conekta/models/order_discount_lines_request.rb
lib/conekta/models/order_fiscal_entity_address_response.rb
lib/conekta/models/order_fiscal_entity_address_response_all_of.rb
lib/conekta/models/order_fiscal_entity_request.rb
lib/conekta/models/order_fiscal_entity_response.rb
lib/conekta/models/order_next_action_response.rb
lib/conekta/models/order_next_action_response_redirect_to_url.rb
lib/conekta/models/order_refund_request.rb
lib/conekta/models/order_request.rb
lib/conekta/models/order_request_customer_info.rb
Expand All @@ -387,14 +400,12 @@ lib/conekta/models/order_response_customer_info.rb
lib/conekta/models/order_response_customer_info_all_of.rb
lib/conekta/models/order_response_discount_lines.rb
lib/conekta/models/order_response_discount_lines_all_of.rb
lib/conekta/models/order_response_fiscal_entity.rb
lib/conekta/models/order_response_fiscal_entity_address.rb
lib/conekta/models/order_response_fiscal_entity_address_all_of.rb
lib/conekta/models/order_response_products.rb
lib/conekta/models/order_response_products_all_of.rb
lib/conekta/models/order_response_shipping_contact.rb
lib/conekta/models/order_response_shipping_contact_all_of.rb
lib/conekta/models/order_tax_request.rb
lib/conekta/models/order_update_fiscal_entity_request.rb
lib/conekta/models/order_update_request.rb
lib/conekta/models/order_update_request_customer_info.rb
lib/conekta/models/orders_response.rb
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.6.0
7.1.0
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
ci-test:
bundle exec rspec
bundle exec rspec
ruby:
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.1.0 generate \
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
-g ruby \
-o /local \
-c /local/config-ruby.json \
--global-property modelTests=false
33 changes: 22 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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.0
- Build date: 2023-07-25T20:01:00.519004-05:00[America/Bogota]
- Package version: 6.0.1
- Build date: 2023-12-21T17:43:37.251685Z[Etc/UTC]
- 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 +25,16 @@ gem build conekta.gemspec
Then either install the gem locally:

```shell
gem install ./conekta-6.0.0.gem
gem install ./conekta-6.0.1.gem
```

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

### Install from Git

Expand All @@ -61,7 +61,11 @@ require 'conekta'
# Setup authorization
Conekta.configure do |config|
# Configure Bearer authorization: bearerAuth
config.access_token = '$API_KEY'
config.access_token = 'YOUR_BEARER_TOKEN'
# Configure a proc to get access tokens in lieu of the static access_token configuration
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
# Configure faraday connection
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
end

api_instance = Conekta::AntifraudApi.new
Expand Down Expand Up @@ -97,9 +101,10 @@ Class | Method | HTTP request | Description
*Conekta::ApiKeysApi* | [**get_api_key**](docs/ApiKeysApi.md#get_api_key) | **GET** /api_keys/{id} | Get Api Key
*Conekta::ApiKeysApi* | [**get_api_keys**](docs/ApiKeysApi.md#get_api_keys) | **GET** /api_keys | Get list of Api Keys
*Conekta::ApiKeysApi* | [**update_api_key**](docs/ApiKeysApi.md#update_api_key) | **PUT** /api_keys/{id} | Update Api Key
*Conekta::BalancesApi* | [**get_balance**](docs/BalancesApi.md#get_balance) | **GET** /balances | Get a company's balance
*Conekta::BalancesApi* | [**get_balance**](docs/BalancesApi.md#get_balance) | **GET** /balance | Get a company's balance
*Conekta::ChargesApi* | [**get_charges**](docs/ChargesApi.md#get_charges) | **GET** /charges | Get A List of Charges
*Conekta::ChargesApi* | [**orders_create_charge**](docs/ChargesApi.md#orders_create_charge) | **POST** /orders/{id}/charges | Create charge
*Conekta::ChargesApi* | [**update_charge**](docs/ChargesApi.md#update_charge) | **PUT** /charges/{id} | Update a charge
*Conekta::CompaniesApi* | [**get_companies**](docs/CompaniesApi.md#get_companies) | **GET** /companies | Get List of Companies
*Conekta::CompaniesApi* | [**get_company**](docs/CompaniesApi.md#get_company) | **GET** /companies/{id} | Get Company
*Conekta::CustomersApi* | [**create_customer**](docs/CustomersApi.md#create_customer) | **POST** /customers | Create customer
Expand Down Expand Up @@ -203,6 +208,7 @@ Class | Method | HTTP request | Description
- [Conekta::ChargeResponseRefunds](docs/ChargeResponseRefunds.md)
- [Conekta::ChargeResponseRefundsAllOf](docs/ChargeResponseRefundsAllOf.md)
- [Conekta::ChargeResponseRefundsData](docs/ChargeResponseRefundsData.md)
- [Conekta::ChargeUpdateRequest](docs/ChargeUpdateRequest.md)
- [Conekta::ChargesDataResponse](docs/ChargesDataResponse.md)
- [Conekta::Checkout](docs/Checkout.md)
- [Conekta::CheckoutOrderTemplate](docs/CheckoutOrderTemplate.md)
Expand Down Expand Up @@ -232,7 +238,6 @@ Class | Method | HTTP request | Description
- [Conekta::CustomerInfo](docs/CustomerInfo.md)
- [Conekta::CustomerInfoJustCustomerId](docs/CustomerInfoJustCustomerId.md)
- [Conekta::CustomerInfoJustCustomerIdResponse](docs/CustomerInfoJustCustomerIdResponse.md)
- [Conekta::CustomerInfoResponse](docs/CustomerInfoResponse.md)
- [Conekta::CustomerPaymentMethodRequest](docs/CustomerPaymentMethodRequest.md)
- [Conekta::CustomerPaymentMethods](docs/CustomerPaymentMethods.md)
- [Conekta::CustomerPaymentMethodsData](docs/CustomerPaymentMethodsData.md)
Expand Down Expand Up @@ -265,6 +270,7 @@ Class | Method | HTTP request | Description
- [Conekta::ErrorAllOf](docs/ErrorAllOf.md)
- [Conekta::EventResponse](docs/EventResponse.md)
- [Conekta::EventsResendResponse](docs/EventsResendResponse.md)
- [Conekta::FiscalEntityAddress](docs/FiscalEntityAddress.md)
- [Conekta::GetApiKeysResponse](docs/GetApiKeysResponse.md)
- [Conekta::GetApiKeysResponseAllOf](docs/GetApiKeysResponseAllOf.md)
- [Conekta::GetChargesResponse](docs/GetChargesResponse.md)
Expand Down Expand Up @@ -293,7 +299,14 @@ Class | Method | HTTP request | Description
- [Conekta::LogsResponse](docs/LogsResponse.md)
- [Conekta::LogsResponseData](docs/LogsResponseData.md)
- [Conekta::OrderCaptureRequest](docs/OrderCaptureRequest.md)
- [Conekta::OrderCustomerInfoResponse](docs/OrderCustomerInfoResponse.md)
- [Conekta::OrderDiscountLinesRequest](docs/OrderDiscountLinesRequest.md)
- [Conekta::OrderFiscalEntityAddressResponse](docs/OrderFiscalEntityAddressResponse.md)
- [Conekta::OrderFiscalEntityAddressResponseAllOf](docs/OrderFiscalEntityAddressResponseAllOf.md)
- [Conekta::OrderFiscalEntityRequest](docs/OrderFiscalEntityRequest.md)
- [Conekta::OrderFiscalEntityResponse](docs/OrderFiscalEntityResponse.md)
- [Conekta::OrderNextActionResponse](docs/OrderNextActionResponse.md)
- [Conekta::OrderNextActionResponseRedirectToUrl](docs/OrderNextActionResponseRedirectToUrl.md)
- [Conekta::OrderRefundRequest](docs/OrderRefundRequest.md)
- [Conekta::OrderRequest](docs/OrderRequest.md)
- [Conekta::OrderRequestCustomerInfo](docs/OrderRequestCustomerInfo.md)
Expand All @@ -305,14 +318,12 @@ Class | Method | HTTP request | Description
- [Conekta::OrderResponseCustomerInfoAllOf](docs/OrderResponseCustomerInfoAllOf.md)
- [Conekta::OrderResponseDiscountLines](docs/OrderResponseDiscountLines.md)
- [Conekta::OrderResponseDiscountLinesAllOf](docs/OrderResponseDiscountLinesAllOf.md)
- [Conekta::OrderResponseFiscalEntity](docs/OrderResponseFiscalEntity.md)
- [Conekta::OrderResponseFiscalEntityAddress](docs/OrderResponseFiscalEntityAddress.md)
- [Conekta::OrderResponseFiscalEntityAddressAllOf](docs/OrderResponseFiscalEntityAddressAllOf.md)
- [Conekta::OrderResponseProducts](docs/OrderResponseProducts.md)
- [Conekta::OrderResponseProductsAllOf](docs/OrderResponseProductsAllOf.md)
- [Conekta::OrderResponseShippingContact](docs/OrderResponseShippingContact.md)
- [Conekta::OrderResponseShippingContactAllOf](docs/OrderResponseShippingContactAllOf.md)
- [Conekta::OrderTaxRequest](docs/OrderTaxRequest.md)
- [Conekta::OrderUpdateFiscalEntityRequest](docs/OrderUpdateFiscalEntityRequest.md)
- [Conekta::OrderUpdateRequest](docs/OrderUpdateRequest.md)
- [Conekta::OrderUpdateRequestCustomerInfo](docs/OrderUpdateRequestCustomerInfo.md)
- [Conekta::OrdersResponse](docs/OrdersResponse.md)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0
6.0.1
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: 6.6.0
OpenAPI Generator version: 7.1.0

=end

Expand All @@ -26,6 +26,7 @@ Gem::Specification.new do |s|
s.description = "Ruby library for https://api.conekta.io"
s.license = "MIT"
s.required_ruby_version = ">= 2.6"
s.metadata = {}

s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
s.add_runtime_dependency 'faraday-multipart'
Expand Down
32 changes: 32 additions & 0 deletions config-ruby.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"gemAuthorEmail" : "[email protected]",
"gemAuthor": "Conekta",
"gemName" : "conekta",
"gemLicense": "MIT",
"gemVersion": "6.0.1",
"hideGenerationTimestamp": false,
"moduleName": "Conekta",
"gemSummary" : "This library provides https://api.conekta.io operations",
"gemHomepage" : "https://www.conekta.com",
"gemDescription" : "Ruby library for https://api.conekta.io",
"library": "faraday",
"httpUserAgent": "Conekta/v2 RubyBindings/#{Conekta::VERSION}",
"gemRequiredRubyVersion" : ">= 2.6",
"templateDir": "local/templates/ruby",
"gitUserId" : "conekta",
"gitRepoId" : "conekta-ruby",
"files": {
"/local/CODE_OF_CONDUCT.md": {},
"/local/AUTHORS.md": {},
"/local/CONTRIBUTING.md": {},
"/local/LICENSE": {},
"/local/conekta.png": {},
"/local/ssl_data/ca_bundle.crt": {
"destinationFilename": "lib/ssl_data/ca_bundle.crt"
},
"CUSTOM_VERSION.mustache": {
"templateType": "SupportingFiles",
"destinationFilename": "VERSION"
}
}
}
Loading