Skip to content

Commit 2eb00b8

Browse files
fcarreroAI Assistant
andauthored
feat: Add new charge-related documentation and models (#8)
This commit adds new documentation and models related to charges. It includes the following changes: - Added `ChargesOrderResponse.md` and `ChargesOrderResponseAllOfData.md` to the documentation. - Added `ChargesOrderResponse.dart` and `ChargesOrderResponseAllOfData.dart` to the model files. - Updated the version in `.openapi-generator/VERSION` from 7.5.0 to 7.10.0. - Updated the changelog with fixes and updates. - Updated the pubVersion in `config-dart.json` from 6.0.5 to 6.0.6. - Added new properties and descriptions in `ChargeOrderResponsePaymentMethod.md`, `ChargeRequest.md`, `ChargeRequestPaymentMethod.md`, `ChargeResponse.md`, and `ChargeResponsePaymentMethod.md`. - Added a new API method, `ordersCreateCharges`, for creating charges. These changes enhance the existing codebase by providing additional documentation and models for charge-related functionality, as well as introducing a new API method for creating charges. Co-authored-by: AI Assistant <assistant@example.com>
1 parent f27e978 commit 2eb00b8

File tree

108 files changed

+3103
-483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+3103
-483
lines changed

.openapi-generator/FILES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ doc/ChargeResponseRefundsData.md
2929
doc/ChargeUpdateRequest.md
3030
doc/ChargesApi.md
3131
doc/ChargesDataResponse.md
32+
doc/ChargesOrderResponse.md
33+
doc/ChargesOrderResponseAllOfData.md
3234
doc/Checkout.md
3335
doc/CheckoutOrderTemplate.md
3436
doc/CheckoutOrderTemplateCustomerInfo.md
@@ -136,9 +138,11 @@ doc/PaymentMethodCardResponse.md
136138
doc/PaymentMethodCash.md
137139
doc/PaymentMethodCashRequest.md
138140
doc/PaymentMethodCashResponse.md
141+
doc/PaymentMethodGeneralRequest.md
139142
doc/PaymentMethodResponse.md
140143
doc/PaymentMethodSpeiRecurrent.md
141144
doc/PaymentMethodSpeiRequest.md
145+
doc/PaymentMethodTokenRequest.md
142146
doc/PaymentMethodsApi.md
143147
doc/Payout.md
144148
doc/PayoutMethod.md
@@ -255,6 +259,8 @@ lib/src/model/charge_response_refunds.dart
255259
lib/src/model/charge_response_refunds_data.dart
256260
lib/src/model/charge_update_request.dart
257261
lib/src/model/charges_data_response.dart
262+
lib/src/model/charges_order_response.dart
263+
lib/src/model/charges_order_response_all_of_data.dart
258264
lib/src/model/checkout.dart
259265
lib/src/model/checkout_order_template.dart
260266
lib/src/model/checkout_order_template_customer_info.dart
@@ -356,9 +362,11 @@ lib/src/model/payment_method_card_response.dart
356362
lib/src/model/payment_method_cash.dart
357363
lib/src/model/payment_method_cash_request.dart
358364
lib/src/model/payment_method_cash_response.dart
365+
lib/src/model/payment_method_general_request.dart
359366
lib/src/model/payment_method_response.dart
360367
lib/src/model/payment_method_spei_recurrent.dart
361368
lib/src/model/payment_method_spei_request.dart
369+
lib/src/model/payment_method_token_request.dart
362370
lib/src/model/payout.dart
363371
lib/src/model/payout_method.dart
364372
lib/src/model/payout_order.dart

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0
1+
7.10.0

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 6.0.5 -2024-30-04
2+
* Fix entities
13
## 6.0.5 -2024-30-04
24
* Update entities and methods
35
## 6.0.4 -2024-20-02

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dart:
88
rm -rf ../conekta-dart/doc && \
99
rm -rf ../conekta-dart/lib/src/model && \
1010
docker run --rm \
11-
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \
11+
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.10.0 generate \
1212
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
1313
-g dart-dio \
1414
-o /local \

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For more information, please visit [https://github.com/conekta/openapi/issues](h
1818
To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml
1919
```yaml
2020
dependencies:
21-
conekta: 6.0.5
21+
conekta: 6.0.6
2222
```
2323
2424
### Github
@@ -82,6 +82,7 @@ Class | Method | HTTP request | Description
8282
[*BalancesApi*](doc/BalancesApi.md) | [**getBalance**](doc/BalancesApi.md#getbalance) | **GET** /balance | Get a company&#39;s balance
8383
[*ChargesApi*](doc/ChargesApi.md) | [**getCharges**](doc/ChargesApi.md#getcharges) | **GET** /charges | Get A List of Charges
8484
[*ChargesApi*](doc/ChargesApi.md) | [**ordersCreateCharge**](doc/ChargesApi.md#orderscreatecharge) | **POST** /orders/{id}/charges | Create charge
85+
[*ChargesApi*](doc/ChargesApi.md) | [**ordersCreateCharges**](doc/ChargesApi.md#orderscreatecharges) | **POST** /orders/{id}/add_charges | Create charges
8586
[*ChargesApi*](doc/ChargesApi.md) | [**updateCharge**](doc/ChargesApi.md#updatecharge) | **PUT** /charges/{id} | Update a charge
8687
[*CompaniesApi*](doc/CompaniesApi.md) | [**getCompanies**](doc/CompaniesApi.md#getcompanies) | **GET** /companies | Get List of Companies
8788
[*CompaniesApi*](doc/CompaniesApi.md) | [**getCompany**](doc/CompaniesApi.md#getcompany) | **GET** /companies/{id} | Get Company
@@ -120,6 +121,7 @@ Class | Method | HTTP request | Description
120121
[*PaymentMethodsApi*](doc/PaymentMethodsApi.md) | [**deleteCustomerPaymentMethods**](doc/PaymentMethodsApi.md#deletecustomerpaymentmethods) | **DELETE** /customers/{id}/payment_sources/{payment_method_id} | Delete Payment Method
121122
[*PaymentMethodsApi*](doc/PaymentMethodsApi.md) | [**getCustomerPaymentMethods**](doc/PaymentMethodsApi.md#getcustomerpaymentmethods) | **GET** /customers/{id}/payment_sources | Get Payment Methods
122123
[*PaymentMethodsApi*](doc/PaymentMethodsApi.md) | [**updateCustomerPaymentMethods**](doc/PaymentMethodsApi.md#updatecustomerpaymentmethods) | **PUT** /customers/{id}/payment_sources/{payment_method_id} | Update Payment Method
124+
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**cancelPayoutOrderById**](doc/PayoutOrdersApi.md#cancelpayoutorderbyid) | **PUT** /payout_orders/{id}/cancel | Cancel Payout Order
123125
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**createPayoutOrder**](doc/PayoutOrdersApi.md#createpayoutorder) | **POST** /payout_orders | Create payout order
124126
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**getPayoutOrderById**](doc/PayoutOrdersApi.md#getpayoutorderbyid) | **GET** /payout_orders/{id} | Get Payout Order
125127
[*PayoutOrdersApi*](doc/PayoutOrdersApi.md) | [**getPayoutOrders**](doc/PayoutOrdersApi.md#getpayoutorders) | **GET** /payout_orders | Get a list of Payout Orders
@@ -186,6 +188,8 @@ Class | Method | HTTP request | Description
186188
- [ChargeResponseRefundsData](doc/ChargeResponseRefundsData.md)
187189
- [ChargeUpdateRequest](doc/ChargeUpdateRequest.md)
188190
- [ChargesDataResponse](doc/ChargesDataResponse.md)
191+
- [ChargesOrderResponse](doc/ChargesOrderResponse.md)
192+
- [ChargesOrderResponseAllOfData](doc/ChargesOrderResponseAllOfData.md)
189193
- [Checkout](doc/Checkout.md)
190194
- [CheckoutOrderTemplate](doc/CheckoutOrderTemplate.md)
191195
- [CheckoutOrderTemplateCustomerInfo](doc/CheckoutOrderTemplateCustomerInfo.md)
@@ -286,9 +290,11 @@ Class | Method | HTTP request | Description
286290
- [PaymentMethodCash](doc/PaymentMethodCash.md)
287291
- [PaymentMethodCashRequest](doc/PaymentMethodCashRequest.md)
288292
- [PaymentMethodCashResponse](doc/PaymentMethodCashResponse.md)
293+
- [PaymentMethodGeneralRequest](doc/PaymentMethodGeneralRequest.md)
289294
- [PaymentMethodResponse](doc/PaymentMethodResponse.md)
290295
- [PaymentMethodSpeiRecurrent](doc/PaymentMethodSpeiRecurrent.md)
291296
- [PaymentMethodSpeiRequest](doc/PaymentMethodSpeiRequest.md)
297+
- [PaymentMethodTokenRequest](doc/PaymentMethodTokenRequest.md)
292298
- [Payout](doc/Payout.md)
293299
- [PayoutMethod](doc/PayoutMethod.md)
294300
- [PayoutOrder](doc/PayoutOrder.md)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.5
1+
6.0.6

config-dart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"useEnumExtension": true,
33
"pubAuthor": "conekta",
44
"pubLibrary": "conekta",
5-
"pubVersion": "6.0.5",
5+
"pubVersion": "6.0.6",
66
"pubName": "conekta",
77
"pubRepository": "https://www.github.com/conekta/conekta-dart",
88
"pubHomepage" : "https://www.github.com/conekta/conekta-dart",

doc/ChargeOrderResponsePaymentMethod.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,27 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**type** | **String** | | [optional]
1212
**object** | **String** | |
13+
**agreement** | **String** | Agreement ID | [optional]
1314
**authCode** | **String** | | [optional]
1415
**cashierId** | **String** | | [optional]
1516
**reference** | **String** | | [optional]
1617
**barcodeUrl** | **String** | | [optional]
1718
**expiresAt** | **int** | | [optional]
19+
**productType** | **String** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional]
1820
**serviceName** | **String** | | [optional]
1921
**store** | **String** | | [optional]
2022
**storeName** | **String** | | [optional]
21-
**accountType** | **String** | | [optional]
22-
**brand** | **String** | | [optional]
23+
**customerIpAddress** | **String** | | [optional]
24+
**accountType** | **String** | Account type of the card | [optional]
25+
**brand** | **String** | Brand of the card | [optional]
2326
**contractId** | **String** | Id sent for recurrent charges. | [optional]
24-
**country** | **String** | | [optional]
25-
**expMonth** | **String** | | [optional]
26-
**expYear** | **String** | | [optional]
27+
**country** | **String** | Country of the card | [optional]
28+
**expMonth** | **String** | Expiration month of the card | [optional]
29+
**expYear** | **String** | Expiration year of the card | [optional]
2730
**fraudIndicators** | [**BuiltList&lt;JsonObject&gt;**](JsonObject.md) | | [optional]
28-
**issuer** | **String** | | [optional]
29-
**last4** | **String** | | [optional]
30-
**name** | **String** | | [optional]
31+
**issuer** | **String** | Issuer of the card | [optional]
32+
**last4** | **String** | Last 4 digits of the card | [optional]
33+
**name** | **String** | Name of the cardholder | [optional]
3134
**bank** | **String** | | [optional]
3235
**clabe** | **String** | | [optional]
3336
**description** | **String** | | [optional]

doc/ChargeRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'package:conekta/api.dart';
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**amount** | **int** | | [optional]
11+
**amount** | **int** | Amount to be charged in cents | [optional]
1212
**paymentMethod** | [**ChargeRequestPaymentMethod**](ChargeRequestPaymentMethod.md) | |
1313
**referenceId** | **String** | Custom reference to add to the charge | [optional]
1414

doc/ChargeRequestPaymentMethod.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ import 'package:conekta/api.dart';
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11+
**type** | **String** | Type of payment method |
12+
**cvc** | **String** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants |
13+
**expMonth** | **String** | Card expiration month |
14+
**expYear** | **String** | Card expiration year |
15+
**name** | **String** | Cardholder name |
16+
**number** | **String** | Card number |
17+
**customerIpAddress** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional]
1118
**expiresAt** | **int** | Method expiration date as unix timestamp | [optional]
1219
**monthlyInstallments** | **int** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional]
13-
**type** | **String** | |
1420
**tokenId** | **String** | | [optional]
1521
**paymentSourceId** | **String** | | [optional]
1622
**contractId** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional]

0 commit comments

Comments
 (0)