Skip to content

Commit

Permalink
change version (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricDominguez1 authored Nov 12, 2024
1 parent 999db29 commit 0d0ba4f
Show file tree
Hide file tree
Showing 10 changed files with 431 additions and 14 deletions.
10 changes: 5 additions & 5 deletions Conekta.net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{603464E7-D19E-4B64-B1B1-A0185A58D4A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net.Test", "src\Conekta.net.Test\Conekta.net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Release|Any CPU.Build.0 = Release|Any CPU
{603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.13
6.0.14
97 changes: 97 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5787,6 +5787,99 @@ paths:
summary: Get Payout Order
tags:
- Payout Orders
/payout_orders/{id}/cancel:
put:
description: Cancel a payout Order resource that corresponds to a payout order
ID.
operationId: cancelPayoutOrderById
parameters:
- description: Identifier of the resource
example: 6307a60c41de27127515a575
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Use for knowing which language to use
examples:
es:
summary: for spanish request/response
value: es
en:
summary: for english request/response
value: en
explode: false
in: header
name: Accept-Language
required: false
schema:
default: es
enum:
- es
- en
type: string
style: simple
responses:
"200":
content:
application/vnd.conekta-v2.1.0+json:
schema:
$ref: '#/components/schemas/payout_order_response'
description: successful operation
"401":
content:
application/vnd.conekta-v2.1.0+json:
example:
details:
- message: Please include your access key in your request.
param: null
code: conekta.errors.authentication.missing_key
log_id: 507f1f77bcf86cd799439011
object: error
type: authentication_error
schema:
$ref: '#/components/schemas/error'
description: authentication error
"404":
content:
application/vnd.conekta-v2.1.0+json:
example:
details:
- message: The resource was not found.
param: null
code: conekta.errors.resource_not_found.entity
debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could
not be found.
log_id: 641b6c253cd9a50001514fae
object: error
type: resource_not_found_error
schema:
$ref: '#/components/schemas/error'
description: not found entity
"500":
content:
application/vnd.conekta-v2.1.0+json:
example:
details:
- debug_message: There was a runtime error and Conekta engineers have
been notified.
message: There was a runtime error and Conekta engineers have been
notified.
param: null
code: conekta.errors.api.system.general_failure
object: error
type: api_error
log_id: 641b6f2b3cd9a50001515098
schema:
$ref: '#/components/schemas/error'
description: internal server error
security:
- bearerAuth: []
summary: Cancel Payout Order
tags:
- Payout Orders
/checkouts:
get:
description: Returns a list of links generated by the merchant
Expand Down Expand Up @@ -17195,6 +17288,7 @@ components:
failed
example: 3
format: int8
nullable: true
type: integer
metadata:
additionalProperties: true
Expand Down Expand Up @@ -17914,16 +18008,19 @@ components:
example: "12"
maxLength: 2
type: string
x-encripted: true
exp_year:
description: It is a value that allows identifying the expiration year of
the card.
example: "26"
maxLength: 2
type: string
x-encripted: true
name:
description: It is a value that allows identifying the name of the cardholder.
example: Miguel
type: string
x-encripted: true
number:
description: It is a value that allows identifying the number of the card.
example: "4242424242424242"
Expand Down
2 changes: 1 addition & 1 deletion config-netcore.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"packageCopyright" : "Conekta",
"PackageReleaseNotes" : "add support for payout orders",
"releaseNote" : "update entity webhook, nuget config",
"packageVersion" : "6.0.13"
"packageVersion" : "6.0.14"
}
2 changes: 1 addition & 1 deletion docs/OrderResponseCheckout.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Id** | **string** | | [optional]
**IsRedirectOnFailure** | **bool** | | [optional]
**Livemode** | **bool** | | [optional]
**MaxFailedRetries** | **int** | Number of retries allowed before the checkout is marked as failed | [optional]
**MaxFailedRetries** | **int?** | Number of retries allowed before the checkout is marked as failed | [optional]
**Metadata** | **Dictionary<string, Object>** | | [optional]
**MonthlyInstallmentsEnabled** | **bool** | | [optional]
**MonthlyInstallmentsOptions** | **List<int>** | | [optional]
Expand Down
100 changes: 100 additions & 0 deletions docs/PayoutOrdersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,110 @@ All URIs are relative to *https://api.conekta.io*

| Method | HTTP request | Description |
|--------|--------------|-------------|
| [**CancelPayoutOrderById**](PayoutOrdersApi.md#cancelpayoutorderbyid) | **PUT** /payout_orders/{id}/cancel | Cancel Payout Order |
| [**CreatePayoutOrder**](PayoutOrdersApi.md#createpayoutorder) | **POST** /payout_orders | Create payout order |
| [**GetPayoutOrderById**](PayoutOrdersApi.md#getpayoutorderbyid) | **GET** /payout_orders/{id} | Get Payout Order |
| [**GetPayoutOrders**](PayoutOrdersApi.md#getpayoutorders) | **GET** /payout_orders | Get a list of Payout Orders |

<a id="cancelpayoutorderbyid"></a>
# **CancelPayoutOrderById**
> PayoutOrderResponse CancelPayoutOrderById (string id, string acceptLanguage = null)
Cancel Payout Order

Cancel a payout Order resource that corresponds to a payout order ID.

### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Conekta.net.Api;
using Conekta.net.Client;
using Conekta.net.Model;

namespace Example
{
public class CancelPayoutOrderByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.conekta.io";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";

var apiInstance = new PayoutOrdersApi(config);
var id = 6307a60c41de27127515a575; // string | Identifier of the resource
var acceptLanguage = es; // string | Use for knowing which language to use (optional) (default to es)
try
{
// Cancel Payout Order
PayoutOrderResponse result = apiInstance.CancelPayoutOrderById(id, acceptLanguage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PayoutOrdersApi.CancelPayoutOrderById: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the CancelPayoutOrderByIdWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Cancel Payout Order
ApiResponse<PayoutOrderResponse> response = apiInstance.CancelPayoutOrderByIdWithHttpInfo(id, acceptLanguage);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PayoutOrdersApi.CancelPayoutOrderByIdWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **id** | **string** | Identifier of the resource | |
| **acceptLanguage** | **string** | Use for knowing which language to use | [optional] [default to es] |

### Return type

[**PayoutOrderResponse**](PayoutOrderResponse.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/vnd.conekta-v2.1.0+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | successful operation | - |
| **401** | authentication error | - |
| **404** | not found entity | - |
| **500** | internal server error | - |

[[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)

<a id="createpayoutorder"></a>
# **CreatePayoutOrder**
> PayoutOrderResponse CreatePayoutOrder (PayoutOrder payoutOrder, string acceptLanguage = null)
Expand Down
Loading

0 comments on commit 0d0ba4f

Please sign in to comment.