Skip to content

Commit

Permalink
update entities (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarrero authored Apr 30, 2024
1 parent e8718d7 commit 10cdf59
Show file tree
Hide file tree
Showing 78 changed files with 3,671 additions and 157 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
strategy:
matrix:
sdk: [2.18.0, 2.19.6, 3.0.7, 3.1.5, 3.2.6]
sdk: [2.18.0, 2.19.6, 3.0.7, 3.1.5, 3.2.6, 3.3.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
16 changes: 16 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ doc/PaymentMethodResponse.md
doc/PaymentMethodSpeiRecurrent.md
doc/PaymentMethodSpeiRequest.md
doc/PaymentMethodsApi.md
doc/Payout.md
doc/PayoutMethod.md
doc/PayoutOrder.md
doc/PayoutOrderPayoutsItem.md
doc/PayoutOrderResponse.md
doc/PayoutOrderResponseCustomerInfo.md
doc/PayoutOrdersApi.md
doc/PayoutOrdersResponse.md
doc/PlanRequest.md
doc/PlanResponse.md
doc/PlanUpdateRequest.md
Expand Down Expand Up @@ -209,6 +217,7 @@ lib/src/api/logs_api.dart
lib/src/api/orders_api.dart
lib/src/api/payment_link_api.dart
lib/src/api/payment_methods_api.dart
lib/src/api/payout_orders_api.dart
lib/src/api/plans_api.dart
lib/src/api/products_api.dart
lib/src/api/shipping_contacts_api.dart
Expand Down Expand Up @@ -350,6 +359,13 @@ lib/src/model/payment_method_cash_response.dart
lib/src/model/payment_method_response.dart
lib/src/model/payment_method_spei_recurrent.dart
lib/src/model/payment_method_spei_request.dart
lib/src/model/payout.dart
lib/src/model/payout_method.dart
lib/src/model/payout_order.dart
lib/src/model/payout_order_payouts_item.dart
lib/src/model/payout_order_response.dart
lib/src/model/payout_order_response_customer_info.dart
lib/src/model/payout_orders_response.dart
lib/src/model/plan_request.dart
lib/src/model/plan_response.dart
lib/src/model/plan_update_request.dart
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0
7.5.0
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.3.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 dart-dio \
-o /local \
Expand Down
12 changes: 11 additions & 1 deletion 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.4
conekta: 6.0.5
```
### Github
Expand Down Expand Up @@ -120,6 +120,9 @@ Class | Method | HTTP request | Description
[*PaymentMethodsApi*](doc/PaymentMethodsApi.md) | [**deleteCustomerPaymentMethods**](doc/PaymentMethodsApi.md#deletecustomerpaymentmethods) | **DELETE** /customers/{id}/payment_sources/{payment_method_id} | Delete Payment Method
[*PaymentMethodsApi*](doc/PaymentMethodsApi.md) | [**getCustomerPaymentMethods**](doc/PaymentMethodsApi.md#getcustomerpaymentmethods) | **GET** /customers/{id}/payment_sources | Get Payment Methods
[*PaymentMethodsApi*](doc/PaymentMethodsApi.md) | [**updateCustomerPaymentMethods**](doc/PaymentMethodsApi.md#updatecustomerpaymentmethods) | **PUT** /customers/{id}/payment_sources/{payment_method_id} | Update Payment Method
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**createPayoutOrder**](doc/PayoutOrdersApi.md#createpayoutorder) | **POST** /payout_orders | Create payout order
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**getPayoutOrderById**](doc/PayoutOrdersApi.md#getpayoutorderbyid) | **GET** /payout_orders/{id} | Get Payout Order
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**getPayoutOrders**](doc/PayoutOrdersApi.md#getpayoutorders) | **GET** /payout_orders | Get a list of Payout Orders
[*PlansApi*](doc/PlansApi.md) | [**createPlan**](doc/PlansApi.md#createplan) | **POST** /plans | Create Plan
[*PlansApi*](doc/PlansApi.md) | [**deletePlan**](doc/PlansApi.md#deleteplan) | **DELETE** /plans/{id} | Delete Plan
[*PlansApi*](doc/PlansApi.md) | [**getPlan**](doc/PlansApi.md#getplan) | **GET** /plans/{id} | Get Plan
Expand Down Expand Up @@ -286,6 +289,13 @@ Class | Method | HTTP request | Description
- [PaymentMethodResponse](doc/PaymentMethodResponse.md)
- [PaymentMethodSpeiRecurrent](doc/PaymentMethodSpeiRecurrent.md)
- [PaymentMethodSpeiRequest](doc/PaymentMethodSpeiRequest.md)
- [Payout](doc/Payout.md)
- [PayoutMethod](doc/PayoutMethod.md)
- [PayoutOrder](doc/PayoutOrder.md)
- [PayoutOrderPayoutsItem](doc/PayoutOrderPayoutsItem.md)
- [PayoutOrderResponse](doc/PayoutOrderResponse.md)
- [PayoutOrderResponseCustomerInfo](doc/PayoutOrderResponseCustomerInfo.md)
- [PayoutOrdersResponse](doc/PayoutOrdersResponse.md)
- [PlanRequest](doc/PlanRequest.md)
- [PlanResponse](doc/PlanResponse.md)
- [PlanUpdateRequest](doc/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.4
6.0.5
2 changes: 1 addition & 1 deletion config-dart.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"useEnumExtension": true,
"pubAuthor": "conekta",
"pubLibrary": "conekta",
"pubVersion": "6.0.4",
"pubVersion": "6.0.5",
"pubName": "conekta",
"pubRepository": "https://www.github.com/conekta/conekta-dart",
"pubHomepage" : "https://www.github.com/conekta/conekta-dart",
Expand Down
1 change: 1 addition & 0 deletions doc/OrderResponseCheckout.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Name | Type | Description | Notes
**onDemandEnabled** | **bool** | | [optional]
**paidPaymentsCount** | **int** | | [optional]
**recurrent** | **bool** | | [optional]
**redirectionTime** | **int** | number of seconds to wait before redirecting to the success_url | [optional]
**slug** | **String** | | [optional]
**smsSent** | **int** | | [optional]
**successUrl** | **String** | | [optional]
Expand Down
18 changes: 16 additions & 2 deletions doc/OrdersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getOrders**
> GetOrdersResponse getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous)
> GetOrdersResponse getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoPeriodStatus, createdAt, createdAtPeriodGte, createdAtPeriodLte, updatedAtPeriodGte, updatedAtPeriodLte)
Get a list of Orders

Expand All @@ -178,9 +178,16 @@ final int limit = 56; // int | The numbers of items to return, the maximum value
final String search = search_example; // String | General order search, e.g. by mail, reference etc.
final String next = next_example; // String | next page
final String previous = previous_example; // String | previous page
final String paymentStatus = paid; // String | Filters by order status
final String lastPaymentInfoPeriodStatus = pending_payment; // String | Filters by last payment info status
final int createdAt = 1612137600; // int | created equal to
final int createdAtPeriodGte = 1612137600; // int | created at greater than or equal to
final int createdAtPeriodLte = 1612137600; // int | created at less than or equal to
final int updatedAtPeriodGte = 1612137600; // int | updated at greater than or equal to
final int updatedAtPeriodLte = 1612137600; // int | updated at less than or equal to
try {
final response = api.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous);
final response = api.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoPeriodStatus, createdAt, createdAtPeriodGte, createdAtPeriodLte, updatedAtPeriodGte, updatedAtPeriodLte);
print(response);
} catch on DioException (e) {
print('Exception when calling OrdersApi->getOrders: $e\n');
Expand All @@ -197,6 +204,13 @@ Name | Type | Description | Notes
**search** | **String**| General order search, e.g. by mail, reference etc. | [optional]
**next** | **String**| next page | [optional]
**previous** | **String**| previous page | [optional]
**paymentStatus** | **String**| Filters by order status | [optional]
**lastPaymentInfoPeriodStatus** | **String**| Filters by last payment info status | [optional]
**createdAt** | **int**| created equal to | [optional]
**createdAtPeriodGte** | **int**| created at greater than or equal to | [optional]
**createdAtPeriodLte** | **int**| created at less than or equal to | [optional]
**updatedAtPeriodGte** | **int**| updated at greater than or equal to | [optional]
**updatedAtPeriodLte** | **int**| updated at less than or equal to | [optional]

### Return type

Expand Down
15 changes: 15 additions & 0 deletions doc/Payout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# conekta.model.Payout

## Load the model package
```dart
import 'package:conekta/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**payoutMethod** | [**PayoutMethod**](PayoutMethod.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


15 changes: 15 additions & 0 deletions doc/PayoutMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# conekta.model.PayoutMethod

## Load the model package
```dart
import 'package:conekta/api.dart';
```

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

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


21 changes: 21 additions & 0 deletions doc/PayoutOrder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# conekta.model.PayoutOrder

## Load the model package
```dart
import 'package:conekta/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowedPayoutMethods** | **BuiltList<String>** | The payout methods that are allowed for the payout order. |
**amount** | **int** | The amount of the payout order. |
**currency** | **String** | The currency in which the payout order is made. | [default to 'MXN']
**customerInfo** | [**CustomerInfoJustCustomerId**](CustomerInfoJustCustomerId.md) | |
**metadata** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | The metadata of the payout order. | [optional]
**payout** | [**Payout**](Payout.md) | |
**reason** | **String** | The reason for the payout order. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


22 changes: 22 additions & 0 deletions doc/PayoutOrderPayoutsItem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# conekta.model.PayoutOrderPayoutsItem

## Load the model package
```dart
import 'package:conekta/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**amount** | **int** | The amount of the payout. |
**currency** | **String** | The currency in which the payout is made. |
**expiresAt** | **int** | The expiration date of the payout. | [optional]
**id** | **String** | The id of the payout. |
**livemode** | **bool** | The live mode of the payout. |
**object** | **String** | The object of the payout. |
**payoutOrderId** | **String** | The id of the payout order. | [optional]
**status** | **String** | The status of the payout. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


28 changes: 28 additions & 0 deletions doc/PayoutOrderResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# conekta.model.PayoutOrderResponse

## Load the model package
```dart
import 'package:conekta/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allowedPayoutMethods** | **BuiltList<String>** | The payout methods that are allowed for the payout order. |
**amount** | **int** | The amount of the payout order. |
**createdAt** | **int** | The creation date of the payout order. |
**currency** | **String** | The currency in which the payout order is made. | [default to 'MXN']
**customerInfo** | [**PayoutOrderResponseCustomerInfo**](PayoutOrderResponseCustomerInfo.md) | |
**expiresAt** | **int** | The expiration date of the payout order. | [optional]
**id** | **String** | The id of the payout order. |
**livemode** | **bool** | The live mode of the payout order. |
**object** | **String** | The object of the payout order. |
**metadata** | [**BuiltMap<String, JsonObject>**](JsonObject.md) | The metadata of the payout order. | [optional]
**payouts** | [**BuiltList<PayoutOrderPayoutsItem>**](PayoutOrderPayoutsItem.md) | The payout information of the payout order. |
**reason** | **String** | The reason for the payout order. |
**status** | **String** | The status of the payout order. | [optional]
**updatedAt** | **int** | The update date of the payout order. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


21 changes: 21 additions & 0 deletions doc/PayoutOrderResponseCustomerInfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# conekta.model.PayoutOrderResponseCustomerInfo

## Load the model package
```dart
import 'package:conekta/api.dart';
```

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customerCustomReference** | **String** | Custom reference | [optional]
**name** | **String** | | [optional]
**email** | **String** | | [optional]
**phone** | **String** | | [optional]
**corporate** | **bool** | | [optional] [default to false]
**object** | **String** | | [optional]
**id** | **String** | The id of the customer. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit 10cdf59

Please sign in to comment.