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

Release 6.0.0 #1

Merged
merged 7 commits into from
Dec 22, 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
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ jobs:
with:
sdk: ${{ matrix.sdk }}
- uses: actions/setup-node@v2

- 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: dart install, build and test
run: |
dart pub get
dart run build_runner clean && dart run build_runner build --delete-conflicting-outputs
npm install -g @mockoon/cli
npx mockoon-cli start --data https://raw.githubusercontent.com/conekta/openapi/v6.0.3/mocks/conekta_api.json --port 3000
dart run test
env:
BASE_PATH: http://localhost:3000
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ pubspec.lock

# Mac
.DS_Store
**/*.g.dart
30 changes: 22 additions & 8 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ doc/ApiKeyCreateResponse.md
doc/ApiKeyCreateResponseAllOf.md
doc/ApiKeyRequest.md
doc/ApiKeyResponse.md
doc/ApiKeyResponseOnDelete.md
doc/ApiKeyUpdateRequest.md
doc/ApiKeysApi.md
doc/BalanceCommonField.md
Expand All @@ -31,6 +32,7 @@ doc/ChargeResponsePaymentMethod.md
doc/ChargeResponseRefunds.md
doc/ChargeResponseRefundsAllOf.md
doc/ChargeResponseRefundsData.md
doc/ChargeUpdateRequest.md
doc/ChargesApi.md
doc/ChargesDataResponse.md
doc/Checkout.md
Expand Down Expand Up @@ -62,7 +64,6 @@ doc/CustomerFiscalEntitiesResponseAllOf.md
doc/CustomerInfo.md
doc/CustomerInfoJustCustomerId.md
doc/CustomerInfoJustCustomerIdResponse.md
doc/CustomerInfoResponse.md
doc/CustomerPaymentMethodRequest.md
doc/CustomerPaymentMethods.md
doc/CustomerPaymentMethodsData.md
Expand Down Expand Up @@ -98,6 +99,7 @@ doc/ErrorAllOf.md
doc/EventResponse.md
doc/EventsApi.md
doc/EventsResendResponse.md
doc/FiscalEntityAddress.md
doc/GetApiKeysResponse.md
doc/GetApiKeysResponseAllOf.md
doc/GetChargesResponse.md
Expand Down Expand Up @@ -127,7 +129,14 @@ doc/LogsApi.md
doc/LogsResponse.md
doc/LogsResponseData.md
doc/OrderCaptureRequest.md
doc/OrderCustomerInfoResponse.md
doc/OrderDiscountLinesRequest.md
doc/OrderFiscalEntityAddressResponse.md
doc/OrderFiscalEntityAddressResponseAllOf.md
doc/OrderFiscalEntityRequest.md
doc/OrderFiscalEntityResponse.md
doc/OrderNextActionResponse.md
doc/OrderNextActionResponseRedirectToUrl.md
doc/OrderRefundRequest.md
doc/OrderRequest.md
doc/OrderRequestCustomerInfo.md
Expand All @@ -139,14 +148,12 @@ doc/OrderResponseCustomerInfo.md
doc/OrderResponseCustomerInfoAllOf.md
doc/OrderResponseDiscountLines.md
doc/OrderResponseDiscountLinesAllOf.md
doc/OrderResponseFiscalEntity.md
doc/OrderResponseFiscalEntityAddress.md
doc/OrderResponseFiscalEntityAddressAllOf.md
doc/OrderResponseProducts.md
doc/OrderResponseProductsAllOf.md
doc/OrderResponseShippingContact.md
doc/OrderResponseShippingContactAllOf.md
doc/OrderTaxRequest.md
doc/OrderUpdateFiscalEntityRequest.md
doc/OrderUpdateRequest.md
doc/OrderUpdateRequestCustomerInfo.md
doc/OrdersApi.md
Expand Down Expand Up @@ -267,6 +274,7 @@ lib/src/model/api_key_create_response.dart
lib/src/model/api_key_create_response_all_of.dart
lib/src/model/api_key_request.dart
lib/src/model/api_key_response.dart
lib/src/model/api_key_response_on_delete.dart
lib/src/model/api_key_update_request.dart
lib/src/model/balance_common_field.dart
lib/src/model/balance_response.dart
Expand All @@ -284,6 +292,7 @@ lib/src/model/charge_response_payment_method.dart
lib/src/model/charge_response_refunds.dart
lib/src/model/charge_response_refunds_all_of.dart
lib/src/model/charge_response_refunds_data.dart
lib/src/model/charge_update_request.dart
lib/src/model/charges_data_response.dart
lib/src/model/checkout.dart
lib/src/model/checkout_order_template.dart
Expand Down Expand Up @@ -313,7 +322,6 @@ lib/src/model/customer_fiscal_entities_response_all_of.dart
lib/src/model/customer_info.dart
lib/src/model/customer_info_just_customer_id.dart
lib/src/model/customer_info_just_customer_id_response.dart
lib/src/model/customer_info_response.dart
lib/src/model/customer_payment_method_request.dart
lib/src/model/customer_payment_methods.dart
lib/src/model/customer_payment_methods_data.dart
Expand Down Expand Up @@ -347,6 +355,7 @@ lib/src/model/error.dart
lib/src/model/error_all_of.dart
lib/src/model/event_response.dart
lib/src/model/events_resend_response.dart
lib/src/model/fiscal_entity_address.dart
lib/src/model/get_api_keys_response.dart
lib/src/model/get_api_keys_response_all_of.dart
lib/src/model/get_charges_response.dart
Expand Down Expand Up @@ -375,7 +384,14 @@ lib/src/model/log_response.dart
lib/src/model/logs_response.dart
lib/src/model/logs_response_data.dart
lib/src/model/order_capture_request.dart
lib/src/model/order_customer_info_response.dart
lib/src/model/order_discount_lines_request.dart
lib/src/model/order_fiscal_entity_address_response.dart
lib/src/model/order_fiscal_entity_address_response_all_of.dart
lib/src/model/order_fiscal_entity_request.dart
lib/src/model/order_fiscal_entity_response.dart
lib/src/model/order_next_action_response.dart
lib/src/model/order_next_action_response_redirect_to_url.dart
lib/src/model/order_refund_request.dart
lib/src/model/order_request.dart
lib/src/model/order_request_customer_info.dart
Expand All @@ -387,14 +403,12 @@ lib/src/model/order_response_customer_info.dart
lib/src/model/order_response_customer_info_all_of.dart
lib/src/model/order_response_discount_lines.dart
lib/src/model/order_response_discount_lines_all_of.dart
lib/src/model/order_response_fiscal_entity.dart
lib/src/model/order_response_fiscal_entity_address.dart
lib/src/model/order_response_fiscal_entity_address_all_of.dart
lib/src/model/order_response_products.dart
lib/src/model/order_response_products_all_of.dart
lib/src/model/order_response_shipping_contact.dart
lib/src/model/order_response_shipping_contact_all_of.dart
lib/src/model/order_tax_request.dart
lib/src/model/order_update_fiscal_entity_request.dart
lib/src/model/order_update_request.dart
lib/src/model/order_update_request_customer_info.dart
lib/src/model/orders_response.dart
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
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@ build:
dart run build_runner clean && dart run build_runner build --delete-conflicting-outputs

dart-test:
dart run test
dart run test
dart:
rm -rf ../conekta-dart/lib && \
rm -rf ../conekta-dart/doc && \
rm -rf ../conekta-dart/lib/src/model && \
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 dart-dio \
-o /local \
-c /local/config-dart.json \
--global-property modelTests=false
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For more information, please visit [https://github.com/conekta/openapi/issues](h
To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml
```yaml
dependencies:
conekta: 6.0.0-beta.2
conekta: 6.0.0
```

### Github
Expand Down Expand Up @@ -54,7 +54,7 @@ final String acceptLanguage = es; // String | Use for knowing which language to
try {
final response = await api.createRuleBlacklist(createRiskRulesData, acceptLanguage);
print(response);
} catch on DioError (e) {
} catch on DioException (e) {
print("Exception when calling AntifraudApi->createRuleBlacklist: $e\n");
}

Expand All @@ -77,9 +77,10 @@ Class | Method | HTTP request | Description
[*ApiKeysApi*](doc/ApiKeysApi.md) | [**getApiKey**](doc/ApiKeysApi.md#getapikey) | **GET** /api_keys/{id} | Get Api Key
[*ApiKeysApi*](doc/ApiKeysApi.md) | [**getApiKeys**](doc/ApiKeysApi.md#getapikeys) | **GET** /api_keys | Get list of Api Keys
[*ApiKeysApi*](doc/ApiKeysApi.md) | [**updateApiKey**](doc/ApiKeysApi.md#updateapikey) | **PUT** /api_keys/{id} | Update Api Key
[*BalancesApi*](doc/BalancesApi.md) | [**getBalance**](doc/BalancesApi.md#getbalance) | **GET** /balances | Get a company's balance
[*BalancesApi*](doc/BalancesApi.md) | [**getBalance**](doc/BalancesApi.md#getbalance) | **GET** /balance | Get a company's balance
[*ChargesApi*](doc/ChargesApi.md) | [**getCharges**](doc/ChargesApi.md#getcharges) | **GET** /charges | Get A List of Charges
[*ChargesApi*](doc/ChargesApi.md) | [**ordersCreateCharge**](doc/ChargesApi.md#orderscreatecharge) | **POST** /orders/{id}/charges | Create charge
[*ChargesApi*](doc/ChargesApi.md) | [**updateCharge**](doc/ChargesApi.md#updatecharge) | **PUT** /charges/{id} | Update a charge
[*CompaniesApi*](doc/CompaniesApi.md) | [**getCompanies**](doc/CompaniesApi.md#getcompanies) | **GET** /companies | Get List of Companies
[*CompaniesApi*](doc/CompaniesApi.md) | [**getCompany**](doc/CompaniesApi.md#getcompany) | **GET** /companies/{id} | Get Company
[*CustomersApi*](doc/CustomersApi.md) | [**createCustomer**](doc/CustomersApi.md#createcustomer) | **POST** /customers | Create customer
Expand Down Expand Up @@ -165,6 +166,7 @@ Class | Method | HTTP request | Description
- [ApiKeyCreateResponseAllOf](doc/ApiKeyCreateResponseAllOf.md)
- [ApiKeyRequest](doc/ApiKeyRequest.md)
- [ApiKeyResponse](doc/ApiKeyResponse.md)
- [ApiKeyResponseOnDelete](doc/ApiKeyResponseOnDelete.md)
- [ApiKeyUpdateRequest](doc/ApiKeyUpdateRequest.md)
- [BalanceCommonField](doc/BalanceCommonField.md)
- [BalanceResponse](doc/BalanceResponse.md)
Expand All @@ -182,6 +184,7 @@ Class | Method | HTTP request | Description
- [ChargeResponseRefunds](doc/ChargeResponseRefunds.md)
- [ChargeResponseRefundsAllOf](doc/ChargeResponseRefundsAllOf.md)
- [ChargeResponseRefundsData](doc/ChargeResponseRefundsData.md)
- [ChargeUpdateRequest](doc/ChargeUpdateRequest.md)
- [ChargesDataResponse](doc/ChargesDataResponse.md)
- [Checkout](doc/Checkout.md)
- [CheckoutOrderTemplate](doc/CheckoutOrderTemplate.md)
Expand Down Expand Up @@ -211,7 +214,6 @@ Class | Method | HTTP request | Description
- [CustomerInfo](doc/CustomerInfo.md)
- [CustomerInfoJustCustomerId](doc/CustomerInfoJustCustomerId.md)
- [CustomerInfoJustCustomerIdResponse](doc/CustomerInfoJustCustomerIdResponse.md)
- [CustomerInfoResponse](doc/CustomerInfoResponse.md)
- [CustomerPaymentMethodRequest](doc/CustomerPaymentMethodRequest.md)
- [CustomerPaymentMethods](doc/CustomerPaymentMethods.md)
- [CustomerPaymentMethodsData](doc/CustomerPaymentMethodsData.md)
Expand Down Expand Up @@ -244,6 +246,7 @@ Class | Method | HTTP request | Description
- [ErrorAllOf](doc/ErrorAllOf.md)
- [EventResponse](doc/EventResponse.md)
- [EventsResendResponse](doc/EventsResendResponse.md)
- [FiscalEntityAddress](doc/FiscalEntityAddress.md)
- [GetApiKeysResponse](doc/GetApiKeysResponse.md)
- [GetApiKeysResponseAllOf](doc/GetApiKeysResponseAllOf.md)
- [GetChargesResponse](doc/GetChargesResponse.md)
Expand Down Expand Up @@ -272,7 +275,14 @@ Class | Method | HTTP request | Description
- [LogsResponse](doc/LogsResponse.md)
- [LogsResponseData](doc/LogsResponseData.md)
- [OrderCaptureRequest](doc/OrderCaptureRequest.md)
- [OrderCustomerInfoResponse](doc/OrderCustomerInfoResponse.md)
- [OrderDiscountLinesRequest](doc/OrderDiscountLinesRequest.md)
- [OrderFiscalEntityAddressResponse](doc/OrderFiscalEntityAddressResponse.md)
- [OrderFiscalEntityAddressResponseAllOf](doc/OrderFiscalEntityAddressResponseAllOf.md)
- [OrderFiscalEntityRequest](doc/OrderFiscalEntityRequest.md)
- [OrderFiscalEntityResponse](doc/OrderFiscalEntityResponse.md)
- [OrderNextActionResponse](doc/OrderNextActionResponse.md)
- [OrderNextActionResponseRedirectToUrl](doc/OrderNextActionResponseRedirectToUrl.md)
- [OrderRefundRequest](doc/OrderRefundRequest.md)
- [OrderRequest](doc/OrderRequest.md)
- [OrderRequestCustomerInfo](doc/OrderRequestCustomerInfo.md)
Expand All @@ -284,14 +294,12 @@ Class | Method | HTTP request | Description
- [OrderResponseCustomerInfoAllOf](doc/OrderResponseCustomerInfoAllOf.md)
- [OrderResponseDiscountLines](doc/OrderResponseDiscountLines.md)
- [OrderResponseDiscountLinesAllOf](doc/OrderResponseDiscountLinesAllOf.md)
- [OrderResponseFiscalEntity](doc/OrderResponseFiscalEntity.md)
- [OrderResponseFiscalEntityAddress](doc/OrderResponseFiscalEntityAddress.md)
- [OrderResponseFiscalEntityAddressAllOf](doc/OrderResponseFiscalEntityAddressAllOf.md)
- [OrderResponseProducts](doc/OrderResponseProducts.md)
- [OrderResponseProductsAllOf](doc/OrderResponseProductsAllOf.md)
- [OrderResponseShippingContact](doc/OrderResponseShippingContact.md)
- [OrderResponseShippingContactAllOf](doc/OrderResponseShippingContactAllOf.md)
- [OrderTaxRequest](doc/OrderTaxRequest.md)
- [OrderUpdateFiscalEntityRequest](doc/OrderUpdateFiscalEntityRequest.md)
- [OrderUpdateRequest](doc/OrderUpdateRequest.md)
- [OrderUpdateRequestCustomerInfo](doc/OrderUpdateRequestCustomerInfo.md)
- [OrdersResponse](doc/OrdersResponse.md)
Expand Down Expand Up @@ -370,7 +378,7 @@ Class | Method | HTTP request | Description
Authentication schemes defined for the API:
### bearerAuth

- **Type**: HTTP basic authentication
- **Type**: HTTP Bearer Token authentication


## Author
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0-beta.2
6.0.0
32 changes: 32 additions & 0 deletions config-dart.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"useEnumExtension": true,
"pubAuthor": "conekta",
"pubLibrary": "conekta",
"pubVersion": "6.0.0",
"pubName": "conekta",
"pubRepository": "https://www.github.com/conekta/conekta-dart",
"pubHomepage" : "https://www.github.com/conekta/conekta-dart",
"pubAuthorEmail": "[email protected]",
"pubDescription": "Conekta dart Library",
"serializationLibrary" : "built_value",
"templateDir": "/local/templates/dart",
"files" : {
"/local/CODE_OF_CONDUCT.md" : {},
"/local/AUTHORS.md" : {},
"/local/LICENSE" : {},
"/local/conekta.png" : {},
"/local/CONTRIBUTING.md" : {},
"utils.mustache" : {
"templateType": "SupportingFiles",
"destinationFilename": "utils.dart",
"folder": "lib/src/utils"
},
"VERSION.mustache" : {
"templateType": "SupportingFiles",
"destinationFilename": "VERSION"
}
},
"httpUserAgent": "Conekta/v2 DartBindings",
"gitUserId": "conekta",
"gitRepoId": "conekta-dart"
}
Loading
Loading