From 39aafd43e66fbc5123a838bccc67c045eeea5260 Mon Sep 17 00:00:00 2001 From: Muhammad Umer Khan Date: Tue, 30 Jul 2024 13:53:43 +0500 Subject: [PATCH] Adding RRN in Transaction Summery Response 201 Class Adding RRN in Transaction Summery Response 201 Class --- ...201ResponseEmbeddedProcessorInformation.cs | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs b/cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs index aa4190b8..41321fcc 100644 --- a/cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs +++ b/cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs @@ -28,32 +28,36 @@ namespace CyberSource.Model /// TssV2TransactionsPost201ResponseEmbeddedProcessorInformation /// [DataContract] - public partial class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation : IEquatable, IValidatableObject + public partial class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// Processor. /// Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000. . - public TssV2TransactionsPost201ResponseEmbeddedProcessorInformation(TssV2TransactionsGet200ResponseProcessorInformationProcessor Processor = default(TssV2TransactionsGet200ResponseProcessorInformationProcessor), string ApprovalCode = default(string)) + public TssV2TransactionsPost201ResponseEmbeddedProcessorInformation(TssV2TransactionsGet200ResponseProcessorInformationProcessor Processor = default(TssV2TransactionsGet200ResponseProcessorInformationProcessor), string ApprovalCode = default(string), string RetrievalReferenceNumber = default(string)) { this.Processor = Processor; this.ApprovalCode = ApprovalCode; + this.RetrievalReferenceNumber = RetrievalReferenceNumber; } - + /// /// Gets or Sets Processor /// - [DataMember(Name="processor", EmitDefaultValue=false)] + [DataMember(Name = "processor", EmitDefaultValue = false)] public TssV2TransactionsGet200ResponseProcessorInformationProcessor Processor { get; set; } /// /// Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000. /// /// Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000. - [DataMember(Name="approvalCode", EmitDefaultValue=false)] + [DataMember(Name = "approvalCode", EmitDefaultValue = false)] public string ApprovalCode { get; set; } + [DataMember(Name = "retrievalReferenceNumber", EmitDefaultValue = false)] + public string RetrievalReferenceNumber { get; set; } + /// /// Returns the string presentation of the object /// @@ -64,10 +68,11 @@ public override string ToString() sb.Append("class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation {\n"); sb.Append(" Processor: ").Append(Processor).Append("\n"); sb.Append(" ApprovalCode: ").Append(ApprovalCode).Append("\n"); + sb.Append(" RetrievalReferenceNumber: ").Append(RetrievalReferenceNumber).Append("\n"); sb.Append("}\n"); return sb.ToString(); } - + /// /// Returns the JSON string presentation of the object /// @@ -99,16 +104,21 @@ public bool Equals(TssV2TransactionsPost201ResponseEmbeddedProcessorInformation if (other == null) return false; - return + return ( this.Processor == other.Processor || this.Processor != null && this.Processor.Equals(other.Processor) - ) && + ) && ( this.ApprovalCode == other.ApprovalCode || this.ApprovalCode != null && this.ApprovalCode.Equals(other.ApprovalCode) + ) && + ( + this.RetrievalReferenceNumber == other.RetrievalReferenceNumber || + this.RetrievalReferenceNumber != null && + this.RetrievalReferenceNumber.Equals(other.RetrievalReferenceNumber) ); } @@ -127,6 +137,8 @@ public override int GetHashCode() hash = hash * 59 + this.Processor.GetHashCode(); if (this.ApprovalCode != null) hash = hash * 59 + this.ApprovalCode.GetHashCode(); + if (this.RetrievalReferenceNumber != null) + hash = hash * 59 + this.RetrievalReferenceNumber.GetHashCode(); return hash; } }