From c605cb71593d8b915b7e202cb9cd7f8134071faa Mon Sep 17 00:00:00 2001 From: Franklin Carrero Date: Tue, 26 Mar 2024 11:24:20 -0500 Subject: [PATCH] Update entities (#84) * Update package version and release notes * Empty-Commit --- .github/workflows/nuget-publish.yml | 2 +- Conekta.net.sln | 10 +++--- VERSION | 2 +- api/openapi.yaml | 17 +++++++++ config-netcore.json | 4 +-- docs/WebhooksApi.md | 8 +++-- src/Conekta.net/Api/WebhooksApi.cs | 36 +++++++++++++------ src/Conekta.net/Client/Configuration.cs | 4 +-- src/Conekta.net/Conekta.net.csproj | 7 ++-- .../netcore_project.additions.mustache | 3 ++ 10 files changed, 67 insertions(+), 26 deletions(-) diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index 6b29c22..c2f0d0e 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -22,7 +22,7 @@ jobs: fi - name: Build project run: | - dotnet build src/Conekta.net/Conekta.net.csproj + dotnet build src/Conekta.net/Conekta.net.csproj /p:ContinuousIntegrationBuild=true VERSION=$(grep -oP '\K[\d.]+(?=)' src/Conekta.net/Conekta.net.csproj) RELEASE_VERSION="v$VERSION" RELEASE_NAME=${{ github.event.release.name }} diff --git a/Conekta.net.sln b/Conekta.net.sln index d83671e..9bb86f6 100644 --- a/Conekta.net.sln +++ b/Conekta.net.sln @@ -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", "{81E33AE8-15AD-4D75-B13A-D35521C41C6F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{9AD6031F-BA27-4EE7-995D-669E9497AE86}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net.Test", "src\Conekta.net.Test\Conekta.net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {81E33AE8-15AD-4D75-B13A-D35521C41C6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {81E33AE8-15AD-4D75-B13A-D35521C41C6F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {81E33AE8-15AD-4D75-B13A-D35521C41C6F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {81E33AE8-15AD-4D75-B13A-D35521C41C6F}.Release|Any CPU.Build.0 = Release|Any CPU + {9AD6031F-BA27-4EE7-995D-669E9497AE86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9AD6031F-BA27-4EE7-995D-669E9497AE86}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9AD6031F-BA27-4EE7-995D-669E9497AE86}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9AD6031F-BA27-4EE7-995D-669E9497AE86}.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 diff --git a/VERSION b/VERSION index 4b786f5..f1bb5eb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.8 +6.0.9 diff --git a/api/openapi.yaml b/api/openapi.yaml index 8655c3e..282a9c3 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -11357,6 +11357,14 @@ paths: schema: type: string style: form + - description: url for webhook filter + explode: true + in: query + name: url + required: false + schema: + type: string + style: form - description: next page explode: true in: query @@ -12522,6 +12530,15 @@ components: example: MXN type: string style: form + url: + description: url for webhook filter + explode: true + in: query + name: url + required: false + schema: + type: string + style: form requestBodies: api_keys_create: content: diff --git a/config-netcore.json b/config-netcore.json index 9dde1c8..04b7a61 100644 --- a/config-netcore.json +++ b/config-netcore.json @@ -32,6 +32,6 @@ "useOneOfDiscriminatorLookup" : true, "packageCopyright" : "Conekta", "PackageReleaseNotes" : "add support for payout orders", - "releaseNote" : "support for resend event, api keys and webhook keys", - "packageVersion" : "6.0.8" + "releaseNote" : "update entity webhook, nuget config", + "packageVersion" : "6.0.9" } diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index 2d32927..ffb545b 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -307,7 +307,7 @@ catch (ApiException e) # **GetWebhooks** -> GetWebhooksResponse GetWebhooks (string acceptLanguage = null, string xChildCompanyId = null, int? limit = null, string search = null, string next = null, string previous = null) +> GetWebhooksResponse GetWebhooks (string acceptLanguage = null, string xChildCompanyId = null, int? limit = null, string search = null, string url = null, string next = null, string previous = null) Get List of Webhooks @@ -337,13 +337,14 @@ namespace Example var xChildCompanyId = 6441b6376b60c3a638da80af; // string | In the case of a holding company, the company id of the child company to which will process the request. (optional) var limit = 20; // int? | The numbers of items to return, the maximum value is 250 (optional) (default to 20) var search = "search_example"; // string | General order search, e.g. by mail, reference etc. (optional) + var url = "url_example"; // string | url for webhook filter (optional) var next = "next_example"; // string | next page (optional) var previous = "previous_example"; // string | previous page (optional) try { // Get List of Webhooks - GetWebhooksResponse result = apiInstance.GetWebhooks(acceptLanguage, xChildCompanyId, limit, search, next, previous); + GetWebhooksResponse result = apiInstance.GetWebhooks(acceptLanguage, xChildCompanyId, limit, search, url, next, previous); Debug.WriteLine(result); } catch (ApiException e) @@ -364,7 +365,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Get List of Webhooks - ApiResponse response = apiInstance.GetWebhooksWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, next, previous); + ApiResponse response = apiInstance.GetWebhooksWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, url, next, previous); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -385,6 +386,7 @@ catch (ApiException e) | **xChildCompanyId** | **string** | In the case of a holding company, the company id of the child company to which will process the request. | [optional] | | **limit** | **int?** | The numbers of items to return, the maximum value is 250 | [optional] [default to 20] | | **search** | **string** | General order search, e.g. by mail, reference etc. | [optional] | +| **url** | **string** | url for webhook filter | [optional] | | **next** | **string** | next page | [optional] | | **previous** | **string** | previous page | [optional] | diff --git a/src/Conekta.net/Api/WebhooksApi.cs b/src/Conekta.net/Api/WebhooksApi.cs index 1bacd08..c15d548 100644 --- a/src/Conekta.net/Api/WebhooksApi.cs +++ b/src/Conekta.net/Api/WebhooksApi.cs @@ -109,11 +109,12 @@ public interface IWebhooksApiSync : IApiAccessor /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// GetWebhooksResponse - GetWebhooksResponse GetWebhooks(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0); + GetWebhooksResponse GetWebhooks(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0); /// /// Get List of Webhooks @@ -126,11 +127,12 @@ public interface IWebhooksApiSync : IApiAccessor /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// ApiResponse of GetWebhooksResponse - ApiResponse GetWebhooksWithHttpInfo(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0); + ApiResponse GetWebhooksWithHttpInfo(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0); /// /// Test Webhook /// @@ -288,12 +290,13 @@ public interface IWebhooksApiAsync : IApiAccessor /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GetWebhooksResponse - System.Threading.Tasks.Task GetWebhooksAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetWebhooksAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get List of Webhooks @@ -306,12 +309,13 @@ public interface IWebhooksApiAsync : IApiAccessor /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GetWebhooksResponse) - System.Threading.Tasks.Task> GetWebhooksWithHttpInfoAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetWebhooksWithHttpInfoAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Test Webhook /// @@ -1016,13 +1020,14 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// GetWebhooksResponse - public GetWebhooksResponse GetWebhooks(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0) + public GetWebhooksResponse GetWebhooks(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0) { - Conekta.net.Client.ApiResponse localVarResponse = GetWebhooksWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, next, previous); + Conekta.net.Client.ApiResponse localVarResponse = GetWebhooksWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, url, next, previous); return localVarResponse.Data; } @@ -1034,11 +1039,12 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// ApiResponse of GetWebhooksResponse - public Conekta.net.Client.ApiResponse GetWebhooksWithHttpInfo(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0) + public Conekta.net.Client.ApiResponse GetWebhooksWithHttpInfo(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0) { Conekta.net.Client.RequestOptions localVarRequestOptions = new Conekta.net.Client.RequestOptions(); @@ -1070,6 +1076,10 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Conekta.net.Client.ClientUtils.ParameterToMultiMap("", "search", search)); } + if (url != null) + { + localVarRequestOptions.QueryParameters.Add(Conekta.net.Client.ClientUtils.ParameterToMultiMap("", "url", url)); + } if (next != null) { localVarRequestOptions.QueryParameters.Add(Conekta.net.Client.ClientUtils.ParameterToMultiMap("", "next", next)); @@ -1119,14 +1129,15 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of GetWebhooksResponse - public async System.Threading.Tasks.Task GetWebhooksAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetWebhooksAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Conekta.net.Client.ApiResponse localVarResponse = await GetWebhooksWithHttpInfoAsync(acceptLanguage, xChildCompanyId, limit, search, next, previous, operationIndex, cancellationToken).ConfigureAwait(false); + Conekta.net.Client.ApiResponse localVarResponse = await GetWebhooksWithHttpInfoAsync(acceptLanguage, xChildCompanyId, limit, search, url, next, previous, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1138,12 +1149,13 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory /// In the case of a holding company, the company id of the child company to which will process the request. (optional) /// The numbers of items to return, the maximum value is 250 (optional, default to 20) /// General order search, e.g. by mail, reference etc. (optional) + /// url for webhook filter (optional) /// next page (optional) /// previous page (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (GetWebhooksResponse) - public async System.Threading.Tasks.Task> GetWebhooksWithHttpInfoAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetWebhooksWithHttpInfoAsync(string acceptLanguage = default(string), string xChildCompanyId = default(string), int? limit = default(int?), string search = default(string), string url = default(string), string next = default(string), string previous = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Conekta.net.Client.RequestOptions localVarRequestOptions = new Conekta.net.Client.RequestOptions(); @@ -1176,6 +1188,10 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Conekta.net.Client.ClientUtils.ParameterToMultiMap("", "search", search)); } + if (url != null) + { + localVarRequestOptions.QueryParameters.Add(Conekta.net.Client.ClientUtils.ParameterToMultiMap("", "url", url)); + } if (next != null) { localVarRequestOptions.QueryParameters.Add(Conekta.net.Client.ClientUtils.ParameterToMultiMap("", "next", next)); diff --git a/src/Conekta.net/Client/Configuration.cs b/src/Conekta.net/Client/Configuration.cs index dc32ed0..a0dffe5 100644 --- a/src/Conekta.net/Client/Configuration.cs +++ b/src/Conekta.net/Client/Configuration.cs @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "6.0.8"; + public const string Version = "6.0.9"; /// /// Identifier for ISO 8601 DateTime Format @@ -536,7 +536,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 2.1.0\n"; - report += " SDK Package Version: 6.0.8\n"; + report += " SDK Package Version: 6.0.9\n"; return report; } diff --git a/src/Conekta.net/Conekta.net.csproj b/src/Conekta.net/Conekta.net.csproj index 00da71a..eff8506 100644 --- a/src/Conekta.net/Conekta.net.csproj +++ b/src/Conekta.net/Conekta.net.csproj @@ -12,11 +12,11 @@ This is a .net library that allows interaction with https://api.conekta.io API. Conekta Conekta.net - 6.0.8 + 6.0.9 bin\$(Configuration)\$(TargetFramework)\Conekta.net.xml https://github.com/conekta/conekta-.net.git git - support for resend event, api keys and webhook keys + update entity webhook, nuget config @@ -40,9 +40,12 @@ true README.md https://github.com/conekta/conekta-.net + true + true + diff --git a/templates/netcore/netcore_project.additions.mustache b/templates/netcore/netcore_project.additions.mustache index 872f9ee..6d538e5 100644 --- a/templates/netcore/netcore_project.additions.mustache +++ b/templates/netcore/netcore_project.additions.mustache @@ -6,9 +6,12 @@ true README.md https://github.com/conekta/conekta-.net + true + true + \ No newline at end of file