Skip to content

Commit e2589f1

Browse files
Merge pull request #186 from CyberSource/release-sep24
api spec changes sep24
2 parents 0c14f15 + 5c93fe8 commit e2589f1

File tree

173 files changed

+15092
-724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+15092
-724
lines changed

Api/FlexAPIApi.cs

Lines changed: 415 additions & 0 deletions
Large diffs are not rendered by default.

Model/CardProcessingConfigCommon.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ public enum DefaultAuthTypeCodeEnum
8686
/// <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>
8787
/// <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>
8888
/// <param name="MerchantDescriptorInformation">MerchantDescriptorInformation.</param>
89-
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))
89+
/// <param name="GovernmentControlled">Indicates whether the merchant is government controlled. Applicable for VPC processors..</param>
90+
/// <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>
91+
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?))
9092
{
9193
this.Processors = Processors;
9294
this.AmexVendorCode = AmexVendorCode;
@@ -109,6 +111,8 @@ public enum DefaultAuthTypeCodeEnum
109111
this.SubMerchantBusinessName = SubMerchantBusinessName;
110112
this.PreferCobadgedSecondaryBrand = PreferCobadgedSecondaryBrand;
111113
this.MerchantDescriptorInformation = MerchantDescriptorInformation;
114+
this.GovernmentControlled = GovernmentControlled;
115+
this.DropBillingInfo = DropBillingInfo;
112116
}
113117

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

258+
/// <summary>
259+
/// Indicates whether the merchant is government controlled. Applicable for VPC processors.
260+
/// </summary>
261+
/// <value>Indicates whether the merchant is government controlled. Applicable for VPC processors.</value>
262+
[DataMember(Name="governmentControlled", EmitDefaultValue=false)]
263+
public bool? GovernmentControlled { get; set; }
264+
265+
/// <summary>
266+
/// 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.
267+
/// </summary>
268+
/// <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>
269+
[DataMember(Name="dropBillingInfo", EmitDefaultValue=false)]
270+
public bool? DropBillingInfo { get; set; }
271+
254272
/// <summary>
255273
/// Returns the string presentation of the object
256274
/// </summary>
@@ -280,6 +298,8 @@ public override string ToString()
280298
sb.Append(" SubMerchantBusinessName: ").Append(SubMerchantBusinessName).Append("\n");
281299
sb.Append(" PreferCobadgedSecondaryBrand: ").Append(PreferCobadgedSecondaryBrand).Append("\n");
282300
sb.Append(" MerchantDescriptorInformation: ").Append(MerchantDescriptorInformation).Append("\n");
301+
sb.Append(" GovernmentControlled: ").Append(GovernmentControlled).Append("\n");
302+
sb.Append(" DropBillingInfo: ").Append(DropBillingInfo).Append("\n");
283303
sb.Append("}\n");
284304
return sb.ToString();
285305
}
@@ -420,6 +440,16 @@ public bool Equals(CardProcessingConfigCommon other)
420440
this.MerchantDescriptorInformation == other.MerchantDescriptorInformation ||
421441
this.MerchantDescriptorInformation != null &&
422442
this.MerchantDescriptorInformation.Equals(other.MerchantDescriptorInformation)
443+
) &&
444+
(
445+
this.GovernmentControlled == other.GovernmentControlled ||
446+
this.GovernmentControlled != null &&
447+
this.GovernmentControlled.Equals(other.GovernmentControlled)
448+
) &&
449+
(
450+
this.DropBillingInfo == other.DropBillingInfo ||
451+
this.DropBillingInfo != null &&
452+
this.DropBillingInfo.Equals(other.DropBillingInfo)
423453
);
424454
}
425455

@@ -476,6 +506,10 @@ public override int GetHashCode()
476506
hash = hash * 59 + this.PreferCobadgedSecondaryBrand.GetHashCode();
477507
if (this.MerchantDescriptorInformation != null)
478508
hash = hash * 59 + this.MerchantDescriptorInformation.GetHashCode();
509+
if (this.GovernmentControlled != null)
510+
hash = hash * 59 + this.GovernmentControlled.GetHashCode();
511+
if (this.DropBillingInfo != null)
512+
hash = hash * 59 + this.DropBillingInfo.GetHashCode();
479513
return hash;
480514
}
481515
}

Model/CardProcessingConfigCommonAcquirer.cs

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@ public partial class CardProcessingConfigCommonAcquirer : IEquatable<CardProces
3636
/// <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>
3737
/// <param name="InterbankCardAssociationId">Number assigned by MasterCard to banks to identify the member in transactions. Applicable for VPC and GPX (gpx) processors..</param>
3838
/// <param name="DiscoverInstitutionId">Assigned by Discover to identify the acquirer. Applicable for VPC and GPX (gpx) processors..</param>
39+
/// <param name="UnionPayInstitutionId">Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors..</param>
40+
/// <param name="DinersClubInstitutionId">Assigned by Diners Club to identify the acquirer. Applicable for VPC processors..</param>
3941
/// <param name="CountryCode">ISO 4217 format. Applicable for VPC, GPX (gpx), EFTPOS, RUPAY, Prisma (prisma) and CUP processors..</param>
4042
/// <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>
41-
public CardProcessingConfigCommonAcquirer(string InstitutionId = default(string), string InterbankCardAssociationId = default(string), string DiscoverInstitutionId = default(string), string CountryCode = default(string), string FileDestinationBin = default(string))
43+
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))
4244
{
4345
this.InstitutionId = InstitutionId;
4446
this.InterbankCardAssociationId = InterbankCardAssociationId;
4547
this.DiscoverInstitutionId = DiscoverInstitutionId;
48+
this.UnionPayInstitutionId = UnionPayInstitutionId;
49+
this.DinersClubInstitutionId = DinersClubInstitutionId;
4650
this.CountryCode = CountryCode;
4751
this.FileDestinationBin = FileDestinationBin;
4852
}
@@ -68,6 +72,20 @@ public partial class CardProcessingConfigCommonAcquirer : IEquatable<CardProces
6872
[DataMember(Name="discoverInstitutionId", EmitDefaultValue=false)]
6973
public string DiscoverInstitutionId { get; set; }
7074

75+
/// <summary>
76+
/// Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors.
77+
/// </summary>
78+
/// <value>Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors.</value>
79+
[DataMember(Name="unionPayInstitutionId", EmitDefaultValue=false)]
80+
public string UnionPayInstitutionId { get; set; }
81+
82+
/// <summary>
83+
/// Assigned by Diners Club to identify the acquirer. Applicable for VPC processors.
84+
/// </summary>
85+
/// <value>Assigned by Diners Club to identify the acquirer. Applicable for VPC processors.</value>
86+
[DataMember(Name="dinersClubInstitutionId", EmitDefaultValue=false)]
87+
public string DinersClubInstitutionId { get; set; }
88+
7189
/// <summary>
7290
/// ISO 4217 format. Applicable for VPC, GPX (gpx), EFTPOS, RUPAY, Prisma (prisma) and CUP processors.
7391
/// </summary>
@@ -93,6 +111,8 @@ public override string ToString()
93111
sb.Append(" InstitutionId: ").Append(InstitutionId).Append("\n");
94112
sb.Append(" InterbankCardAssociationId: ").Append(InterbankCardAssociationId).Append("\n");
95113
sb.Append(" DiscoverInstitutionId: ").Append(DiscoverInstitutionId).Append("\n");
114+
sb.Append(" UnionPayInstitutionId: ").Append(UnionPayInstitutionId).Append("\n");
115+
sb.Append(" DinersClubInstitutionId: ").Append(DinersClubInstitutionId).Append("\n");
96116
sb.Append(" CountryCode: ").Append(CountryCode).Append("\n");
97117
sb.Append(" FileDestinationBin: ").Append(FileDestinationBin).Append("\n");
98118
sb.Append("}\n");
@@ -146,6 +166,16 @@ public bool Equals(CardProcessingConfigCommonAcquirer other)
146166
this.DiscoverInstitutionId != null &&
147167
this.DiscoverInstitutionId.Equals(other.DiscoverInstitutionId)
148168
) &&
169+
(
170+
this.UnionPayInstitutionId == other.UnionPayInstitutionId ||
171+
this.UnionPayInstitutionId != null &&
172+
this.UnionPayInstitutionId.Equals(other.UnionPayInstitutionId)
173+
) &&
174+
(
175+
this.DinersClubInstitutionId == other.DinersClubInstitutionId ||
176+
this.DinersClubInstitutionId != null &&
177+
this.DinersClubInstitutionId.Equals(other.DinersClubInstitutionId)
178+
) &&
149179
(
150180
this.CountryCode == other.CountryCode ||
151181
this.CountryCode != null &&
@@ -175,6 +205,10 @@ public override int GetHashCode()
175205
hash = hash * 59 + this.InterbankCardAssociationId.GetHashCode();
176206
if (this.DiscoverInstitutionId != null)
177207
hash = hash * 59 + this.DiscoverInstitutionId.GetHashCode();
208+
if (this.UnionPayInstitutionId != null)
209+
hash = hash * 59 + this.UnionPayInstitutionId.GetHashCode();
210+
if (this.DinersClubInstitutionId != null)
211+
hash = hash * 59 + this.DinersClubInstitutionId.GetHashCode();
178212
if (this.CountryCode != null)
179213
hash = hash * 59 + this.CountryCode.GetHashCode();
180214
if (this.FileDestinationBin != null)

0 commit comments

Comments
 (0)