Skip to content

Commit

Permalink
Merge pull request #126 from CyberSource/cache-fix
Browse files Browse the repository at this point in the history
Changes for cache fix and Feb-Mar 2022 API changes
  • Loading branch information
gnongsie authored Mar 3, 2022
2 parents 3da3b13 + 41f3717 commit 4e26e2f
Show file tree
Hide file tree
Showing 37 changed files with 1,109 additions and 107 deletions.
8 changes: 1 addition & 7 deletions Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,10 @@ public void SetApiClientUsingDefault (ApiClient apiClient = null)
{
if (apiClient == null)
{
if (Default != null && Default.ApiClient == null)
Default.ApiClient = new ApiClient();

ApiClient = Default != null ? Default.ApiClient : new ApiClient();
ApiClient = new ApiClient();
}
else
{
if (Default != null && Default.ApiClient == null)
Default.ApiClient = apiClient;

ApiClient = apiClient;
}
}
Expand Down
6 changes: 3 additions & 3 deletions Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial class Ptsv2paymentsMerchantInformationMerchantDescriptor : IEqua
/// <param name="Country">Merchant&#39;s country. #### PIN debit Country code for your business location. Use the [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) This value might be displayed on the cardholder’s statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** If your business is located in the U.S. or Canada and you include this field in a request, you must also include &#x60;merchantInformation.merchantDescriptor.administrativeArea&#x60;. Optional field for PIN debit credit or PIN debit purchase. .</param>
/// <param name="PostalCode">Merchant&#39;s postal code. #### PIN debit Postal code for your business location. This value might be displayed on the cardholder’s statement. If your business is domiciled in the U.S., you can use a 5-digit or 9-digit postal code. A 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example: &#x60;12345-6789&#x60; If your business is domiciled in Canada, you can use a 6-digit or 9-digit postal code. A 6-digit postal code must follow this format: [alpha][numeric][alpha][space] [numeric][alpha][numeric] Example: &#x60;A1B 2C3&#x60; When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** This field is supported only for businesses located in the U.S. or Canada. **Important** Mastercard requires a postal code for any country that uses postal codes. You can provide the postal code in your account or you can include this field in your request. Optional field for PIN debit credit or PIN debit purchase. .</param>
/// <param name="AdministrativeArea">The state where the merchant is located. #### PIN debit State code or region code for your business. Use the Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) This value might be displayed on the cardholder’s statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** This field is supported only for businesses located in the U.S. or Canada. Optional field for PIN debit credit or PIN debit purchase. .</param>
/// <param name="Phone">Merchnat phone as contact information for CNP transactions .</param>
/// <param name="Phone">Merchant phone as contact information for CNP transactions .</param>
/// <param name="Url">Address of company&#39;s website provided by merchant .</param>
public Ptsv2paymentsMerchantInformationMerchantDescriptor(string Name = default(string), string AlternateName = default(string), string Contact = default(string), string Address1 = default(string), string Locality = default(string), string Country = default(string), string PostalCode = default(string), string AdministrativeArea = default(string), string Phone = default(string), string Url = default(string))
{
Expand Down Expand Up @@ -114,9 +114,9 @@ public partial class Ptsv2paymentsMerchantInformationMerchantDescriptor : IEqua
public string AdministrativeArea { get; set; }

/// <summary>
/// Merchnat phone as contact information for CNP transactions
/// Merchant phone as contact information for CNP transactions
/// </summary>
/// <value>Merchnat phone as contact information for CNP transactions </value>
/// <value>Merchant phone as contact information for CNP transactions </value>
[DataMember(Name="phone", EmitDefaultValue=false)]
public string Phone { get; set; }

Expand Down
35 changes: 17 additions & 18 deletions Model/TssV2TransactionsGet200Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
/// <param name="RootId">Contains the transaction identifier for the first transaction in the series of transactions. For example, you might send an authorization request for a payment, followed by a capture request for that payment, and then a refund request for that captured payment. Each of those requests, if successful, creates a resource that is assigned an identifier, which is returned in the response. The rootId identifies the first ID in the series, which in this case would be the ID of the original authorization..</param>
/// <param name="ReconciliationId">Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. .</param>
/// <param name="MerchantId">Your CyberSource merchant ID..</param>
/// <param name="Status">The status of the submitted transaction..</param>
/// <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. Returned by Cybersource for all services. .</param>
/// <param name="ApplicationInformation">ApplicationInformation.</param>
/// <param name="BuyerInformation">BuyerInformation.</param>
Expand All @@ -57,14 +56,14 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
/// <param name="PointOfSaleInformation">PointOfSaleInformation.</param>
/// <param name="RiskInformation">RiskInformation.</param>
/// <param name="SenderInformation">SenderInformation.</param>
/// <param name="TokenInformation">TokenInformation.</param>
/// <param name="Links">Links.</param>
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), Ptsv2paymentsHealthCareInformation HealthCareInformation = default(Ptsv2paymentsHealthCareInformation), 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))
public TssV2TransactionsGet200Response(string Id = default(string), string RootId = default(string), string ReconciliationId = default(string), string MerchantId = 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), Ptsv2paymentsHealthCareInformation HealthCareInformation = default(Ptsv2paymentsHealthCareInformation), 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), TssV2TransactionsGet200ResponseTokenInformation TokenInformation = default(TssV2TransactionsGet200ResponseTokenInformation), TssV2TransactionsGet200ResponseLinks Links = default(TssV2TransactionsGet200ResponseLinks))
{
this.Id = Id;
this.RootId = RootId;
this.ReconciliationId = ReconciliationId;
this.MerchantId = MerchantId;
this.Status = Status;
this.SubmitTimeUTC = SubmitTimeUTC;
this.ApplicationInformation = ApplicationInformation;
this.BuyerInformation = BuyerInformation;
Expand All @@ -84,6 +83,7 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
this.PointOfSaleInformation = PointOfSaleInformation;
this.RiskInformation = RiskInformation;
this.SenderInformation = SenderInformation;
this.TokenInformation = TokenInformation;
this.Links = Links;
}

Expand Down Expand Up @@ -115,13 +115,6 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
[DataMember(Name="merchantId", EmitDefaultValue=false)]
public string MerchantId { get; set; }

/// <summary>
/// The status of the submitted transaction.
/// </summary>
/// <value>The status of the submitted transaction.</value>
[DataMember(Name="status", EmitDefaultValue=false)]
public string Status { get; set; }

/// <summary>
/// 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. Returned by Cybersource for all services.
/// </summary>
Expand Down Expand Up @@ -238,6 +231,12 @@ public partial class TssV2TransactionsGet200Response : IEquatable<TssV2Transact
[DataMember(Name="senderInformation", EmitDefaultValue=false)]
public TssV2TransactionsGet200ResponseSenderInformation SenderInformation { get; set; }

/// <summary>
/// Gets or Sets TokenInformation
/// </summary>
[DataMember(Name="tokenInformation", EmitDefaultValue=false)]
public TssV2TransactionsGet200ResponseTokenInformation TokenInformation { get; set; }

/// <summary>
/// Gets or Sets Links
/// </summary>
Expand All @@ -256,7 +255,6 @@ public override string ToString()
sb.Append(" RootId: ").Append(RootId).Append("\n");
sb.Append(" ReconciliationId: ").Append(ReconciliationId).Append("\n");
sb.Append(" MerchantId: ").Append(MerchantId).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" SubmitTimeUTC: ").Append(SubmitTimeUTC).Append("\n");
sb.Append(" ApplicationInformation: ").Append(ApplicationInformation).Append("\n");
sb.Append(" BuyerInformation: ").Append(BuyerInformation).Append("\n");
Expand All @@ -276,6 +274,7 @@ public override string ToString()
sb.Append(" PointOfSaleInformation: ").Append(PointOfSaleInformation).Append("\n");
sb.Append(" RiskInformation: ").Append(RiskInformation).Append("\n");
sb.Append(" SenderInformation: ").Append(SenderInformation).Append("\n");
sb.Append(" TokenInformation: ").Append(TokenInformation).Append("\n");
sb.Append(" Links: ").Append(Links).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -333,11 +332,6 @@ public bool Equals(TssV2TransactionsGet200Response other)
this.MerchantId != null &&
this.MerchantId.Equals(other.MerchantId)
) &&
(
this.Status == other.Status ||
this.Status != null &&
this.Status.Equals(other.Status)
) &&
(
this.SubmitTimeUTC == other.SubmitTimeUTC ||
this.SubmitTimeUTC != null &&
Expand Down Expand Up @@ -433,6 +427,11 @@ public bool Equals(TssV2TransactionsGet200Response other)
this.SenderInformation != null &&
this.SenderInformation.Equals(other.SenderInformation)
) &&
(
this.TokenInformation == other.TokenInformation ||
this.TokenInformation != null &&
this.TokenInformation.Equals(other.TokenInformation)
) &&
(
this.Links == other.Links ||
this.Links != null &&
Expand All @@ -459,8 +458,6 @@ public override int GetHashCode()
hash = hash * 59 + this.ReconciliationId.GetHashCode();
if (this.MerchantId != null)
hash = hash * 59 + this.MerchantId.GetHashCode();
if (this.Status != null)
hash = hash * 59 + this.Status.GetHashCode();
if (this.SubmitTimeUTC != null)
hash = hash * 59 + this.SubmitTimeUTC.GetHashCode();
if (this.ApplicationInformation != null)
Expand Down Expand Up @@ -499,6 +496,8 @@ public override int GetHashCode()
hash = hash * 59 + this.RiskInformation.GetHashCode();
if (this.SenderInformation != null)
hash = hash * 59 + this.SenderInformation.GetHashCode();
if (this.TokenInformation != null)
hash = hash * 59 + this.TokenInformation.GetHashCode();
if (this.Links != null)
hash = hash * 59 + this.Links.GetHashCode();
return hash;
Expand Down
Loading

0 comments on commit 4e26e2f

Please sign in to comment.