Skip to content

Commit 2314fdc

Browse files
committed
+ Fixing TMS issues with header fields
+ Adding missing enum values for status
1 parent 7f2e923 commit 2314fdc

16 files changed

+196
-1145
lines changed

Api/InstrumentIdentifierApi.cs

Lines changed: 50 additions & 340 deletions
Large diffs are not rendered by default.

Api/PaymentInstrumentApi.cs

Lines changed: 40 additions & 272 deletions
Large diffs are not rendered by default.

Model/PtsV2PaymentsPost201Response.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,19 @@ public enum StatusEnum
6060
/// Enum DECLINED for "DECLINED"
6161
/// </summary>
6262
[EnumMember(Value = "DECLINED")]
63-
DECLINED
63+
DECLINED,
64+
65+
/// <summary>
66+
/// Enum INVALIDREQUEST for "INVALID_REQUEST"
67+
/// </summary>
68+
[EnumMember(Value = "INVALID_REQUEST")]
69+
INVALIDREQUEST,
70+
71+
/// <summary>
72+
/// Enum PENDING for "PENDING"
73+
/// </summary>
74+
[EnumMember(Value = "PENDING")]
75+
PENDING
6476
}
6577

6678
/// <summary>

Model/PtsV2PaymentsPost201ResponseErrorInformation.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ namespace CyberSource.Model
3131
public partial class PtsV2PaymentsPost201ResponseErrorInformation : IEquatable<PtsV2PaymentsPost201ResponseErrorInformation>, IValidatableObject
3232
{
3333
/// <summary>
34-
/// The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
34+
/// The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
3535
/// </summary>
36-
/// <value>The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD </value>
36+
/// <value>The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD </value>
3737
[JsonConverter(typeof(StringEnumConverter))]
3838
public enum ReasonEnum
3939
{
@@ -127,30 +127,30 @@ public enum ReasonEnum
127127
/// </summary>
128128
[EnumMember(Value = "GENERAL_DECLINE")]
129129
GENERALDECLINE,
130-
131-
/// <summary>
130+
131+
/// <summary>
132132
/// Enum DECISIONPROFILEREJECT for "DECISION_PROFILE_REJECT"
133133
/// </summary>
134134
[EnumMember(Value = "DECISION_PROFILE_REJECT")]
135135
DECISIONPROFILEREJECT,
136-
137-
/// <summary>
136+
137+
/// <summary>
138138
/// Enum SCOREEXCEEDSTHRESHOLD for "SCORE_EXCEEDS_THRESHOLD"
139139
/// </summary>
140140
[EnumMember(Value = "SCORE_EXCEEDS_THRESHOLD")]
141141
SCOREEXCEEDSTHRESHOLD
142142
}
143143

144144
/// <summary>
145-
/// The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
145+
/// The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
146146
/// </summary>
147-
/// <value>The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD </value>
147+
/// <value>The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD </value>
148148
[DataMember(Name="reason", EmitDefaultValue=false)]
149149
public ReasonEnum? Reason { get; set; }
150150
/// <summary>
151151
/// Initializes a new instance of the <see cref="PtsV2PaymentsPost201ResponseErrorInformation" /> class.
152152
/// </summary>
153-
/// <param name="Reason">The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD .</param>
153+
/// <param name="Reason">The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD .</param>
154154
/// <param name="Message">The detail message related to the status and reason listed above..</param>
155155
/// <param name="Details">Details.</param>
156156
public PtsV2PaymentsPost201ResponseErrorInformation(ReasonEnum? Reason = default(ReasonEnum?), string Message = default(string), List<PtsV2PaymentsPost201ResponseErrorInformationDetails> Details = default(List<PtsV2PaymentsPost201ResponseErrorInformationDetails>))

Model/TssV2TransactionsGet200Response.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
3838
/// <param name="ReconciliationId">The reconciliation id for the submitted transaction. This value is not returned for all processors. .</param>
3939
/// <param name="MerchantId">The description for this field is not available..</param>
4040
/// <param name="Status">The status of the submitted transaction..</param>
41-
/// <param name="SubmitTimeUtc">Time of request in UTC. Format: &#x60;YYYY-MM-DDThh:mm:ssZ&#x60; Example &#x60;2016-08-11T22:47:57Z&#x60; equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The &#x60;T&#x60; separates the date and the time. The &#x60;Z&#x60; indicates UTC. .</param>
41+
/// <param name="SubmitTimeUTC">Time of request in UTC. Format: &#x60;YYYY-MM-DDThh:mm:ssZ&#x60; Example &#x60;2016-08-11T22:47:57Z&#x60; equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The &#x60;T&#x60; separates the date and the time. The &#x60;Z&#x60; indicates UTC. .</param>
4242
/// <param name="ApplicationInformation">ApplicationInformation.</param>
4343
/// <param name="BuyerInformation">BuyerInformation.</param>
4444
/// <param name="ClientReferenceInformation">ClientReferenceInformation.</param>
@@ -57,14 +57,14 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
5757
/// <param name="RiskInformation">RiskInformation.</param>
5858
/// <param name="SenderInformation">SenderInformation.</param>
5959
/// <param name="Links">Links.</param>
60-
public TssV2TransactionsGet200Response(string Id = default(string), string RootId = default(string), string ReconciliationId = default(string), string MerchantId = default(string), string Status = default(string), string SubmitTimeUtc = default(string), TssV2TransactionsGet200ResponseApplicationInformation ApplicationInformation = default(TssV2TransactionsGet200ResponseApplicationInformation), TssV2TransactionsGet200ResponseBuyerInformation BuyerInformation = default(TssV2TransactionsGet200ResponseBuyerInformation), TssV2TransactionsGet200ResponseClientReferenceInformation ClientReferenceInformation = default(TssV2TransactionsGet200ResponseClientReferenceInformation), TssV2TransactionsGet200ResponseConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(TssV2TransactionsGet200ResponseConsumerAuthenticationInformation), TssV2TransactionsGet200ResponseDeviceInformation DeviceInformation = default(TssV2TransactionsGet200ResponseDeviceInformation), TssV2TransactionsGet200ResponseErrorInformation ErrorInformation = default(TssV2TransactionsGet200ResponseErrorInformation), TssV2TransactionsGet200ResponseInstallmentInformation InstallmentInformation = default(TssV2TransactionsGet200ResponseInstallmentInformation), TssV2TransactionsGet200ResponseFraudMarkingInformation FraudMarkingInformation = default(TssV2TransactionsGet200ResponseFraudMarkingInformation), List<Ptsv2paymentsMerchantDefinedInformation> MerchantDefinedInformation = default(List<Ptsv2paymentsMerchantDefinedInformation>), TssV2TransactionsGet200ResponseMerchantInformation MerchantInformation = default(TssV2TransactionsGet200ResponseMerchantInformation), TssV2TransactionsGet200ResponseOrderInformation OrderInformation = default(TssV2TransactionsGet200ResponseOrderInformation), TssV2TransactionsGet200ResponsePaymentInformation PaymentInformation = default(TssV2TransactionsGet200ResponsePaymentInformation), TssV2TransactionsGet200ResponseProcessingInformation ProcessingInformation = default(TssV2TransactionsGet200ResponseProcessingInformation), TssV2TransactionsGet200ResponseProcessorInformation ProcessorInformation = default(TssV2TransactionsGet200ResponseProcessorInformation), TssV2TransactionsGet200ResponsePointOfSaleInformation PointOfSaleInformation = default(TssV2TransactionsGet200ResponsePointOfSaleInformation), TssV2TransactionsGet200ResponseRiskInformation RiskInformation = default(TssV2TransactionsGet200ResponseRiskInformation), TssV2TransactionsGet200ResponseSenderInformation SenderInformation = default(TssV2TransactionsGet200ResponseSenderInformation), TssV2TransactionsGet200ResponseLinks Links = default(TssV2TransactionsGet200ResponseLinks))
60+
public TssV2TransactionsGet200Response(string Id = default(string), string RootId = default(string), string ReconciliationId = default(string), string MerchantId = default(string), string Status = default(string), string SubmitTimeUTC = default(string), TssV2TransactionsGet200ResponseApplicationInformation ApplicationInformation = default(TssV2TransactionsGet200ResponseApplicationInformation), TssV2TransactionsGet200ResponseBuyerInformation BuyerInformation = default(TssV2TransactionsGet200ResponseBuyerInformation), TssV2TransactionsGet200ResponseClientReferenceInformation ClientReferenceInformation = default(TssV2TransactionsGet200ResponseClientReferenceInformation), TssV2TransactionsGet200ResponseConsumerAuthenticationInformation ConsumerAuthenticationInformation = default(TssV2TransactionsGet200ResponseConsumerAuthenticationInformation), TssV2TransactionsGet200ResponseDeviceInformation DeviceInformation = default(TssV2TransactionsGet200ResponseDeviceInformation), TssV2TransactionsGet200ResponseErrorInformation ErrorInformation = default(TssV2TransactionsGet200ResponseErrorInformation), TssV2TransactionsGet200ResponseInstallmentInformation InstallmentInformation = default(TssV2TransactionsGet200ResponseInstallmentInformation), TssV2TransactionsGet200ResponseFraudMarkingInformation FraudMarkingInformation = default(TssV2TransactionsGet200ResponseFraudMarkingInformation), List<Ptsv2paymentsMerchantDefinedInformation> MerchantDefinedInformation = default(List<Ptsv2paymentsMerchantDefinedInformation>), TssV2TransactionsGet200ResponseMerchantInformation MerchantInformation = default(TssV2TransactionsGet200ResponseMerchantInformation), TssV2TransactionsGet200ResponseOrderInformation OrderInformation = default(TssV2TransactionsGet200ResponseOrderInformation), TssV2TransactionsGet200ResponsePaymentInformation PaymentInformation = default(TssV2TransactionsGet200ResponsePaymentInformation), TssV2TransactionsGet200ResponseProcessingInformation ProcessingInformation = default(TssV2TransactionsGet200ResponseProcessingInformation), TssV2TransactionsGet200ResponseProcessorInformation ProcessorInformation = default(TssV2TransactionsGet200ResponseProcessorInformation), TssV2TransactionsGet200ResponsePointOfSaleInformation PointOfSaleInformation = default(TssV2TransactionsGet200ResponsePointOfSaleInformation), TssV2TransactionsGet200ResponseRiskInformation RiskInformation = default(TssV2TransactionsGet200ResponseRiskInformation), TssV2TransactionsGet200ResponseSenderInformation SenderInformation = default(TssV2TransactionsGet200ResponseSenderInformation), TssV2TransactionsGet200ResponseLinks Links = default(TssV2TransactionsGet200ResponseLinks))
6161
{
6262
this.Id = Id;
6363
this.RootId = RootId;
6464
this.ReconciliationId = ReconciliationId;
6565
this.MerchantId = MerchantId;
6666
this.Status = Status;
67-
this.SubmitTimeUtc = SubmitTimeUtc;
67+
this.SubmitTimeUTC = SubmitTimeUTC;
6868
this.ApplicationInformation = ApplicationInformation;
6969
this.BuyerInformation = BuyerInformation;
7070
this.ClientReferenceInformation = ClientReferenceInformation;
@@ -124,8 +124,8 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
124124
/// Time of request in UTC. Format: &#x60;YYYY-MM-DDThh:mm:ssZ&#x60; Example &#x60;2016-08-11T22:47:57Z&#x60; equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The &#x60;T&#x60; separates the date and the time. The &#x60;Z&#x60; indicates UTC.
125125
/// </summary>
126126
/// <value>Time of request in UTC. Format: &#x60;YYYY-MM-DDThh:mm:ssZ&#x60; Example &#x60;2016-08-11T22:47:57Z&#x60; equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The &#x60;T&#x60; separates the date and the time. The &#x60;Z&#x60; indicates UTC. </value>
127-
[DataMember(Name="submitTimeUtc", EmitDefaultValue=false)]
128-
public string SubmitTimeUtc { get; set; }
127+
[DataMember(Name="submitTimeUTC", EmitDefaultValue=false)]
128+
public string SubmitTimeUTC { get; set; }
129129

130130
/// <summary>
131131
/// Gets or Sets ApplicationInformation
@@ -249,7 +249,7 @@ public override string ToString()
249249
sb.Append(" ReconciliationId: ").Append(ReconciliationId).Append("\n");
250250
sb.Append(" MerchantId: ").Append(MerchantId).Append("\n");
251251
sb.Append(" Status: ").Append(Status).Append("\n");
252-
sb.Append(" SubmitTimeUtc: ").Append(SubmitTimeUtc).Append("\n");
252+
sb.Append(" SubmitTimeUTC: ").Append(SubmitTimeUTC).Append("\n");
253253
sb.Append(" ApplicationInformation: ").Append(ApplicationInformation).Append("\n");
254254
sb.Append(" BuyerInformation: ").Append(BuyerInformation).Append("\n");
255255
sb.Append(" ClientReferenceInformation: ").Append(ClientReferenceInformation).Append("\n");
@@ -330,9 +330,9 @@ public bool Equals(TssV2TransactionsGet200Response other)
330330
this.Status.Equals(other.Status)
331331
) &&
332332
(
333-
this.SubmitTimeUtc == other.SubmitTimeUtc ||
334-
this.SubmitTimeUtc != null &&
335-
this.SubmitTimeUtc.Equals(other.SubmitTimeUtc)
333+
this.SubmitTimeUTC == other.SubmitTimeUTC ||
334+
this.SubmitTimeUTC != null &&
335+
this.SubmitTimeUTC.Equals(other.SubmitTimeUTC)
336336
) &&
337337
(
338338
this.ApplicationInformation == other.ApplicationInformation ||
@@ -447,8 +447,8 @@ public override int GetHashCode()
447447
hash = hash * 59 + this.MerchantId.GetHashCode();
448448
if (this.Status != null)
449449
hash = hash * 59 + this.Status.GetHashCode();
450-
if (this.SubmitTimeUtc != null)
451-
hash = hash * 59 + this.SubmitTimeUtc.GetHashCode();
450+
if (this.SubmitTimeUTC != null)
451+
hash = hash * 59 + this.SubmitTimeUTC.GetHashCode();
452452
if (this.ApplicationInformation != null)
453453
hash = hash * 59 + this.ApplicationInformation.GetHashCode();
454454
if (this.BuyerInformation != null)

cybersource-rest-client-dotnet.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OpenAPI spec version: 0.0.1
1212

1313
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
1414
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
15-
<ProjectGuid>{081B51ED-ECA7-450F-95BE-034B373FD852}</ProjectGuid>
15+
<ProjectGuid>{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}</ProjectGuid>
1616
<OutputType>Library</OutputType>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
1818
<RootNamespace>CyberSource</RootNamespace>
@@ -55,7 +55,7 @@ OpenAPI spec version: 0.0.1
5555
<HintPath>packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
5656
</Reference>
5757
<Reference Include="RestSharp">
58-
<HintPath>packages\RestSharp.106.5.3\lib\net452\RestSharp.dll</HintPath>
58+
<HintPath>packages\RestSharp.106.5.3\lib\net45.2\RestSharp.dll</HintPath>
5959
</Reference>
6060
</ItemGroup>
6161
<ItemGroup>

0 commit comments

Comments
 (0)