Skip to content

Commit 2b1fe23

Browse files
api-spec changes
1 parent decfe5e commit 2b1fe23

File tree

409 files changed

+5944
-2913
lines changed

Some content is hidden

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

409 files changed

+5944
-2913
lines changed

Api/InstrumentIdentifierApi.cs

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

Model/Boardingv1registrationsOrganizationInformationBusinessInformation.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -942,18 +942,18 @@ public override int GetHashCode()
942942
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
943943
{
944944
// Name (string) pattern
945-
//Regex regexName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
946-
//if (false == regexName.Match(this.Name).Success)
947-
//{
948-
// yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" });
949-
//}
945+
Regex regexName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
946+
if (false == regexName.Match(this.Name).Success)
947+
{
948+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" });
949+
}
950950

951951
// DoingBusinessAs (string) pattern
952-
//Regex regexDoingBusinessAs = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
953-
//if (false == regexDoingBusinessAs.Match(this.DoingBusinessAs).Success)
954-
//{
955-
// yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoingBusinessAs, must match a pattern of " + regexDoingBusinessAs, new [] { "DoingBusinessAs" });
956-
//}
952+
Regex regexDoingBusinessAs = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
953+
if (false == regexDoingBusinessAs.Match(this.DoingBusinessAs).Success)
954+
{
955+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DoingBusinessAs, must match a pattern of " + regexDoingBusinessAs, new [] { "DoingBusinessAs" });
956+
}
957957

958958
// Description (string) pattern
959959
Regex regexDescription = new Regex(@"[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&amp;!?%«»€₣«»€₣ ]{1,}$", RegexOptions.CultureInvariant);
@@ -963,11 +963,11 @@ public override int GetHashCode()
963963
}
964964

965965
// WebsiteUrl (string) pattern
966-
//Regex regexWebsiteUrl = new Regex(@"\\b((?:https?:\/\/|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))", RegexOptions.CultureInvariant);
967-
//if (false == regexWebsiteUrl.Match(this.WebsiteUrl).Success)
968-
//{
969-
// yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WebsiteUrl, must match a pattern of " + regexWebsiteUrl, new [] { "WebsiteUrl" });
970-
//}
966+
Regex regexWebsiteUrl = new Regex(@"\\b((?:https?:\/\/|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))", RegexOptions.CultureInvariant);
967+
if (false == regexWebsiteUrl.Match(this.WebsiteUrl).Success)
968+
{
969+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WebsiteUrl, must match a pattern of " + regexWebsiteUrl, new [] { "WebsiteUrl" });
970+
}
971971

972972
// TaxId (string) pattern
973973
Regex regexTaxId = new Regex(@"\\d{9}", RegexOptions.CultureInvariant);

Model/Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,25 +223,25 @@ public override int GetHashCode()
223223
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
224224
{
225225
// FirstName (string) pattern
226-
//Regex regexFirstName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
227-
//if (false == regexFirstName.Match(this.FirstName).Success)
228-
//{
229-
// yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, must match a pattern of " + regexFirstName, new [] { "FirstName" });
230-
//}
226+
Regex regexFirstName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
227+
if (false == regexFirstName.Match(this.FirstName).Success)
228+
{
229+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, must match a pattern of " + regexFirstName, new [] { "FirstName" });
230+
}
231231

232232
// MiddleName (string) pattern
233-
//Regex regexMiddleName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
234-
//if (false == regexMiddleName.Match(this.MiddleName).Success)
235-
//{
236-
// yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiddleName, must match a pattern of " + regexMiddleName, new [] { "MiddleName" });
237-
//}
233+
Regex regexMiddleName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
234+
if (false == regexMiddleName.Match(this.MiddleName).Success)
235+
{
236+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiddleName, must match a pattern of " + regexMiddleName, new [] { "MiddleName" });
237+
}
238238

239239
// LastName (string) pattern
240-
//Regex regexLastName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
241-
//if (false == regexLastName.Match(this.LastName).Success)
242-
//{
243-
// yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, must match a pattern of " + regexLastName, new [] { "LastName" });
244-
//}
240+
Regex regexLastName = new Regex(@"^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-]+$", RegexOptions.CultureInvariant);
241+
if (false == regexLastName.Match(this.LastName).Success)
242+
{
243+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, must match a pattern of " + regexLastName, new [] { "LastName" });
244+
}
245245

246246
// PhoneNumber (string) pattern
247247
Regex regexPhoneNumber = new Regex(@"^[0-9a-zA-Z\\\\+\\\\-]+$", RegexOptions.CultureInvariant);
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
namespace CyberSource.Model
2626
{
2727
/// <summary>
28-
/// PaymentsProductsCardProcessingConfigurationInformationConfigurations
28+
/// CardProcessingConfig
2929
/// </summary>
3030
[DataContract]
31-
public partial class PaymentsProductsCardProcessingConfigurationInformationConfigurations : IEquatable<PaymentsProductsCardProcessingConfigurationInformationConfigurations>, IValidatableObject
31+
public partial class CardProcessingConfig : IEquatable<CardProcessingConfig>, IValidatableObject
3232
{
3333
/// <summary>
34-
/// Initializes a new instance of the <see cref="PaymentsProductsCardProcessingConfigurationInformationConfigurations" /> class.
34+
/// Initializes a new instance of the <see cref="CardProcessingConfig" /> class.
3535
/// </summary>
3636
/// <param name="Common">Common.</param>
3737
/// <param name="Features">Features.</param>
38-
public PaymentsProductsCardProcessingConfigurationInformationConfigurations(PaymentsProductsCardProcessingConfigurationInformationConfigurationsCommon Common = default(PaymentsProductsCardProcessingConfigurationInformationConfigurationsCommon), PaymentsProductsCardProcessingConfigurationInformationConfigurationsFeatures Features = default(PaymentsProductsCardProcessingConfigurationInformationConfigurationsFeatures))
38+
public CardProcessingConfig(CardProcessingConfigCommon Common = default(CardProcessingConfigCommon), CardProcessingConfigFeatures Features = default(CardProcessingConfigFeatures))
3939
{
4040
this.Common = Common;
4141
this.Features = Features;
@@ -45,13 +45,13 @@ public partial class PaymentsProductsCardProcessingConfigurationInformationConfi
4545
/// Gets or Sets Common
4646
/// </summary>
4747
[DataMember(Name="common", EmitDefaultValue=false)]
48-
public PaymentsProductsCardProcessingConfigurationInformationConfigurationsCommon Common { get; set; }
48+
public CardProcessingConfigCommon Common { get; set; }
4949

5050
/// <summary>
5151
/// Gets or Sets Features
5252
/// </summary>
5353
[DataMember(Name="features", EmitDefaultValue=false)]
54-
public PaymentsProductsCardProcessingConfigurationInformationConfigurationsFeatures Features { get; set; }
54+
public CardProcessingConfigFeatures Features { get; set; }
5555

5656
/// <summary>
5757
/// Returns the string presentation of the object
@@ -60,7 +60,7 @@ public partial class PaymentsProductsCardProcessingConfigurationInformationConfi
6060
public override string ToString()
6161
{
6262
var sb = new StringBuilder();
63-
sb.Append("class PaymentsProductsCardProcessingConfigurationInformationConfigurations {\n");
63+
sb.Append("class CardProcessingConfig {\n");
6464
sb.Append(" Common: ").Append(Common).Append("\n");
6565
sb.Append(" Features: ").Append(Features).Append("\n");
6666
sb.Append("}\n");
@@ -84,15 +84,15 @@ public string ToJson()
8484
public override bool Equals(object obj)
8585
{
8686
// credit: http://stackoverflow.com/a/10454552/677735
87-
return this.Equals(obj as PaymentsProductsCardProcessingConfigurationInformationConfigurations);
87+
return this.Equals(obj as CardProcessingConfig);
8888
}
8989

9090
/// <summary>
91-
/// Returns true if PaymentsProductsCardProcessingConfigurationInformationConfigurations instances are equal
91+
/// Returns true if CardProcessingConfig instances are equal
9292
/// </summary>
93-
/// <param name="other">Instance of PaymentsProductsCardProcessingConfigurationInformationConfigurations to be compared</param>
93+
/// <param name="other">Instance of CardProcessingConfig to be compared</param>
9494
/// <returns>Boolean</returns>
95-
public bool Equals(PaymentsProductsCardProcessingConfigurationInformationConfigurations other)
95+
public bool Equals(CardProcessingConfig other)
9696
{
9797
// credit: http://stackoverflow.com/a/10454552/677735
9898
if (other == null)

0 commit comments

Comments
 (0)