Skip to content

Commit

Permalink
add documentation (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarrero authored Dec 26, 2023
1 parent 3d66f4b commit 68938eb
Show file tree
Hide file tree
Showing 245 changed files with 37,565 additions and 202 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ pubspec.lock

# Mac
.DS_Store
**/*.g.dart
1 change: 1 addition & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
README.md
.gitignore
1 change: 0 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.gitignore
AUTHORS.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.2.0
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## 6.0.0 - 2023-12-22
* [#1](https://github.com/conekta/conekta-dart/pull/1) Initial Release
* AntifraudApi
* ApiKeysApi
* BalancesApi
* ChargesApi
* CompaniesApi
* CustomersApi
* DiscountsApi
* EventsApi
* LogsApi
* OrdersApi
* PaymentLinkApi
* PaymentMethodsApi
* PlansApi
* ProductsApi
* ShippingContactsApi
* ShippingsApi
* SubscriptionsApi
* TaxesApi
* TransactionsApi
* TransfersApi
* WebhookKeysApi
* WebhooksApi
## 6.0.1 - 2023-12-26
* [#2](https://github.com/conekta/conekta-dart/pull/2) update documentation
* update documentation
* add generated models
* add changelog
* add example
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dart:
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 \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.2.0 generate \
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
-g dart-dio \
-o /local \
Expand Down
193 changes: 96 additions & 97 deletions README.md

Large diffs are not rendered by default.

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
4 changes: 1 addition & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ analyzer:
language:
strict-inference: true
strict-raw-types: true
strong-mode:
implicit-dynamic: false
implicit-casts: false
strict-casts: false
exclude:
- test/*.dart
errors:
Expand Down
4 changes: 2 additions & 2 deletions config-dart.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"useEnumExtension": true,
"pubAuthor": "conekta",
"pubLibrary": "conekta",
"pubVersion": "6.0.0",
"pubVersion": "6.0.1",
"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",
"pubDescription": "Dart Library for the Conekta API.",
"serializationLibrary" : "built_value",
"templateDir": "/local/templates/dart",
"files" : {
Expand Down
15 changes: 15 additions & 0 deletions example/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:conekta/conekta.dart';

Future<void> main() async {
var instance = Conekta();
instance.setBearerAuth("bearerAuth", "key_xxxx");
final api = instance.getCustomersApi();

var customer = Customer((b) => b
..name = 'John Constantine'
..email = '[email protected]'
..phone = '5555555555'
);
var response = await api.createCustomer(customer: customer);
print(response.data);
}
12 changes: 6 additions & 6 deletions lib/src/api/antifraud_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AntifraudApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down Expand Up @@ -184,7 +184,7 @@ class AntifraudApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down Expand Up @@ -304,7 +304,7 @@ class AntifraudApi {
final _options = Options(
method: r'DELETE',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -405,7 +405,7 @@ class AntifraudApi {
final _options = Options(
method: r'DELETE',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -502,7 +502,7 @@ class AntifraudApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down Expand Up @@ -598,7 +598,7 @@ class AntifraudApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down
10 changes: 5 additions & 5 deletions lib/src/api/api_keys_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ApiKeysApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -186,7 +186,7 @@ class ApiKeysApi {
final _options = Options(
method: r'DELETE',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down Expand Up @@ -286,7 +286,7 @@ class ApiKeysApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -393,7 +393,7 @@ class ApiKeysApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -503,7 +503,7 @@ class ApiKeysApi {
final _options = Options(
method: r'PUT',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/api/balances_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BalancesApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down
6 changes: 3 additions & 3 deletions lib/src/api/charges_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ChargesApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -183,7 +183,7 @@ class ChargesApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -307,7 +307,7 @@ class ChargesApi {
final _options = Options(
method: r'PUT',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/api/companies_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CompaniesApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down Expand Up @@ -172,7 +172,7 @@ class CompaniesApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down
14 changes: 7 additions & 7 deletions lib/src/api/customers_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CustomersApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -193,7 +193,7 @@ class CustomersApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -314,7 +314,7 @@ class CustomersApi {
final _options = Options(
method: r'DELETE',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -415,7 +415,7 @@ class CustomersApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -522,7 +522,7 @@ class CustomersApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -634,7 +634,7 @@ class CustomersApi {
final _options = Options(
method: r'PUT',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -760,7 +760,7 @@ class CustomersApi {
final _options = Options(
method: r'PUT',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down
10 changes: 5 additions & 5 deletions lib/src/api/discounts_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DiscountsApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -190,7 +190,7 @@ class DiscountsApi {
final _options = Options(
method: r'DELETE',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -293,7 +293,7 @@ class DiscountsApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -402,7 +402,7 @@ class DiscountsApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -516,7 +516,7 @@ class DiscountsApi {
final _options = Options(
method: r'PUT',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down
6 changes: 3 additions & 3 deletions lib/src/api/events_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class EventsApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -170,7 +170,7 @@ class EventsApi {
final _options = Options(
method: r'GET',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (xChildCompanyId != null) r'X-Child-Company-Id': xChildCompanyId,
if (localVarAccept != null) r'Accept': localVarAccept,
Expand Down Expand Up @@ -279,7 +279,7 @@ class EventsApi {
final _options = Options(
method: r'POST',
headers: <String, dynamic>{
r'User-Agent': r'Conekta/v2 DartBindings/6.0.0',
r'User-Agent': r'Conekta/v2 DartBindings/6.0.1',
if (acceptLanguage != null) r'Accept-Language': acceptLanguage,
if (localVarAccept != null) r'Accept': localVarAccept,
if (localVarContentType != null) r'Content-Type': localVarContentType,
Expand Down
Loading

0 comments on commit 68938eb

Please sign in to comment.