Skip to content

Commit

Permalink
Merge pull request #186 from CyberSource/release-sep24
Browse files Browse the repository at this point in the history
api spec changes sep24
  • Loading branch information
monu-kumar-visa authored Sep 25, 2024
2 parents 0c14f15 + 5c93fe8 commit e2589f1
Show file tree
Hide file tree
Showing 173 changed files with 15,092 additions and 724 deletions.
415 changes: 415 additions & 0 deletions Api/FlexAPIApi.cs

Large diffs are not rendered by default.

36 changes: 35 additions & 1 deletion Model/CardProcessingConfigCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public enum DefaultAuthTypeCodeEnum
/// <param name="SubMerchantBusinessName">Sub-merchant&#39;s business name. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... &lt;table&gt; &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Processor&lt;/th&gt;&lt;th&gt;Acceptance Type&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Min. Length&lt;/th&gt;&lt;th&gt;Max. Length&lt;/th&gt;&lt;th&gt;Regex&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt; &lt;tr&gt;&lt;td&gt;American Express Direct&lt;/td&gt;&lt;td&gt;cnp, cp, hybrid&lt;/td&gt;&lt;td&gt;No&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;37&lt;/td&gt;&lt;td&gt;^[0-9a-zA-Z&amp;#92;-&amp;#92;_&amp;#92;,\\s.]+$&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; .</param>
/// <param name="PreferCobadgedSecondaryBrand">It denotes merchant&#39;s preference on secondary brand for routing in case of co-branded cards. Applicable for EFTPOS processors..</param>
/// <param name="MerchantDescriptorInformation">MerchantDescriptorInformation.</param>
public CardProcessingConfigCommon(Dictionary<string, CardProcessingConfigCommonProcessors> Processors = default(Dictionary<string, CardProcessingConfigCommonProcessors>), string AmexVendorCode = default(string), DefaultAuthTypeCodeEnum? DefaultAuthTypeCode = default(DefaultAuthTypeCodeEnum?), string MasterCardAssignedId = default(string), bool? EnablePartialAuth = default(bool?), string MerchantCategoryCode = default(string), string SicCode = default(string), string FoodAndConsumerServiceId = default(string), bool? EnableSplitShipment = default(bool?), bool? EnableInterchangeOptimization = default(bool?), string VisaDelegatedAuthenticationId = default(string), string CreditCardRefundLimitPercent = default(string), string BusinessCenterCreditCardRefundLimitPercent = default(string), bool? AllowCapturesGreaterThanAuthorizations = default(bool?), bool? EnableDuplicateMerchantReferenceNumberBlocking = default(bool?), bool? DomesticMerchantId = default(bool?), string ProcessLevel3Data = default(string), string SubMerchantId = default(string), string SubMerchantBusinessName = default(string), bool? PreferCobadgedSecondaryBrand = default(bool?), CardProcessingConfigCommonMerchantDescriptorInformation MerchantDescriptorInformation = default(CardProcessingConfigCommonMerchantDescriptorInformation))
/// <param name="GovernmentControlled">Indicates whether the merchant is government controlled. Applicable for VPC processors..</param>
/// <param name="DropBillingInfo">This field is used to indicate whether the merchant wants to drop the billing information from the request. If this field is set to true, then the billing information will be dropped from the request. If this field is set to false, then the billing information will be sent in the request..</param>
public CardProcessingConfigCommon(Dictionary<string, CardProcessingConfigCommonProcessors> Processors = default(Dictionary<string, CardProcessingConfigCommonProcessors>), string AmexVendorCode = default(string), DefaultAuthTypeCodeEnum? DefaultAuthTypeCode = default(DefaultAuthTypeCodeEnum?), string MasterCardAssignedId = default(string), bool? EnablePartialAuth = default(bool?), string MerchantCategoryCode = default(string), string SicCode = default(string), string FoodAndConsumerServiceId = default(string), bool? EnableSplitShipment = default(bool?), bool? EnableInterchangeOptimization = default(bool?), string VisaDelegatedAuthenticationId = default(string), string CreditCardRefundLimitPercent = default(string), string BusinessCenterCreditCardRefundLimitPercent = default(string), bool? AllowCapturesGreaterThanAuthorizations = default(bool?), bool? EnableDuplicateMerchantReferenceNumberBlocking = default(bool?), bool? DomesticMerchantId = default(bool?), string ProcessLevel3Data = default(string), string SubMerchantId = default(string), string SubMerchantBusinessName = default(string), bool? PreferCobadgedSecondaryBrand = default(bool?), CardProcessingConfigCommonMerchantDescriptorInformation MerchantDescriptorInformation = default(CardProcessingConfigCommonMerchantDescriptorInformation), bool? GovernmentControlled = default(bool?), bool? DropBillingInfo = default(bool?))
{
this.Processors = Processors;
this.AmexVendorCode = AmexVendorCode;
Expand All @@ -109,6 +111,8 @@ public enum DefaultAuthTypeCodeEnum
this.SubMerchantBusinessName = SubMerchantBusinessName;
this.PreferCobadgedSecondaryBrand = PreferCobadgedSecondaryBrand;
this.MerchantDescriptorInformation = MerchantDescriptorInformation;
this.GovernmentControlled = GovernmentControlled;
this.DropBillingInfo = DropBillingInfo;
}

/// <summary>
Expand Down Expand Up @@ -251,6 +255,20 @@ public enum DefaultAuthTypeCodeEnum
[DataMember(Name="merchantDescriptorInformation", EmitDefaultValue=false)]
public CardProcessingConfigCommonMerchantDescriptorInformation MerchantDescriptorInformation { get; set; }

/// <summary>
/// Indicates whether the merchant is government controlled. Applicable for VPC processors.
/// </summary>
/// <value>Indicates whether the merchant is government controlled. Applicable for VPC processors.</value>
[DataMember(Name="governmentControlled", EmitDefaultValue=false)]
public bool? GovernmentControlled { get; set; }

/// <summary>
/// This field is used to indicate whether the merchant wants to drop the billing information from the request. If this field is set to true, then the billing information will be dropped from the request. If this field is set to false, then the billing information will be sent in the request.
/// </summary>
/// <value>This field is used to indicate whether the merchant wants to drop the billing information from the request. If this field is set to true, then the billing information will be dropped from the request. If this field is set to false, then the billing information will be sent in the request.</value>
[DataMember(Name="dropBillingInfo", EmitDefaultValue=false)]
public bool? DropBillingInfo { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down Expand Up @@ -280,6 +298,8 @@ public override string ToString()
sb.Append(" SubMerchantBusinessName: ").Append(SubMerchantBusinessName).Append("\n");
sb.Append(" PreferCobadgedSecondaryBrand: ").Append(PreferCobadgedSecondaryBrand).Append("\n");
sb.Append(" MerchantDescriptorInformation: ").Append(MerchantDescriptorInformation).Append("\n");
sb.Append(" GovernmentControlled: ").Append(GovernmentControlled).Append("\n");
sb.Append(" DropBillingInfo: ").Append(DropBillingInfo).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -420,6 +440,16 @@ public bool Equals(CardProcessingConfigCommon other)
this.MerchantDescriptorInformation == other.MerchantDescriptorInformation ||
this.MerchantDescriptorInformation != null &&
this.MerchantDescriptorInformation.Equals(other.MerchantDescriptorInformation)
) &&
(
this.GovernmentControlled == other.GovernmentControlled ||
this.GovernmentControlled != null &&
this.GovernmentControlled.Equals(other.GovernmentControlled)
) &&
(
this.DropBillingInfo == other.DropBillingInfo ||
this.DropBillingInfo != null &&
this.DropBillingInfo.Equals(other.DropBillingInfo)
);
}

Expand Down Expand Up @@ -476,6 +506,10 @@ public override int GetHashCode()
hash = hash * 59 + this.PreferCobadgedSecondaryBrand.GetHashCode();
if (this.MerchantDescriptorInformation != null)
hash = hash * 59 + this.MerchantDescriptorInformation.GetHashCode();
if (this.GovernmentControlled != null)
hash = hash * 59 + this.GovernmentControlled.GetHashCode();
if (this.DropBillingInfo != null)
hash = hash * 59 + this.DropBillingInfo.GetHashCode();
return hash;
}
}
Expand Down
36 changes: 35 additions & 1 deletion Model/CardProcessingConfigCommonAcquirer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ public partial class CardProcessingConfigCommonAcquirer : IEquatable<CardProces
/// <param name="InstitutionId">Identifier of the acquirer. This number is usually assigned by Visa. Applicable for VPC, GPX (gpx), CMCIC (cmcic), EFTPOS, CB2A, CUP, American Express Direct (amexdirect) and Six (six) processors. Validation details (for selected processors)... &lt;table&gt; &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Processor&lt;/th&gt;&lt;th&gt;Acceptance Type&lt;/th&gt;&lt;th&gt;Required&lt;/th&gt;&lt;th&gt;Min. Length&lt;/th&gt;&lt;th&gt;Max. Length&lt;/th&gt;&lt;th&gt;Regex&lt;/th&gt;&lt;th&gt;Default Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt; &lt;tr&gt;&lt;td&gt;American Express Direct&lt;/td&gt;&lt;td&gt;cnp, cp, hybrid&lt;/td&gt;&lt;td&gt;Yes&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;13&lt;/td&gt;&lt;td&gt;^[0-9]+$&lt;/td&gt;&lt;td&gt;1111&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; .</param>
/// <param name="InterbankCardAssociationId">Number assigned by MasterCard to banks to identify the member in transactions. Applicable for VPC and GPX (gpx) processors..</param>
/// <param name="DiscoverInstitutionId">Assigned by Discover to identify the acquirer. Applicable for VPC and GPX (gpx) processors..</param>
/// <param name="UnionPayInstitutionId">Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors..</param>
/// <param name="DinersClubInstitutionId">Assigned by Diners Club to identify the acquirer. Applicable for VPC processors..</param>
/// <param name="CountryCode">ISO 4217 format. Applicable for VPC, GPX (gpx), EFTPOS, RUPAY, Prisma (prisma) and CUP processors..</param>
/// <param name="FileDestinationBin">The BIN to which this capturefile is sent. This field must contain a valid BIN. Applicable for VPC and GPX (gpx) processors..</param>
public CardProcessingConfigCommonAcquirer(string InstitutionId = default(string), string InterbankCardAssociationId = default(string), string DiscoverInstitutionId = default(string), string CountryCode = default(string), string FileDestinationBin = default(string))
public CardProcessingConfigCommonAcquirer(string InstitutionId = default(string), string InterbankCardAssociationId = default(string), string DiscoverInstitutionId = default(string), string UnionPayInstitutionId = default(string), string DinersClubInstitutionId = default(string), string CountryCode = default(string), string FileDestinationBin = default(string))
{
this.InstitutionId = InstitutionId;
this.InterbankCardAssociationId = InterbankCardAssociationId;
this.DiscoverInstitutionId = DiscoverInstitutionId;
this.UnionPayInstitutionId = UnionPayInstitutionId;
this.DinersClubInstitutionId = DinersClubInstitutionId;
this.CountryCode = CountryCode;
this.FileDestinationBin = FileDestinationBin;
}
Expand All @@ -68,6 +72,20 @@ public partial class CardProcessingConfigCommonAcquirer : IEquatable<CardProces
[DataMember(Name="discoverInstitutionId", EmitDefaultValue=false)]
public string DiscoverInstitutionId { get; set; }

/// <summary>
/// Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors.
/// </summary>
/// <value>Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors.</value>
[DataMember(Name="unionPayInstitutionId", EmitDefaultValue=false)]
public string UnionPayInstitutionId { get; set; }

/// <summary>
/// Assigned by Diners Club to identify the acquirer. Applicable for VPC processors.
/// </summary>
/// <value>Assigned by Diners Club to identify the acquirer. Applicable for VPC processors.</value>
[DataMember(Name="dinersClubInstitutionId", EmitDefaultValue=false)]
public string DinersClubInstitutionId { get; set; }

/// <summary>
/// ISO 4217 format. Applicable for VPC, GPX (gpx), EFTPOS, RUPAY, Prisma (prisma) and CUP processors.
/// </summary>
Expand All @@ -93,6 +111,8 @@ public override string ToString()
sb.Append(" InstitutionId: ").Append(InstitutionId).Append("\n");
sb.Append(" InterbankCardAssociationId: ").Append(InterbankCardAssociationId).Append("\n");
sb.Append(" DiscoverInstitutionId: ").Append(DiscoverInstitutionId).Append("\n");
sb.Append(" UnionPayInstitutionId: ").Append(UnionPayInstitutionId).Append("\n");
sb.Append(" DinersClubInstitutionId: ").Append(DinersClubInstitutionId).Append("\n");
sb.Append(" CountryCode: ").Append(CountryCode).Append("\n");
sb.Append(" FileDestinationBin: ").Append(FileDestinationBin).Append("\n");
sb.Append("}\n");
Expand Down Expand Up @@ -146,6 +166,16 @@ public bool Equals(CardProcessingConfigCommonAcquirer other)
this.DiscoverInstitutionId != null &&
this.DiscoverInstitutionId.Equals(other.DiscoverInstitutionId)
) &&
(
this.UnionPayInstitutionId == other.UnionPayInstitutionId ||
this.UnionPayInstitutionId != null &&
this.UnionPayInstitutionId.Equals(other.UnionPayInstitutionId)
) &&
(
this.DinersClubInstitutionId == other.DinersClubInstitutionId ||
this.DinersClubInstitutionId != null &&
this.DinersClubInstitutionId.Equals(other.DinersClubInstitutionId)
) &&
(
this.CountryCode == other.CountryCode ||
this.CountryCode != null &&
Expand Down Expand Up @@ -175,6 +205,10 @@ public override int GetHashCode()
hash = hash * 59 + this.InterbankCardAssociationId.GetHashCode();
if (this.DiscoverInstitutionId != null)
hash = hash * 59 + this.DiscoverInstitutionId.GetHashCode();
if (this.UnionPayInstitutionId != null)
hash = hash * 59 + this.UnionPayInstitutionId.GetHashCode();
if (this.DinersClubInstitutionId != null)
hash = hash * 59 + this.DinersClubInstitutionId.GetHashCode();
if (this.CountryCode != null)
hash = hash * 59 + this.CountryCode.GetHashCode();
if (this.FileDestinationBin != null)
Expand Down
Loading

0 comments on commit e2589f1

Please sign in to comment.