-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
andreals
committed
Oct 8, 2024
1 parent
d584d48
commit 7542e77
Showing
9 changed files
with
191 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// <copyright file="GetIntegrationResponse.cs" company="APIMatic"> | ||
// Copyright (c) APIMatic. All rights reserved. | ||
// </copyright> | ||
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 | ||
{ | ||
/// <summary> | ||
/// GetIntegrationResponse. | ||
/// </summary> | ||
public class GetIntegrationResponse | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="GetIntegrationResponse"/> class. | ||
/// </summary> | ||
public GetIntegrationResponse() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="GetIntegrationResponse"/> class. | ||
/// </summary> | ||
/// <param name="code">code.</param> | ||
public GetIntegrationResponse( | ||
string code = null) | ||
{ | ||
this.Code = code; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets Code. | ||
/// </summary> | ||
[JsonProperty("code", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Code { get; set; } | ||
|
||
/// <inheritdoc/> | ||
public override string ToString() | ||
{ | ||
var toStringOutput = new List<string>(); | ||
|
||
this.ToString(toStringOutput); | ||
|
||
return $"GetIntegrationResponse : ({string.Join(", ", toStringOutput)})"; | ||
} | ||
|
||
/// <inheritdoc/> | ||
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)); | ||
} | ||
|
||
/// <summary> | ||
/// ToString overload. | ||
/// </summary> | ||
/// <param name="toStringOutput">List of strings.</param> | ||
protected void ToString(List<string> toStringOutput) | ||
{ | ||
toStringOutput.Add($"this.Code = {(this.Code == null ? "null" : this.Code)}"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# Get Integration Response | ||
|
||
## Structure | ||
|
||
`GetIntegrationResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | | ||
| --- | --- | --- | --- | | ||
| `Code` | `string` | Optional | - | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"code": "code2" | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters