From 7542e77153401d69248f6f44c30a79023524bd4a Mon Sep 17 00:00:00 2001 From: andreals Date: Tue, 8 Oct 2024 20:14:21 +0000 Subject: [PATCH] Automated commit message --- .../Models/GetIntegrationResponse.cs | 82 +++++++++++++++++++ .../Models/GetOrderResponse.cs | 50 ++++++++++- .../PagarmeApiSDK.Standard.csproj | 6 +- .../PagarmeApiSDK.Standard.nuspec | 21 ----- PagarmeApiSDK.Standard/PagarmeApiSDKClient.cs | 2 +- PagarmeApiSDK.sln | 10 +-- README.md | 60 +++++++------- doc/models/get-integration-response.md | 21 +++++ doc/models/get-order-response.md | 1 + 9 files changed, 191 insertions(+), 62 deletions(-) create mode 100644 PagarmeApiSDK.Standard/Models/GetIntegrationResponse.cs delete mode 100644 PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.nuspec create mode 100644 doc/models/get-integration-response.md diff --git a/PagarmeApiSDK.Standard/Models/GetIntegrationResponse.cs b/PagarmeApiSDK.Standard/Models/GetIntegrationResponse.cs new file mode 100644 index 0000000..f60efd4 --- /dev/null +++ b/PagarmeApiSDK.Standard/Models/GetIntegrationResponse.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) APIMatic. All rights reserved. +// +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using APIMatic.Core.Utilities.Converters; +using JsonSubTypes; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using PagarmeApiSDK.Standard; +using PagarmeApiSDK.Standard.Utilities; + +namespace PagarmeApiSDK.Standard.Models +{ + /// + /// GetIntegrationResponse. + /// + public class GetIntegrationResponse + { + /// + /// Initializes a new instance of the class. + /// + public GetIntegrationResponse() + { + } + + /// + /// Initializes a new instance of the class. + /// + /// code. + public GetIntegrationResponse( + string code = null) + { + this.Code = code; + } + + /// + /// Gets or sets Code. + /// + [JsonProperty("code", NullValueHandling = NullValueHandling.Ignore)] + public string Code { get; set; } + + /// + public override string ToString() + { + var toStringOutput = new List(); + + this.ToString(toStringOutput); + + return $"GetIntegrationResponse : ({string.Join(", ", toStringOutput)})"; + } + + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (obj == this) + { + return true; + } + return obj is GetIntegrationResponse other && ((this.Code == null && other.Code == null) || (this.Code?.Equals(other.Code) == true)); + } + + /// + /// ToString overload. + /// + /// List of strings. + protected void ToString(List toStringOutput) + { + toStringOutput.Add($"this.Code = {(this.Code == null ? "null" : this.Code)}"); + } + } +} \ No newline at end of file diff --git a/PagarmeApiSDK.Standard/Models/GetOrderResponse.cs b/PagarmeApiSDK.Standard/Models/GetOrderResponse.cs index 5a48483..eeba0e0 100644 --- a/PagarmeApiSDK.Standard/Models/GetOrderResponse.cs +++ b/PagarmeApiSDK.Standard/Models/GetOrderResponse.cs @@ -42,6 +42,7 @@ public class GetOrderResponse private string sessionId; private Models.GetLocationResponse location; private Models.GetDeviceResponse device; + private Models.GetIntegrationResponse integration; private Dictionary shouldSerialize = new Dictionary { { "id", false }, @@ -64,6 +65,7 @@ public class GetOrderResponse { "session_id", false }, { "location", false }, { "device", false }, + { "integration", false }, }; /// @@ -96,6 +98,7 @@ public GetOrderResponse() /// session_id. /// location. /// device. + /// integration. public GetOrderResponse( string id = null, string code = null, @@ -116,7 +119,8 @@ public GetOrderResponse( string ip = null, string sessionId = null, Models.GetLocationResponse location = null, - Models.GetDeviceResponse device = null) + Models.GetDeviceResponse device = null, + Models.GetIntegrationResponse integration = null) { if (id != null) { @@ -218,6 +222,11 @@ public GetOrderResponse( this.Device = device; } + if (integration != null) + { + this.Integration = integration; + } + } /// @@ -583,6 +592,24 @@ public Models.GetDeviceResponse Device } } + /// + /// Gets or sets Integration. + /// + [JsonProperty("integration")] + public Models.GetIntegrationResponse Integration + { + get + { + return this.integration; + } + + set + { + this.shouldSerialize["integration"] = true; + this.integration = value; + } + } + /// public override string ToString() { @@ -753,6 +780,14 @@ public void UnsetDevice() this.shouldSerialize["device"] = false; } + /// + /// Marks the field to not be serailized. + /// + public void UnsetIntegration() + { + this.shouldSerialize["integration"] = false; + } + /// /// Checks if the field should be serialized or not. /// @@ -932,6 +967,15 @@ public bool ShouldSerializeDevice() { return this.shouldSerialize["device"]; } + + /// + /// Checks if the field should be serialized or not. + /// + /// A boolean weather the field should be serialized or not. + public bool ShouldSerializeIntegration() + { + return this.shouldSerialize["integration"]; + } /// public override bool Equals(object obj) @@ -964,7 +1008,8 @@ public override bool Equals(object obj) ((this.Ip == null && other.Ip == null) || (this.Ip?.Equals(other.Ip) == true)) && ((this.SessionId == null && other.SessionId == null) || (this.SessionId?.Equals(other.SessionId) == true)) && ((this.Location == null && other.Location == null) || (this.Location?.Equals(other.Location) == true)) && - ((this.Device == null && other.Device == null) || (this.Device?.Equals(other.Device) == true)); + ((this.Device == null && other.Device == null) || (this.Device?.Equals(other.Device) == true)) && + ((this.Integration == null && other.Integration == null) || (this.Integration?.Equals(other.Integration) == true)); } /// @@ -993,6 +1038,7 @@ protected void ToString(List toStringOutput) toStringOutput.Add($"this.SessionId = {(this.SessionId == null ? "null" : this.SessionId)}"); toStringOutput.Add($"this.Location = {(this.Location == null ? "null" : this.Location.ToString())}"); toStringOutput.Add($"this.Device = {(this.Device == null ? "null" : this.Device.ToString())}"); + toStringOutput.Add($"this.Integration = {(this.Integration == null ? "null" : this.Integration.ToString())}"); } } } \ No newline at end of file diff --git a/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.csproj b/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.csproj index f5c34ff..6f8a6d9 100644 --- a/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.csproj +++ b/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.csproj @@ -9,13 +9,13 @@ netstandard2.0 PagarmeApiSDKStandard - 6.8.12.0 + 6.8.13.0 Pagar.me Pagamentos S/A Pagar.me Pagamentos S/A PagarmeApiSDK.Standard Copyright © 2019 - 6.8.12.0 - 6.8.12.0 + 6.8.13.0 + 6.8.13.0 .NET client library for the PagarmeApiSDK 7.3 true diff --git a/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.nuspec b/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.nuspec deleted file mode 100644 index 3c67b3b..0000000 --- a/PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.nuspec +++ /dev/null @@ -1,21 +0,0 @@ - - - - PagarmeApiSDK.Standard - 6.8.12 - PagarmeApiSDK.Standard - APIMATIC SDK Generator - https://nuget.org/Content/Images/packageDefaultIcon-50x50.png - false - Pagarme API - - - Copyright 2016 - en-US - - - - - - - \ No newline at end of file diff --git a/PagarmeApiSDK.Standard/PagarmeApiSDKClient.cs b/PagarmeApiSDK.Standard/PagarmeApiSDKClient.cs index ac3aec7..5ce0e84 100644 --- a/PagarmeApiSDK.Standard/PagarmeApiSDKClient.cs +++ b/PagarmeApiSDK.Standard/PagarmeApiSDKClient.cs @@ -32,7 +32,7 @@ public sealed class PagarmeApiSDKClient : IPagarmeApiSDKClient }; private readonly GlobalConfiguration globalConfiguration; - private const string userAgent = "PagarmeApiSDK - DotNet 6.8.12"; + private const string userAgent = "PagarmeApiSDK - DotNet 6.8.13"; private readonly HttpCallback httpCallback; private readonly Lazy subscriptions; private readonly Lazy orders; diff --git a/PagarmeApiSDK.sln b/PagarmeApiSDK.sln index cf950c9..992cc34 100644 --- a/PagarmeApiSDK.sln +++ b/PagarmeApiSDK.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26430.14 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PagarmeApiSDK.Standard", "PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.csproj", "{3b426030-ca89-448c-be75-d97436242e47}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PagarmeApiSDK.Standard", "PagarmeApiSDK.Standard/PagarmeApiSDK.Standard.csproj", "{330c3994-8848-4754-9cee-58c9cd5f031c}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -10,10 +10,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3b426030-ca89-448c-be75-d97436242e47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3b426030-ca89-448c-be75-d97436242e47}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3b426030-ca89-448c-be75-d97436242e47}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3b426030-ca89-448c-be75-d97436242e47}.Release|Any CPU.Build.0 = Release|Any CPU + {330c3994-8848-4754-9cee-58c9cd5f031c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {330c3994-8848-4754-9cee-58c9cd5f031c}.Debug|Any CPU.Build.0 = Debug|Any CPU + {330c3994-8848-4754-9cee-58c9cd5f031c}.Release|Any CPU.ActiveCfg = Release|Any CPU + {330c3994-8848-4754-9cee-58c9cd5f031c}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/README.md b/README.md index e73418a..a1d0a11 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Once the `TestConsoleProject` is created, a file named `Program.cs` will be visi ## Initialize the API Client -**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/client.md) +**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/client.md) The following parameters are configurable for the API Client: @@ -63,7 +63,7 @@ The following parameters are configurable for the API Client: | --- | --- | --- | | `ServiceRefererName` | `string` | | | `Timeout` | `TimeSpan` | Http client timeout.
*Default*: `TimeSpan.FromSeconds(100)` | -| `BasicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/auth/basic-authentication.md) | The Credentials Setter for Basic Authentication | +| `BasicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/auth/basic-authentication.md) | The Credentials Setter for Basic Authentication | The API client can be initialized as follows: @@ -83,7 +83,7 @@ PagarmeApiSDKClient client = new PagarmeApiSDKClient.Builder() This API uses the following authentication schemes. -* [`httpBasic (Basic Authentication)`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/auth/basic-authentication.md) +* [`httpBasic (Basic Authentication)`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/auth/basic-authentication.md) ## API Errors @@ -91,37 +91,37 @@ Here is the list of errors that the API might throw. | HTTP Status Code | Error Description | Exception Class | | --- | --- | --- | -| 400 | Invalid request | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/models/error-exception.md) | -| 401 | Invalid API key | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/models/error-exception.md) | -| 404 | An informed resource was not found | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/models/error-exception.md) | -| 412 | Business validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/models/error-exception.md) | -| 422 | Contract validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/models/error-exception.md) | -| 500 | Internal server error | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/models/error-exception.md) | +| 400 | Invalid request | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/models/error-exception.md) | +| 401 | Invalid API key | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/models/error-exception.md) | +| 404 | An informed resource was not found | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/models/error-exception.md) | +| 412 | Business validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/models/error-exception.md) | +| 422 | Contract validation error | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/models/error-exception.md) | +| 500 | Internal server error | [`ErrorException`](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/models/error-exception.md) | ## List of APIs -* [Subscriptions](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/subscriptions.md) -* [Orders](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/orders.md) -* [Plans](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/plans.md) -* [Invoices](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/invoices.md) -* [Customers](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/customers.md) -* [Charges](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/charges.md) -* [Recipients](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/recipients.md) -* [Tokens](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/tokens.md) -* [Transactions](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/transactions.md) -* [Transfers](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/transfers.md) -* [Payables](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/payables.md) -* [Balance Operations](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/controllers/balance-operations.md) +* [Subscriptions](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/subscriptions.md) +* [Orders](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/orders.md) +* [Plans](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/plans.md) +* [Invoices](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/invoices.md) +* [Customers](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/customers.md) +* [Charges](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/charges.md) +* [Recipients](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/recipients.md) +* [Tokens](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/tokens.md) +* [Transactions](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/transactions.md) +* [Transfers](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/transfers.md) +* [Payables](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/payables.md) +* [Balance Operations](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/controllers/balance-operations.md) ## Classes Documentation -* [Utility Classes](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/utility-classes.md) -* [HttpRequest](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/http-request.md) -* [HttpResponse](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/http-response.md) -* [HttpStringResponse](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/http-string-response.md) -* [HttpContext](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/http-context.md) -* [HttpClientConfiguration](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/http-client-configuration.md) -* [HttpClientConfiguration Builder](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/http-client-configuration-builder.md) -* [IAuthManager](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/i-auth-manager.md) -* [ApiException](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.12/doc/api-exception.md) +* [Utility Classes](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/utility-classes.md) +* [HttpRequest](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/http-request.md) +* [HttpResponse](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/http-response.md) +* [HttpStringResponse](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/http-string-response.md) +* [HttpContext](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/http-context.md) +* [HttpClientConfiguration](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/http-client-configuration.md) +* [HttpClientConfiguration Builder](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/http-client-configuration-builder.md) +* [IAuthManager](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/i-auth-manager.md) +* [ApiException](https://www.github.com/pagarme/pagarme-net-standard-sdk/tree/6.8.13/doc/api-exception.md) diff --git a/doc/models/get-integration-response.md b/doc/models/get-integration-response.md new file mode 100644 index 0000000..036d248 --- /dev/null +++ b/doc/models/get-integration-response.md @@ -0,0 +1,21 @@ + +# Get Integration Response + +## Structure + +`GetIntegrationResponse` + +## Fields + +| Name | Type | Tags | Description | +| --- | --- | --- | --- | +| `Code` | `string` | Optional | - | + +## Example (as JSON) + +```json +{ + "code": "code2" +} +``` + diff --git a/doc/models/get-order-response.md b/doc/models/get-order-response.md index 33b6464..e9c3bbf 100644 --- a/doc/models/get-order-response.md +++ b/doc/models/get-order-response.md @@ -31,6 +31,7 @@ Response object for getting an Order | `SessionId` | `string` | Optional | Session id | | `Location` | [`GetLocationResponse`](../../doc/models/get-location-response.md) | Optional | Location | | `Device` | [`GetDeviceResponse`](../../doc/models/get-device-response.md) | Optional | Device's informations | +| `Integration` | [`GetIntegrationResponse`](../../doc/models/get-integration-response.md) | Optional | - | ## Example (as JSON)