diff --git a/Api/ChargebackDetailsApi.cs b/Api/ChargebackDetailsApi.cs new file mode 100644 index 00000000..1693b264 --- /dev/null +++ b/Api/ChargebackDetailsApi.cs @@ -0,0 +1,408 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp; +using CyberSource.Client; +using CyberSource.Model; +using NLog; +using AuthenticationSdk.util; + +namespace CyberSource.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChargebackDetailsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Get Chargeback Details + /// + /// + /// Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3ChargebackDetailsGet200Response + ReportingV3ChargebackDetailsGet200Response GetChargebackDetails (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Chargeback Details + /// + /// + /// Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3ChargebackDetailsGet200Response + ApiResponse GetChargebackDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Get Chargeback Details + /// + /// + /// Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3ChargebackDetailsGet200Response + System.Threading.Tasks.Task GetChargebackDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Chargeback Details + /// + /// + /// Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3ChargebackDetailsGet200Response) + System.Threading.Tasks.Task> GetChargebackDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ChargebackDetailsApi : IChargebackDetailsApi + { + private static Logger logger; + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ChargebackDetailsApi(string basePath) + { + Configuration = new Configuration(new ApiClient(basePath)); + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + // ensure API client has configuration ready + if (Configuration.ApiClient.Configuration == null) + { + Configuration.ApiClient.Configuration = Configuration; + } + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ChargebackDetailsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + Configuration = Configuration.Default; + else + Configuration = configuration; + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + Configuration.ApiClient.Configuration = Configuration; + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(string basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + logger.Error("InvalidOperationException : Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public Dictionary DefaultHeader() + { + return Configuration.DefaultHeader; + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + Configuration.AddDefaultHeader(key, value); + } + + /// + /// Get Chargeback Details Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3ChargebackDetailsGet200Response + public ReportingV3ChargebackDetailsGet200Response GetChargebackDetails (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetChargebackDetails\" STARTED"); + ApiResponse localVarResponse = GetChargebackDetailsWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetChargebackDetails\" ENDED"); + return localVarResponse.Data; + } + + /// + /// Get Chargeback Details Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3ChargebackDetailsGet200Response + public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + } + + var localVarPath = $"/reporting/v3/chargeback-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChargebackDetails", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3ChargebackDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3ChargebackDetailsGet200Response))); // Return statement + } + + /// + /// Get Chargeback Details Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3ChargebackDetailsGet200Response + public async System.Threading.Tasks.Task GetChargebackDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetChargebackDetailsAsync\" STARTED"); + ApiResponse localVarResponse = await GetChargebackDetailsAsyncWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetChargebackDetailsAsync\" STARTED"); + return localVarResponse.Data; + + } + + /// + /// Get Chargeback Details Chargeback Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3ChargebackDetailsGet200Response) + public async System.Threading.Tasks.Task> GetChargebackDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling ChargebackDetailsApi->GetChargebackDetails"); + } + + var localVarPath = $"/reporting/v3/chargeback-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int)localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChargebackDetails", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3ChargebackDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3ChargebackDetailsGet200Response))); // Return statement + } + } +} diff --git a/Api/ChargebackSummariesApi.cs b/Api/ChargebackSummariesApi.cs new file mode 100644 index 00000000..8d3b1242 --- /dev/null +++ b/Api/ChargebackSummariesApi.cs @@ -0,0 +1,408 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp; +using CyberSource.Client; +using CyberSource.Model; +using NLog; +using AuthenticationSdk.util; + +namespace CyberSource.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChargebackSummariesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Get Chargeback Summaries + /// + /// + /// Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3ChargebackSummariesGet200Response + ReportingV3ChargebackSummariesGet200Response GetChargebackSummaries (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Chargeback Summaries + /// + /// + /// Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3ChargebackSummariesGet200Response + ApiResponse GetChargebackSummariesWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Get Chargeback Summaries + /// + /// + /// Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3ChargebackSummariesGet200Response + System.Threading.Tasks.Task GetChargebackSummariesAsync (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Chargeback Summaries + /// + /// + /// Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3ChargebackSummariesGet200Response) + System.Threading.Tasks.Task> GetChargebackSummariesAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ChargebackSummariesApi : IChargebackSummariesApi + { + private static Logger logger; + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public ChargebackSummariesApi(string basePath) + { + Configuration = new Configuration(new ApiClient(basePath)); + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + // ensure API client has configuration ready + if (Configuration.ApiClient.Configuration == null) + { + Configuration.ApiClient.Configuration = Configuration; + } + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public ChargebackSummariesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + Configuration = Configuration.Default; + else + Configuration = configuration; + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + Configuration.ApiClient.Configuration = Configuration; + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(string basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + logger.Error("InvalidOperationException : Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public Dictionary DefaultHeader() + { + return Configuration.DefaultHeader; + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + Configuration.AddDefaultHeader(key, value); + } + + /// + /// Get Chargeback Summaries Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3ChargebackSummariesGet200Response + public ReportingV3ChargebackSummariesGet200Response GetChargebackSummaries (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetChargebackSummaries\" STARTED"); + ApiResponse localVarResponse = GetChargebackSummariesWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetChargebackSummaries\" ENDED"); + return localVarResponse.Data; + } + + /// + /// Get Chargeback Summaries Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3ChargebackSummariesGet200Response + public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargebackSummariesWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + } + + var localVarPath = $"/reporting/v3/chargeback-summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChargebackSummaries", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3ChargebackSummariesGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3ChargebackSummariesGet200Response))); // Return statement + } + + /// + /// Get Chargeback Summaries Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3ChargebackSummariesGet200Response + public async System.Threading.Tasks.Task GetChargebackSummariesAsync (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetChargebackSummariesAsync\" STARTED"); + ApiResponse localVarResponse = await GetChargebackSummariesAsyncWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetChargebackSummariesAsync\" STARTED"); + return localVarResponse.Data; + + } + + /// + /// Get Chargeback Summaries Chargeback Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3ChargebackSummariesGet200Response) + public async System.Threading.Tasks.Task> GetChargebackSummariesAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling ChargebackSummariesApi->GetChargebackSummaries"); + } + + var localVarPath = $"/reporting/v3/chargeback-summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int)localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetChargebackSummaries", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3ChargebackSummariesGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3ChargebackSummariesGet200Response))); // Return statement + } + } +} diff --git a/Api/ConversionDetailsApi.cs b/Api/ConversionDetailsApi.cs index 6224380e..14492003 100644 --- a/Api/ConversionDetailsApi.cs +++ b/Api/ConversionDetailsApi.cs @@ -35,7 +35,7 @@ public interface IConversionDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ConversionDetailsGet200Response ReportingV3ConversionDetailsGet200Response GetConversionDetail (DateTime? startTime, DateTime? endTime, string organizationId = null); @@ -48,7 +48,7 @@ public interface IConversionDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ConversionDetailsGet200Response ApiResponse GetConversionDetailWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); #endregion Synchronous Operations @@ -62,7 +62,7 @@ public interface IConversionDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ConversionDetailsGet200Response System.Threading.Tasks.Task GetConversionDetailAsync (DateTime? startTime, DateTime? endTime, string organizationId = null); @@ -75,7 +75,7 @@ public interface IConversionDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ConversionDetailsGet200Response) System.Threading.Tasks.Task> GetConversionDetailAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); #endregion Asynchronous Operations @@ -204,7 +204,7 @@ public void AddDefaultHeader(string key, string value) /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ConversionDetailsGet200Response public ReportingV3ConversionDetailsGet200Response GetConversionDetail (DateTime? startTime, DateTime? endTime, string organizationId = null) { @@ -220,7 +220,7 @@ public ReportingV3ConversionDetailsGet200Response GetConversionDetail (DateTime? /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ConversionDetailsGet200Response public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDetailWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) { @@ -307,7 +307,7 @@ public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDe /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ConversionDetailsGet200Response public async System.Threading.Tasks.Task GetConversionDetailAsync (DateTime? startTime, DateTime? endTime, string organizationId = null) { @@ -324,7 +324,7 @@ public async System.Threading.Tasks.TaskThrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ConversionDetailsGet200Response) public async System.Threading.Tasks.Task> GetConversionDetailAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) { diff --git a/Api/InterchangeClearingLevelDetailsApi.cs b/Api/InterchangeClearingLevelDetailsApi.cs new file mode 100644 index 00000000..e077ab5e --- /dev/null +++ b/Api/InterchangeClearingLevelDetailsApi.cs @@ -0,0 +1,408 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp; +using CyberSource.Client; +using CyberSource.Model; +using NLog; +using AuthenticationSdk.util; + +namespace CyberSource.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInterchangeClearingLevelDetailsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3InterchangeClearingLevelDetailsGet200Response + ReportingV3InterchangeClearingLevelDetailsGet200Response GetInterchangeClearingLevelDetails (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3InterchangeClearingLevelDetailsGet200Response + ApiResponse GetInterchangeClearingLevelDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3InterchangeClearingLevelDetailsGet200Response + System.Threading.Tasks.Task GetInterchangeClearingLevelDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// + /// Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3InterchangeClearingLevelDetailsGet200Response) + System.Threading.Tasks.Task> GetInterchangeClearingLevelDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InterchangeClearingLevelDetailsApi : IInterchangeClearingLevelDetailsApi + { + private static Logger logger; + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InterchangeClearingLevelDetailsApi(string basePath) + { + Configuration = new Configuration(new ApiClient(basePath)); + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + // ensure API client has configuration ready + if (Configuration.ApiClient.Configuration == null) + { + Configuration.ApiClient.Configuration = Configuration; + } + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InterchangeClearingLevelDetailsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + Configuration = Configuration.Default; + else + Configuration = configuration; + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + Configuration.ApiClient.Configuration = Configuration; + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(string basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + logger.Error("InvalidOperationException : Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public Dictionary DefaultHeader() + { + return Configuration.DefaultHeader; + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + Configuration.AddDefaultHeader(key, value); + } + + /// + /// Interchange Clearing Level data for an account or a merchant Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3InterchangeClearingLevelDetailsGet200Response + public ReportingV3InterchangeClearingLevelDetailsGet200Response GetInterchangeClearingLevelDetails (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetInterchangeClearingLevelDetails\" STARTED"); + ApiResponse localVarResponse = GetInterchangeClearingLevelDetailsWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetInterchangeClearingLevelDetails\" ENDED"); + return localVarResponse.Data; + } + + /// + /// Interchange Clearing Level data for an account or a merchant Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3InterchangeClearingLevelDetailsGet200Response + public ApiResponse< ReportingV3InterchangeClearingLevelDetailsGet200Response > GetInterchangeClearingLevelDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + } + + var localVarPath = $"/reporting/v3/interchange-clearing-level-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetInterchangeClearingLevelDetails", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3InterchangeClearingLevelDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3InterchangeClearingLevelDetailsGet200Response))); // Return statement + } + + /// + /// Interchange Clearing Level data for an account or a merchant Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3InterchangeClearingLevelDetailsGet200Response + public async System.Threading.Tasks.Task GetInterchangeClearingLevelDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetInterchangeClearingLevelDetailsAsync\" STARTED"); + ApiResponse localVarResponse = await GetInterchangeClearingLevelDetailsAsyncWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetInterchangeClearingLevelDetailsAsync\" STARTED"); + return localVarResponse.Data; + + } + + /// + /// Interchange Clearing Level data for an account or a merchant Interchange Clearing Level data for an account or a merchant + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3InterchangeClearingLevelDetailsGet200Response) + public async System.Threading.Tasks.Task> GetInterchangeClearingLevelDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling InterchangeClearingLevelDetailsApi->GetInterchangeClearingLevelDetails"); + } + + var localVarPath = $"/reporting/v3/interchange-clearing-level-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int)localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetInterchangeClearingLevelDetails", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3InterchangeClearingLevelDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3InterchangeClearingLevelDetailsGet200Response))); // Return statement + } + } +} diff --git a/Api/NetFundingsApi.cs b/Api/NetFundingsApi.cs index dfa77c84..ba01c724 100644 --- a/Api/NetFundingsApi.cs +++ b/Api/NetFundingsApi.cs @@ -35,7 +35,7 @@ public interface INetFundingsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// ReportingV3NetFundingsGet200Response ReportingV3NetFundingsGet200Response GetNetFundingDetails (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null); @@ -49,7 +49,7 @@ public interface INetFundingsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// ApiResponse of ReportingV3NetFundingsGet200Response ApiResponse GetNetFundingDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null); @@ -64,7 +64,7 @@ public interface INetFundingsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// Task of ReportingV3NetFundingsGet200Response System.Threading.Tasks.Task GetNetFundingDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null); @@ -78,7 +78,7 @@ public interface INetFundingsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// Task of ApiResponse (ReportingV3NetFundingsGet200Response) System.Threading.Tasks.Task> GetNetFundingDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null); @@ -208,7 +208,7 @@ public void AddDefaultHeader(string key, string value) /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// ReportingV3NetFundingsGet200Response public ReportingV3NetFundingsGet200Response GetNetFundingDetails (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null) @@ -225,7 +225,7 @@ public ReportingV3NetFundingsGet200Response GetNetFundingDetails (DateTime? star /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// ApiResponse of ReportingV3NetFundingsGet200Response public ApiResponse< ReportingV3NetFundingsGet200Response > GetNetFundingDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null) @@ -318,7 +318,7 @@ public ApiResponse< ReportingV3NetFundingsGet200Response > GetNetFundingDetailsW /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// Task of ReportingV3NetFundingsGet200Response public async System.Threading.Tasks.Task GetNetFundingDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null) @@ -336,7 +336,7 @@ public async System.Threading.Tasks.Task G /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid CyberSource Group Name. (optional) /// Task of ApiResponse (ReportingV3NetFundingsGet200Response) public async System.Threading.Tasks.Task> GetNetFundingDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null, string groupName = null) diff --git a/Api/PaymentBatchSummariesApi.cs b/Api/PaymentBatchSummariesApi.cs index e80eba76..80a5cb7d 100644 --- a/Api/PaymentBatchSummariesApi.cs +++ b/Api/PaymentBatchSummariesApi.cs @@ -35,7 +35,7 @@ public interface IPaymentBatchSummariesApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -51,7 +51,7 @@ public interface IPaymentBatchSummariesApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -68,7 +68,7 @@ public interface IPaymentBatchSummariesApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -84,7 +84,7 @@ public interface IPaymentBatchSummariesApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -216,7 +216,7 @@ public void AddDefaultHeader(string key, string value) /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -235,7 +235,7 @@ public ReportingV3PaymentBatchSummariesGet200Response GetPaymentBatchSummary (Da /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -341,7 +341,7 @@ public ApiResponse< ReportingV3PaymentBatchSummariesGet200Response > GetPaymentB /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -361,7 +361,7 @@ public async System.Threading.Tasks.TaskThrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) /// Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) /// Optional - Start day of week to breakdown data for weeks in a month (optional) diff --git a/Api/PurchaseAndRefundDetailsApi.cs b/Api/PurchaseAndRefundDetailsApi.cs index 138720c1..7b61da80 100644 --- a/Api/PurchaseAndRefundDetailsApi.cs +++ b/Api/PurchaseAndRefundDetailsApi.cs @@ -35,7 +35,7 @@ public interface IPurchaseAndRefundDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -53,7 +53,7 @@ public interface IPurchaseAndRefundDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -72,7 +72,7 @@ public interface IPurchaseAndRefundDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -90,7 +90,7 @@ public interface IPurchaseAndRefundDetailsApi : IApiAccessor /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -224,7 +224,7 @@ public void AddDefaultHeader(string key, string value) /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -245,7 +245,7 @@ public ReportingV3PurchaseRefundDetailsGet200Response GetPurchaseAndRefundDetail /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -363,7 +363,7 @@ public ApiResponse< ReportingV3PurchaseRefundDetailsGet200Response > GetPurchase /// Thrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -385,7 +385,7 @@ public async System.Threading.Tasks.TaskThrown when fails to make API call /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional, default to ALL) /// View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional, default to requestDate) /// Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) diff --git a/Api/ReportDefinitionsApi.cs b/Api/ReportDefinitionsApi.cs index 8174871a..752bad5b 100644 --- a/Api/ReportDefinitionsApi.cs +++ b/Api/ReportDefinitionsApi.cs @@ -36,7 +36,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportDefinitionsNameGet200Response ReportingV3ReportDefinitionsNameGet200Response GetResourceInfoByReportDefinition (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null); @@ -50,7 +50,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportDefinitionsNameGet200Response ApiResponse GetResourceInfoByReportDefinitionWithHttpInfo (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null); /// @@ -61,7 +61,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportDefinitionsGet200Response ReportingV3ReportDefinitionsGet200Response GetResourceV2Info (string subscriptionType = null, string organizationId = null); @@ -73,7 +73,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportDefinitionsGet200Response ApiResponse GetResourceV2InfoWithHttpInfo (string subscriptionType = null, string organizationId = null); #endregion Synchronous Operations @@ -88,7 +88,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportDefinitionsNameGet200Response System.Threading.Tasks.Task GetResourceInfoByReportDefinitionAsync (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null); @@ -102,7 +102,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportDefinitionsNameGet200Response) System.Threading.Tasks.Task> GetResourceInfoByReportDefinitionAsyncWithHttpInfo (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null); /// @@ -113,7 +113,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportDefinitionsGet200Response System.Threading.Tasks.Task GetResourceV2InfoAsync (string subscriptionType = null, string organizationId = null); @@ -125,7 +125,7 @@ public interface IReportDefinitionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportDefinitionsGet200Response) System.Threading.Tasks.Task> GetResourceV2InfoAsyncWithHttpInfo (string subscriptionType = null, string organizationId = null); #endregion Asynchronous Operations @@ -255,7 +255,7 @@ public void AddDefaultHeader(string key, string value) /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportDefinitionsNameGet200Response public ReportingV3ReportDefinitionsNameGet200Response GetResourceInfoByReportDefinition (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null) { @@ -272,7 +272,7 @@ public ReportingV3ReportDefinitionsNameGet200Response GetResourceInfoByReportDef /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportDefinitionsNameGet200Response public ApiResponse< ReportingV3ReportDefinitionsNameGet200Response > GetResourceInfoByReportDefinitionWithHttpInfo (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null) { @@ -358,7 +358,7 @@ public ApiResponse< ReportingV3ReportDefinitionsNameGet200Response > GetResource /// Name of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportDefinitionsNameGet200Response public async System.Threading.Tasks.Task GetResourceInfoByReportDefinitionAsync (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null) { @@ -376,7 +376,7 @@ public async System.Threading.Tasks.TaskName of the Report definition to retrieve /// The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) /// The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportDefinitionsNameGet200Response) public async System.Threading.Tasks.Task> GetResourceInfoByReportDefinitionAsyncWithHttpInfo (string reportDefinitionName, string subscriptionType = null, string reportMimeType = null, string organizationId = null) { @@ -459,7 +459,7 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportDefinitionsGet200Response public ReportingV3ReportDefinitionsGet200Response GetResourceV2Info (string subscriptionType = null, string organizationId = null) { @@ -474,7 +474,7 @@ public ReportingV3ReportDefinitionsGet200Response GetResourceV2Info (string subs /// /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportDefinitionsGet200Response public ApiResponse< ReportingV3ReportDefinitionsGet200Response > GetResourceV2InfoWithHttpInfo (string subscriptionType = null, string organizationId = null) { @@ -542,7 +542,7 @@ public ApiResponse< ReportingV3ReportDefinitionsGet200Response > GetResourceV2In /// /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportDefinitionsGet200Response public async System.Threading.Tasks.Task GetResourceV2InfoAsync (string subscriptionType = null, string organizationId = null) { @@ -558,7 +558,7 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportDefinitionsGet200Response) public async System.Threading.Tasks.Task> GetResourceV2InfoAsyncWithHttpInfo (string subscriptionType = null, string organizationId = null) { diff --git a/Api/ReportDownloadsApi.cs b/Api/ReportDownloadsApi.cs index a835f2cd..9315a42d 100644 --- a/Api/ReportDownloadsApi.cs +++ b/Api/ReportDownloadsApi.cs @@ -35,7 +35,7 @@ public interface IReportDownloadsApi : IApiAccessor /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// void DownloadReport (DateTime? reportDate, string reportName, string organizationId = null); @@ -48,7 +48,7 @@ public interface IReportDownloadsApi : IApiAccessor /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) ApiResponse DownloadReportWithHttpInfo (DateTime? reportDate, string reportName, string organizationId = null); #endregion Synchronous Operations @@ -62,7 +62,7 @@ public interface IReportDownloadsApi : IApiAccessor /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void System.Threading.Tasks.Task DownloadReportAsync (DateTime? reportDate, string reportName, string organizationId = null); @@ -75,7 +75,7 @@ public interface IReportDownloadsApi : IApiAccessor /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse System.Threading.Tasks.Task> DownloadReportAsyncWithHttpInfo (DateTime? reportDate, string reportName, string organizationId = null); #endregion Asynchronous Operations @@ -204,7 +204,7 @@ public void AddDefaultHeader(string key, string value) /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// public void DownloadReport (DateTime? reportDate, string reportName, string organizationId = null) { @@ -218,7 +218,7 @@ public void DownloadReport (DateTime? reportDate, string reportName, string orga /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) public ApiResponse DownloadReportWithHttpInfo (DateTime? reportDate, string reportName, string organizationId = null) { @@ -305,7 +305,7 @@ public ApiResponse DownloadReportWithHttpInfo (DateTime? reportDate, str /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void public async System.Threading.Tasks.Task DownloadReportAsync (DateTime? reportDate, string reportName, string organizationId = null) { @@ -320,7 +320,7 @@ public async System.Threading.Tasks.Task DownloadReportAsync (DateTime? reportDa /// Thrown when fails to make API call /// Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 /// Name of the report to download - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> DownloadReportAsyncWithHttpInfo (DateTime? reportDate, string reportName, string organizationId = null) { diff --git a/Api/ReportSubscriptionsApi.cs b/Api/ReportSubscriptionsApi.cs index 7407d347..61410d80 100644 --- a/Api/ReportSubscriptionsApi.cs +++ b/Api/ReportSubscriptionsApi.cs @@ -34,7 +34,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// void CreateStandardOrClassicSubscription (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null); @@ -46,7 +46,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) ApiResponse CreateStandardOrClassicSubscriptionWithHttpInfo (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null); /// @@ -57,7 +57,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// void CreateSubscription (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null); @@ -69,7 +69,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) ApiResponse CreateSubscriptionWithHttpInfo (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null); /// @@ -80,7 +80,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// void DeleteSubscription (string reportName, string organizationId = null); @@ -92,7 +92,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) ApiResponse DeleteSubscriptionWithHttpInfo (string reportName, string organizationId = null); /// @@ -102,7 +102,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportSubscriptionsGet200Response ReportingV3ReportSubscriptionsGet200Response GetAllSubscriptions (string organizationId = null); @@ -113,7 +113,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportSubscriptionsGet200Response ApiResponse GetAllSubscriptionsWithHttpInfo (string organizationId = null); /// @@ -124,7 +124,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportSubscriptionsGet200ResponseSubscriptions ReportingV3ReportSubscriptionsGet200ResponseSubscriptions GetSubscription (string reportName, string organizationId = null); @@ -136,7 +136,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportSubscriptionsGet200ResponseSubscriptions ApiResponse GetSubscriptionWithHttpInfo (string reportName, string organizationId = null); #endregion Synchronous Operations @@ -149,7 +149,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void System.Threading.Tasks.Task CreateStandardOrClassicSubscriptionAsync (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null); @@ -161,7 +161,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse System.Threading.Tasks.Task> CreateStandardOrClassicSubscriptionAsyncWithHttpInfo (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null); /// @@ -172,7 +172,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void System.Threading.Tasks.Task CreateSubscriptionAsync (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null); @@ -184,7 +184,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse System.Threading.Tasks.Task> CreateSubscriptionAsyncWithHttpInfo (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null); /// @@ -195,7 +195,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void System.Threading.Tasks.Task DeleteSubscriptionAsync (string reportName, string organizationId = null); @@ -207,7 +207,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse System.Threading.Tasks.Task> DeleteSubscriptionAsyncWithHttpInfo (string reportName, string organizationId = null); /// @@ -217,7 +217,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportSubscriptionsGet200Response System.Threading.Tasks.Task GetAllSubscriptionsAsync (string organizationId = null); @@ -228,7 +228,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportSubscriptionsGet200Response) System.Threading.Tasks.Task> GetAllSubscriptionsAsyncWithHttpInfo (string organizationId = null); /// @@ -239,7 +239,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportSubscriptionsGet200ResponseSubscriptions System.Threading.Tasks.Task GetSubscriptionAsync (string reportName, string organizationId = null); @@ -251,7 +251,7 @@ public interface IReportSubscriptionsApi : IApiAccessor /// /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportSubscriptionsGet200ResponseSubscriptions) System.Threading.Tasks.Task> GetSubscriptionAsyncWithHttpInfo (string reportName, string organizationId = null); #endregion Asynchronous Operations @@ -379,7 +379,7 @@ public void AddDefaultHeader(string key, string value) /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// public void CreateStandardOrClassicSubscription (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null) { @@ -392,7 +392,7 @@ public void CreateStandardOrClassicSubscription (PredefinedSubscriptionRequestBe /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) public ApiResponse CreateStandardOrClassicSubscriptionWithHttpInfo (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null) { @@ -478,7 +478,7 @@ public ApiResponse CreateStandardOrClassicSubscriptionWithHttpInfo (Pred /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void public async System.Threading.Tasks.Task CreateStandardOrClassicSubscriptionAsync (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null) { @@ -492,7 +492,7 @@ public async System.Threading.Tasks.Task CreateStandardOrClassicSubscriptionAsyn /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateStandardOrClassicSubscriptionAsyncWithHttpInfo (PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, string organizationId = null) { @@ -577,7 +577,7 @@ public async System.Threading.Tasks.Task> CreateStandardOrCl /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// public void CreateSubscription (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null) { @@ -590,7 +590,7 @@ public void CreateSubscription (CreateReportSubscriptionRequest createReportSubs /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) public ApiResponse CreateSubscriptionWithHttpInfo (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null) { @@ -676,7 +676,7 @@ public ApiResponse CreateSubscriptionWithHttpInfo (CreateReportSubscript /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void public async System.Threading.Tasks.Task CreateSubscriptionAsync (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null) { @@ -690,7 +690,7 @@ public async System.Threading.Tasks.Task CreateSubscriptionAsync (CreateReportSu /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateSubscriptionAsyncWithHttpInfo (CreateReportSubscriptionRequest createReportSubscriptionRequest, string organizationId = null) { @@ -775,7 +775,7 @@ public async System.Threading.Tasks.Task> CreateSubscription /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// public void DeleteSubscription (string reportName, string organizationId = null) { @@ -788,7 +788,7 @@ public void DeleteSubscription (string reportName, string organizationId = null) /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) public ApiResponse DeleteSubscriptionWithHttpInfo (string reportName, string organizationId = null) { @@ -862,7 +862,7 @@ public ApiResponse DeleteSubscriptionWithHttpInfo (string reportName, st /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void public async System.Threading.Tasks.Task DeleteSubscriptionAsync (string reportName, string organizationId = null) { @@ -876,7 +876,7 @@ public async System.Threading.Tasks.Task DeleteSubscriptionAsync (string reportN /// /// Thrown when fails to make API call /// Name of the Report to Delete - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteSubscriptionAsyncWithHttpInfo (string reportName, string organizationId = null) { @@ -948,7 +948,7 @@ public async System.Threading.Tasks.Task> DeleteSubscription /// Get All Subscriptions View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportSubscriptionsGet200Response public ReportingV3ReportSubscriptionsGet200Response GetAllSubscriptions (string organizationId = null) { @@ -962,7 +962,7 @@ public ReportingV3ReportSubscriptionsGet200Response GetAllSubscriptions (string /// Get All Subscriptions View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportSubscriptionsGet200Response public ApiResponse< ReportingV3ReportSubscriptionsGet200Response > GetAllSubscriptionsWithHttpInfo (string organizationId = null) { @@ -1024,7 +1024,7 @@ public ApiResponse< ReportingV3ReportSubscriptionsGet200Response > GetAllSubscri /// Get All Subscriptions View a summary of all report subscriptions. /// /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportSubscriptionsGet200Response public async System.Threading.Tasks.Task GetAllSubscriptionsAsync (string organizationId = null) { @@ -1039,7 +1039,7 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportSubscriptionsGet200Response) public async System.Threading.Tasks.Task> GetAllSubscriptionsAsyncWithHttpInfo (string organizationId = null) { @@ -1101,7 +1101,7 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportSubscriptionsGet200ResponseSubscriptions public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions GetSubscription (string reportName, string organizationId = null) { @@ -1116,7 +1116,7 @@ public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions GetSubscription /// /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportSubscriptionsGet200ResponseSubscriptions public ApiResponse< ReportingV3ReportSubscriptionsGet200ResponseSubscriptions > GetSubscriptionWithHttpInfo (string reportName, string organizationId = null) { @@ -1190,7 +1190,7 @@ public ApiResponse< ReportingV3ReportSubscriptionsGet200ResponseSubscriptions > /// /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportSubscriptionsGet200ResponseSubscriptions public async System.Threading.Tasks.Task GetSubscriptionAsync (string reportName, string organizationId = null) { @@ -1206,7 +1206,7 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// Name of the Report to Retrieve - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportSubscriptionsGet200ResponseSubscriptions) public async System.Threading.Tasks.Task> GetSubscriptionAsyncWithHttpInfo (string reportName, string organizationId = null) { diff --git a/Api/ReportsApi.cs b/Api/ReportsApi.cs index c7b0708d..7ba3311c 100644 --- a/Api/ReportsApi.cs +++ b/Api/ReportsApi.cs @@ -34,7 +34,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// void CreateReport (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null); @@ -46,7 +46,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) ApiResponse CreateReportWithHttpInfo (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null); /// @@ -57,7 +57,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportsIdGet200Response ReportingV3ReportsIdGet200Response GetReportByReportId (string reportId, string organizationId = null); @@ -69,7 +69,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportsIdGet200Response ApiResponse GetReportByReportIdWithHttpInfo (string reportId, string organizationId = null); /// @@ -82,7 +82,7 @@ public interface IReportsApi : IApiAccessor /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -101,7 +101,7 @@ public interface IReportsApi : IApiAccessor /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -119,7 +119,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void System.Threading.Tasks.Task CreateReportAsync (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null); @@ -131,7 +131,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse System.Threading.Tasks.Task> CreateReportAsyncWithHttpInfo (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null); /// @@ -142,7 +142,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportsIdGet200Response System.Threading.Tasks.Task GetReportByReportIdAsync (string reportId, string organizationId = null); @@ -154,7 +154,7 @@ public interface IReportsApi : IApiAccessor /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportsIdGet200Response) System.Threading.Tasks.Task> GetReportByReportIdAsyncWithHttpInfo (string reportId, string organizationId = null); /// @@ -167,7 +167,7 @@ public interface IReportsApi : IApiAccessor /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -186,7 +186,7 @@ public interface IReportsApi : IApiAccessor /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -319,7 +319,7 @@ public void AddDefaultHeader(string key, string value) /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// public void CreateReport (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null) { @@ -332,7 +332,7 @@ public void CreateReport (CreateAdhocReportRequest createAdhocReportRequest, str /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of Object(void) public ApiResponse CreateReportWithHttpInfo (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null) { @@ -418,7 +418,7 @@ public ApiResponse CreateReportWithHttpInfo (CreateAdhocReportRequest cr /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of void public async System.Threading.Tasks.Task CreateReportAsync (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null) { @@ -432,7 +432,7 @@ public async System.Threading.Tasks.Task CreateReportAsync (CreateAdhocReportReq /// /// Thrown when fails to make API call /// Report subscription request payload - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateReportAsyncWithHttpInfo (CreateAdhocReportRequest createAdhocReportRequest, string organizationId = null) { @@ -517,7 +517,7 @@ public async System.Threading.Tasks.Task> CreateReportAsyncW /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ReportingV3ReportsIdGet200Response public ReportingV3ReportsIdGet200Response GetReportByReportId (string reportId, string organizationId = null) { @@ -532,7 +532,7 @@ public ReportingV3ReportsIdGet200Response GetReportByReportId (string reportId, /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// ApiResponse of ReportingV3ReportsIdGet200Response public ApiResponse< ReportingV3ReportsIdGet200Response > GetReportByReportIdWithHttpInfo (string reportId, string organizationId = null) { @@ -607,7 +607,7 @@ public ApiResponse< ReportingV3ReportsIdGet200Response > GetReportByReportIdWith /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ReportingV3ReportsIdGet200Response public async System.Threading.Tasks.Task GetReportByReportIdAsync (string reportId, string organizationId = null) { @@ -623,7 +623,7 @@ public async System.Threading.Tasks.Task Get /// /// Thrown when fails to make API call /// Valid Report Id - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Task of ApiResponse (ReportingV3ReportsIdGet200Response) public async System.Threading.Tasks.Task> GetReportByReportIdAsyncWithHttpInfo (string reportId, string organizationId = null) { @@ -699,7 +699,7 @@ public async System.Threading.Tasks.TaskValid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -721,7 +721,7 @@ public ReportingV3ReportsGet200Response SearchReports (DateTime? startTime, Date /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -849,7 +849,7 @@ public ApiResponse< ReportingV3ReportsGet200Response > SearchReportsWithHttpInfo /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) @@ -872,7 +872,7 @@ public async System.Threading.Tasks.Task Searc /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) /// Specify time you would like to search Valid values: - reportTimeFrame - executedTime - /// Valid Cybersource Organization Id (optional) + /// Valid Organization Id (optional) /// Valid Report Format Valid values: - application/xml - text/csv (optional) /// Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) /// Valid Report Name (optional) diff --git a/Api/RetrievalDetailsApi.cs b/Api/RetrievalDetailsApi.cs new file mode 100644 index 00000000..107d451c --- /dev/null +++ b/Api/RetrievalDetailsApi.cs @@ -0,0 +1,408 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp; +using CyberSource.Client; +using CyberSource.Model; +using NLog; +using AuthenticationSdk.util; + +namespace CyberSource.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IRetrievalDetailsApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Get Retrieval Details + /// + /// + /// Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3RetrievalDetailsGet200Response + ReportingV3RetrievalDetailsGet200Response GetRetrievalDetails (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Retrieval Details + /// + /// + /// Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3RetrievalDetailsGet200Response + ApiResponse GetRetrievalDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Get Retrieval Details + /// + /// + /// Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3RetrievalDetailsGet200Response + System.Threading.Tasks.Task GetRetrievalDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Retrieval Details + /// + /// + /// Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3RetrievalDetailsGet200Response) + System.Threading.Tasks.Task> GetRetrievalDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class RetrievalDetailsApi : IRetrievalDetailsApi + { + private static Logger logger; + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public RetrievalDetailsApi(string basePath) + { + Configuration = new Configuration(new ApiClient(basePath)); + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + // ensure API client has configuration ready + if (Configuration.ApiClient.Configuration == null) + { + Configuration.ApiClient.Configuration = Configuration; + } + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public RetrievalDetailsApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + Configuration = Configuration.Default; + else + Configuration = configuration; + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + Configuration.ApiClient.Configuration = Configuration; + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(string basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + logger.Error("InvalidOperationException : Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public Dictionary DefaultHeader() + { + return Configuration.DefaultHeader; + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + Configuration.AddDefaultHeader(key, value); + } + + /// + /// Get Retrieval Details Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3RetrievalDetailsGet200Response + public ReportingV3RetrievalDetailsGet200Response GetRetrievalDetails (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetRetrievalDetails\" STARTED"); + ApiResponse localVarResponse = GetRetrievalDetailsWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetRetrievalDetails\" ENDED"); + return localVarResponse.Data; + } + + /// + /// Get Retrieval Details Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3RetrievalDetailsGet200Response + public ApiResponse< ReportingV3RetrievalDetailsGet200Response > GetRetrievalDetailsWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + } + + var localVarPath = $"/reporting/v3/retrieval-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetrievalDetails", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3RetrievalDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3RetrievalDetailsGet200Response))); // Return statement + } + + /// + /// Get Retrieval Details Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3RetrievalDetailsGet200Response + public async System.Threading.Tasks.Task GetRetrievalDetailsAsync (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetRetrievalDetailsAsync\" STARTED"); + ApiResponse localVarResponse = await GetRetrievalDetailsAsyncWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetRetrievalDetailsAsync\" STARTED"); + return localVarResponse.Data; + + } + + /// + /// Get Retrieval Details Retrieval Detail Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3RetrievalDetailsGet200Response) + public async System.Threading.Tasks.Task> GetRetrievalDetailsAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling RetrievalDetailsApi->GetRetrievalDetails"); + } + + var localVarPath = $"/reporting/v3/retrieval-details"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int)localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetrievalDetails", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3RetrievalDetailsGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3RetrievalDetailsGet200Response))); // Return statement + } + } +} diff --git a/Api/RetrievalSummariesApi.cs b/Api/RetrievalSummariesApi.cs new file mode 100644 index 00000000..805cc912 --- /dev/null +++ b/Api/RetrievalSummariesApi.cs @@ -0,0 +1,408 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using RestSharp; +using CyberSource.Client; +using CyberSource.Model; +using NLog; +using AuthenticationSdk.util; + +namespace CyberSource.Api +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IRetrievalSummariesApi : IApiAccessor + { + #region Synchronous Operations + /// + /// Get Retrieval Summaries + /// + /// + /// Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3RetrievalSummariesGet200Response + ReportingV3RetrievalSummariesGet200Response GetRetrievalSummary (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Retrieval Summaries + /// + /// + /// Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3RetrievalSummariesGet200Response + ApiResponse GetRetrievalSummaryWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Synchronous Operations + #region Asynchronous Operations + /// + /// Get Retrieval Summaries + /// + /// + /// Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3RetrievalSummariesGet200Response + System.Threading.Tasks.Task GetRetrievalSummaryAsync (DateTime? startTime, DateTime? endTime, string organizationId = null); + + /// + /// Get Retrieval Summaries + /// + /// + /// Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3RetrievalSummariesGet200Response) + System.Threading.Tasks.Task> GetRetrievalSummaryAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class RetrievalSummariesApi : IRetrievalSummariesApi + { + private static Logger logger; + private ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public RetrievalSummariesApi(string basePath) + { + Configuration = new Configuration(new ApiClient(basePath)); + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + // ensure API client has configuration ready + if (Configuration.ApiClient.Configuration == null) + { + Configuration.ApiClient.Configuration = Configuration; + } + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public RetrievalSummariesApi(Configuration configuration = null) + { + if (configuration == null) // use the default one in Configuration + Configuration = Configuration.Default; + else + Configuration = configuration; + + ExceptionFactory = Configuration.DefaultExceptionFactory; + + Configuration.ApiClient.Configuration = Configuration; + + if (logger == null) + { + logger = LogManager.GetCurrentClassLogger(); + } + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return Configuration.ApiClient.RestClient.BaseUrl.ToString(); + } + + /// + /// Sets the base path of the API client. + /// + /// The base path + [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] + public void SetBasePath(string basePath) + { + // do nothing + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Configuration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + logger.Error("InvalidOperationException : Multicast delegate for ExceptionFactory is unsupported."); + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Gets the default header. + /// + /// Dictionary of HTTP header + [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] + public Dictionary DefaultHeader() + { + return Configuration.DefaultHeader; + } + + /// + /// Add default header. + /// + /// Header field name. + /// Header field value. + /// + [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] + public void AddDefaultHeader(string key, string value) + { + Configuration.AddDefaultHeader(key, value); + } + + /// + /// Get Retrieval Summaries Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ReportingV3RetrievalSummariesGet200Response + public ReportingV3RetrievalSummariesGet200Response GetRetrievalSummary (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetRetrievalSummary\" STARTED"); + ApiResponse localVarResponse = GetRetrievalSummaryWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetRetrievalSummary\" ENDED"); + return localVarResponse.Data; + } + + /// + /// Get Retrieval Summaries Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// ApiResponse of ReportingV3RetrievalSummariesGet200Response + public ApiResponse< ReportingV3RetrievalSummariesGet200Response > GetRetrievalSummaryWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + } + + var localVarPath = $"/reporting/v3/retrieval-summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetrievalSummary", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3RetrievalSummariesGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3RetrievalSummariesGet200Response))); // Return statement + } + + /// + /// Get Retrieval Summaries Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ReportingV3RetrievalSummariesGet200Response + public async System.Threading.Tasks.Task GetRetrievalSummaryAsync (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + logger.Debug("CALLING API \"GetRetrievalSummaryAsync\" STARTED"); + ApiResponse localVarResponse = await GetRetrievalSummaryAsyncWithHttpInfo(startTime, endTime, organizationId); + logger.Debug("CALLING API \"GetRetrievalSummaryAsync\" STARTED"); + return localVarResponse.Data; + + } + + /// + /// Get Retrieval Summaries Retrieval Summary Report Description + /// + /// Thrown when fails to make API call + /// Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + /// Valid Organization Id (optional) + /// Task of ApiResponse (ReportingV3RetrievalSummariesGet200Response) + public async System.Threading.Tasks.Task> GetRetrievalSummaryAsyncWithHttpInfo (DateTime? startTime, DateTime? endTime, string organizationId = null) + { + // verify the required parameter 'startTime' is set + if (startTime == null) + { + logger.Error("ApiException : Missing required parameter 'startTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + throw new ApiException(400, "Missing required parameter 'startTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + } + // verify the required parameter 'endTime' is set + if (endTime == null) + { + logger.Error("ApiException : Missing required parameter 'endTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + throw new ApiException(400, "Missing required parameter 'endTime' when calling RetrievalSummariesApi->GetRetrievalSummary"); + } + + var localVarPath = $"/reporting/v3/retrieval-summaries"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new Dictionary(); + var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + object localVarPostBody = null; + + // to determine the Content-Type header + string[] localVarHttpContentTypes = new string[] { + "application/json;charset=utf-8" + }; + string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + string[] localVarHttpHeaderAccepts = new string[] { + "application/hal+json", + "application/xml" + }; + string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); + if (localVarHttpHeaderAccept != null) + { + localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); + } + + if (startTime != null) + { + localVarQueryParams.Add("startTime", Configuration.ApiClient.ParameterToString(startTime)); // query parameter + } + if (endTime != null) + { + localVarQueryParams.Add("endTime", Configuration.ApiClient.ParameterToString(endTime)); // query parameter + } + if (organizationId != null) + { + localVarQueryParams.Add("organizationId", Configuration.ApiClient.ParameterToString(organizationId)); // query parameter + } + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + logger.Debug($"HTTP Request Body :\n{LogUtility.ConvertDictionaryToString(localVarQueryParams)}"); + + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int)localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("GetRetrievalSummary", localVarResponse); + if (exception != null) + { + logger.Error($"Exception : {exception.Message}"); + throw exception; + } + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + (ReportingV3RetrievalSummariesGet200Response) Configuration.ApiClient.Deserialize(localVarResponse, typeof(ReportingV3RetrievalSummariesGet200Response))); // Return statement + } + } +} diff --git a/Model/CreateAdhocReportRequest.cs b/Model/CreateAdhocReportRequest.cs index 8c4fb314..c8dbbf53 100644 --- a/Model/CreateAdhocReportRequest.cs +++ b/Model/CreateAdhocReportRequest.cs @@ -297,18 +297,6 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OrganizationId, must match a pattern of " + regexOrganizationId, new [] { "OrganizationId" }); } - // ReportDefinitionName (string) maxLength - if(this.ReportDefinitionName != null && this.ReportDefinitionName.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, length must be less than or equal to 80.", new [] { "ReportDefinitionName" }); - } - - // ReportDefinitionName (string) minLength - if(this.ReportDefinitionName != null && this.ReportDefinitionName.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, length must be greater than or equal to 1.", new [] { "ReportDefinitionName" }); - } - // ReportDefinitionName (string) pattern Regex regexReportDefinitionName = new Regex(@"[a-zA-Z0-9-]+", RegexOptions.CultureInvariant); if (false == regexReportDefinitionName.Match(this.ReportDefinitionName).Success) @@ -316,18 +304,6 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, must match a pattern of " + regexReportDefinitionName, new [] { "ReportDefinitionName" }); } - // ReportName (string) maxLength - if(this.ReportName != null && this.ReportName.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportName, length must be less than or equal to 128.", new [] { "ReportName" }); - } - - // ReportName (string) minLength - if(this.ReportName != null && this.ReportName.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportName, length must be greater than or equal to 1.", new [] { "ReportName" }); - } - // ReportName (string) pattern Regex regexReportName = new Regex(@"[a-zA-Z0-9-_ ]+", RegexOptions.CultureInvariant); if (false == regexReportName.Match(this.ReportName).Success) diff --git a/Model/CreateReportSubscriptionRequest.cs b/Model/CreateReportSubscriptionRequest.cs index f6bb57e3..ba9bf5e1 100644 --- a/Model/CreateReportSubscriptionRequest.cs +++ b/Model/CreateReportSubscriptionRequest.cs @@ -390,18 +390,6 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OrganizationId, must match a pattern of " + regexOrganizationId, new [] { "OrganizationId" }); } - // ReportDefinitionName (string) maxLength - if(this.ReportDefinitionName != null && this.ReportDefinitionName.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, length must be less than or equal to 80.", new [] { "ReportDefinitionName" }); - } - - // ReportDefinitionName (string) minLength - if(this.ReportDefinitionName != null && this.ReportDefinitionName.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, length must be greater than or equal to 1.", new [] { "ReportDefinitionName" }); - } - // ReportDefinitionName (string) pattern Regex regexReportDefinitionName = new Regex(@"[a-zA-Z0-9-]+", RegexOptions.CultureInvariant); if (false == regexReportDefinitionName.Match(this.ReportDefinitionName).Success) @@ -416,18 +404,6 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportInterval, must match a pattern of " + regexReportInterval, new [] { "ReportInterval" }); } - // ReportName (string) maxLength - if(this.ReportName != null && this.ReportName.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportName, length must be less than or equal to 128.", new [] { "ReportName" }); - } - - // ReportName (string) minLength - if(this.ReportName != null && this.ReportName.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportName, length must be greater than or equal to 1.", new [] { "ReportName" }); - } - // ReportName (string) pattern Regex regexReportName = new Regex(@"[a-zA-Z0-9-_ ]+", RegexOptions.CultureInvariant); if (false == regexReportName.Match(this.ReportName).Success) @@ -436,13 +412,13 @@ public override int GetHashCode() } // StartDay (int?) maximum - if(this.StartDay >= (int?)31) + if(this.StartDay > (int?)31) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartDay, must be a value less than or equal to 31.", new [] { "StartDay" }); } // StartDay (int?) minimum - if(this.StartDay <= (int?)1) + if(this.StartDay < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartDay, must be a value greater than or equal to 1.", new [] { "StartDay" }); } diff --git a/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.cs b/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.cs index 9f471227..204127c1 100644 --- a/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.cs +++ b/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.cs @@ -240,42 +240,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantLogo (string) maxLength - if(this.MerchantLogo != null && this.MerchantLogo.Length >= 10000000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantLogo, length must be less than or equal to 10000000.", new [] { "MerchantLogo" }); - } - - // MerchantDisplayName (string) maxLength - if(this.MerchantDisplayName != null && this.MerchantDisplayName.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantDisplayName, length must be less than or equal to 100.", new [] { "MerchantDisplayName" }); - } - - // CustomEmailMessage (string) maxLength - if(this.CustomEmailMessage != null && this.CustomEmailMessage.Length >= 2000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomEmailMessage, length must be less than or equal to 2000.", new [] { "CustomEmailMessage" }); - } - - // DeliveryLanguage (string) maxLength - if(this.DeliveryLanguage != null && this.DeliveryLanguage.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeliveryLanguage, length must be less than or equal to 6.", new [] { "DeliveryLanguage" }); - } - - // DefaultCurrencyCode (string) maxLength - if(this.DefaultCurrencyCode != null && this.DefaultCurrencyCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DefaultCurrencyCode, length must be less than or equal to 3.", new [] { "DefaultCurrencyCode" }); - } - - // PayerAuthentication3DSVersion (string) maxLength - if(this.PayerAuthentication3DSVersion != null && this.PayerAuthentication3DSVersion.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PayerAuthentication3DSVersion, length must be less than or equal to 8.", new [] { "PayerAuthentication3DSVersion" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle.cs b/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle.cs index b00809ed..da113a16 100644 --- a/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle.cs +++ b/Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FontColor (string) maxLength - if(this.FontColor != null && this.FontColor.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FontColor, length must be less than or equal to 7.", new [] { "FontColor" }); - } - // FontColor (string) pattern Regex regexFontColor = new Regex(@"^#(?:[0-9a-fA-F]{3}){1,2}$", RegexOptions.CultureInvariant); if (false == regexFontColor.Match(this.FontColor).Success) @@ -152,12 +146,6 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FontColor, must match a pattern of " + regexFontColor, new [] { "FontColor" }); } - // BackgroundColor (string) maxLength - if(this.BackgroundColor != null && this.BackgroundColor.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BackgroundColor, length must be less than or equal to 7.", new [] { "BackgroundColor" }); - } - // BackgroundColor (string) pattern Regex regexBackgroundColor = new Regex(@"^#(?:[0-9a-fA-F]{3}){1,2}$", RegexOptions.CultureInvariant); if (false == regexBackgroundColor.Match(this.BackgroundColor).Success) diff --git a/Model/InvoicingV2InvoicesAllGet200ResponseCustomerInformation.cs b/Model/InvoicingV2InvoicesAllGet200ResponseCustomerInformation.cs index 628f2839..e38ae4cb 100644 --- a/Model/InvoicingV2InvoicesAllGet200ResponseCustomerInformation.cs +++ b/Model/InvoicingV2InvoicesAllGet200ResponseCustomerInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 100.", new [] { "Name" }); - } - - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesAllGet200ResponseInvoices.cs b/Model/InvoicingV2InvoicesAllGet200ResponseInvoices.cs index aac12c2f..f3c607d0 100644 --- a/Model/InvoicingV2InvoicesAllGet200ResponseInvoices.cs +++ b/Model/InvoicingV2InvoicesAllGet200ResponseInvoices.cs @@ -203,12 +203,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesAllGet200ResponseOrderInformationAmountDetails.cs b/Model/InvoicingV2InvoicesAllGet200ResponseOrderInformationAmountDetails.cs index 6c552e7c..6ca8fb38 100644 --- a/Model/InvoicingV2InvoicesAllGet200ResponseOrderInformationAmountDetails.cs +++ b/Model/InvoicingV2InvoicesAllGet200ResponseOrderInformationAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesGet200Response.cs b/Model/InvoicingV2InvoicesGet200Response.cs index c645fa76..5771235b 100644 --- a/Model/InvoicingV2InvoicesGet200Response.cs +++ b/Model/InvoicingV2InvoicesGet200Response.cs @@ -236,12 +236,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesGet200ResponseTransactionDetails.cs b/Model/InvoicingV2InvoicesGet200ResponseTransactionDetails.cs index 6a18233b..53017818 100644 --- a/Model/InvoicingV2InvoicesGet200ResponseTransactionDetails.cs +++ b/Model/InvoicingV2InvoicesGet200ResponseTransactionDetails.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 19.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesPost201Response.cs b/Model/InvoicingV2InvoicesPost201Response.cs index dbf2d1c0..90621c32 100644 --- a/Model/InvoicingV2InvoicesPost201Response.cs +++ b/Model/InvoicingV2InvoicesPost201Response.cs @@ -220,12 +220,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesPost201ResponseInvoiceInformation.cs b/Model/InvoicingV2InvoicesPost201ResponseInvoiceInformation.cs index 0825bef4..dbe52613 100644 --- a/Model/InvoicingV2InvoicesPost201ResponseInvoiceInformation.cs +++ b/Model/InvoicingV2InvoicesPost201ResponseInvoiceInformation.cs @@ -208,12 +208,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Description (string) maxLength - if(this.Description != null && this.Description.Length >= 2000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than or equal to 2000.", new [] { "Description" }); - } - yield break; } } diff --git a/Model/InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails.cs b/Model/InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails.cs index 36d7c511..21795c8d 100644 --- a/Model/InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails.cs +++ b/Model/InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails.cs @@ -256,30 +256,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // BalanceAmount (string) maxLength - if(this.BalanceAmount != null && this.BalanceAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BalanceAmount, length must be less than or equal to 12.", new [] { "BalanceAmount" }); - } - - // DiscountAmount (string) maxLength - if(this.DiscountAmount != null && this.DiscountAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountAmount, length must be less than or equal to 15.", new [] { "DiscountAmount" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoiceSettingsInvoiceSettingsInformation.cs b/Model/Invoicingv2invoiceSettingsInvoiceSettingsInformation.cs index 9a3cfc82..a46308e8 100644 --- a/Model/Invoicingv2invoiceSettingsInvoiceSettingsInformation.cs +++ b/Model/Invoicingv2invoiceSettingsInvoiceSettingsInformation.cs @@ -240,42 +240,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantLogo (string) maxLength - if(this.MerchantLogo != null && this.MerchantLogo.Length >= 10000000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantLogo, length must be less than or equal to 10000000.", new [] { "MerchantLogo" }); - } - - // MerchantDisplayName (string) maxLength - if(this.MerchantDisplayName != null && this.MerchantDisplayName.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantDisplayName, length must be less than or equal to 100.", new [] { "MerchantDisplayName" }); - } - - // CustomEmailMessage (string) maxLength - if(this.CustomEmailMessage != null && this.CustomEmailMessage.Length >= 2000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomEmailMessage, length must be less than or equal to 2000.", new [] { "CustomEmailMessage" }); - } - - // DeliveryLanguage (string) maxLength - if(this.DeliveryLanguage != null && this.DeliveryLanguage.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeliveryLanguage, length must be less than or equal to 6.", new [] { "DeliveryLanguage" }); - } - - // DefaultCurrencyCode (string) maxLength - if(this.DefaultCurrencyCode != null && this.DefaultCurrencyCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DefaultCurrencyCode, length must be less than or equal to 3.", new [] { "DefaultCurrencyCode" }); - } - - // PayerAuthenticationInInvoicing (string) maxLength - if(this.PayerAuthenticationInInvoicing != null && this.PayerAuthenticationInInvoicing.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PayerAuthenticationInInvoicing, length must be less than or equal to 7.", new [] { "PayerAuthenticationInInvoicing" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesCustomerInformation.cs b/Model/Invoicingv2invoicesCustomerInformation.cs index 7ff0e660..1b4290a2 100644 --- a/Model/Invoicingv2invoicesCustomerInformation.cs +++ b/Model/Invoicingv2invoicesCustomerInformation.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 100.", new [] { "Name" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesInvoiceInformation.cs b/Model/Invoicingv2invoicesInvoiceInformation.cs index 22cf37b5..c10aa83c 100644 --- a/Model/Invoicingv2invoicesInvoiceInformation.cs +++ b/Model/Invoicingv2invoicesInvoiceInformation.cs @@ -208,12 +208,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Description (string) maxLength - if(this.Description != null && this.Description.Length >= 2000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than or equal to 2000.", new [] { "Description" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesOrderInformationAmountDetails.cs b/Model/Invoicingv2invoicesOrderInformationAmountDetails.cs index f940d65b..cd6bc56a 100644 --- a/Model/Invoicingv2invoicesOrderInformationAmountDetails.cs +++ b/Model/Invoicingv2invoicesOrderInformationAmountDetails.cs @@ -239,24 +239,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // DiscountAmount (string) maxLength - if(this.DiscountAmount != null && this.DiscountAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountAmount, length must be less than or equal to 15.", new [] { "DiscountAmount" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesOrderInformationAmountDetailsFreight.cs b/Model/Invoicingv2invoicesOrderInformationAmountDetailsFreight.cs index c44b102d..3ff543a1 100644 --- a/Model/Invoicingv2invoicesOrderInformationAmountDetailsFreight.cs +++ b/Model/Invoicingv2invoicesOrderInformationAmountDetailsFreight.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 13.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.cs b/Model/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.cs index 23a1f2de..1ff694e3 100644 --- a/Model/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.cs +++ b/Model/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 13.", new [] { "Amount" }); - } - - // Rate (string) maxLength - if(this.Rate != null && this.Rate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Rate, length must be less than or equal to 6.", new [] { "Rate" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesOrderInformationLineItems.cs b/Model/Invoicingv2invoicesOrderInformationLineItems.cs index 3a868f5c..86884acf 100644 --- a/Model/Invoicingv2invoicesOrderInformationLineItems.cs +++ b/Model/Invoicingv2invoicesOrderInformationLineItems.cs @@ -173,36 +173,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ProductSku (string) maxLength - if(this.ProductSku != null && this.ProductSku.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSku, length must be less than or equal to 255.", new [] { "ProductSku" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - yield break; } } diff --git a/Model/Invoicingv2invoicesidInvoiceInformation.cs b/Model/Invoicingv2invoicesidInvoiceInformation.cs index 6f2d7536..74e624e2 100644 --- a/Model/Invoicingv2invoicesidInvoiceInformation.cs +++ b/Model/Invoicingv2invoicesidInvoiceInformation.cs @@ -174,12 +174,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Description (string) maxLength - if(this.Description != null && this.Description.Length >= 2000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than or equal to 2000.", new [] { "Description" }); - } - yield break; } } diff --git a/Model/Kmsv2keyssymClientReferenceInformation.cs b/Model/Kmsv2keyssymClientReferenceInformation.cs index eee6037b..7b594700 100644 --- a/Model/Kmsv2keyssymClientReferenceInformation.cs +++ b/Model/Kmsv2keyssymClientReferenceInformation.cs @@ -155,12 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/PatchCustomerPaymentInstrumentRequest.cs b/Model/PatchCustomerPaymentInstrumentRequest.cs index 0bbf19b6..c792d692 100644 --- a/Model/PatchCustomerPaymentInstrumentRequest.cs +++ b/Model/PatchCustomerPaymentInstrumentRequest.cs @@ -329,18 +329,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PatchCustomerRequest.cs b/Model/PatchCustomerRequest.cs index cfb1f0b2..b7b2cfaf 100644 --- a/Model/PatchCustomerRequest.cs +++ b/Model/PatchCustomerRequest.cs @@ -267,18 +267,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PatchCustomerShippingAddressRequest.cs b/Model/PatchCustomerShippingAddressRequest.cs index 6b351dce..313030b4 100644 --- a/Model/PatchCustomerShippingAddressRequest.cs +++ b/Model/PatchCustomerShippingAddressRequest.cs @@ -187,18 +187,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PatchPaymentInstrumentRequest.cs b/Model/PatchPaymentInstrumentRequest.cs index 1d4287ad..c831872a 100644 --- a/Model/PatchPaymentInstrumentRequest.cs +++ b/Model/PatchPaymentInstrumentRequest.cs @@ -329,18 +329,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PostCustomerPaymentInstrumentRequest.cs b/Model/PostCustomerPaymentInstrumentRequest.cs index adcaf623..7f09d1be 100644 --- a/Model/PostCustomerPaymentInstrumentRequest.cs +++ b/Model/PostCustomerPaymentInstrumentRequest.cs @@ -329,18 +329,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PostCustomerRequest.cs b/Model/PostCustomerRequest.cs index 790326d6..61f118f0 100644 --- a/Model/PostCustomerRequest.cs +++ b/Model/PostCustomerRequest.cs @@ -267,18 +267,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PostCustomerShippingAddressRequest.cs b/Model/PostCustomerShippingAddressRequest.cs index 550db186..7275ee0c 100644 --- a/Model/PostCustomerShippingAddressRequest.cs +++ b/Model/PostCustomerShippingAddressRequest.cs @@ -187,18 +187,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PostPaymentInstrumentRequest.cs b/Model/PostPaymentInstrumentRequest.cs index 4d867288..242cce29 100644 --- a/Model/PostPaymentInstrumentRequest.cs +++ b/Model/PostPaymentInstrumentRequest.cs @@ -329,18 +329,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PredefinedSubscriptionRequestBean.cs b/Model/PredefinedSubscriptionRequestBean.cs index 3036b8e7..d5dc60ed 100644 --- a/Model/PredefinedSubscriptionRequestBean.cs +++ b/Model/PredefinedSubscriptionRequestBean.cs @@ -295,18 +295,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ReportDefinitionName (string) maxLength - if(this.ReportDefinitionName != null && this.ReportDefinitionName.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, length must be less than or equal to 80.", new [] { "ReportDefinitionName" }); - } - - // ReportDefinitionName (string) minLength - if(this.ReportDefinitionName != null && this.ReportDefinitionName.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, length must be greater than or equal to 1.", new [] { "ReportDefinitionName" }); - } - // ReportDefinitionName (string) pattern Regex regexReportDefinitionName = new Regex(@"[a-zA-Z]+", RegexOptions.CultureInvariant); if (false == regexReportDefinitionName.Match(this.ReportDefinitionName).Success) @@ -314,18 +302,6 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportDefinitionName, must match a pattern of " + regexReportDefinitionName, new [] { "ReportDefinitionName" }); } - // ReportName (string) maxLength - if(this.ReportName != null && this.ReportName.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportName, length must be less than or equal to 128.", new [] { "ReportName" }); - } - - // ReportName (string) minLength - if(this.ReportName != null && this.ReportName.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportName, length must be greater than or equal to 1.", new [] { "ReportName" }); - } - // ReportName (string) pattern Regex regexReportName = new Regex(@"[a-zA-Z0-9-_ ]+", RegexOptions.CultureInvariant); if (false == regexReportName.Match(this.ReportName).Success) @@ -341,13 +317,13 @@ public override int GetHashCode() } // StartDay (int?) maximum - if(this.StartDay >= (int?)31) + if(this.StartDay > (int?)31) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartDay, must be a value less than or equal to 31.", new [] { "StartDay" }); } // StartDay (int?) minimum - if(this.StartDay <= (int?)1) + if(this.StartDay < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartDay, must be a value greater than or equal to 1.", new [] { "StartDay" }); } diff --git a/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.cs b/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.cs index fdb7a021..e3d2bdd7 100644 --- a/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.cs +++ b/Model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.cs @@ -224,18 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 8.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - // Id (string) pattern Regex regexId = new Regex(@"^[a-zA-Z0-9_+-]*$", RegexOptions.CultureInvariant); if (false == regexId.Match(this.Id).Success) diff --git a/Model/PtsV1TransactionBatchesIdGet200Response.cs b/Model/PtsV1TransactionBatchesIdGet200Response.cs index 5e2e827d..afb27f9e 100644 --- a/Model/PtsV1TransactionBatchesIdGet200Response.cs +++ b/Model/PtsV1TransactionBatchesIdGet200Response.cs @@ -240,18 +240,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 8.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - // Id (string) pattern Regex regexId = new Regex(@"^[a-zA-Z0-9_+-]*$", RegexOptions.CultureInvariant); if (false == regexId.Match(this.Id).Success) diff --git a/Model/PtsV2CreditsPost201Response.cs b/Model/PtsV2CreditsPost201Response.cs index 57a0f4eb..fe548cbe 100644 --- a/Model/PtsV2CreditsPost201Response.cs +++ b/Model/PtsV2CreditsPost201Response.cs @@ -301,18 +301,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.cs b/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.cs index 116280ae..fd0bfb54 100644 --- a/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.cs +++ b/Model/PtsV2CreditsPost201ResponseCreditAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CreditAmount (string) maxLength - if(this.CreditAmount != null && this.CreditAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CreditAmount, length must be less than or equal to 15.", new [] { "CreditAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2CreditsPost201ResponseProcessingInformationBankTransferOptions.cs b/Model/PtsV2CreditsPost201ResponseProcessingInformationBankTransferOptions.cs index 133f7055..8bd6db4c 100644 --- a/Model/PtsV2CreditsPost201ResponseProcessingInformationBankTransferOptions.cs +++ b/Model/PtsV2CreditsPost201ResponseProcessingInformationBankTransferOptions.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SettlementMethod (string) maxLength - if(this.SettlementMethod != null && this.SettlementMethod.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementMethod, length must be less than or equal to 1.", new [] { "SettlementMethod" }); - } - yield break; } } diff --git a/Model/PtsV2IncrementalAuthorizationPatch201Response.cs b/Model/PtsV2IncrementalAuthorizationPatch201Response.cs index dd5a1a92..b08965ed 100644 --- a/Model/PtsV2IncrementalAuthorizationPatch201Response.cs +++ b/Model/PtsV2IncrementalAuthorizationPatch201Response.cs @@ -269,18 +269,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.cs b/Model/PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.cs index cb0b5491..4198da72 100644 --- a/Model/PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.cs +++ b/Model/PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformationAccountFeatures.cs b/Model/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformationAccountFeatures.cs index a62a167f..4d76dfaa 100644 --- a/Model/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformationAccountFeatures.cs +++ b/Model/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformationAccountFeatures.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Category (string) maxLength - if(this.Category != null && this.Category.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Category, length must be less than or equal to 7.", new [] { "Category" }); - } - yield break; } } diff --git a/Model/PtsV2IncrementalAuthorizationPatch201ResponseProcessorInformation.cs b/Model/PtsV2IncrementalAuthorizationPatch201ResponseProcessorInformation.cs index 190a133b..1c68d6ca 100644 --- a/Model/PtsV2IncrementalAuthorizationPatch201ResponseProcessorInformation.cs +++ b/Model/PtsV2IncrementalAuthorizationPatch201ResponseProcessorInformation.cs @@ -206,36 +206,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ApprovalCode (string) maxLength - if(this.ApprovalCode != null && this.ApprovalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApprovalCode, length must be less than or equal to 6.", new [] { "ApprovalCode" }); - } - - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 50.", new [] { "TransactionId" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - - // SystemTraceAuditNumber (string) maxLength - if(this.SystemTraceAuditNumber != null && this.SystemTraceAuditNumber.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SystemTraceAuditNumber, length must be less than or equal to 6.", new [] { "SystemTraceAuditNumber" }); - } - - // ResponseDetails (string) maxLength - if(this.ResponseDetails != null && this.ResponseDetails.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseDetails, length must be less than or equal to 255.", new [] { "ResponseDetails" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsCapturesPost201Response.cs b/Model/PtsV2PaymentsCapturesPost201Response.cs index 4a88177c..a7e32ce0 100644 --- a/Model/PtsV2PaymentsCapturesPost201Response.cs +++ b/Model/PtsV2PaymentsCapturesPost201Response.cs @@ -269,18 +269,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.cs b/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.cs index f7cd98d7..cd83f76e 100644 --- a/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.cs +++ b/Model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 15.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation.cs b/Model/PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation.cs index 86384d40..e0ec1d8f 100644 --- a/Model/PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation.cs +++ b/Model/PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 8.", new [] { "TerminalId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.cs b/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.cs index 560422b2..4e03c14e 100644 --- a/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.cs +++ b/Model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 18.", new [] { "TransactionId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201Response.cs b/Model/PtsV2PaymentsPost201Response.cs index fe040a6f..a58a1ec4 100644 --- a/Model/PtsV2PaymentsPost201Response.cs +++ b/Model/PtsV2PaymentsPost201Response.cs @@ -397,18 +397,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.cs b/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.cs index 876f08cc..1df6f1e7 100644 --- a/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseClientReferenceInformation.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // SubmitLocalDateTime (string) maxLength - if(this.SubmitLocalDateTime != null && this.SubmitLocalDateTime.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SubmitLocalDateTime, length must be less than or equal to 14.", new [] { "SubmitLocalDateTime" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.cs b/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.cs index 94129673..0971b5f8 100644 --- a/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.cs @@ -801,132 +801,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AcsTransactionId (string) maxLength - if(this.AcsTransactionId != null && this.AcsTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsTransactionId, length must be less than or equal to 36.", new [] { "AcsTransactionId" }); - } - - // AcsUrl (string) maxLength - if(this.AcsUrl != null && this.AcsUrl.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsUrl, length must be less than or equal to 2048.", new [] { "AcsUrl" }); - } - - // AuthenticationTransactionId (string) maxLength - if(this.AuthenticationTransactionId != null && this.AuthenticationTransactionId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationTransactionId, length must be less than or equal to 20.", new [] { "AuthenticationTransactionId" }); - } - - // CardholderMessage (string) maxLength - if(this.CardholderMessage != null && this.CardholderMessage.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardholderMessage, length must be less than or equal to 128.", new [] { "CardholderMessage" }); - } - - // Cavv (string) maxLength - if(this.Cavv != null && this.Cavv.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cavv, length must be less than or equal to 255.", new [] { "Cavv" }); - } - - // CavvAlgorithm (string) maxLength - if(this.CavvAlgorithm != null && this.CavvAlgorithm.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CavvAlgorithm, length must be less than or equal to 1.", new [] { "CavvAlgorithm" }); - } - - // ChallengeCancelCode (string) maxLength - if(this.ChallengeCancelCode != null && this.ChallengeCancelCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeCancelCode, length must be less than or equal to 2.", new [] { "ChallengeCancelCode" }); - } - - // ChallengeRequired (string) maxLength - if(this.ChallengeRequired != null && this.ChallengeRequired.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeRequired, length must be less than or equal to 1.", new [] { "ChallengeRequired" }); - } - - // DecoupledAuthenticationIndicator (string) maxLength - if(this.DecoupledAuthenticationIndicator != null && this.DecoupledAuthenticationIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DecoupledAuthenticationIndicator, length must be less than or equal to 1.", new [] { "DecoupledAuthenticationIndicator" }); - } - - // DirectoryServerErrorDescription (string) maxLength - if(this.DirectoryServerErrorDescription != null && this.DirectoryServerErrorDescription.Length >= 4096) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerErrorDescription, length must be less than or equal to 4096.", new [] { "DirectoryServerErrorDescription" }); - } - - // EcommerceIndicator (string) maxLength - if(this.EcommerceIndicator != null && this.EcommerceIndicator.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EcommerceIndicator, length must be less than or equal to 255.", new [] { "EcommerceIndicator" }); - } - - // EffectiveAuthenticationType (string) maxLength - if(this.EffectiveAuthenticationType != null && this.EffectiveAuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EffectiveAuthenticationType, length must be less than or equal to 2.", new [] { "EffectiveAuthenticationType" }); - } - - // NetworkScore (string) maxLength - if(this.NetworkScore != null && this.NetworkScore.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkScore, length must be less than or equal to 2.", new [] { "NetworkScore" }); - } - - // SdkTransactionId (string) maxLength - if(this.SdkTransactionId != null && this.SdkTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkTransactionId, length must be less than or equal to 36.", new [] { "SdkTransactionId" }); - } - - // SignedParesStatusReason (string) maxLength - if(this.SignedParesStatusReason != null && this.SignedParesStatusReason.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SignedParesStatusReason, length must be less than or equal to 2.", new [] { "SignedParesStatusReason" }); - } - - // StepUpUrl (string) maxLength - if(this.StepUpUrl != null && this.StepUpUrl.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StepUpUrl, length must be less than or equal to 2048.", new [] { "StepUpUrl" }); - } - - // ThreeDSServerTransactionId (string) maxLength - if(this.ThreeDSServerTransactionId != null && this.ThreeDSServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ThreeDSServerTransactionId, length must be less than or equal to 36.", new [] { "ThreeDSServerTransactionId" }); - } - - // WhiteListStatusSource (string) maxLength - if(this.WhiteListStatusSource != null && this.WhiteListStatusSource.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatusSource, length must be less than or equal to 2.", new [] { "WhiteListStatusSource" }); - } - - // DirectoryServerTransactionId (string) maxLength - if(this.DirectoryServerTransactionId != null && this.DirectoryServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerTransactionId, length must be less than or equal to 36.", new [] { "DirectoryServerTransactionId" }); - } - - // InteractionCounter (string) maxLength - if(this.InteractionCounter != null && this.InteractionCounter.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InteractionCounter, length must be less than or equal to 2.", new [] { "InteractionCounter" }); - } - - // WhiteListStatus (string) maxLength - if(this.WhiteListStatus != null && this.WhiteListStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatus, length must be less than or equal to 1.", new [] { "WhiteListStatus" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.cs b/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.cs index d83f94a4..cc9d8d7d 100644 --- a/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.cs +++ b/Model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.cs @@ -224,36 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // EncryptionKey (string) maxLength - if(this.EncryptionKey != null && this.EncryptionKey.Length >= 16) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncryptionKey, length must be less than or equal to 16.", new [] { "EncryptionKey" }); - } - - // EncryptionType (string) maxLength - if(this.EncryptionType != null && this.EncryptionType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncryptionType, length must be less than or equal to 20.", new [] { "EncryptionType" }); - } - - // Label (string) maxLength - if(this.Label != null && this.Label.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Label, length must be less than or equal to 20.", new [] { "Label" }); - } - - // Prompt (string) maxLength - if(this.Prompt != null && this.Prompt.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Prompt, length must be less than or equal to 80.", new [] { "Prompt" }); - } - - // StatusMessage (string) maxLength - if(this.StatusMessage != null && this.StatusMessage.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StatusMessage, length must be less than or equal to 80.", new [] { "StatusMessage" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseInstallmentInformation.cs b/Model/PtsV2PaymentsPost201ResponseInstallmentInformation.cs index 6daa80f7..a5e7f39b 100644 --- a/Model/PtsV2PaymentsPost201ResponseInstallmentInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseInstallmentInformation.cs @@ -547,150 +547,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AdditionalCosts (string) maxLength - if(this.AdditionalCosts != null && this.AdditionalCosts.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalCosts, length must be less than or equal to 12.", new [] { "AdditionalCosts" }); - } - - // AdditionalCostsPercentage (string) maxLength - if(this.AdditionalCostsPercentage != null && this.AdditionalCostsPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalCostsPercentage, length must be less than or equal to 4.", new [] { "AdditionalCostsPercentage" }); - } - - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 12.", new [] { "Amount" }); - } - - // AmountFunded (string) maxLength - if(this.AmountFunded != null && this.AmountFunded.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmountFunded, length must be less than or equal to 12.", new [] { "AmountFunded" }); - } - - // AmountRequestedPercentage (string) maxLength - if(this.AmountRequestedPercentage != null && this.AmountRequestedPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmountRequestedPercentage, length must be less than or equal to 4.", new [] { "AmountRequestedPercentage" }); - } - - // AnnualFinancingCost (string) maxLength - if(this.AnnualFinancingCost != null && this.AnnualFinancingCost.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AnnualFinancingCost, length must be less than or equal to 7.", new [] { "AnnualFinancingCost" }); - } - - // AnnualInterestRate (string) maxLength - if(this.AnnualInterestRate != null && this.AnnualInterestRate.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AnnualInterestRate, length must be less than or equal to 7.", new [] { "AnnualInterestRate" }); - } - - // Expenses (string) maxLength - if(this.Expenses != null && this.Expenses.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Expenses, length must be less than or equal to 12.", new [] { "Expenses" }); - } - - // ExpensesPercentage (string) maxLength - if(this.ExpensesPercentage != null && this.ExpensesPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpensesPercentage, length must be less than or equal to 4.", new [] { "ExpensesPercentage" }); - } - - // Fees (string) maxLength - if(this.Fees != null && this.Fees.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Fees, length must be less than or equal to 12.", new [] { "Fees" }); - } - - // FeesPercentage (string) maxLength - if(this.FeesPercentage != null && this.FeesPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FeesPercentage, length must be less than or equal to 4.", new [] { "FeesPercentage" }); - } - - // Frequency (string) maxLength - if(this.Frequency != null && this.Frequency.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Frequency, length must be less than or equal to 1.", new [] { "Frequency" }); - } - - // Insurance (string) maxLength - if(this.Insurance != null && this.Insurance.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Insurance, length must be less than or equal to 12.", new [] { "Insurance" }); - } - - // InsurancePercentage (string) maxLength - if(this.InsurancePercentage != null && this.InsurancePercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InsurancePercentage, length must be less than or equal to 4.", new [] { "InsurancePercentage" }); - } - - // InvoiceData (string) maxLength - if(this.InvoiceData != null && this.InvoiceData.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceData, length must be less than or equal to 20.", new [] { "InvoiceData" }); - } - - // MonthlyInterestRate (string) maxLength - if(this.MonthlyInterestRate != null && this.MonthlyInterestRate.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MonthlyInterestRate, length must be less than or equal to 7.", new [] { "MonthlyInterestRate" }); - } - - // PlanType (string) maxLength - if(this.PlanType != null && this.PlanType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PlanType, length must be less than or equal to 1.", new [] { "PlanType" }); - } - // Sequence (int?) maximum - if(this.Sequence >= (int?)99) + if(this.Sequence > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Sequence, must be a value less than or equal to 99.", new [] { "Sequence" }); } - // Taxes (string) maxLength - if(this.Taxes != null && this.Taxes.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Taxes, length must be less than or equal to 12.", new [] { "Taxes" }); - } - - // TaxesPercentage (string) maxLength - if(this.TaxesPercentage != null && this.TaxesPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxesPercentage, length must be less than or equal to 4.", new [] { "TaxesPercentage" }); - } - - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 12.", new [] { "TotalAmount" }); - } - // TotalCount (int?) maximum - if(this.TotalCount >= (int?)99) + if(this.TotalCount > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCount, must be a value less than or equal to 99.", new [] { "TotalCount" }); } - // FirstInstallmentAmount (string) maxLength - if(this.FirstInstallmentAmount != null && this.FirstInstallmentAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstInstallmentAmount, length must be less than or equal to 13.", new [] { "FirstInstallmentAmount" }); - } - - // FirstInstallmentDate (string) maxLength - if(this.FirstInstallmentDate != null && this.FirstInstallmentDate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstInstallmentDate, length must be less than or equal to 6.", new [] { "FirstInstallmentDate" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseIssuerInformation.cs b/Model/PtsV2PaymentsPost201ResponseIssuerInformation.cs index bdf23125..7f37cba2 100644 --- a/Model/PtsV2PaymentsPost201ResponseIssuerInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseIssuerInformation.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 3.", new [] { "Country" }); - } - - // DiscretionaryData (string) maxLength - if(this.DiscretionaryData != null && this.DiscretionaryData.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscretionaryData, length must be less than or equal to 255.", new [] { "DiscretionaryData" }); - } - - // CountrySpecificDiscretionaryData (string) maxLength - if(this.CountrySpecificDiscretionaryData != null && this.CountrySpecificDiscretionaryData.Length >= 140) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CountrySpecificDiscretionaryData, length must be less than or equal to 140.", new [] { "CountrySpecificDiscretionaryData" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 6.", new [] { "ResponseCode" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.cs b/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.cs index e0e56919..39520769 100644 --- a/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.cs +++ b/Model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 15.", new [] { "TotalAmount" }); - } - - // AuthorizedAmount (string) maxLength - if(this.AuthorizedAmount != null && this.AuthorizedAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthorizedAmount, length must be less than or equal to 15.", new [] { "AuthorizedAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.cs b/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.cs index 16dae1f2..195db219 100644 --- a/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.cs +++ b/Model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.cs @@ -140,7 +140,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // SalesSlipNumber (int?) maximum - if(this.SalesSlipNumber >= (int?)99999) + if(this.SalesSlipNumber > (int?)99999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SalesSlipNumber, must be a value less than or equal to 99999.", new [] { "SalesSlipNumber" }); } diff --git a/Model/PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails.cs b/Model/PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails.cs index 1eab80a8..c0e3710c 100644 --- a/Model/PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails.cs +++ b/Model/PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PointsBeforeRedemption (string) maxLength - if(this.PointsBeforeRedemption != null && this.PointsBeforeRedemption.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PointsBeforeRedemption, length must be less than or equal to 10.", new [] { "PointsBeforeRedemption" }); - } - - // PointsValueBeforeRedemption (string) maxLength - if(this.PointsValueBeforeRedemption != null && this.PointsValueBeforeRedemption.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PointsValueBeforeRedemption, length must be less than or equal to 12.", new [] { "PointsValueBeforeRedemption" }); - } - - // PointsRedeemed (string) maxLength - if(this.PointsRedeemed != null && this.PointsRedeemed.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PointsRedeemed, length must be less than or equal to 10.", new [] { "PointsRedeemed" }); - } - - // PointsValueRedeemed (string) maxLength - if(this.PointsValueRedeemed != null && this.PointsValueRedeemed.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PointsValueRedeemed, length must be less than or equal to 12.", new [] { "PointsValueRedeemed" }); - } - - // PointsAfterRedemption (string) maxLength - if(this.PointsAfterRedemption != null && this.PointsAfterRedemption.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PointsAfterRedemption, length must be less than or equal to 10.", new [] { "PointsAfterRedemption" }); - } - - // PointsValueAfterRedemption (string) maxLength - if(this.PointsValueAfterRedemption != null && this.PointsValueAfterRedemption.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PointsValueAfterRedemption, length must be less than or equal to 12.", new [] { "PointsValueAfterRedemption" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentAccountInformationCard.cs b/Model/PtsV2PaymentsPost201ResponsePaymentAccountInformationCard.cs index b42351cf..b1d4b592 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentAccountInformationCard.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentAccountInformationCard.cs @@ -190,24 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Prefix (string) maxLength - if(this.Prefix != null && this.Prefix.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Prefix, length must be less than or equal to 6.", new [] { "Prefix" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformation.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformation.cs index 70c6dacd..154947a8 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformation.cs @@ -318,36 +318,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Scheme (string) maxLength - if(this.Scheme != null && this.Scheme.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Scheme, length must be less than or equal to 255.", new [] { "Scheme" }); - } - - // Bin (string) maxLength - if(this.Bin != null && this.Bin.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Bin, length must be less than or equal to 255.", new [] { "Bin" }); - } - - // AccountType (string) maxLength - if(this.AccountType != null && this.AccountType.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountType, length must be less than or equal to 255.", new [] { "AccountType" }); - } - - // Issuer (string) maxLength - if(this.Issuer != null && this.Issuer.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Issuer, length must be less than or equal to 255.", new [] { "Issuer" }); - } - - // BinCountry (string) maxLength - if(this.BinCountry != null && this.BinCountry.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BinCountry, length must be less than or equal to 255.", new [] { "BinCountry" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.cs index a2725e28..6367322f 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.cs @@ -411,108 +411,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AccountType (string) maxLength - if(this.AccountType != null && this.AccountType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountType, length must be less than or equal to 2.", new [] { "AccountType" }); - } - - // AccountStatus (string) maxLength - if(this.AccountStatus != null && this.AccountStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountStatus, length must be less than or equal to 1.", new [] { "AccountStatus" }); - } - - // BalanceAmount (string) maxLength - if(this.BalanceAmount != null && this.BalanceAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BalanceAmount, length must be less than or equal to 12.", new [] { "BalanceAmount" }); - } - - // BalanceAmountType (string) maxLength - if(this.BalanceAmountType != null && this.BalanceAmountType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BalanceAmountType, length must be less than or equal to 2.", new [] { "BalanceAmountType" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 5.", new [] { "Currency" }); - } - - // BalanceSign (string) maxLength - if(this.BalanceSign != null && this.BalanceSign.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BalanceSign, length must be less than or equal to 8.", new [] { "BalanceSign" }); - } - - // AffluenceIndicator (string) maxLength - if(this.AffluenceIndicator != null && this.AffluenceIndicator.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AffluenceIndicator, length must be less than or equal to 13.", new [] { "AffluenceIndicator" }); - } - - // Category (string) maxLength - if(this.Category != null && this.Category.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Category, length must be less than or equal to 7.", new [] { "Category" }); - } - - // Commercial (string) maxLength - if(this.Commercial != null && this.Commercial.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Commercial, length must be less than or equal to 1.", new [] { "Commercial" }); - } - - // Group (string) maxLength - if(this.Group != null && this.Group.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Group, length must be less than or equal to 1.", new [] { "Group" }); - } - - // HealthCare (string) maxLength - if(this.HealthCare != null && this.HealthCare.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HealthCare, length must be less than or equal to 1.", new [] { "HealthCare" }); - } - - // Payroll (string) maxLength - if(this.Payroll != null && this.Payroll.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Payroll, length must be less than or equal to 1.", new [] { "Payroll" }); - } - - // Level3Eligible (string) maxLength - if(this.Level3Eligible != null && this.Level3Eligible.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Level3Eligible, length must be less than or equal to 1.", new [] { "Level3Eligible" }); - } - - // PinlessDebit (string) maxLength - if(this.PinlessDebit != null && this.PinlessDebit.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PinlessDebit, length must be less than or equal to 1.", new [] { "PinlessDebit" }); - } - - // SignatureDebit (string) maxLength - if(this.SignatureDebit != null && this.SignatureDebit.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SignatureDebit, length must be less than or equal to 1.", new [] { "SignatureDebit" }); - } - - // Prepaid (string) maxLength - if(this.Prepaid != null && this.Prepaid.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Prepaid, length must be less than or equal to 1.", new [] { "Prepaid" }); - } - - // Regulated (string) maxLength - if(this.Regulated != null && this.Regulated.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Regulated, length must be less than or equal to 1.", new [] { "Regulated" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances.cs index 8b12ba9d..482e0c60 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AccountType (string) maxLength - if(this.AccountType != null && this.AccountType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountType, length must be less than or equal to 2.", new [] { "AccountType" }); - } - - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 13.", new [] { "Amount" }); - } - - // AmountType (string) maxLength - if(this.AmountType != null && this.AmountType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmountType, length must be less than or equal to 2.", new [] { "AmountType" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformationBank.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformationBank.cs index afeecc26..2bc36766 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformationBank.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformationBank.cs @@ -138,12 +138,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CorrectedRoutingNumber (string) maxLength - if(this.CorrectedRoutingNumber != null && this.CorrectedRoutingNumber.Length >= 9) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CorrectedRoutingNumber, length must be less than or equal to 9.", new [] { "CorrectedRoutingNumber" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformationBankAccount.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformationBankAccount.cs index 842150f7..ff00cb4d 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformationBankAccount.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformationBankAccount.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CorrectedAccountNumber (string) maxLength - if(this.CorrectedAccountNumber != null && this.CorrectedAccountNumber.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CorrectedAccountNumber, length must be less than or equal to 17.", new [] { "CorrectedAccountNumber" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier.cs index f4384480..fa2361d7 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 12.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.cs b/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.cs index 4773e34e..649a92ef 100644 --- a/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.cs +++ b/Model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.cs @@ -224,42 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Prefix (string) maxLength - if(this.Prefix != null && this.Prefix.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Prefix, length must be less than or equal to 6.", new [] { "Prefix" }); - } - - // Suffix (string) maxLength - if(this.Suffix != null && this.Suffix.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Suffix, length must be less than or equal to 4.", new [] { "Suffix" }); - } - - // AssuranceLevel (string) maxLength - if(this.AssuranceLevel != null && this.AssuranceLevel.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AssuranceLevel, length must be less than or equal to 2.", new [] { "AssuranceLevel" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // RequestorId (string) maxLength - if(this.RequestorId != null && this.RequestorId.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorId, length must be less than or equal to 11.", new [] { "RequestorId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.cs b/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.cs index 0a82c8b4..384bc8cd 100644 --- a/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AmexCapnData (string) maxLength - if(this.AmexCapnData != null && this.AmexCapnData.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmexCapnData, length must be less than or equal to 15.", new [] { "AmexCapnData" }); - } - - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 8.", new [] { "TerminalId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.cs b/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.cs index 21157ebf..0ac73317 100644 --- a/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.cs +++ b/Model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Tags (string) maxLength - if(this.Tags != null && this.Tags.Length >= 1998) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Tags, length must be less than or equal to 1998.", new [] { "Tags" }); - } - - // ChipValidationType (string) maxLength - if(this.ChipValidationType != null && this.ChipValidationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChipValidationType, length must be less than or equal to 2.", new [] { "ChipValidationType" }); - } - - // ChipValidationResult (string) maxLength - if(this.ChipValidationResult != null && this.ChipValidationResult.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChipValidationResult, length must be less than or equal to 1.", new [] { "ChipValidationResult" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessingInformation.cs b/Model/PtsV2PaymentsPost201ResponseProcessingInformation.cs index e5f9fba4..0e92ada3 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessingInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessingInformation.cs @@ -155,12 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions.cs b/Model/PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions.cs index 62717f93..ca2c1488 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SettlementMethod (string) maxLength - if(this.SettlementMethod != null && this.SettlementMethod.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementMethod, length must be less than or equal to 1.", new [] { "SettlementMethod" }); - } - - // FraudScreeningLevel (string) maxLength - if(this.FraudScreeningLevel != null && this.FraudScreeningLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FraudScreeningLevel, length must be less than or equal to 1.", new [] { "FraudScreeningLevel" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformation.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformation.cs index 45af28a4..6861abdf 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformation.cs @@ -556,114 +556,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthIndicator (string) maxLength - if(this.AuthIndicator != null && this.AuthIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthIndicator, length must be less than or equal to 1.", new [] { "AuthIndicator" }); - } - - // ApprovalCode (string) maxLength - if(this.ApprovalCode != null && this.ApprovalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApprovalCode, length must be less than or equal to 6.", new [] { "ApprovalCode" }); - } - - // CardReferenceData (string) maxLength - if(this.CardReferenceData != null && this.CardReferenceData.Length >= 56) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardReferenceData, length must be less than or equal to 56.", new [] { "CardReferenceData" }); - } - - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 50.", new [] { "TransactionId" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - - // ResponseCodeSource (string) maxLength - if(this.ResponseCodeSource != null && this.ResponseCodeSource.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCodeSource, length must be less than or equal to 1.", new [] { "ResponseCodeSource" }); - } - - // ResponseDetails (string) maxLength - if(this.ResponseDetails != null && this.ResponseDetails.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseDetails, length must be less than or equal to 255.", new [] { "ResponseDetails" }); - } - - // ResponseCategoryCode (string) maxLength - if(this.ResponseCategoryCode != null && this.ResponseCategoryCode.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCategoryCode, length must be less than or equal to 36.", new [] { "ResponseCategoryCode" }); - } - - // ForwardedAcquirerCode (string) maxLength - if(this.ForwardedAcquirerCode != null && this.ForwardedAcquirerCode.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForwardedAcquirerCode, length must be less than or equal to 32.", new [] { "ForwardedAcquirerCode" }); - } - - // SystemTraceAuditNumber (string) maxLength - if(this.SystemTraceAuditNumber != null && this.SystemTraceAuditNumber.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SystemTraceAuditNumber, length must be less than or equal to 6.", new [] { "SystemTraceAuditNumber" }); - } - - // PaymentAccountReferenceNumber (string) maxLength - if(this.PaymentAccountReferenceNumber != null && this.PaymentAccountReferenceNumber.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentAccountReferenceNumber, length must be less than or equal to 32.", new [] { "PaymentAccountReferenceNumber" }); - } - - // TransactionIntegrityCode (string) maxLength - if(this.TransactionIntegrityCode != null && this.TransactionIntegrityCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionIntegrityCode, length must be less than or equal to 2.", new [] { "TransactionIntegrityCode" }); - } - - // AmexVerbalAuthReferenceNumber (string) maxLength - if(this.AmexVerbalAuthReferenceNumber != null && this.AmexVerbalAuthReferenceNumber.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmexVerbalAuthReferenceNumber, length must be less than or equal to 6.", new [] { "AmexVerbalAuthReferenceNumber" }); - } - - // MasterCardServiceCode (string) maxLength - if(this.MasterCardServiceCode != null && this.MasterCardServiceCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MasterCardServiceCode, length must be less than or equal to 2.", new [] { "MasterCardServiceCode" }); - } - - // MasterCardServiceReplyCode (string) maxLength - if(this.MasterCardServiceReplyCode != null && this.MasterCardServiceReplyCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MasterCardServiceReplyCode, length must be less than or equal to 1.", new [] { "MasterCardServiceReplyCode" }); - } - - // MasterCardAuthenticationType (string) maxLength - if(this.MasterCardAuthenticationType != null && this.MasterCardAuthenticationType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MasterCardAuthenticationType, length must be less than or equal to 1.", new [] { "MasterCardAuthenticationType" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - - // MerchantNumber (string) maxLength - if(this.MerchantNumber != null && this.MerchantNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantNumber, length must be less than or equal to 15.", new [] { "MerchantNumber" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.cs index de5a4427..4978d7bd 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ResultCode (string) maxLength - if(this.ResultCode != null && this.ResultCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResultCode, length must be less than or equal to 2.", new [] { "ResultCode" }); - } - - // ResultCodeRaw (string) maxLength - if(this.ResultCodeRaw != null && this.ResultCodeRaw.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResultCodeRaw, length must be less than or equal to 10.", new [] { "ResultCodeRaw" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.cs index f043c5d5..fd863433 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 1.", new [] { "Code" }); - } - - // CodeRaw (string) maxLength - if(this.CodeRaw != null && this.CodeRaw.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CodeRaw, length must be less than or equal to 10.", new [] { "CodeRaw" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.cs index 75792041..2d021c60 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ResultCode (string) maxLength - if(this.ResultCode != null && this.ResultCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResultCode, length must be less than or equal to 1.", new [] { "ResultCode" }); - } - - // ResultCodeRaw (string) maxLength - if(this.ResultCodeRaw != null && this.ResultCodeRaw.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResultCodeRaw, length must be less than or equal to 10.", new [] { "ResultCodeRaw" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.cs index 33778075..05895d12 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 3.", new [] { "Code" }); - } - - // CodeRaw (string) maxLength - if(this.CodeRaw != null && this.CodeRaw.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CodeRaw, length must be less than or equal to 3.", new [] { "CodeRaw" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.cs index 387b3072..91bf75e7 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PersonalIdResult (string) maxLength - if(this.PersonalIdResult != null && this.PersonalIdResult.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PersonalIdResult, length must be less than or equal to 1.", new [] { "PersonalIdResult" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.cs index 52618d20..49687d38 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.cs @@ -309,78 +309,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 1.", new [] { "Code" }); - } - - // CodeRaw (string) maxLength - if(this.CodeRaw != null && this.CodeRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CodeRaw, length must be less than or equal to 1.", new [] { "CodeRaw" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 1.", new [] { "Email" }); - } - - // EmailRaw (string) maxLength - if(this.EmailRaw != null && this.EmailRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EmailRaw, length must be less than or equal to 1.", new [] { "EmailRaw" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 1.", new [] { "PhoneNumber" }); - } - - // PhoneNumberRaw (string) maxLength - if(this.PhoneNumberRaw != null && this.PhoneNumberRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumberRaw, length must be less than or equal to 1.", new [] { "PhoneNumberRaw" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 1.", new [] { "PostalCode" }); - } - - // PostalCodeRaw (string) maxLength - if(this.PostalCodeRaw != null && this.PostalCodeRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCodeRaw, length must be less than or equal to 1.", new [] { "PostalCodeRaw" }); - } - - // Street (string) maxLength - if(this.Street != null && this.Street.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Street, length must be less than or equal to 1.", new [] { "Street" }); - } - - // StreetRaw (string) maxLength - if(this.StreetRaw != null && this.StreetRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StreetRaw, length must be less than or equal to 1.", new [] { "StreetRaw" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - - // NameRaw (string) maxLength - if(this.NameRaw != null && this.NameRaw.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NameRaw, length must be less than or equal to 30.", new [] { "NameRaw" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.cs index 2c58dd73..2e20cd33 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 2.", new [] { "Code" }); - } - - // CodeRaw (string) maxLength - if(this.CodeRaw != null && this.CodeRaw.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CodeRaw, length must be less than or equal to 4.", new [] { "CodeRaw" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseProcessorInformationRouting.cs b/Model/PtsV2PaymentsPost201ResponseProcessorInformationRouting.cs index cca6566f..89462ded 100644 --- a/Model/PtsV2PaymentsPost201ResponseProcessorInformationRouting.cs +++ b/Model/PtsV2PaymentsPost201ResponseProcessorInformationRouting.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Network (string) maxLength - if(this.Network != null && this.Network.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Network, length must be less than or equal to 4.", new [] { "Network" }); - } - - // NetworkName (string) maxLength - if(this.NetworkName != null && this.NetworkName.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkName, length must be less than or equal to 10.", new [] { "NetworkName" }); - } - - // CustomerSignatureRequired (string) maxLength - if(this.CustomerSignatureRequired != null && this.CustomerSignatureRequired.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerSignatureRequired, length must be less than or equal to 1.", new [] { "CustomerSignatureRequired" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformation.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformation.cs index d4a6fd56..063eee03 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformation.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformation.cs @@ -267,12 +267,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // LocalTime (string) maxLength - if(this.LocalTime != null && this.LocalTime.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LocalTime, length must be less than or equal to 255.", new [] { "LocalTime" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress.cs index 13d5eaf1..9805fc1b 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress.cs @@ -224,48 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AnonymizerStatus (string) maxLength - if(this.AnonymizerStatus != null && this.AnonymizerStatus.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AnonymizerStatus, length must be less than or equal to 255.", new [] { "AnonymizerStatus" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 255.", new [] { "Locality" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 255.", new [] { "Country" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 255.", new [] { "AdministrativeArea" }); - } - - // RoutingMethod (string) maxLength - if(this.RoutingMethod != null && this.RoutingMethod.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoutingMethod, length must be less than or equal to 255.", new [] { "RoutingMethod" }); - } - - // Carrier (string) maxLength - if(this.Carrier != null && this.Carrier.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Carrier, length must be less than or equal to 255.", new [] { "Carrier" }); - } - - // Organization (string) maxLength - if(this.Organization != null && this.Organization.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Organization, length must be less than or equal to 255.", new [] { "Organization" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationProfile.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationProfile.cs index 6c2e6487..0423e9a0 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationProfile.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationProfile.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - - // DesinationQueue (string) maxLength - if(this.DesinationQueue != null && this.DesinationQueue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DesinationQueue, length must be less than or equal to 255.", new [] { "DesinationQueue" }); - } - - // SelectorRule (string) maxLength - if(this.SelectorRule != null && this.SelectorRule.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SelectorRule, length must be less than or equal to 255.", new [] { "SelectorRule" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationRules.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationRules.cs index 2b63f4db..49819546 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationRules.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationRules.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 255.", new [] { "Name" }); - } - - // Decision (string) maxLength - if(this.Decision != null && this.Decision.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Decision, length must be less than or equal to 255.", new [] { "Decision" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationScore.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationScore.cs index f839daaf..cda81137 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationScore.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationScore.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ModelUsed (string) maxLength - if(this.ModelUsed != null && this.ModelUsed.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ModelUsed, length must be less than or equal to 255.", new [] { "ModelUsed" }); - } - - // Result (string) maxLength - if(this.Result != null && this.Result.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Result, length must be less than or equal to 255.", new [] { "Result" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelActualFinalDestination.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelActualFinalDestination.cs index cea84cae..cede3d8c 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelActualFinalDestination.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelActualFinalDestination.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 90.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 90.", new [] { "Locality" }); - } - - // Latitude (string) maxLength - if(this.Latitude != null && this.Latitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Latitude, length must be less than or equal to 10.", new [] { "Latitude" }); - } - - // Longitude (string) maxLength - if(this.Longitude != null && this.Longitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Longitude, length must be less than or equal to 10.", new [] { "Longitude" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDeparture.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDeparture.cs index ff4d1442..c252b8c6 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDeparture.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDeparture.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 90.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 90.", new [] { "Locality" }); - } - - // Latitude (string) maxLength - if(this.Latitude != null && this.Latitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Latitude, length must be less than or equal to 10.", new [] { "Latitude" }); - } - - // Longitude (string) maxLength - if(this.Longitude != null && this.Longitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Longitude, length must be less than or equal to 10.", new [] { "Longitude" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDestination.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDestination.cs index 6a78de7c..dcdae016 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDestination.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDestination.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 90.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 90.", new [] { "Locality" }); - } - - // Latitude (string) maxLength - if(this.Latitude != null && this.Latitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Latitude, length must be less than or equal to 10.", new [] { "Latitude" }); - } - - // Longitude (string) maxLength - if(this.Longitude != null && this.Longitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Longitude, length must be less than or equal to 10.", new [] { "Longitude" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelLastDestination.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelLastDestination.cs index b18dc0ce..2a868e9b 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelLastDestination.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationTravelLastDestination.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 90.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 90) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 90.", new [] { "Locality" }); - } - - // Latitude (string) maxLength - if(this.Latitude != null && this.Latitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Latitude, length must be less than or equal to 10.", new [] { "Latitude" }); - } - - // Longitude (string) maxLength - if(this.Longitude != null && this.Longitude.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Longitude, length must be less than or equal to 10.", new [] { "Longitude" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseRiskInformationVelocityMorphing.cs b/Model/PtsV2PaymentsPost201ResponseRiskInformationVelocityMorphing.cs index a15719df..9709931e 100644 --- a/Model/PtsV2PaymentsPost201ResponseRiskInformationVelocityMorphing.cs +++ b/Model/PtsV2PaymentsPost201ResponseRiskInformationVelocityMorphing.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FieldName (string) maxLength - if(this.FieldName != null && this.FieldName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FieldName, length must be less than or equal to 255.", new [] { "FieldName" }); - } - - // InformationCode (string) maxLength - if(this.InformationCode != null && this.InformationCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InformationCode, length must be less than or equal to 255.", new [] { "InformationCode" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseTokenInformationCustomer.cs b/Model/PtsV2PaymentsPost201ResponseTokenInformationCustomer.cs index e9f8dea9..8900cc31 100644 --- a/Model/PtsV2PaymentsPost201ResponseTokenInformationCustomer.cs +++ b/Model/PtsV2PaymentsPost201ResponseTokenInformationCustomer.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier.cs b/Model/PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier.cs index 0f650a05..b9db8eab 100644 --- a/Model/PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier.cs +++ b/Model/PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 12.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument.cs b/Model/PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument.cs index 2122f954..3b4494d0 100644 --- a/Model/PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument.cs +++ b/Model/PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsPost201ResponseTokenInformationShippingAddress.cs b/Model/PtsV2PaymentsPost201ResponseTokenInformationShippingAddress.cs index 7795301a..2f14ce7c 100644 --- a/Model/PtsV2PaymentsPost201ResponseTokenInformationShippingAddress.cs +++ b/Model/PtsV2PaymentsPost201ResponseTokenInformationShippingAddress.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsRefundPost201Response.cs b/Model/PtsV2PaymentsRefundPost201Response.cs index cd779e1c..a95965e1 100644 --- a/Model/PtsV2PaymentsRefundPost201Response.cs +++ b/Model/PtsV2PaymentsRefundPost201Response.cs @@ -269,18 +269,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.cs b/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.cs index b24baf9a..0444a8b2 100644 --- a/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.cs +++ b/Model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.cs @@ -189,30 +189,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 18.", new [] { "TransactionId" }); - } - - // ForwardedAcquirerCode (string) maxLength - if(this.ForwardedAcquirerCode != null && this.ForwardedAcquirerCode.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForwardedAcquirerCode, length must be less than or equal to 32.", new [] { "ForwardedAcquirerCode" }); - } - - // MerchantNumber (string) maxLength - if(this.MerchantNumber != null && this.MerchantNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantNumber, length must be less than or equal to 15.", new [] { "MerchantNumber" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.cs b/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.cs index dde9d447..2270f781 100644 --- a/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.cs +++ b/Model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RefundAmount (string) maxLength - if(this.RefundAmount != null && this.RefundAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RefundAmount, length must be less than or equal to 15.", new [] { "RefundAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsReversalsPost201Response.cs b/Model/PtsV2PaymentsReversalsPost201Response.cs index 5d10dabd..2f86d3f9 100644 --- a/Model/PtsV2PaymentsReversalsPost201Response.cs +++ b/Model/PtsV2PaymentsReversalsPost201Response.cs @@ -285,18 +285,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.cs b/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.cs index 3ff5c87e..e22d704e 100644 --- a/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.cs +++ b/Model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ApprovalCode (string) maxLength - if(this.ApprovalCode != null && this.ApprovalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApprovalCode, length must be less than or equal to 6.", new [] { "ApprovalCode" }); - } - - // ReasonCode (string) maxLength - if(this.ReasonCode != null && this.ReasonCode.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReasonCode, length must be less than or equal to 50.", new [] { "ReasonCode" }); - } - - // ReversalSubmitted (string) maxLength - if(this.ReversalSubmitted != null && this.ReversalSubmitted.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReversalSubmitted, length must be less than or equal to 1.", new [] { "ReversalSubmitted" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsReversalsPost201ResponseIssuerInformation.cs b/Model/PtsV2PaymentsReversalsPost201ResponseIssuerInformation.cs index 4b62d22e..254046e4 100644 --- a/Model/PtsV2PaymentsReversalsPost201ResponseIssuerInformation.cs +++ b/Model/PtsV2PaymentsReversalsPost201ResponseIssuerInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 6.", new [] { "ResponseCode" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.cs b/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.cs index 3d147a8c..010275f7 100644 --- a/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.cs +++ b/Model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 18.", new [] { "TransactionId" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - - // ResponseCategoryCode (string) maxLength - if(this.ResponseCategoryCode != null && this.ResponseCategoryCode.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCategoryCode, length must be less than or equal to 36.", new [] { "ResponseCategoryCode" }); - } - - // ForwardedAcquirerCode (string) maxLength - if(this.ForwardedAcquirerCode != null && this.ForwardedAcquirerCode.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForwardedAcquirerCode, length must be less than or equal to 32.", new [] { "ForwardedAcquirerCode" }); - } - - // MasterCardServiceCode (string) maxLength - if(this.MasterCardServiceCode != null && this.MasterCardServiceCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MasterCardServiceCode, length must be less than or equal to 2.", new [] { "MasterCardServiceCode" }); - } - - // MasterCardServiceReplyCode (string) maxLength - if(this.MasterCardServiceReplyCode != null && this.MasterCardServiceReplyCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MasterCardServiceReplyCode, length must be less than or equal to 1.", new [] { "MasterCardServiceReplyCode" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.cs b/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.cs index 28775747..944147e9 100644 --- a/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.cs +++ b/Model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ReversedAmount (string) maxLength - if(this.ReversedAmount != null && this.ReversedAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReversedAmount, length must be less than or equal to 15.", new [] { "ReversedAmount" }); - } - - // OriginalTransactionAmount (string) maxLength - if(this.OriginalTransactionAmount != null && this.OriginalTransactionAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalTransactionAmount, length must be less than or equal to 15.", new [] { "OriginalTransactionAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsVoidsPost201Response.cs b/Model/PtsV2PaymentsVoidsPost201Response.cs index 903782be..1c2e0307 100644 --- a/Model/PtsV2PaymentsVoidsPost201Response.cs +++ b/Model/PtsV2PaymentsVoidsPost201Response.cs @@ -220,12 +220,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsVoidsPost201ResponseProcessorInformation.cs b/Model/PtsV2PaymentsVoidsPost201ResponseProcessorInformation.cs index 6b5e5f7d..82bbcc77 100644 --- a/Model/PtsV2PaymentsVoidsPost201ResponseProcessorInformation.cs +++ b/Model/PtsV2PaymentsVoidsPost201ResponseProcessorInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - yield break; } } diff --git a/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.cs b/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.cs index 7d623da8..51029931 100644 --- a/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.cs +++ b/Model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.cs @@ -156,12 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/PtsV2PayoutsPost201Response.cs b/Model/PtsV2PayoutsPost201Response.cs index 7c8b7467..03daa02f 100644 --- a/Model/PtsV2PayoutsPost201Response.cs +++ b/Model/PtsV2PayoutsPost201Response.cs @@ -285,18 +285,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 25.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor.cs b/Model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor.cs index b75de6cf..ce59c3c6 100644 --- a/Model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor.cs +++ b/Model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 13.", new [] { "Locality" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/PtsV2PayoutsPost201ResponseOrderInformationAmountDetails.cs b/Model/PtsV2PayoutsPost201ResponseOrderInformationAmountDetails.cs index e72595a4..8a73bb3b 100644 --- a/Model/PtsV2PayoutsPost201ResponseOrderInformationAmountDetails.cs +++ b/Model/PtsV2PayoutsPost201ResponseOrderInformationAmountDetails.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // SettlementAmount (string) maxLength - if(this.SettlementAmount != null && this.SettlementAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementAmount, length must be less than or equal to 12.", new [] { "SettlementAmount" }); - } - - // SettlementCurrency (string) maxLength - if(this.SettlementCurrency != null && this.SettlementCurrency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementCurrency, length must be less than or equal to 3.", new [] { "SettlementCurrency" }); - } - yield break; } } diff --git a/Model/PtsV2PayoutsPost201ResponseProcessorInformation.cs b/Model/PtsV2PayoutsPost201ResponseProcessorInformation.cs index e1a89eec..61431000 100644 --- a/Model/PtsV2PayoutsPost201ResponseProcessorInformation.cs +++ b/Model/PtsV2PayoutsPost201ResponseProcessorInformation.cs @@ -190,36 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ApprovalCode (string) maxLength - if(this.ApprovalCode != null && this.ApprovalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApprovalCode, length must be less than or equal to 6.", new [] { "ApprovalCode" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 15.", new [] { "TransactionId" }); - } - - // SystemTraceAuditNumber (string) maxLength - if(this.SystemTraceAuditNumber != null && this.SystemTraceAuditNumber.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SystemTraceAuditNumber, length must be less than or equal to 6.", new [] { "SystemTraceAuditNumber" }); - } - - // ResponseCodeSource (string) maxLength - if(this.ResponseCodeSource != null && this.ResponseCodeSource.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCodeSource, length must be less than or equal to 1.", new [] { "ResponseCodeSource" }); - } - yield break; } } diff --git a/Model/PtsV2PayoutsPost201ResponseRecipientInformationCard.cs b/Model/PtsV2PayoutsPost201ResponseRecipientInformationCard.cs index 7e6cd660..6d6afa2c 100644 --- a/Model/PtsV2PayoutsPost201ResponseRecipientInformationCard.cs +++ b/Model/PtsV2PayoutsPost201ResponseRecipientInformationCard.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Balance (string) maxLength - if(this.Balance != null && this.Balance.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Balance, length must be less than or equal to 12.", new [] { "Balance" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/Ptsv2creditsInstallmentInformation.cs b/Model/Ptsv2creditsInstallmentInformation.cs index afd0b421..0a191f25 100644 --- a/Model/Ptsv2creditsInstallmentInformation.cs +++ b/Model/Ptsv2creditsInstallmentInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PlanType (string) maxLength - if(this.PlanType != null && this.PlanType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PlanType, length must be less than or equal to 1.", new [] { "PlanType" }); - } - yield break; } } diff --git a/Model/Ptsv2creditsProcessingInformation.cs b/Model/Ptsv2creditsProcessingInformation.cs index 5bfb505d..671d8c8b 100644 --- a/Model/Ptsv2creditsProcessingInformation.cs +++ b/Model/Ptsv2creditsProcessingInformation.cs @@ -405,78 +405,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CommerceIndicator (string) maxLength - if(this.CommerceIndicator != null && this.CommerceIndicator.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommerceIndicator, length must be less than or equal to 20.", new [] { "CommerceIndicator" }); - } - - // ProcessorId (string) maxLength - if(this.ProcessorId != null && this.ProcessorId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProcessorId, length must be less than or equal to 3.", new [] { "ProcessorId" }); - } - - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - - // LinkId (string) maxLength - if(this.LinkId != null && this.LinkId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LinkId, length must be less than or equal to 26.", new [] { "LinkId" }); - } - - // ReportGroup (string) maxLength - if(this.ReportGroup != null && this.ReportGroup.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportGroup, length must be less than or equal to 25.", new [] { "ReportGroup" }); - } - - // VisaCheckoutId (string) maxLength - if(this.VisaCheckoutId != null && this.VisaCheckoutId.Length >= 48) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VisaCheckoutId, length must be less than or equal to 48.", new [] { "VisaCheckoutId" }); - } - - // PurchaseLevel (string) maxLength - if(this.PurchaseLevel != null && this.PurchaseLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseLevel, length must be less than or equal to 1.", new [] { "PurchaseLevel" }); - } - - // IndustryDataType (string) maxLength - if(this.IndustryDataType != null && this.IndustryDataType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IndustryDataType, length must be less than or equal to 20.", new [] { "IndustryDataType" }); - } - - // WalletType (string) maxLength - if(this.WalletType != null && this.WalletType.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WalletType, length must be less than or equal to 5.", new [] { "WalletType" }); - } - - // NationalNetDomesticData (string) maxLength - if(this.NationalNetDomesticData != null && this.NationalNetDomesticData.Length >= 123) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NationalNetDomesticData, length must be less than or equal to 123.", new [] { "NationalNetDomesticData" }); - } - - // NetworkRoutingOrder (string) maxLength - if(this.NetworkRoutingOrder != null && this.NetworkRoutingOrder.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkRoutingOrder, length must be less than or equal to 30.", new [] { "NetworkRoutingOrder" }); - } - yield break; } } diff --git a/Model/Ptsv2creditsProcessingInformationBankTransferOptions.cs b/Model/Ptsv2creditsProcessingInformationBankTransferOptions.cs index 8227098f..91b40d7a 100644 --- a/Model/Ptsv2creditsProcessingInformationBankTransferOptions.cs +++ b/Model/Ptsv2creditsProcessingInformationBankTransferOptions.cs @@ -224,48 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CustomerMemo (string) maxLength - if(this.CustomerMemo != null && this.CustomerMemo.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerMemo, length must be less than or equal to 80.", new [] { "CustomerMemo" }); - } - - // SecCode (string) maxLength - if(this.SecCode != null && this.SecCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecCode, length must be less than or equal to 3.", new [] { "SecCode" }); - } - - // TerminalCity (string) maxLength - if(this.TerminalCity != null && this.TerminalCity.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCity, length must be less than or equal to 4.", new [] { "TerminalCity" }); - } - - // TerminalState (string) maxLength - if(this.TerminalState != null && this.TerminalState.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalState, length must be less than or equal to 2.", new [] { "TerminalState" }); - } - - // EffectiveDate (string) maxLength - if(this.EffectiveDate != null && this.EffectiveDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EffectiveDate, length must be less than or equal to 8.", new [] { "EffectiveDate" }); - } - - // PartialPaymentId (string) maxLength - if(this.PartialPaymentId != null && this.PartialPaymentId.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PartialPaymentId, length must be less than or equal to 25.", new [] { "PartialPaymentId" }); - } - - // SettlementMethod (string) maxLength - if(this.SettlementMethod != null && this.SettlementMethod.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementMethod, length must be less than or equal to 1.", new [] { "SettlementMethod" }); - } - yield break; } } diff --git a/Model/Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.cs b/Model/Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.cs index 9a56eab4..720bc298 100644 --- a/Model/Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.cs +++ b/Model/Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Category (string) maxLength - if(this.Category != null && this.Category.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Category, length must be less than or equal to 4.", new [] { "Category" }); - } - yield break; } } diff --git a/Model/Ptsv2creditsProcessingInformationJapanPaymentOptions.cs b/Model/Ptsv2creditsProcessingInformationJapanPaymentOptions.cs index 047e9696..ff340732 100644 --- a/Model/Ptsv2creditsProcessingInformationJapanPaymentOptions.cs +++ b/Model/Ptsv2creditsProcessingInformationJapanPaymentOptions.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentMethod (string) maxLength - if(this.PaymentMethod != null && this.PaymentMethod.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentMethod, length must be less than or equal to 2.", new [] { "PaymentMethod" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsAcquirerInformation.cs b/Model/Ptsv2paymentsAcquirerInformation.cs index f32695eb..fcc1af56 100644 --- a/Model/Ptsv2paymentsAcquirerInformation.cs +++ b/Model/Ptsv2paymentsAcquirerInformation.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AcquirerBin (string) maxLength - if(this.AcquirerBin != null && this.AcquirerBin.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcquirerBin, length must be less than or equal to 11.", new [] { "AcquirerBin" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Password (string) maxLength - if(this.Password != null && this.Password.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Password, length must be less than or equal to 8.", new [] { "Password" }); - } - - // MerchantId (string) maxLength - if(this.MerchantId != null && this.MerchantId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantId, length must be less than or equal to 15.", new [] { "MerchantId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsAggregatorInformation.cs b/Model/Ptsv2paymentsAggregatorInformation.cs index 5ebd99e8..c10be959 100644 --- a/Model/Ptsv2paymentsAggregatorInformation.cs +++ b/Model/Ptsv2paymentsAggregatorInformation.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AggregatorId (string) maxLength - if(this.AggregatorId != null && this.AggregatorId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AggregatorId, length must be less than or equal to 20.", new [] { "AggregatorId" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 37) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 37.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsAggregatorInformationSubMerchant.cs b/Model/Ptsv2paymentsAggregatorInformationSubMerchant.cs index 5f6e38f6..e8d7a1be 100644 --- a/Model/Ptsv2paymentsAggregatorInformationSubMerchant.cs +++ b/Model/Ptsv2paymentsAggregatorInformationSubMerchant.cs @@ -292,72 +292,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CardAcceptorId (string) maxLength - if(this.CardAcceptorId != null && this.CardAcceptorId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardAcceptorId, length must be less than or equal to 15.", new [] { "CardAcceptorId" }); - } - - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 20.", new [] { "Id" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 37) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 37.", new [] { "Name" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 38) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 38.", new [] { "Address1" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 21.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 3.", new [] { "AdministrativeArea" }); - } - - // Region (string) maxLength - if(this.Region != null && this.Region.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Region, length must be less than or equal to 3.", new [] { "Region" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 15.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 3.", new [] { "Country" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 40.", new [] { "Email" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 20.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsBuyerInformation.cs b/Model/Ptsv2paymentsBuyerInformation.cs index 45b0d38b..3995d284 100644 --- a/Model/Ptsv2paymentsBuyerInformation.cs +++ b/Model/Ptsv2paymentsBuyerInformation.cs @@ -223,36 +223,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - - // DateOfBirth (string) maxLength - if(this.DateOfBirth != null && this.DateOfBirth.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOfBirth, length must be less than or equal to 8.", new [] { "DateOfBirth" }); - } - - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 20.", new [] { "VatRegistrationNumber" }); - } - - // CompanyTaxId (string) maxLength - if(this.CompanyTaxId != null && this.CompanyTaxId.Length >= 9) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CompanyTaxId, length must be less than or equal to 9.", new [] { "CompanyTaxId" }); - } - - // HashedPassword (string) maxLength - if(this.HashedPassword != null && this.HashedPassword.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HashedPassword, length must be less than or equal to 100.", new [] { "HashedPassword" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.cs b/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.cs index d497e42d..cb434d85 100644 --- a/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.cs +++ b/Model/Ptsv2paymentsBuyerInformationPersonalIdentification.cs @@ -156,12 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsClientReferenceInformation.cs b/Model/Ptsv2paymentsClientReferenceInformation.cs index 040f0ce7..ccbeee5e 100644 --- a/Model/Ptsv2paymentsClientReferenceInformation.cs +++ b/Model/Ptsv2paymentsClientReferenceInformation.cs @@ -34,15 +34,17 @@ public partial class Ptsv2paymentsClientReferenceInformation : IEquatable class. /// /// Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. . + /// Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. . /// Identifier that you assign to the transaction. Normally generated by a client server to identify a unique API request. **Note** Use this field only if you want to support merchant-initiated reversal and void operations. #### Used by **Authorization, Authorization Reversal, Capture, Credit, and Void** Optional field. #### PIN Debit For a PIN debit reversal, your request must include a request ID or a merchant transaction identifier. Optional field for PIN debit purchase or credit requests. . /// Comments. /// Partner. /// The name of the Connection Method client (such as Virtual Terminal or SOAP Toolkit API) that the merchant uses to send a transaction request to CyberSource. . /// Version of the CyberSource application or integration used for a transaction. . /// The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method. . - public Ptsv2paymentsClientReferenceInformation(string Code = default(string), string TransactionId = default(string), string Comments = default(string), Ptsv2paymentsClientReferenceInformationPartner Partner = default(Ptsv2paymentsClientReferenceInformationPartner), string ApplicationName = default(string), string ApplicationVersion = default(string), string ApplicationUser = default(string)) + public Ptsv2paymentsClientReferenceInformation(string Code = default(string), string PausedRequestId = default(string), string TransactionId = default(string), string Comments = default(string), Ptsv2paymentsClientReferenceInformationPartner Partner = default(Ptsv2paymentsClientReferenceInformationPartner), string ApplicationName = default(string), string ApplicationVersion = default(string), string ApplicationUser = default(string)) { this.Code = Code; + this.PausedRequestId = PausedRequestId; this.TransactionId = TransactionId; this.Comments = Comments; this.Partner = Partner; @@ -58,6 +60,13 @@ public partial class Ptsv2paymentsClientReferenceInformation : IEquatable + /// Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. + /// + /// Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. + [DataMember(Name="pausedRequestId", EmitDefaultValue=false)] + public string PausedRequestId { get; set; } + /// /// Identifier that you assign to the transaction. Normally generated by a client server to identify a unique API request. **Note** Use this field only if you want to support merchant-initiated reversal and void operations. #### Used by **Authorization, Authorization Reversal, Capture, Credit, and Void** Optional field. #### PIN Debit For a PIN debit reversal, your request must include a request ID or a merchant transaction identifier. Optional field for PIN debit purchase or credit requests. /// @@ -108,6 +117,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class Ptsv2paymentsClientReferenceInformation {\n"); sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" PausedRequestId: ").Append(PausedRequestId).Append("\n"); sb.Append(" TransactionId: ").Append(TransactionId).Append("\n"); sb.Append(" Comments: ").Append(Comments).Append("\n"); sb.Append(" Partner: ").Append(Partner).Append("\n"); @@ -155,6 +165,11 @@ public bool Equals(Ptsv2paymentsClientReferenceInformation other) this.Code != null && this.Code.Equals(other.Code) ) && + ( + this.PausedRequestId == other.PausedRequestId || + this.PausedRequestId != null && + this.PausedRequestId.Equals(other.PausedRequestId) + ) && ( this.TransactionId == other.TransactionId || this.TransactionId != null && @@ -200,6 +215,8 @@ public override int GetHashCode() // Suitable nullity checks etc, of course :) if (this.Code != null) hash = hash * 59 + this.Code.GetHashCode(); + if (this.PausedRequestId != null) + hash = hash * 59 + this.PausedRequestId.GetHashCode(); if (this.TransactionId != null) hash = hash * 59 + this.TransactionId.GetHashCode(); if (this.Comments != null) @@ -223,18 +240,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 30.", new [] { "TransactionId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsClientReferenceInformationPartner.cs b/Model/Ptsv2paymentsClientReferenceInformationPartner.cs index 1f378152..4287a104 100644 --- a/Model/Ptsv2paymentsClientReferenceInformationPartner.cs +++ b/Model/Ptsv2paymentsClientReferenceInformationPartner.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // OriginalTransactionId (string) maxLength - if(this.OriginalTransactionId != null && this.OriginalTransactionId.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalTransactionId, length must be less than or equal to 32.", new [] { "OriginalTransactionId" }); - } - - // DeveloperId (string) maxLength - if(this.DeveloperId != null && this.DeveloperId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeveloperId, length must be less than or equal to 8.", new [] { "DeveloperId" }); - } - - // SolutionId (string) maxLength - if(this.SolutionId != null && this.SolutionId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SolutionId, length must be less than or equal to 8.", new [] { "SolutionId" }); - } - - // ThirdPartyCertificationNumber (string) maxLength - if(this.ThirdPartyCertificationNumber != null && this.ThirdPartyCertificationNumber.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ThirdPartyCertificationNumber, length must be less than or equal to 12.", new [] { "ThirdPartyCertificationNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsConsumerAuthenticationInformation.cs b/Model/Ptsv2paymentsConsumerAuthenticationInformation.cs index bc338224..b16e58c1 100644 --- a/Model/Ptsv2paymentsConsumerAuthenticationInformation.cs +++ b/Model/Ptsv2paymentsConsumerAuthenticationInformation.cs @@ -1056,270 +1056,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Cavv (string) maxLength - if(this.Cavv != null && this.Cavv.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cavv, length must be less than or equal to 40.", new [] { "Cavv" }); - } - - // CavvAlgorithm (string) maxLength - if(this.CavvAlgorithm != null && this.CavvAlgorithm.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CavvAlgorithm, length must be less than or equal to 1.", new [] { "CavvAlgorithm" }); - } - - // EciRaw (string) maxLength - if(this.EciRaw != null && this.EciRaw.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EciRaw, length must be less than or equal to 2.", new [] { "EciRaw" }); - } - - // ParesStatus (string) maxLength - if(this.ParesStatus != null && this.ParesStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ParesStatus, length must be less than or equal to 1.", new [] { "ParesStatus" }); - } - - // VeresEnrolled (string) maxLength - if(this.VeresEnrolled != null && this.VeresEnrolled.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VeresEnrolled, length must be less than or equal to 1.", new [] { "VeresEnrolled" }); - } - - // Xid (string) maxLength - if(this.Xid != null && this.Xid.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Xid, length must be less than or equal to 40.", new [] { "Xid" }); - } - - // UcafCollectionIndicator (string) maxLength - if(this.UcafCollectionIndicator != null && this.UcafCollectionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UcafCollectionIndicator, length must be less than or equal to 1.", new [] { "UcafCollectionIndicator" }); - } - - // UcafAuthenticationData (string) maxLength - if(this.UcafAuthenticationData != null && this.UcafAuthenticationData.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UcafAuthenticationData, length must be less than or equal to 32.", new [] { "UcafAuthenticationData" }); - } - - // DirectoryServerTransactionId (string) maxLength - if(this.DirectoryServerTransactionId != null && this.DirectoryServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerTransactionId, length must be less than or equal to 36.", new [] { "DirectoryServerTransactionId" }); - } - - // PaSpecificationVersion (string) maxLength - if(this.PaSpecificationVersion != null && this.PaSpecificationVersion.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaSpecificationVersion, length must be less than or equal to 1.", new [] { "PaSpecificationVersion" }); - } - - // AuthenticationType (string) maxLength - if(this.AuthenticationType != null && this.AuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationType, length must be less than or equal to 2.", new [] { "AuthenticationType" }); - } - - // AcsTransactionId (string) maxLength - if(this.AcsTransactionId != null && this.AcsTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsTransactionId, length must be less than or equal to 36.", new [] { "AcsTransactionId" }); - } - - // AcsWindowSize (string) maxLength - if(this.AcsWindowSize != null && this.AcsWindowSize.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsWindowSize, length must be less than or equal to 2.", new [] { "AcsWindowSize" }); - } - - // AlternateAuthenticationData (string) maxLength - if(this.AlternateAuthenticationData != null && this.AlternateAuthenticationData.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AlternateAuthenticationData, length must be less than or equal to 2048.", new [] { "AlternateAuthenticationData" }); - } - - // AlternateAuthenticationDate (string) maxLength - if(this.AlternateAuthenticationDate != null && this.AlternateAuthenticationDate.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AlternateAuthenticationDate, length must be less than or equal to 14.", new [] { "AlternateAuthenticationDate" }); - } - - // AuthenticationDate (string) maxLength - if(this.AuthenticationDate != null && this.AuthenticationDate.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationDate, length must be less than or equal to 14.", new [] { "AuthenticationDate" }); - } - - // AuthenticationTransactionId (string) maxLength - if(this.AuthenticationTransactionId != null && this.AuthenticationTransactionId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationTransactionId, length must be less than or equal to 20.", new [] { "AuthenticationTransactionId" }); - } - - // ChallengeCancelCode (string) maxLength - if(this.ChallengeCancelCode != null && this.ChallengeCancelCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeCancelCode, length must be less than or equal to 2.", new [] { "ChallengeCancelCode" }); - } - - // ChallengeStatus (string) maxLength - if(this.ChallengeStatus != null && this.ChallengeStatus.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeStatus, length must be less than or equal to 2.", new [] { "ChallengeStatus" }); - } - - // CustomerCardAlias (string) maxLength - if(this.CustomerCardAlias != null && this.CustomerCardAlias.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerCardAlias, length must be less than or equal to 128.", new [] { "CustomerCardAlias" }); - } - - // DecoupledAuthenticationIndicator (string) maxLength - if(this.DecoupledAuthenticationIndicator != null && this.DecoupledAuthenticationIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DecoupledAuthenticationIndicator, length must be less than or equal to 1.", new [] { "DecoupledAuthenticationIndicator" }); - } - - // DecoupledAuthenticationMaxTime (string) maxLength - if(this.DecoupledAuthenticationMaxTime != null && this.DecoupledAuthenticationMaxTime.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DecoupledAuthenticationMaxTime, length must be less than or equal to 5.", new [] { "DecoupledAuthenticationMaxTime" }); - } - - // DeviceChannel (string) maxLength - if(this.DeviceChannel != null && this.DeviceChannel.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeviceChannel, length must be less than or equal to 10.", new [] { "DeviceChannel" }); - } - - // MerchantFraudRate (string) maxLength - if(this.MerchantFraudRate != null && this.MerchantFraudRate.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantFraudRate, length must be less than or equal to 2.", new [] { "MerchantFraudRate" }); - } - - // MarketingSource (string) maxLength - if(this.MarketingSource != null && this.MarketingSource.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MarketingSource, length must be less than or equal to 40.", new [] { "MarketingSource" }); - } - - // Mcc (string) maxLength - if(this.Mcc != null && this.Mcc.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Mcc, length must be less than or equal to 4.", new [] { "Mcc" }); - } - - // NetworkScore (string) maxLength - if(this.NetworkScore != null && this.NetworkScore.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkScore, length must be less than or equal to 2.", new [] { "NetworkScore" }); - } - - // NpaCode (string) maxLength - if(this.NpaCode != null && this.NpaCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NpaCode, length must be less than or equal to 2.", new [] { "NpaCode" }); - } - - // OverrideCountryCode (string) maxLength - if(this.OverrideCountryCode != null && this.OverrideCountryCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OverrideCountryCode, length must be less than or equal to 2.", new [] { "OverrideCountryCode" }); - } - - // PriorAuthenticationData (string) maxLength - if(this.PriorAuthenticationData != null && this.PriorAuthenticationData.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationData, length must be less than or equal to 2048.", new [] { "PriorAuthenticationData" }); - } - - // PriorAuthenticationMethod (string) maxLength - if(this.PriorAuthenticationMethod != null && this.PriorAuthenticationMethod.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationMethod, length must be less than or equal to 2.", new [] { "PriorAuthenticationMethod" }); - } - - // PriorAuthenticationReferenceId (string) maxLength - if(this.PriorAuthenticationReferenceId != null && this.PriorAuthenticationReferenceId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationReferenceId, length must be less than or equal to 36.", new [] { "PriorAuthenticationReferenceId" }); - } - - // PriorAuthenticationTime (string) maxLength - if(this.PriorAuthenticationTime != null && this.PriorAuthenticationTime.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationTime, length must be less than or equal to 12.", new [] { "PriorAuthenticationTime" }); - } - - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 3.", new [] { "ProductCode" }); - } - - // ReturnUrl (string) maxLength - if(this.ReturnUrl != null && this.ReturnUrl.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReturnUrl, length must be less than or equal to 2048.", new [] { "ReturnUrl" }); - } - - // RequestorId (string) maxLength - if(this.RequestorId != null && this.RequestorId.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorId, length must be less than or equal to 35.", new [] { "RequestorId" }); - } - - // RequestorInitiatedAuthenticationIndicator (string) maxLength - if(this.RequestorInitiatedAuthenticationIndicator != null && this.RequestorInitiatedAuthenticationIndicator.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorInitiatedAuthenticationIndicator, length must be less than or equal to 2.", new [] { "RequestorInitiatedAuthenticationIndicator" }); - } - - // RequestorName (string) maxLength - if(this.RequestorName != null && this.RequestorName.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorName, length must be less than or equal to 40.", new [] { "RequestorName" }); - } - - // ReferenceId (string) maxLength - if(this.ReferenceId != null && this.ReferenceId.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, length must be less than or equal to 50.", new [] { "ReferenceId" }); - } - - // SdkMaxTimeout (string) maxLength - if(this.SdkMaxTimeout != null && this.SdkMaxTimeout.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkMaxTimeout, length must be less than or equal to 2.", new [] { "SdkMaxTimeout" }); - } - - // SecureCorporatePaymentIndicator (string) maxLength - if(this.SecureCorporatePaymentIndicator != null && this.SecureCorporatePaymentIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecureCorporatePaymentIndicator, length must be less than or equal to 1.", new [] { "SecureCorporatePaymentIndicator" }); - } - - // WhiteListStatus (string) maxLength - if(this.WhiteListStatus != null && this.WhiteListStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatus, length must be less than or equal to 1.", new [] { "WhiteListStatus" }); - } - - // EffectiveAuthenticationType (string) maxLength - if(this.EffectiveAuthenticationType != null && this.EffectiveAuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EffectiveAuthenticationType, length must be less than or equal to 2.", new [] { "EffectiveAuthenticationType" }); - } - - // SignedParesStatusReason (string) maxLength - if(this.SignedParesStatusReason != null && this.SignedParesStatusReason.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SignedParesStatusReason, length must be less than or equal to 2.", new [] { "SignedParesStatusReason" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.cs b/Model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.cs index b600f64f..bdd15696 100644 --- a/Model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.cs +++ b/Model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // LowValueExemptionIndicator (string) maxLength - if(this.LowValueExemptionIndicator != null && this.LowValueExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LowValueExemptionIndicator, length must be less than or equal to 1.", new [] { "LowValueExemptionIndicator" }); - } - - // RiskAnalysisExemptionIndicator (string) maxLength - if(this.RiskAnalysisExemptionIndicator != null && this.RiskAnalysisExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RiskAnalysisExemptionIndicator, length must be less than or equal to 1.", new [] { "RiskAnalysisExemptionIndicator" }); - } - - // TrustedMerchantExemptionIndicator (string) maxLength - if(this.TrustedMerchantExemptionIndicator != null && this.TrustedMerchantExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TrustedMerchantExemptionIndicator, length must be less than or equal to 1.", new [] { "TrustedMerchantExemptionIndicator" }); - } - - // SecureCorporatePaymentIndicator (string) maxLength - if(this.SecureCorporatePaymentIndicator != null && this.SecureCorporatePaymentIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecureCorporatePaymentIndicator, length must be less than or equal to 1.", new [] { "SecureCorporatePaymentIndicator" }); - } - - // DelegatedAuthenticationExemptionIndicator (string) maxLength - if(this.DelegatedAuthenticationExemptionIndicator != null && this.DelegatedAuthenticationExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DelegatedAuthenticationExemptionIndicator, length must be less than or equal to 1.", new [] { "DelegatedAuthenticationExemptionIndicator" }); - } - - // AuthenticationIndicator (string) maxLength - if(this.AuthenticationIndicator != null && this.AuthenticationIndicator.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationIndicator, length must be less than or equal to 2.", new [] { "AuthenticationIndicator" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsDeviceInformation.cs b/Model/Ptsv2paymentsDeviceInformation.cs index 7dc70ad3..4414324b 100644 --- a/Model/Ptsv2paymentsDeviceInformation.cs +++ b/Model/Ptsv2paymentsDeviceInformation.cs @@ -393,72 +393,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // HostName (string) maxLength - if(this.HostName != null && this.HostName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HostName, length must be less than or equal to 60.", new [] { "HostName" }); - } - - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // UserAgent (string) maxLength - if(this.UserAgent != null && this.UserAgent.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserAgent, length must be less than or equal to 40.", new [] { "UserAgent" }); - } - - // HttpAcceptBrowserValue (string) maxLength - if(this.HttpAcceptBrowserValue != null && this.HttpAcceptBrowserValue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpAcceptBrowserValue, length must be less than or equal to 255.", new [] { "HttpAcceptBrowserValue" }); - } - - // HttpAcceptContent (string) maxLength - if(this.HttpAcceptContent != null && this.HttpAcceptContent.Length >= 256) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpAcceptContent, length must be less than or equal to 256.", new [] { "HttpAcceptContent" }); - } - - // HttpBrowserLanguage (string) maxLength - if(this.HttpBrowserLanguage != null && this.HttpBrowserLanguage.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserLanguage, length must be less than or equal to 8.", new [] { "HttpBrowserLanguage" }); - } - - // HttpBrowserColorDepth (string) maxLength - if(this.HttpBrowserColorDepth != null && this.HttpBrowserColorDepth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserColorDepth, length must be less than or equal to 2.", new [] { "HttpBrowserColorDepth" }); - } - - // HttpBrowserScreenHeight (string) maxLength - if(this.HttpBrowserScreenHeight != null && this.HttpBrowserScreenHeight.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserScreenHeight, length must be less than or equal to 6.", new [] { "HttpBrowserScreenHeight" }); - } - - // HttpBrowserScreenWidth (string) maxLength - if(this.HttpBrowserScreenWidth != null && this.HttpBrowserScreenWidth.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserScreenWidth, length must be less than or equal to 6.", new [] { "HttpBrowserScreenWidth" }); - } - - // HttpBrowserTimeDifference (string) maxLength - if(this.HttpBrowserTimeDifference != null && this.HttpBrowserTimeDifference.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserTimeDifference, length must be less than or equal to 5.", new [] { "HttpBrowserTimeDifference" }); - } - - // UserAgentBrowserValue (string) maxLength - if(this.UserAgentBrowserValue != null && this.UserAgentBrowserValue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserAgentBrowserValue, length must be less than or equal to 255.", new [] { "UserAgentBrowserValue" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsDeviceInformationRawData.cs b/Model/Ptsv2paymentsDeviceInformationRawData.cs index fc00d7d9..73b475cc 100644 --- a/Model/Ptsv2paymentsDeviceInformationRawData.cs +++ b/Model/Ptsv2paymentsDeviceInformationRawData.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Provider (string) maxLength - if(this.Provider != null && this.Provider.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Provider, length must be less than or equal to 32.", new [] { "Provider" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsHealthCareInformationAmountDetails.cs b/Model/Ptsv2paymentsHealthCareInformationAmountDetails.cs index 9929d49e..ede5bf6e 100644 --- a/Model/Ptsv2paymentsHealthCareInformationAmountDetails.cs +++ b/Model/Ptsv2paymentsHealthCareInformationAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AmountType (string) maxLength - if(this.AmountType != null && this.AmountType.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmountType, length must be less than or equal to 35.", new [] { "AmountType" }); - } - - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 13.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsInstallmentInformation.cs b/Model/Ptsv2paymentsInstallmentInformation.cs index 5474e988..2ea2f84d 100644 --- a/Model/Ptsv2paymentsInstallmentInformation.cs +++ b/Model/Ptsv2paymentsInstallmentInformation.cs @@ -326,78 +326,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 12.", new [] { "Amount" }); - } - - // Frequency (string) maxLength - if(this.Frequency != null && this.Frequency.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Frequency, length must be less than or equal to 1.", new [] { "Frequency" }); - } - - // PlanType (string) maxLength - if(this.PlanType != null && this.PlanType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PlanType, length must be less than or equal to 1.", new [] { "PlanType" }); - } - // Sequence (int?) maximum - if(this.Sequence >= (int?)99) + if(this.Sequence > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Sequence, must be a value less than or equal to 99.", new [] { "Sequence" }); } - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 12.", new [] { "TotalAmount" }); - } - // TotalCount (int?) maximum - if(this.TotalCount >= (int?)99) + if(this.TotalCount > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCount, must be a value less than or equal to 99.", new [] { "TotalCount" }); } - // FirstInstallmentDate (string) maxLength - if(this.FirstInstallmentDate != null && this.FirstInstallmentDate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstInstallmentDate, length must be less than or equal to 6.", new [] { "FirstInstallmentDate" }); - } - - // InvoiceData (string) maxLength - if(this.InvoiceData != null && this.InvoiceData.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceData, length must be less than or equal to 20.", new [] { "InvoiceData" }); - } - - // PaymentType (string) maxLength - if(this.PaymentType != null && this.PaymentType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentType, length must be less than or equal to 1.", new [] { "PaymentType" }); - } - - // EligibilityInquiry (string) maxLength - if(this.EligibilityInquiry != null && this.EligibilityInquiry.Length >= 9) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EligibilityInquiry, length must be less than or equal to 9.", new [] { "EligibilityInquiry" }); - } - - // GracePeriodDurationType (string) maxLength - if(this.GracePeriodDurationType != null && this.GracePeriodDurationType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GracePeriodDurationType, length must be less than or equal to 1.", new [] { "GracePeriodDurationType" }); - } - - // FirstInstallmentAmount (string) maxLength - if(this.FirstInstallmentAmount != null && this.FirstInstallmentAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstInstallmentAmount, length must be less than or equal to 13.", new [] { "FirstInstallmentAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsIssuerInformation.cs b/Model/Ptsv2paymentsIssuerInformation.cs index a82d3778..da61453f 100644 --- a/Model/Ptsv2paymentsIssuerInformation.cs +++ b/Model/Ptsv2paymentsIssuerInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DiscretionaryData (string) maxLength - if(this.DiscretionaryData != null && this.DiscretionaryData.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscretionaryData, length must be less than or equal to 255.", new [] { "DiscretionaryData" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsMerchantDefinedInformation.cs b/Model/Ptsv2paymentsMerchantDefinedInformation.cs index 311ae838..d199a101 100644 --- a/Model/Ptsv2paymentsMerchantDefinedInformation.cs +++ b/Model/Ptsv2paymentsMerchantDefinedInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Key (string) maxLength - if(this.Key != null && this.Key.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Key, length must be less than or equal to 50.", new [] { "Key" }); - } - - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 255.", new [] { "Value" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsMerchantInformation.cs b/Model/Ptsv2paymentsMerchantInformation.cs index 5055a07f..4565c204 100644 --- a/Model/Ptsv2paymentsMerchantInformation.cs +++ b/Model/Ptsv2paymentsMerchantInformation.cs @@ -273,54 +273,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SalesOrganizationId (string) maxLength - if(this.SalesOrganizationId != null && this.SalesOrganizationId.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SalesOrganizationId, length must be less than or equal to 11.", new [] { "SalesOrganizationId" }); - } - // CategoryCode (int?) maximum - if(this.CategoryCode >= (int?)9999) + if(this.CategoryCode > (int?)9999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CategoryCode, must be a value less than or equal to 9999.", new [] { "CategoryCode" }); } // CategoryCodeDomestic (int?) maximum - if(this.CategoryCodeDomestic >= (int?)9999) + if(this.CategoryCodeDomestic > (int?)9999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CategoryCodeDomestic, must be a value less than or equal to 9999.", new [] { "CategoryCodeDomestic" }); } - // TaxId (string) maxLength - if(this.TaxId != null && this.TaxId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxId, length must be less than or equal to 15.", new [] { "TaxId" }); - } - - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 21.", new [] { "VatRegistrationNumber" }); - } - - // CardAcceptorReferenceNumber (string) maxLength - if(this.CardAcceptorReferenceNumber != null && this.CardAcceptorReferenceNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardAcceptorReferenceNumber, length must be less than or equal to 25.", new [] { "CardAcceptorReferenceNumber" }); - } - - // TransactionLocalDateTime (string) maxLength - if(this.TransactionLocalDateTime != null && this.TransactionLocalDateTime.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionLocalDateTime, length must be less than or equal to 14.", new [] { "TransactionLocalDateTime" }); - } - - // MerchantName (string) maxLength - if(this.MerchantName != null && this.MerchantName.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantName, length must be less than or equal to 25.", new [] { "MerchantName" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.cs b/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.cs index ba23402b..57a7f400 100644 --- a/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.cs +++ b/Model/Ptsv2paymentsMerchantInformationMerchantDescriptor.cs @@ -275,54 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AlternateName (string) maxLength - if(this.AlternateName != null && this.AlternateName.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AlternateName, length must be less than or equal to 13.", new [] { "AlternateName" }); - } - - // Contact (string) maxLength - if(this.Contact != null && this.Contact.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Contact, length must be less than or equal to 14.", new [] { "Contact" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 13.", new [] { "Locality" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 14.", new [] { "PostalCode" }); - } - - // Phone (string) maxLength - if(this.Phone != null && this.Phone.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Phone, length must be less than or equal to 13.", new [] { "Phone" }); - } - - // Url (string) maxLength - if(this.Url != null && this.Url.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Url, length must be less than or equal to 255.", new [] { "Url" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsMerchantInformationServiceFeeDescriptor.cs b/Model/Ptsv2paymentsMerchantInformationServiceFeeDescriptor.cs index 665744c4..8ee7808c 100644 --- a/Model/Ptsv2paymentsMerchantInformationServiceFeeDescriptor.cs +++ b/Model/Ptsv2paymentsMerchantInformationServiceFeeDescriptor.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 22) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 22.", new [] { "Name" }); - } - - // Contact (string) maxLength - if(this.Contact != null && this.Contact.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Contact, length must be less than or equal to 11.", new [] { "Contact" }); - } - - // State (string) maxLength - if(this.State != null && this.State.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for State, length must be less than or equal to 20.", new [] { "State" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformation.cs b/Model/Ptsv2paymentsOrderInformation.cs index 8fd9dbb9..392f35b7 100644 --- a/Model/Ptsv2paymentsOrderInformation.cs +++ b/Model/Ptsv2paymentsOrderInformation.cs @@ -286,18 +286,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PreOrderDate (string) maxLength - if(this.PreOrderDate != null && this.PreOrderDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PreOrderDate, length must be less than or equal to 10.", new [] { "PreOrderDate" }); - } - - // TotalOffersCount (string) maxLength - if(this.TotalOffersCount != null && this.TotalOffersCount.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalOffersCount, length must be less than or equal to 2.", new [] { "TotalOffersCount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationAmountDetails.cs b/Model/Ptsv2paymentsOrderInformationAmountDetails.cs index 8722abdb..ce6b5255 100644 --- a/Model/Ptsv2paymentsOrderInformationAmountDetails.cs +++ b/Model/Ptsv2paymentsOrderInformationAmountDetails.cs @@ -526,132 +526,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // DiscountAmount (string) maxLength - if(this.DiscountAmount != null && this.DiscountAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountAmount, length must be less than or equal to 15.", new [] { "DiscountAmount" }); - } - - // DutyAmount (string) maxLength - if(this.DutyAmount != null && this.DutyAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DutyAmount, length must be less than or equal to 15.", new [] { "DutyAmount" }); - } - - // GratuityAmount (string) maxLength - if(this.GratuityAmount != null && this.GratuityAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GratuityAmount, length must be less than or equal to 13.", new [] { "GratuityAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 12.", new [] { "TaxAmount" }); - } - - // NationalTaxIncluded (string) maxLength - if(this.NationalTaxIncluded != null && this.NationalTaxIncluded.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NationalTaxIncluded, length must be less than or equal to 1.", new [] { "NationalTaxIncluded" }); - } - - // TaxAppliedAfterDiscount (string) maxLength - if(this.TaxAppliedAfterDiscount != null && this.TaxAppliedAfterDiscount.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAppliedAfterDiscount, length must be less than or equal to 1.", new [] { "TaxAppliedAfterDiscount" }); - } - - // TaxAppliedLevel (string) maxLength - if(this.TaxAppliedLevel != null && this.TaxAppliedLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAppliedLevel, length must be less than or equal to 1.", new [] { "TaxAppliedLevel" }); - } - - // TaxTypeCode (string) maxLength - if(this.TaxTypeCode != null && this.TaxTypeCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxTypeCode, length must be less than or equal to 3.", new [] { "TaxTypeCode" }); - } - - // FreightAmount (string) maxLength - if(this.FreightAmount != null && this.FreightAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FreightAmount, length must be less than or equal to 13.", new [] { "FreightAmount" }); - } - - // ForeignAmount (string) maxLength - if(this.ForeignAmount != null && this.ForeignAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForeignAmount, length must be less than or equal to 15.", new [] { "ForeignAmount" }); - } - - // ForeignCurrency (string) maxLength - if(this.ForeignCurrency != null && this.ForeignCurrency.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForeignCurrency, length must be less than or equal to 5.", new [] { "ForeignCurrency" }); - } - - // ExchangeRate (string) maxLength - if(this.ExchangeRate != null && this.ExchangeRate.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeRate, length must be less than or equal to 13.", new [] { "ExchangeRate" }); - } - - // ExchangeRateTimeStamp (string) maxLength - if(this.ExchangeRateTimeStamp != null && this.ExchangeRateTimeStamp.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeRateTimeStamp, length must be less than or equal to 14.", new [] { "ExchangeRateTimeStamp" }); - } - - // SettlementAmount (string) maxLength - if(this.SettlementAmount != null && this.SettlementAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementAmount, length must be less than or equal to 12.", new [] { "SettlementAmount" }); - } - - // SettlementCurrency (string) maxLength - if(this.SettlementCurrency != null && this.SettlementCurrency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementCurrency, length must be less than or equal to 3.", new [] { "SettlementCurrency" }); - } - - // ServiceFeeAmount (string) maxLength - if(this.ServiceFeeAmount != null && this.ServiceFeeAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ServiceFeeAmount, length must be less than or equal to 15.", new [] { "ServiceFeeAmount" }); - } - - // OriginalAmount (string) maxLength - if(this.OriginalAmount != null && this.OriginalAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalAmount, length must be less than or equal to 15.", new [] { "OriginalAmount" }); - } - - // OriginalCurrency (string) maxLength - if(this.OriginalCurrency != null && this.OriginalCurrency.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalCurrency, length must be less than or equal to 15.", new [] { "OriginalCurrency" }); - } - - // CashbackAmount (string) maxLength - if(this.CashbackAmount != null && this.CashbackAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CashbackAmount, length must be less than or equal to 13.", new [] { "CashbackAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.cs b/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.cs index 3de22009..e98a0440 100644 --- a/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.cs +++ b/Model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 3.", new [] { "Code" }); - } - - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 12.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion.cs b/Model/Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion.cs index b550f5b3..4cd92f62 100644 --- a/Model/Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion.cs +++ b/Model/Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Indicator (string) maxLength - if(this.Indicator != null && this.Indicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Indicator, length must be less than or equal to 1.", new [] { "Indicator" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.cs b/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.cs index 23a58608..9835def3 100644 --- a/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.cs +++ b/Model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 15.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.cs b/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.cs index e012ee48..39390cac 100644 --- a/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.cs +++ b/Model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.cs @@ -224,36 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 13.", new [] { "Amount" }); - } - - // Rate (string) maxLength - if(this.Rate != null && this.Rate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Rate, length must be less than or equal to 6.", new [] { "Rate" }); - } - - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 4.", new [] { "Code" }); - } - - // TaxId (string) maxLength - if(this.TaxId != null && this.TaxId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxId, length must be less than or equal to 15.", new [] { "TaxId" }); - } - - // ExemptionCode (string) maxLength - if(this.ExemptionCode != null && this.ExemptionCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExemptionCode, length must be less than or equal to 1.", new [] { "ExemptionCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationBillTo.cs b/Model/Ptsv2paymentsOrderInformationBillTo.cs index 16e4f55d..88283070 100644 --- a/Model/Ptsv2paymentsOrderInformationBillTo.cs +++ b/Model/Ptsv2paymentsOrderInformationBillTo.cs @@ -444,114 +444,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // MiddleName (string) maxLength - if(this.MiddleName != null && this.MiddleName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiddleName, length must be less than or equal to 60.", new [] { "MiddleName" }); - } - - // NameSuffix (string) maxLength - if(this.NameSuffix != null && this.NameSuffix.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NameSuffix, length must be less than or equal to 60.", new [] { "NameSuffix" }); - } - - // Title (string) maxLength - if(this.Title != null && this.Title.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than or equal to 60.", new [] { "Title" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Address3 (string) maxLength - if(this.Address3 != null && this.Address3.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address3, length must be less than or equal to 60.", new [] { "Address3" }); - } - - // Address4 (string) maxLength - if(this.Address4 != null && this.Address4.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address4, length must be less than or equal to 60.", new [] { "Address4" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // District (string) maxLength - if(this.District != null && this.District.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for District, length must be less than or equal to 50.", new [] { "District" }); - } - - // BuildingNumber (string) maxLength - if(this.BuildingNumber != null && this.BuildingNumber.Length >= 256) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BuildingNumber, length must be less than or equal to 256.", new [] { "BuildingNumber" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // EmailDomain (string) maxLength - if(this.EmailDomain != null && this.EmailDomain.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EmailDomain, length must be less than or equal to 100.", new [] { "EmailDomain" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationBillToCompany.cs b/Model/Ptsv2paymentsOrderInformationBillToCompany.cs index 85e716a2..e4c545d0 100644 --- a/Model/Ptsv2paymentsOrderInformationBillToCompany.cs +++ b/Model/Ptsv2paymentsOrderInformationBillToCompany.cs @@ -224,48 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 60.", new [] { "Name" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 40.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 40.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 30.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationInvoiceDetails.cs b/Model/Ptsv2paymentsOrderInformationInvoiceDetails.cs index 3c4b2f46..bfa711e4 100644 --- a/Model/Ptsv2paymentsOrderInformationInvoiceDetails.cs +++ b/Model/Ptsv2paymentsOrderInformationInvoiceDetails.cs @@ -359,60 +359,12 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PurchaseOrderNumber (string) maxLength - if(this.PurchaseOrderNumber != null && this.PurchaseOrderNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseOrderNumber, length must be less than or equal to 25.", new [] { "PurchaseOrderNumber" }); - } - - // PurchaseOrderDate (string) maxLength - if(this.PurchaseOrderDate != null && this.PurchaseOrderDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseOrderDate, length must be less than or equal to 10.", new [] { "PurchaseOrderDate" }); - } - - // PurchaseContactName (string) maxLength - if(this.PurchaseContactName != null && this.PurchaseContactName.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseContactName, length must be less than or equal to 36.", new [] { "PurchaseContactName" }); - } - - // VatInvoiceReferenceNumber (string) maxLength - if(this.VatInvoiceReferenceNumber != null && this.VatInvoiceReferenceNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatInvoiceReferenceNumber, length must be less than or equal to 15.", new [] { "VatInvoiceReferenceNumber" }); - } - - // CommodityCode (string) maxLength - if(this.CommodityCode != null && this.CommodityCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommodityCode, length must be less than or equal to 4.", new [] { "CommodityCode" }); - } - - // ReferenceDataCode (string) maxLength - if(this.ReferenceDataCode != null && this.ReferenceDataCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceDataCode, length must be less than or equal to 3.", new [] { "ReferenceDataCode" }); - } - - // ReferenceDataNumber (string) maxLength - if(this.ReferenceDataNumber != null && this.ReferenceDataNumber.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceDataNumber, length must be less than or equal to 30.", new [] { "ReferenceDataNumber" }); - } - // SalesSlipNumber (int?) maximum - if(this.SalesSlipNumber >= (int?)99999) + if(this.SalesSlipNumber > (int?)99999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SalesSlipNumber, must be a value less than or equal to 99999.", new [] { "SalesSlipNumber" }); } - // InvoiceDate (string) maxLength - if(this.InvoiceDate != null && this.InvoiceDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceDate, length must be less than or equal to 8.", new [] { "InvoiceDate" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.cs b/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.cs index bb7936d1..d4586994 100644 --- a/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.cs +++ b/Model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Data (string) maxLength - if(this.Data != null && this.Data.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Data, length must be less than or equal to 40.", new [] { "Data" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationLineItems.cs b/Model/Ptsv2paymentsOrderInformationLineItems.cs index a3618225..e4d62cc8 100644 --- a/Model/Ptsv2paymentsOrderInformationLineItems.cs +++ b/Model/Ptsv2paymentsOrderInformationLineItems.cs @@ -630,150 +630,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ProductSku (string) maxLength - if(this.ProductSku != null && this.ProductSku.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSku, length must be less than or equal to 255.", new [] { "ProductSku" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - - // UnitOfMeasure (string) maxLength - if(this.UnitOfMeasure != null && this.UnitOfMeasure.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitOfMeasure, length must be less than or equal to 12.", new [] { "UnitOfMeasure" }); - } - - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 13.", new [] { "TotalAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - - // TaxRate (string) maxLength - if(this.TaxRate != null && this.TaxRate.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxRate, length must be less than or equal to 7.", new [] { "TaxRate" }); - } - - // TaxAppliedAfterDiscount (string) maxLength - if(this.TaxAppliedAfterDiscount != null && this.TaxAppliedAfterDiscount.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAppliedAfterDiscount, length must be less than or equal to 1.", new [] { "TaxAppliedAfterDiscount" }); - } - - // TaxStatusIndicator (string) maxLength - if(this.TaxStatusIndicator != null && this.TaxStatusIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxStatusIndicator, length must be less than or equal to 1.", new [] { "TaxStatusIndicator" }); - } - - // TaxTypeCode (string) maxLength - if(this.TaxTypeCode != null && this.TaxTypeCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxTypeCode, length must be less than or equal to 4.", new [] { "TaxTypeCode" }); - } - - // TypeOfSupply (string) maxLength - if(this.TypeOfSupply != null && this.TypeOfSupply.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TypeOfSupply, length must be less than or equal to 2.", new [] { "TypeOfSupply" }); - } - - // CommodityCode (string) maxLength - if(this.CommodityCode != null && this.CommodityCode.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommodityCode, length must be less than or equal to 15.", new [] { "CommodityCode" }); - } - - // DiscountAmount (string) maxLength - if(this.DiscountAmount != null && this.DiscountAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountAmount, length must be less than or equal to 13.", new [] { "DiscountAmount" }); - } - - // DiscountRate (string) maxLength - if(this.DiscountRate != null && this.DiscountRate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountRate, length must be less than or equal to 6.", new [] { "DiscountRate" }); - } - - // InvoiceNumber (string) maxLength - if(this.InvoiceNumber != null && this.InvoiceNumber.Length >= 23) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceNumber, length must be less than or equal to 23.", new [] { "InvoiceNumber" }); - } - - // Weight (string) maxLength - if(this.Weight != null && this.Weight.Length >= 9) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Weight, length must be less than or equal to 9.", new [] { "Weight" }); - } - - // WeightIdentifier (string) maxLength - if(this.WeightIdentifier != null && this.WeightIdentifier.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WeightIdentifier, length must be less than or equal to 1.", new [] { "WeightIdentifier" }); - } - - // WeightUnit (string) maxLength - if(this.WeightUnit != null && this.WeightUnit.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WeightUnit, length must be less than or equal to 2.", new [] { "WeightUnit" }); - } - - // ReferenceDataCode (string) maxLength - if(this.ReferenceDataCode != null && this.ReferenceDataCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceDataCode, length must be less than or equal to 2.", new [] { "ReferenceDataCode" }); - } - - // ReferenceDataNumber (string) maxLength - if(this.ReferenceDataNumber != null && this.ReferenceDataNumber.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceDataNumber, length must be less than or equal to 30.", new [] { "ReferenceDataNumber" }); - } - - // ShippingDestinationTypes (string) maxLength - if(this.ShippingDestinationTypes != null && this.ShippingDestinationTypes.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingDestinationTypes, length must be less than or equal to 50.", new [] { "ShippingDestinationTypes" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationPassenger.cs b/Model/Ptsv2paymentsOrderInformationPassenger.cs index c5cf4db6..c709a359 100644 --- a/Model/Ptsv2paymentsOrderInformationPassenger.cs +++ b/Model/Ptsv2paymentsOrderInformationPassenger.cs @@ -241,54 +241,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 32.", new [] { "Type" }); - } - - // Status (string) maxLength - if(this.Status != null && this.Status.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Status, length must be less than or equal to 32.", new [] { "Status" }); - } - - // Phone (string) maxLength - if(this.Phone != null && this.Phone.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Phone, length must be less than or equal to 15.", new [] { "Phone" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 40.", new [] { "Id" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // Nationality (string) maxLength - if(this.Nationality != null && this.Nationality.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Nationality, length must be less than or equal to 2.", new [] { "Nationality" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationShipTo.cs b/Model/Ptsv2paymentsOrderInformationShipTo.cs index 70772df1..4353d196 100644 --- a/Model/Ptsv2paymentsOrderInformationShipTo.cs +++ b/Model/Ptsv2paymentsOrderInformationShipTo.cs @@ -360,90 +360,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // District (string) maxLength - if(this.District != null && this.District.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for District, length must be less than or equal to 50.", new [] { "District" }); - } - - // BuildingNumber (string) maxLength - if(this.BuildingNumber != null && this.BuildingNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BuildingNumber, length must be less than or equal to 15.", new [] { "BuildingNumber" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - - // Company (string) maxLength - if(this.Company != null && this.Company.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Company, length must be less than or equal to 60.", new [] { "Company" }); - } - - // DestinationTypes (string) maxLength - if(this.DestinationTypes != null && this.DestinationTypes.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DestinationTypes, length must be less than or equal to 25.", new [] { "DestinationTypes" }); - } - - // Method (string) maxLength - if(this.Method != null && this.Method.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Method, length must be less than or equal to 10.", new [] { "Method" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsOrderInformationShippingDetails.cs b/Model/Ptsv2paymentsOrderInformationShippingDetails.cs index 84c2aa6f..94bf4e25 100644 --- a/Model/Ptsv2paymentsOrderInformationShippingDetails.cs +++ b/Model/Ptsv2paymentsOrderInformationShippingDetails.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ShippingMethod (string) maxLength - if(this.ShippingMethod != null && this.ShippingMethod.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingMethod, length must be less than or equal to 10.", new [] { "ShippingMethod" }); - } - - // ShipFromPostalCode (string) maxLength - if(this.ShipFromPostalCode != null && this.ShipFromPostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromPostalCode, length must be less than or equal to 10.", new [] { "ShipFromPostalCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformation.cs b/Model/Ptsv2paymentsPaymentInformation.cs index a09ba334..e20cb30d 100644 --- a/Model/Ptsv2paymentsPaymentInformation.cs +++ b/Model/Ptsv2paymentsPaymentInformation.cs @@ -282,12 +282,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // InitiationChannel (string) maxLength - if(this.InitiationChannel != null && this.InitiationChannel.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InitiationChannel, length must be less than or equal to 2.", new [] { "InitiationChannel" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationBank.cs b/Model/Ptsv2paymentsPaymentInformationBank.cs index 276856e2..8ff639ad 100644 --- a/Model/Ptsv2paymentsPaymentInformationBank.cs +++ b/Model/Ptsv2paymentsPaymentInformationBank.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RoutingNumber (string) maxLength - if(this.RoutingNumber != null && this.RoutingNumber.Length >= 9) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoutingNumber, length must be less than or equal to 9.", new [] { "RoutingNumber" }); - } - - // Iban (string) maxLength - if(this.Iban != null && this.Iban.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Iban, length must be less than or equal to 50.", new [] { "Iban" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationBankAccount.cs b/Model/Ptsv2paymentsPaymentInformationBankAccount.cs index 387f94f1..d70a9a90 100644 --- a/Model/Ptsv2paymentsPaymentInformationBankAccount.cs +++ b/Model/Ptsv2paymentsPaymentInformationBankAccount.cs @@ -190,36 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 1.", new [] { "Type" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 17.", new [] { "Number" }); - } - - // EncoderId (string) maxLength - if(this.EncoderId != null && this.EncoderId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncoderId, length must be less than or equal to 3.", new [] { "EncoderId" }); - } - - // CheckNumber (string) maxLength - if(this.CheckNumber != null && this.CheckNumber.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CheckNumber, length must be less than or equal to 8.", new [] { "CheckNumber" }); - } - - // CheckImageReferenceNumber (string) maxLength - if(this.CheckImageReferenceNumber != null && this.CheckImageReferenceNumber.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CheckImageReferenceNumber, length must be less than or equal to 32.", new [] { "CheckImageReferenceNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationCard.cs b/Model/Ptsv2paymentsPaymentInformationCard.cs index e6babc13..36a57427 100644 --- a/Model/Ptsv2paymentsPaymentInformationCard.cs +++ b/Model/Ptsv2paymentsPaymentInformationCard.cs @@ -343,84 +343,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // UseAs (string) maxLength - if(this.UseAs != null && this.UseAs.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UseAs, length must be less than or equal to 20.", new [] { "UseAs" }); - } - - // SourceAccountType (string) maxLength - if(this.SourceAccountType != null && this.SourceAccountType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountType, length must be less than or equal to 20.", new [] { "SourceAccountType" }); - } - - // SourceAccountTypeDetails (string) maxLength - if(this.SourceAccountTypeDetails != null && this.SourceAccountTypeDetails.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountTypeDetails, length must be less than or equal to 4.", new [] { "SourceAccountTypeDetails" }); - } - - // SecurityCode (string) maxLength - if(this.SecurityCode != null && this.SecurityCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecurityCode, length must be less than or equal to 4.", new [] { "SecurityCode" }); - } - - // SecurityCodeIndicator (string) maxLength - if(this.SecurityCodeIndicator != null && this.SecurityCodeIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecurityCodeIndicator, length must be less than or equal to 1.", new [] { "SecurityCodeIndicator" }); - } - - // AccountEncoderId (string) maxLength - if(this.AccountEncoderId != null && this.AccountEncoderId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountEncoderId, length must be less than or equal to 3.", new [] { "AccountEncoderId" }); - } - - // IssueNumber (string) maxLength - if(this.IssueNumber != null && this.IssueNumber.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be less than or equal to 5.", new [] { "IssueNumber" }); - } - - // StartMonth (string) maxLength - if(this.StartMonth != null && this.StartMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be less than or equal to 2.", new [] { "StartMonth" }); - } - - // StartYear (string) maxLength - if(this.StartYear != null && this.StartYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be less than or equal to 4.", new [] { "StartYear" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 15.", new [] { "ProductName" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationCustomer.cs b/Model/Ptsv2paymentsPaymentInformationCustomer.cs index 9724514e..a459da5c 100644 --- a/Model/Ptsv2paymentsPaymentInformationCustomer.cs +++ b/Model/Ptsv2paymentsPaymentInformationCustomer.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationFluidData.cs b/Model/Ptsv2paymentsPaymentInformationFluidData.cs index 223880d0..295b7395 100644 --- a/Model/Ptsv2paymentsPaymentInformationFluidData.cs +++ b/Model/Ptsv2paymentsPaymentInformationFluidData.cs @@ -173,24 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Descriptor (string) maxLength - if(this.Descriptor != null && this.Descriptor.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Descriptor, length must be less than or equal to 128.", new [] { "Descriptor" }); - } - - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 3072) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 3072.", new [] { "Value" }); - } - - // Encoding (string) maxLength - if(this.Encoding != null && this.Encoding.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Encoding, length must be less than or equal to 6.", new [] { "Encoding" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationInstrumentIdentifier.cs b/Model/Ptsv2paymentsPaymentInformationInstrumentIdentifier.cs index bbd64909..4c69cfce 100644 --- a/Model/Ptsv2paymentsPaymentInformationInstrumentIdentifier.cs +++ b/Model/Ptsv2paymentsPaymentInformationInstrumentIdentifier.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 12.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationLegacyToken.cs b/Model/Ptsv2paymentsPaymentInformationLegacyToken.cs index 24e4d349..85c41951 100644 --- a/Model/Ptsv2paymentsPaymentInformationLegacyToken.cs +++ b/Model/Ptsv2paymentsPaymentInformationLegacyToken.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 22) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 22.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 16) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 16.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationPaymentInstrument.cs b/Model/Ptsv2paymentsPaymentInformationPaymentInstrument.cs index ab0bf1db..17ef5a20 100644 --- a/Model/Ptsv2paymentsPaymentInformationPaymentInstrument.cs +++ b/Model/Ptsv2paymentsPaymentInformationPaymentInstrument.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationShippingAddress.cs b/Model/Ptsv2paymentsPaymentInformationShippingAddress.cs index 11235d22..3b6ff11a 100644 --- a/Model/Ptsv2paymentsPaymentInformationShippingAddress.cs +++ b/Model/Ptsv2paymentsPaymentInformationShippingAddress.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPaymentInformationTokenizedCard.cs b/Model/Ptsv2paymentsPaymentInformationTokenizedCard.cs index e72c6fed..c4a028a2 100644 --- a/Model/Ptsv2paymentsPaymentInformationTokenizedCard.cs +++ b/Model/Ptsv2paymentsPaymentInformationTokenizedCard.cs @@ -275,60 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Cryptogram (string) maxLength - if(this.Cryptogram != null && this.Cryptogram.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cryptogram, length must be less than or equal to 40.", new [] { "Cryptogram" }); - } - - // RequestorId (string) maxLength - if(this.RequestorId != null && this.RequestorId.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorId, length must be less than or equal to 11.", new [] { "RequestorId" }); - } - - // TransactionType (string) maxLength - if(this.TransactionType != null && this.TransactionType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionType, length must be less than or equal to 1.", new [] { "TransactionType" }); - } - - // AssuranceLevel (string) maxLength - if(this.AssuranceLevel != null && this.AssuranceLevel.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AssuranceLevel, length must be less than or equal to 2.", new [] { "AssuranceLevel" }); - } - - // StorageMethod (string) maxLength - if(this.StorageMethod != null && this.StorageMethod.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StorageMethod, length must be less than or equal to 3.", new [] { "StorageMethod" }); - } - - // SecurityCode (string) maxLength - if(this.SecurityCode != null && this.SecurityCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecurityCode, length must be less than or equal to 4.", new [] { "SecurityCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPointOfSaleInformation.cs b/Model/Ptsv2paymentsPointOfSaleInformation.cs index 23722fb9..dd8363ed 100644 --- a/Model/Ptsv2paymentsPointOfSaleInformation.cs +++ b/Model/Ptsv2paymentsPointOfSaleInformation.cs @@ -546,144 +546,36 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 8.", new [] { "TerminalId" }); - } - - // TerminalSerialNumber (string) maxLength - if(this.TerminalSerialNumber != null && this.TerminalSerialNumber.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalSerialNumber, length must be less than or equal to 32.", new [] { "TerminalSerialNumber" }); - } - - // LaneNumber (string) maxLength - if(this.LaneNumber != null && this.LaneNumber.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LaneNumber, length must be less than or equal to 8.", new [] { "LaneNumber" }); - } - // CatLevel (int?) maximum - if(this.CatLevel >= (int?)9) + if(this.CatLevel > (int?)9) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CatLevel, must be a value less than or equal to 9.", new [] { "CatLevel" }); } // CatLevel (int?) minimum - if(this.CatLevel <= (int?)1) + if(this.CatLevel < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CatLevel, must be a value greater than or equal to 1.", new [] { "CatLevel" }); } - // EntryMode (string) maxLength - if(this.EntryMode != null && this.EntryMode.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EntryMode, length must be less than or equal to 11.", new [] { "EntryMode" }); - } - // TerminalCapability (int?) maximum - if(this.TerminalCapability >= (int?)5) + if(this.TerminalCapability > (int?)5) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCapability, must be a value less than or equal to 5.", new [] { "TerminalCapability" }); } // TerminalCapability (int?) minimum - if(this.TerminalCapability <= (int?)1) + if(this.TerminalCapability < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCapability, must be a value greater than or equal to 1.", new [] { "TerminalCapability" }); } - // OperatingEnvironment (string) maxLength - if(this.OperatingEnvironment != null && this.OperatingEnvironment.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OperatingEnvironment, length must be less than or equal to 1.", new [] { "OperatingEnvironment" }); - } - - // AmexCapnData (string) maxLength - if(this.AmexCapnData != null && this.AmexCapnData.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmexCapnData, length must be less than or equal to 15.", new [] { "AmexCapnData" }); - } - - // StoreAndForwardIndicator (string) maxLength - if(this.StoreAndForwardIndicator != null && this.StoreAndForwardIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StoreAndForwardIndicator, length must be less than or equal to 1.", new [] { "StoreAndForwardIndicator" }); - } - - // TerminalCardCaptureCapability (string) maxLength - if(this.TerminalCardCaptureCapability != null && this.TerminalCardCaptureCapability.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCardCaptureCapability, length must be less than or equal to 1.", new [] { "TerminalCardCaptureCapability" }); - } - - // TerminalOutputCapability (string) maxLength - if(this.TerminalOutputCapability != null && this.TerminalOutputCapability.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalOutputCapability, length must be less than or equal to 1.", new [] { "TerminalOutputCapability" }); - } - - // DeviceId (string) maxLength - if(this.DeviceId != null && this.DeviceId.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeviceId, length must be less than or equal to 32.", new [] { "DeviceId" }); - } - // PinBlockEncodingFormat (int?) maximum - if(this.PinBlockEncodingFormat >= (int?)9) + if(this.PinBlockEncodingFormat > (int?)9) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PinBlockEncodingFormat, must be a value less than or equal to 9.", new [] { "PinBlockEncodingFormat" }); } - // EncryptedPin (string) maxLength - if(this.EncryptedPin != null && this.EncryptedPin.Length >= 16) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncryptedPin, length must be less than or equal to 16.", new [] { "EncryptedPin" }); - } - - // EncryptedKeySerialNumber (string) maxLength - if(this.EncryptedKeySerialNumber != null && this.EncryptedKeySerialNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncryptedKeySerialNumber, length must be less than or equal to 20.", new [] { "EncryptedKeySerialNumber" }); - } - - // PartnerSdkVersion (string) maxLength - if(this.PartnerSdkVersion != null && this.PartnerSdkVersion.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PartnerSdkVersion, length must be less than or equal to 32.", new [] { "PartnerSdkVersion" }); - } - - // EmvApplicationIdentifierAndDedicatedFileName (string) maxLength - if(this.EmvApplicationIdentifierAndDedicatedFileName != null && this.EmvApplicationIdentifierAndDedicatedFileName.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EmvApplicationIdentifierAndDedicatedFileName, length must be less than or equal to 32.", new [] { "EmvApplicationIdentifierAndDedicatedFileName" }); - } - - // TerminalCompliance (string) maxLength - if(this.TerminalCompliance != null && this.TerminalCompliance.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCompliance, length must be less than or equal to 2.", new [] { "TerminalCompliance" }); - } - - // IsDedicatedHardwareTerminal (string) maxLength - if(this.IsDedicatedHardwareTerminal != null && this.IsDedicatedHardwareTerminal.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IsDedicatedHardwareTerminal, length must be less than or equal to 1.", new [] { "IsDedicatedHardwareTerminal" }); - } - - // TerminalModel (string) maxLength - if(this.TerminalModel != null && this.TerminalModel.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalModel, length must be less than or equal to 32.", new [] { "TerminalModel" }); - } - - // TerminalMake (string) maxLength - if(this.TerminalMake != null && this.TerminalMake.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalMake, length must be less than or equal to 32.", new [] { "TerminalMake" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPointOfSaleInformationEmv.cs b/Model/Ptsv2paymentsPointOfSaleInformationEmv.cs index 28703e28..08fe42e6 100644 --- a/Model/Ptsv2paymentsPointOfSaleInformationEmv.cs +++ b/Model/Ptsv2paymentsPointOfSaleInformationEmv.cs @@ -198,18 +198,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Tags (string) maxLength - if(this.Tags != null && this.Tags.Length >= 1998) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Tags, length must be less than or equal to 1998.", new [] { "Tags" }); - } - - // CardSequenceNumber (string) maxLength - if(this.CardSequenceNumber != null && this.CardSequenceNumber.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardSequenceNumber, length must be less than or equal to 3.", new [] { "CardSequenceNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformation.cs b/Model/Ptsv2paymentsProcessingInformation.cs index b4fa68e5..5bc326d6 100644 --- a/Model/Ptsv2paymentsProcessingInformation.cs +++ b/Model/Ptsv2paymentsProcessingInformation.cs @@ -564,90 +564,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ProcessorId (string) maxLength - if(this.ProcessorId != null && this.ProcessorId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProcessorId, length must be less than or equal to 3.", new [] { "ProcessorId" }); - } - - // CommerceIndicator (string) maxLength - if(this.CommerceIndicator != null && this.CommerceIndicator.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommerceIndicator, length must be less than or equal to 20.", new [] { "CommerceIndicator" }); - } - - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - - // LinkId (string) maxLength - if(this.LinkId != null && this.LinkId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LinkId, length must be less than or equal to 26.", new [] { "LinkId" }); - } - - // PurchaseLevel (string) maxLength - if(this.PurchaseLevel != null && this.PurchaseLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseLevel, length must be less than or equal to 1.", new [] { "PurchaseLevel" }); - } - - // ReportGroup (string) maxLength - if(this.ReportGroup != null && this.ReportGroup.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportGroup, length must be less than or equal to 25.", new [] { "ReportGroup" }); - } - - // VisaCheckoutId (string) maxLength - if(this.VisaCheckoutId != null && this.VisaCheckoutId.Length >= 48) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VisaCheckoutId, length must be less than or equal to 48.", new [] { "VisaCheckoutId" }); - } - - // IndustryDataType (string) maxLength - if(this.IndustryDataType != null && this.IndustryDataType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IndustryDataType, length must be less than or equal to 20.", new [] { "IndustryDataType" }); - } - - // WalletType (string) maxLength - if(this.WalletType != null && this.WalletType.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WalletType, length must be less than or equal to 5.", new [] { "WalletType" }); - } - - // NationalNetDomesticData (string) maxLength - if(this.NationalNetDomesticData != null && this.NationalNetDomesticData.Length >= 123) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NationalNetDomesticData, length must be less than or equal to 123.", new [] { "NationalNetDomesticData" }); - } - - // MobileRemotePaymentType (string) maxLength - if(this.MobileRemotePaymentType != null && this.MobileRemotePaymentType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MobileRemotePaymentType, length must be less than or equal to 1.", new [] { "MobileRemotePaymentType" }); - } - - // ExtendedCreditTotalCount (string) maxLength - if(this.ExtendedCreditTotalCount != null && this.ExtendedCreditTotalCount.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExtendedCreditTotalCount, length must be less than or equal to 1.", new [] { "ExtendedCreditTotalCount" }); - } - - // NetworkRoutingOrder (string) maxLength - if(this.NetworkRoutingOrder != null && this.NetworkRoutingOrder.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkRoutingOrder, length must be less than or equal to 30.", new [] { "NetworkRoutingOrder" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.cs b/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.cs index e4fe53f8..219741ff 100644 --- a/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.cs +++ b/Model/Ptsv2paymentsProcessingInformationAuthorizationOptions.cs @@ -409,30 +409,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthType (string) maxLength - if(this.AuthType != null && this.AuthType.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthType, length must be less than or equal to 15.", new [] { "AuthType" }); - } - - // VerbalAuthCode (string) maxLength - if(this.VerbalAuthCode != null && this.VerbalAuthCode.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VerbalAuthCode, length must be less than or equal to 7.", new [] { "VerbalAuthCode" }); - } - - // VerbalAuthTransactionId (string) maxLength - if(this.VerbalAuthTransactionId != null && this.VerbalAuthTransactionId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VerbalAuthTransactionId, length must be less than or equal to 15.", new [] { "VerbalAuthTransactionId" }); - } - - // AuthIndicator (string) maxLength - if(this.AuthIndicator != null && this.AuthIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthIndicator, length must be less than or equal to 1.", new [] { "AuthIndicator" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.cs b/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.cs index 528e8ce5..934a6d36 100644 --- a/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.cs +++ b/Model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Reason (string) maxLength - if(this.Reason != null && this.Reason.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reason, length must be less than or equal to 1.", new [] { "Reason" }); - } - - // PreviousTransactionId (string) maxLength - if(this.PreviousTransactionId != null && this.PreviousTransactionId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PreviousTransactionId, length must be less than or equal to 15.", new [] { "PreviousTransactionId" }); - } - - // OriginalAuthorizedAmount (string) maxLength - if(this.OriginalAuthorizedAmount != null && this.OriginalAuthorizedAmount.Length >= 61) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalAuthorizedAmount, length must be less than or equal to 61.", new [] { "OriginalAuthorizedAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationBankTransferOptions.cs b/Model/Ptsv2paymentsProcessingInformationBankTransferOptions.cs index 3553aaa8..215ee848 100644 --- a/Model/Ptsv2paymentsProcessingInformationBankTransferOptions.cs +++ b/Model/Ptsv2paymentsProcessingInformationBankTransferOptions.cs @@ -292,72 +292,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DeclineAvsFlags (string) maxLength - if(this.DeclineAvsFlags != null && this.DeclineAvsFlags.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeclineAvsFlags, length must be less than or equal to 15.", new [] { "DeclineAvsFlags" }); - } - - // SecCode (string) maxLength - if(this.SecCode != null && this.SecCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecCode, length must be less than or equal to 3.", new [] { "SecCode" }); - } - - // TerminalCity (string) maxLength - if(this.TerminalCity != null && this.TerminalCity.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCity, length must be less than or equal to 4.", new [] { "TerminalCity" }); - } - - // TerminalState (string) maxLength - if(this.TerminalState != null && this.TerminalState.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalState, length must be less than or equal to 2.", new [] { "TerminalState" }); - } - - // EffectiveDate (string) maxLength - if(this.EffectiveDate != null && this.EffectiveDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EffectiveDate, length must be less than or equal to 8.", new [] { "EffectiveDate" }); - } - - // PartialPaymentId (string) maxLength - if(this.PartialPaymentId != null && this.PartialPaymentId.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PartialPaymentId, length must be less than or equal to 25.", new [] { "PartialPaymentId" }); - } - - // CustomerMemo (string) maxLength - if(this.CustomerMemo != null && this.CustomerMemo.Length >= 80) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerMemo, length must be less than or equal to 80.", new [] { "CustomerMemo" }); - } - - // PaymentCategoryCode (string) maxLength - if(this.PaymentCategoryCode != null && this.PaymentCategoryCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentCategoryCode, length must be less than or equal to 1.", new [] { "PaymentCategoryCode" }); - } - - // SettlementMethod (string) maxLength - if(this.SettlementMethod != null && this.SettlementMethod.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementMethod, length must be less than or equal to 1.", new [] { "SettlementMethod" }); - } - - // FraudScreeningLevel (string) maxLength - if(this.FraudScreeningLevel != null && this.FraudScreeningLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FraudScreeningLevel, length must be less than or equal to 1.", new [] { "FraudScreeningLevel" }); - } - - // CustomerPresent (string) maxLength - if(this.CustomerPresent != null && this.CustomerPresent.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerPresent, length must be less than or equal to 1.", new [] { "CustomerPresent" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationCaptureOptions.cs b/Model/Ptsv2paymentsProcessingInformationCaptureOptions.cs index 4f8173ea..0110b463 100644 --- a/Model/Ptsv2paymentsProcessingInformationCaptureOptions.cs +++ b/Model/Ptsv2paymentsProcessingInformationCaptureOptions.cs @@ -157,35 +157,29 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // CaptureSequenceNumber (int?) maximum - if(this.CaptureSequenceNumber >= (int?)99) + if(this.CaptureSequenceNumber > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CaptureSequenceNumber, must be a value less than or equal to 99.", new [] { "CaptureSequenceNumber" }); } // CaptureSequenceNumber (int?) minimum - if(this.CaptureSequenceNumber <= (int?)1) + if(this.CaptureSequenceNumber < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CaptureSequenceNumber, must be a value greater than or equal to 1.", new [] { "CaptureSequenceNumber" }); } // TotalCaptureCount (int?) maximum - if(this.TotalCaptureCount >= (int?)99) + if(this.TotalCaptureCount > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCaptureCount, must be a value less than or equal to 99.", new [] { "TotalCaptureCount" }); } // TotalCaptureCount (int?) minimum - if(this.TotalCaptureCount <= (int?)1) + if(this.TotalCaptureCount < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCaptureCount, must be a value greater than or equal to 1.", new [] { "TotalCaptureCount" }); } - // DateToCapture (string) maxLength - if(this.DateToCapture != null && this.DateToCapture.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateToCapture, length must be less than or equal to 4.", new [] { "DateToCapture" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer.cs b/Model/Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer.cs index f43f0252..78b227d0 100644 --- a/Model/Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer.cs +++ b/Model/Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Category (string) maxLength - if(this.Category != null && this.Category.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Category, length must be less than or equal to 4.", new [] { "Category" }); - } - - // VoucherSerialNumber (string) maxLength - if(this.VoucherSerialNumber != null && this.VoucherSerialNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VoucherSerialNumber, length must be less than or equal to 15.", new [] { "VoucherSerialNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationJapanPaymentOptions.cs b/Model/Ptsv2paymentsProcessingInformationJapanPaymentOptions.cs index f1f83e7f..cf3329d6 100644 --- a/Model/Ptsv2paymentsProcessingInformationJapanPaymentOptions.cs +++ b/Model/Ptsv2paymentsProcessingInformationJapanPaymentOptions.cs @@ -241,48 +241,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentMethod (string) maxLength - if(this.PaymentMethod != null && this.PaymentMethod.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentMethod, length must be less than or equal to 2.", new [] { "PaymentMethod" }); - } - - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 13.", new [] { "TerminalId" }); - } - - // FirstBillingMonth (string) maxLength - if(this.FirstBillingMonth != null && this.FirstBillingMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstBillingMonth, length must be less than or equal to 2.", new [] { "FirstBillingMonth" }); - } - - // BusinessName (string) maxLength - if(this.BusinessName != null && this.BusinessName.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessName, length must be less than or equal to 25.", new [] { "BusinessName" }); - } - - // BusinessNameKatakana (string) maxLength - if(this.BusinessNameKatakana != null && this.BusinessNameKatakana.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessNameKatakana, length must be less than or equal to 25.", new [] { "BusinessNameKatakana" }); - } - - // Jis2TrackData (string) maxLength - if(this.Jis2TrackData != null && this.Jis2TrackData.Length >= 69) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Jis2TrackData, length must be less than or equal to 69.", new [] { "Jis2TrackData" }); - } - - // BusinessNameAlphaNumeric (string) maxLength - if(this.BusinessNameAlphaNumeric != null && this.BusinessNameAlphaNumeric.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessNameAlphaNumeric, length must be less than or equal to 25.", new [] { "BusinessNameAlphaNumeric" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationLoanOptions.cs b/Model/Ptsv2paymentsProcessingInformationLoanOptions.cs index 7baa4e44..0b51e901 100644 --- a/Model/Ptsv2paymentsProcessingInformationLoanOptions.cs +++ b/Model/Ptsv2paymentsProcessingInformationLoanOptions.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 20.", new [] { "Type" }); - } - - // AssetType (string) maxLength - if(this.AssetType != null && this.AssetType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AssetType, length must be less than or equal to 1.", new [] { "AssetType" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsProcessingInformationPurchaseOptions.cs b/Model/Ptsv2paymentsProcessingInformationPurchaseOptions.cs index f7a1045f..3f096990 100644 --- a/Model/Ptsv2paymentsProcessingInformationPurchaseOptions.cs +++ b/Model/Ptsv2paymentsProcessingInformationPurchaseOptions.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 6.", new [] { "Type" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsPromotionInformation.cs b/Model/Ptsv2paymentsPromotionInformation.cs index 73cb2e67..67b0d12e 100644 --- a/Model/Ptsv2paymentsPromotionInformation.cs +++ b/Model/Ptsv2paymentsPromotionInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AdditionalCode (string) maxLength - if(this.AdditionalCode != null && this.AdditionalCode.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalCode, length must be less than or equal to 12.", new [] { "AdditionalCode" }); - } - - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 12.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRecipientInformation.cs b/Model/Ptsv2paymentsRecipientInformation.cs index d60cbc0e..d9c2d4d8 100644 --- a/Model/Ptsv2paymentsRecipientInformation.cs +++ b/Model/Ptsv2paymentsRecipientInformation.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AccountId (string) maxLength - if(this.AccountId != null && this.AccountId.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountId, length must be less than or equal to 10.", new [] { "AccountId" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 6.", new [] { "LastName" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 6.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRecurringPaymentInformation.cs b/Model/Ptsv2paymentsRecurringPaymentInformation.cs index 4851473f..aed8d24a 100644 --- a/Model/Ptsv2paymentsRecurringPaymentInformation.cs +++ b/Model/Ptsv2paymentsRecurringPaymentInformation.cs @@ -190,18 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // EndDate (string) maxLength - if(this.EndDate != null && this.EndDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EndDate, length must be less than or equal to 10.", new [] { "EndDate" }); - } - - // OriginalPurchaseDate (string) maxLength - if(this.OriginalPurchaseDate != null && this.OriginalPurchaseDate.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalPurchaseDate, length must be less than or equal to 17.", new [] { "OriginalPurchaseDate" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRiskInformation.cs b/Model/Ptsv2paymentsRiskInformation.cs index 9aaa7c3e..4a7cdc53 100644 --- a/Model/Ptsv2paymentsRiskInformation.cs +++ b/Model/Ptsv2paymentsRiskInformation.cs @@ -170,12 +170,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // EventType (string) maxLength - if(this.EventType != null && this.EventType.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EventType, length must be less than or equal to 255.", new [] { "EventType" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRiskInformationAuxiliaryData.cs b/Model/Ptsv2paymentsRiskInformationAuxiliaryData.cs index 8431ca74..a9ad2eae 100644 --- a/Model/Ptsv2paymentsRiskInformationAuxiliaryData.cs +++ b/Model/Ptsv2paymentsRiskInformationAuxiliaryData.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Key (string) maxLength - if(this.Key != null && this.Key.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Key, length must be less than or equal to 255.", new [] { "Key" }); - } - - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 255.", new [] { "Value" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory.cs b/Model/Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory.cs index ee50f8a4..2d2ee609 100644 --- a/Model/Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory.cs +++ b/Model/Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ShippingAddressUsageDate (string) maxLength - if(this.ShippingAddressUsageDate != null && this.ShippingAddressUsageDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingAddressUsageDate, length must be less than or equal to 10.", new [] { "ShippingAddressUsageDate" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount.cs b/Model/Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount.cs index 25717f04..c03697a6 100644 --- a/Model/Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount.cs +++ b/Model/Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount.cs @@ -207,24 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // LastChangeDate (string) maxLength - if(this.LastChangeDate != null && this.LastChangeDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastChangeDate, length must be less than or equal to 10.", new [] { "LastChangeDate" }); - } - - // CreateDate (string) maxLength - if(this.CreateDate != null && this.CreateDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CreateDate, length must be less than or equal to 10.", new [] { "CreateDate" }); - } - - // PasswordChangeDate (string) maxLength - if(this.PasswordChangeDate != null && this.PasswordChangeDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PasswordChangeDate, length must be less than or equal to 10.", new [] { "PasswordChangeDate" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsRiskInformationProfile.cs b/Model/Ptsv2paymentsRiskInformationProfile.cs index 8669c0ac..031ef5d9 100644 --- a/Model/Ptsv2paymentsRiskInformationProfile.cs +++ b/Model/Ptsv2paymentsRiskInformationProfile.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTokenInformation.cs b/Model/Ptsv2paymentsTokenInformation.cs index da3fb8a1..26dc18c1 100644 --- a/Model/Ptsv2paymentsTokenInformation.cs +++ b/Model/Ptsv2paymentsTokenInformation.cs @@ -188,12 +188,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Jti (string) maxLength - if(this.Jti != null && this.Jti.Length >= 64) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Jti, length must be less than or equal to 64.", new [] { "Jti" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformation.cs b/Model/Ptsv2paymentsTravelInformation.cs index 41ab4b92..bec4a55d 100644 --- a/Model/Ptsv2paymentsTravelInformation.cs +++ b/Model/Ptsv2paymentsTravelInformation.cs @@ -186,12 +186,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Duration (string) maxLength - if(this.Duration != null && this.Duration.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Duration, length must be less than or equal to 2.", new [] { "Duration" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationAgency.cs b/Model/Ptsv2paymentsTravelInformationAgency.cs index 035f5e5a..f3c57116 100644 --- a/Model/Ptsv2paymentsTravelInformationAgency.cs +++ b/Model/Ptsv2paymentsTravelInformationAgency.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 8.", new [] { "Code" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 25.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationAutoRental.cs b/Model/Ptsv2paymentsTravelInformationAutoRental.cs index 330168d6..2a8a8cc2 100644 --- a/Model/Ptsv2paymentsTravelInformationAutoRental.cs +++ b/Model/Ptsv2paymentsTravelInformationAutoRental.cs @@ -816,228 +816,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CustomerName (string) maxLength - if(this.CustomerName != null && this.CustomerName.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerName, length must be less than or equal to 40.", new [] { "CustomerName" }); - } - - // VehicleClass (string) maxLength - if(this.VehicleClass != null && this.VehicleClass.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VehicleClass, length must be less than or equal to 4.", new [] { "VehicleClass" }); - } - - // DistanceTravelled (string) maxLength - if(this.DistanceTravelled != null && this.DistanceTravelled.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DistanceTravelled, length must be less than or equal to 5.", new [] { "DistanceTravelled" }); - } - - // DistanceUnit (string) maxLength - if(this.DistanceUnit != null && this.DistanceUnit.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DistanceUnit, length must be less than or equal to 1.", new [] { "DistanceUnit" }); - } - - // ReturnDateTime (string) maxLength - if(this.ReturnDateTime != null && this.ReturnDateTime.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReturnDateTime, length must be less than or equal to 21.", new [] { "ReturnDateTime" }); - } - - // RentalDateTime (string) maxLength - if(this.RentalDateTime != null && this.RentalDateTime.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RentalDateTime, length must be less than or equal to 21.", new [] { "RentalDateTime" }); - } - - // MaxFreeDistance (string) maxLength - if(this.MaxFreeDistance != null && this.MaxFreeDistance.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MaxFreeDistance, length must be less than or equal to 4.", new [] { "MaxFreeDistance" }); - } - - // ProgramCode (string) maxLength - if(this.ProgramCode != null && this.ProgramCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProgramCode, length must be less than or equal to 2.", new [] { "ProgramCode" }); - } - - // AgreementNumber (string) maxLength - if(this.AgreementNumber != null && this.AgreementNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AgreementNumber, length must be less than or equal to 25.", new [] { "AgreementNumber" }); - } - - // OdometerReading (string) maxLength - if(this.OdometerReading != null && this.OdometerReading.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OdometerReading, length must be less than or equal to 8.", new [] { "OdometerReading" }); - } - - // VehicleIdentificationNumber (string) maxLength - if(this.VehicleIdentificationNumber != null && this.VehicleIdentificationNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VehicleIdentificationNumber, length must be less than or equal to 20.", new [] { "VehicleIdentificationNumber" }); - } - - // CompanyId (string) maxLength - if(this.CompanyId != null && this.CompanyId.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CompanyId, length must be less than or equal to 12.", new [] { "CompanyId" }); - } - - // NumberOfAdditionalDrivers (string) maxLength - if(this.NumberOfAdditionalDrivers != null && this.NumberOfAdditionalDrivers.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfAdditionalDrivers, length must be less than or equal to 1.", new [] { "NumberOfAdditionalDrivers" }); - } - - // DriverAge (string) maxLength - if(this.DriverAge != null && this.DriverAge.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DriverAge, length must be less than or equal to 3.", new [] { "DriverAge" }); - } - - // SpecialProgramCode (string) maxLength - if(this.SpecialProgramCode != null && this.SpecialProgramCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SpecialProgramCode, length must be less than or equal to 2.", new [] { "SpecialProgramCode" }); - } - - // VehicleMake (string) maxLength - if(this.VehicleMake != null && this.VehicleMake.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VehicleMake, length must be less than or equal to 10.", new [] { "VehicleMake" }); - } - - // VehicleModel (string) maxLength - if(this.VehicleModel != null && this.VehicleModel.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VehicleModel, length must be less than or equal to 10.", new [] { "VehicleModel" }); - } - - // TimePeriod (string) maxLength - if(this.TimePeriod != null && this.TimePeriod.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TimePeriod, length must be less than or equal to 7.", new [] { "TimePeriod" }); - } - - // CommodityCode (string) maxLength - if(this.CommodityCode != null && this.CommodityCode.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommodityCode, length must be less than or equal to 15.", new [] { "CommodityCode" }); - } - - // CustomerServicePhoneNumber (string) maxLength - if(this.CustomerServicePhoneNumber != null && this.CustomerServicePhoneNumber.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerServicePhoneNumber, length must be less than or equal to 17.", new [] { "CustomerServicePhoneNumber" }); - } - - // InsuranceAmount (string) maxLength - if(this.InsuranceAmount != null && this.InsuranceAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InsuranceAmount, length must be less than or equal to 12.", new [] { "InsuranceAmount" }); - } - - // OneWayDropOffAmount (string) maxLength - if(this.OneWayDropOffAmount != null && this.OneWayDropOffAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OneWayDropOffAmount, length must be less than or equal to 12.", new [] { "OneWayDropOffAmount" }); - } - - // AdjustedAmountIndicator (string) maxLength - if(this.AdjustedAmountIndicator != null && this.AdjustedAmountIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdjustedAmountIndicator, length must be less than or equal to 1.", new [] { "AdjustedAmountIndicator" }); - } - - // AdjustedAmount (string) maxLength - if(this.AdjustedAmount != null && this.AdjustedAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdjustedAmount, length must be less than or equal to 12.", new [] { "AdjustedAmount" }); - } - - // FuelCharges (string) maxLength - if(this.FuelCharges != null && this.FuelCharges.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FuelCharges, length must be less than or equal to 12.", new [] { "FuelCharges" }); - } - - // WeeklyRentalRate (string) maxLength - if(this.WeeklyRentalRate != null && this.WeeklyRentalRate.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WeeklyRentalRate, length must be less than or equal to 12.", new [] { "WeeklyRentalRate" }); - } - - // DailyRentalRate (string) maxLength - if(this.DailyRentalRate != null && this.DailyRentalRate.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DailyRentalRate, length must be less than or equal to 12.", new [] { "DailyRentalRate" }); - } - - // RatePerMile (string) maxLength - if(this.RatePerMile != null && this.RatePerMile.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RatePerMile, length must be less than or equal to 12.", new [] { "RatePerMile" }); - } - - // MileageCharge (string) maxLength - if(this.MileageCharge != null && this.MileageCharge.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MileageCharge, length must be less than or equal to 12.", new [] { "MileageCharge" }); - } - - // ExtraMileageCharge (string) maxLength - if(this.ExtraMileageCharge != null && this.ExtraMileageCharge.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExtraMileageCharge, length must be less than or equal to 12.", new [] { "ExtraMileageCharge" }); - } - - // LateFeeAmount (string) maxLength - if(this.LateFeeAmount != null && this.LateFeeAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LateFeeAmount, length must be less than or equal to 12.", new [] { "LateFeeAmount" }); - } - - // TowingCharge (string) maxLength - if(this.TowingCharge != null && this.TowingCharge.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TowingCharge, length must be less than or equal to 4.", new [] { "TowingCharge" }); - } - - // ExtraCharge (string) maxLength - if(this.ExtraCharge != null && this.ExtraCharge.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExtraCharge, length must be less than or equal to 12.", new [] { "ExtraCharge" }); - } - - // GpsCharge (string) maxLength - if(this.GpsCharge != null && this.GpsCharge.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GpsCharge, length must be less than or equal to 12.", new [] { "GpsCharge" }); - } - - // PhoneCharge (string) maxLength - if(this.PhoneCharge != null && this.PhoneCharge.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneCharge, length must be less than or equal to 12.", new [] { "PhoneCharge" }); - } - - // ParkingViolationCharge (string) maxLength - if(this.ParkingViolationCharge != null && this.ParkingViolationCharge.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ParkingViolationCharge, length must be less than or equal to 12.", new [] { "ParkingViolationCharge" }); - } - - // OtherCharges (string) maxLength - if(this.OtherCharges != null && this.OtherCharges.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OtherCharges, length must be less than or equal to 12.", new [] { "OtherCharges" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationAutoRentalRentalAddress.cs b/Model/Ptsv2paymentsTravelInformationAutoRentalRentalAddress.cs index 7cc9a8fd..024328cf 100644 --- a/Model/Ptsv2paymentsTravelInformationAutoRentalRentalAddress.cs +++ b/Model/Ptsv2paymentsTravelInformationAutoRentalRentalAddress.cs @@ -224,48 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // City (string) maxLength - if(this.City != null && this.City.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for City, length must be less than or equal to 25.", new [] { "City" }); - } - - // State (string) maxLength - if(this.State != null && this.State.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for State, length must be less than or equal to 3.", new [] { "State" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 3.", new [] { "Country" }); - } - - // LocationId (string) maxLength - if(this.LocationId != null && this.LocationId.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LocationId, length must be less than or equal to 10.", new [] { "LocationId" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 13.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 13.", new [] { "Address2" }); - } - - // Location (string) maxLength - if(this.Location != null && this.Location.Length >= 38) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Location, length must be less than or equal to 38.", new [] { "Location" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationAutoRentalReturnAddress.cs b/Model/Ptsv2paymentsTravelInformationAutoRentalReturnAddress.cs index 19d406ae..886cceb8 100644 --- a/Model/Ptsv2paymentsTravelInformationAutoRentalReturnAddress.cs +++ b/Model/Ptsv2paymentsTravelInformationAutoRentalReturnAddress.cs @@ -190,36 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // City (string) maxLength - if(this.City != null && this.City.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for City, length must be less than or equal to 25.", new [] { "City" }); - } - - // State (string) maxLength - if(this.State != null && this.State.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for State, length must be less than or equal to 3.", new [] { "State" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 3.", new [] { "Country" }); - } - - // LocationId (string) maxLength - if(this.LocationId != null && this.LocationId.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LocationId, length must be less than or equal to 10.", new [] { "LocationId" }); - } - - // Location (string) maxLength - if(this.Location != null && this.Location.Length >= 38) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Location, length must be less than or equal to 38.", new [] { "Location" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationAutoRentalTaxDetails.cs b/Model/Ptsv2paymentsTravelInformationAutoRentalTaxDetails.cs index 0140529f..15e9e320 100644 --- a/Model/Ptsv2paymentsTravelInformationAutoRentalTaxDetails.cs +++ b/Model/Ptsv2paymentsTravelInformationAutoRentalTaxDetails.cs @@ -207,36 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 13.", new [] { "Amount" }); - } - - // Rate (string) maxLength - if(this.Rate != null && this.Rate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Rate, length must be less than or equal to 6.", new [] { "Rate" }); - } - - // ExemptionCode (string) maxLength - if(this.ExemptionCode != null && this.ExemptionCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExemptionCode, length must be less than or equal to 1.", new [] { "ExemptionCode" }); - } - - // TaxType (string) maxLength - if(this.TaxType != null && this.TaxType.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxType, length must be less than or equal to 10.", new [] { "TaxType" }); - } - - // TaxSummary (string) maxLength - if(this.TaxSummary != null && this.TaxSummary.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxSummary, length must be less than or equal to 12.", new [] { "TaxSummary" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationLodging.cs b/Model/Ptsv2paymentsTravelInformationLodging.cs index 51e61973..6225e19e 100644 --- a/Model/Ptsv2paymentsTravelInformationLodging.cs +++ b/Model/Ptsv2paymentsTravelInformationLodging.cs @@ -819,264 +819,30 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CheckInDate (string) maxLength - if(this.CheckInDate != null && this.CheckInDate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CheckInDate, length must be less than or equal to 6.", new [] { "CheckInDate" }); - } - - // CheckOutDate (string) maxLength - if(this.CheckOutDate != null && this.CheckOutDate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CheckOutDate, length must be less than or equal to 6.", new [] { "CheckOutDate" }); - } - - // SmokingPreference (string) maxLength - if(this.SmokingPreference != null && this.SmokingPreference.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SmokingPreference, length must be less than or equal to 1.", new [] { "SmokingPreference" }); - } - // NumberOfRooms (int?) maximum - if(this.NumberOfRooms >= (int?)99) + if(this.NumberOfRooms > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfRooms, must be a value less than or equal to 99.", new [] { "NumberOfRooms" }); } // NumberOfRooms (int?) minimum - if(this.NumberOfRooms <= (int?)1) + if(this.NumberOfRooms < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfRooms, must be a value greater than or equal to 1.", new [] { "NumberOfRooms" }); } // NumberOfGuests (int?) maximum - if(this.NumberOfGuests >= (int?)99) + if(this.NumberOfGuests > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfGuests, must be a value less than or equal to 99.", new [] { "NumberOfGuests" }); } // NumberOfGuests (int?) minimum - if(this.NumberOfGuests <= (int?)1) + if(this.NumberOfGuests < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfGuests, must be a value greater than or equal to 1.", new [] { "NumberOfGuests" }); } - // RoomBedType (string) maxLength - if(this.RoomBedType != null && this.RoomBedType.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoomBedType, length must be less than or equal to 12.", new [] { "RoomBedType" }); - } - - // RoomTaxType (string) maxLength - if(this.RoomTaxType != null && this.RoomTaxType.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoomTaxType, length must be less than or equal to 10.", new [] { "RoomTaxType" }); - } - - // RoomRateType (string) maxLength - if(this.RoomRateType != null && this.RoomRateType.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoomRateType, length must be less than or equal to 12.", new [] { "RoomRateType" }); - } - - // GuestName (string) maxLength - if(this.GuestName != null && this.GuestName.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GuestName, length must be less than or equal to 40.", new [] { "GuestName" }); - } - - // CustomerServicePhoneNumber (string) maxLength - if(this.CustomerServicePhoneNumber != null && this.CustomerServicePhoneNumber.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerServicePhoneNumber, length must be less than or equal to 17.", new [] { "CustomerServicePhoneNumber" }); - } - - // CorporateClientCode (string) maxLength - if(this.CorporateClientCode != null && this.CorporateClientCode.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CorporateClientCode, length must be less than or equal to 17.", new [] { "CorporateClientCode" }); - } - - // AdditionalDiscountAmount (string) maxLength - if(this.AdditionalDiscountAmount != null && this.AdditionalDiscountAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalDiscountAmount, length must be less than or equal to 12.", new [] { "AdditionalDiscountAmount" }); - } - - // RoomLocation (string) maxLength - if(this.RoomLocation != null && this.RoomLocation.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoomLocation, length must be less than or equal to 10.", new [] { "RoomLocation" }); - } - - // SpecialProgramCode (string) maxLength - if(this.SpecialProgramCode != null && this.SpecialProgramCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SpecialProgramCode, length must be less than or equal to 1.", new [] { "SpecialProgramCode" }); - } - - // TotalTaxAmount (string) maxLength - if(this.TotalTaxAmount != null && this.TotalTaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalTaxAmount, length must be less than or equal to 12.", new [] { "TotalTaxAmount" }); - } - - // PrepaidCost (string) maxLength - if(this.PrepaidCost != null && this.PrepaidCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PrepaidCost, length must be less than or equal to 12.", new [] { "PrepaidCost" }); - } - - // FoodAndBeverageCost (string) maxLength - if(this.FoodAndBeverageCost != null && this.FoodAndBeverageCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FoodAndBeverageCost, length must be less than or equal to 12.", new [] { "FoodAndBeverageCost" }); - } - - // RoomTaxAmount (string) maxLength - if(this.RoomTaxAmount != null && this.RoomTaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoomTaxAmount, length must be less than or equal to 12.", new [] { "RoomTaxAmount" }); - } - - // AdjustmentAmount (string) maxLength - if(this.AdjustmentAmount != null && this.AdjustmentAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdjustmentAmount, length must be less than or equal to 12.", new [] { "AdjustmentAmount" }); - } - - // PhoneCost (string) maxLength - if(this.PhoneCost != null && this.PhoneCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneCost, length must be less than or equal to 12.", new [] { "PhoneCost" }); - } - - // RestaurantCost (string) maxLength - if(this.RestaurantCost != null && this.RestaurantCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RestaurantCost, length must be less than or equal to 12.", new [] { "RestaurantCost" }); - } - - // RoomServiceCost (string) maxLength - if(this.RoomServiceCost != null && this.RoomServiceCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoomServiceCost, length must be less than or equal to 12.", new [] { "RoomServiceCost" }); - } - - // MiniBarCost (string) maxLength - if(this.MiniBarCost != null && this.MiniBarCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiniBarCost, length must be less than or equal to 12.", new [] { "MiniBarCost" }); - } - - // LaundryCost (string) maxLength - if(this.LaundryCost != null && this.LaundryCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LaundryCost, length must be less than or equal to 12.", new [] { "LaundryCost" }); - } - - // MiscellaneousCost (string) maxLength - if(this.MiscellaneousCost != null && this.MiscellaneousCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiscellaneousCost, length must be less than or equal to 12.", new [] { "MiscellaneousCost" }); - } - - // GiftShopCost (string) maxLength - if(this.GiftShopCost != null && this.GiftShopCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GiftShopCost, length must be less than or equal to 12.", new [] { "GiftShopCost" }); - } - - // MovieCost (string) maxLength - if(this.MovieCost != null && this.MovieCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MovieCost, length must be less than or equal to 12.", new [] { "MovieCost" }); - } - - // HealthClubCost (string) maxLength - if(this.HealthClubCost != null && this.HealthClubCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HealthClubCost, length must be less than or equal to 12.", new [] { "HealthClubCost" }); - } - - // ValetParkingCost (string) maxLength - if(this.ValetParkingCost != null && this.ValetParkingCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ValetParkingCost, length must be less than or equal to 12.", new [] { "ValetParkingCost" }); - } - - // CashDisbursementCost (string) maxLength - if(this.CashDisbursementCost != null && this.CashDisbursementCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CashDisbursementCost, length must be less than or equal to 12.", new [] { "CashDisbursementCost" }); - } - - // NonRoomCost (string) maxLength - if(this.NonRoomCost != null && this.NonRoomCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NonRoomCost, length must be less than or equal to 12.", new [] { "NonRoomCost" }); - } - - // BusinessCenterCost (string) maxLength - if(this.BusinessCenterCost != null && this.BusinessCenterCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessCenterCost, length must be less than or equal to 12.", new [] { "BusinessCenterCost" }); - } - - // LoungeBarCost (string) maxLength - if(this.LoungeBarCost != null && this.LoungeBarCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LoungeBarCost, length must be less than or equal to 12.", new [] { "LoungeBarCost" }); - } - - // TransportationCost (string) maxLength - if(this.TransportationCost != null && this.TransportationCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransportationCost, length must be less than or equal to 12.", new [] { "TransportationCost" }); - } - - // GratuityAmount (string) maxLength - if(this.GratuityAmount != null && this.GratuityAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GratuityAmount, length must be less than or equal to 12.", new [] { "GratuityAmount" }); - } - - // ConferenceRoomCost (string) maxLength - if(this.ConferenceRoomCost != null && this.ConferenceRoomCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ConferenceRoomCost, length must be less than or equal to 12.", new [] { "ConferenceRoomCost" }); - } - - // AudioVisualCost (string) maxLength - if(this.AudioVisualCost != null && this.AudioVisualCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AudioVisualCost, length must be less than or equal to 12.", new [] { "AudioVisualCost" }); - } - - // BanquestCost (string) maxLength - if(this.BanquestCost != null && this.BanquestCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BanquestCost, length must be less than or equal to 12.", new [] { "BanquestCost" }); - } - - // NonRoomTaxAmount (string) maxLength - if(this.NonRoomTaxAmount != null && this.NonRoomTaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NonRoomTaxAmount, length must be less than or equal to 12.", new [] { "NonRoomTaxAmount" }); - } - - // EarlyCheckOutCost (string) maxLength - if(this.EarlyCheckOutCost != null && this.EarlyCheckOutCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EarlyCheckOutCost, length must be less than or equal to 12.", new [] { "EarlyCheckOutCost" }); - } - - // InternetAccessCost (string) maxLength - if(this.InternetAccessCost != null && this.InternetAccessCost.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InternetAccessCost, length must be less than or equal to 12.", new [] { "InternetAccessCost" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationLodgingRoom.cs b/Model/Ptsv2paymentsTravelInformationLodgingRoom.cs index 88fd1db0..ea476a04 100644 --- a/Model/Ptsv2paymentsTravelInformationLodgingRoom.cs +++ b/Model/Ptsv2paymentsTravelInformationLodgingRoom.cs @@ -139,20 +139,14 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DailyRate (string) maxLength - if(this.DailyRate != null && this.DailyRate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DailyRate, length must be less than or equal to 8.", new [] { "DailyRate" }); - } - // NumberOfNights (int?) maximum - if(this.NumberOfNights >= (int?)9999) + if(this.NumberOfNights > (int?)9999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfNights, must be a value less than or equal to 9999.", new [] { "NumberOfNights" }); } // NumberOfNights (int?) minimum - if(this.NumberOfNights <= (int?)1) + if(this.NumberOfNights < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NumberOfNights, must be a value greater than or equal to 1.", new [] { "NumberOfNights" }); } diff --git a/Model/Ptsv2paymentsTravelInformationTransitAirline.cs b/Model/Ptsv2paymentsTravelInformationTransitAirline.cs index ca875497..a92da140 100644 --- a/Model/Ptsv2paymentsTravelInformationTransitAirline.cs +++ b/Model/Ptsv2paymentsTravelInformationTransitAirline.cs @@ -748,180 +748,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // BookingReferenceNumber (string) maxLength - if(this.BookingReferenceNumber != null && this.BookingReferenceNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BookingReferenceNumber, length must be less than or equal to 15.", new [] { "BookingReferenceNumber" }); - } - - // CarrierName (string) maxLength - if(this.CarrierName != null && this.CarrierName.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CarrierName, length must be less than or equal to 15.", new [] { "CarrierName" }); - } - - // TicketNumber (string) maxLength - if(this.TicketNumber != null && this.TicketNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TicketNumber, length must be less than or equal to 15.", new [] { "TicketNumber" }); - } - - // CheckDigit (string) maxLength - if(this.CheckDigit != null && this.CheckDigit.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CheckDigit, length must be less than or equal to 1.", new [] { "CheckDigit" }); - } - - // ExtendedPaymentCode (string) maxLength - if(this.ExtendedPaymentCode != null && this.ExtendedPaymentCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExtendedPaymentCode, length must be less than or equal to 3.", new [] { "ExtendedPaymentCode" }); - } - - // PassengerName (string) maxLength - if(this.PassengerName != null && this.PassengerName.Length >= 42) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PassengerName, length must be less than or equal to 42.", new [] { "PassengerName" }); - } - - // CustomerCode (string) maxLength - if(this.CustomerCode != null && this.CustomerCode.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerCode, length must be less than or equal to 40.", new [] { "CustomerCode" }); - } - - // DocumentType (string) maxLength - if(this.DocumentType != null && this.DocumentType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DocumentType, length must be less than or equal to 1.", new [] { "DocumentType" }); - } - - // DocumentNumber (string) maxLength - if(this.DocumentNumber != null && this.DocumentNumber.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DocumentNumber, length must be less than or equal to 14.", new [] { "DocumentNumber" }); - } - - // InvoiceNumber (string) maxLength - if(this.InvoiceNumber != null && this.InvoiceNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceNumber, length must be less than or equal to 25.", new [] { "InvoiceNumber" }); - } - - // AdditionalCharges (string) maxLength - if(this.AdditionalCharges != null && this.AdditionalCharges.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalCharges, length must be less than or equal to 20.", new [] { "AdditionalCharges" }); - } - - // TotalFeeAmount (string) maxLength - if(this.TotalFeeAmount != null && this.TotalFeeAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalFeeAmount, length must be less than or equal to 12.", new [] { "TotalFeeAmount" }); - } - - // ClearingSequence (string) maxLength - if(this.ClearingSequence != null && this.ClearingSequence.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ClearingSequence, length must be less than or equal to 2.", new [] { "ClearingSequence" }); - } - - // ClearingCount (string) maxLength - if(this.ClearingCount != null && this.ClearingCount.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ClearingCount, length must be less than or equal to 2.", new [] { "ClearingCount" }); - } - - // TotalClearingAmount (string) maxLength - if(this.TotalClearingAmount != null && this.TotalClearingAmount.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalClearingAmount, length must be less than or equal to 20.", new [] { "TotalClearingAmount" }); - } - - // ReservationSystemCode (string) maxLength - if(this.ReservationSystemCode != null && this.ReservationSystemCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReservationSystemCode, length must be less than or equal to 4.", new [] { "ReservationSystemCode" }); - } - - // ProcessIdentifier (string) maxLength - if(this.ProcessIdentifier != null && this.ProcessIdentifier.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProcessIdentifier, length must be less than or equal to 3.", new [] { "ProcessIdentifier" }); - } - - // TicketIssueDate (string) maxLength - if(this.TicketIssueDate != null && this.TicketIssueDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TicketIssueDate, length must be less than or equal to 8.", new [] { "TicketIssueDate" }); - } - - // OriginalTicketNumber (string) maxLength - if(this.OriginalTicketNumber != null && this.OriginalTicketNumber.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalTicketNumber, length must be less than or equal to 14.", new [] { "OriginalTicketNumber" }); - } - - // PurchaseType (string) maxLength - if(this.PurchaseType != null && this.PurchaseType.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseType, length must be less than or equal to 3.", new [] { "PurchaseType" }); - } - - // CreditReasonIndicator (string) maxLength - if(this.CreditReasonIndicator != null && this.CreditReasonIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CreditReasonIndicator, length must be less than or equal to 1.", new [] { "CreditReasonIndicator" }); - } - - // TicketChangeIndicator (string) maxLength - if(this.TicketChangeIndicator != null && this.TicketChangeIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TicketChangeIndicator, length must be less than or equal to 1.", new [] { "TicketChangeIndicator" }); - } - - // PlanNumber (string) maxLength - if(this.PlanNumber != null && this.PlanNumber.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PlanNumber, length must be less than or equal to 1.", new [] { "PlanNumber" }); - } - - // ArrivalDate (string) maxLength - if(this.ArrivalDate != null && this.ArrivalDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ArrivalDate, length must be less than or equal to 8.", new [] { "ArrivalDate" }); - } - - // RestrictedTicketDesciption (string) maxLength - if(this.RestrictedTicketDesciption != null && this.RestrictedTicketDesciption.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RestrictedTicketDesciption, length must be less than or equal to 20.", new [] { "RestrictedTicketDesciption" }); - } - - // ExchangeTicketAmount (string) maxLength - if(this.ExchangeTicketAmount != null && this.ExchangeTicketAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeTicketAmount, length must be less than or equal to 12.", new [] { "ExchangeTicketAmount" }); - } - - // ExchangeTicketFeeAmount (string) maxLength - if(this.ExchangeTicketFeeAmount != null && this.ExchangeTicketFeeAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeTicketFeeAmount, length must be less than or equal to 12.", new [] { "ExchangeTicketFeeAmount" }); - } - - // ReservationType (string) maxLength - if(this.ReservationType != null && this.ReservationType.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReservationType, length must be less than or equal to 32.", new [] { "ReservationType" }); - } - - // BoardingFeeAmount (string) maxLength - if(this.BoardingFeeAmount != null && this.BoardingFeeAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BoardingFeeAmount, length must be less than or equal to 12.", new [] { "BoardingFeeAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.cs b/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.cs index c6344ab3..f27f9ab8 100644 --- a/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.cs +++ b/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.cs @@ -189,30 +189,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TicketNumber (string) maxLength - if(this.TicketNumber != null && this.TicketNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TicketNumber, length must be less than or equal to 15.", new [] { "TicketNumber" }); - } - - // PassengerName (string) maxLength - if(this.PassengerName != null && this.PassengerName.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PassengerName, length must be less than or equal to 20.", new [] { "PassengerName" }); - } - - // ConnectedTicketNumber (string) maxLength - if(this.ConnectedTicketNumber != null && this.ConnectedTicketNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ConnectedTicketNumber, length must be less than or equal to 15.", new [] { "ConnectedTicketNumber" }); - } - - // CreditReasonIndicator (string) maxLength - if(this.CreditReasonIndicator != null && this.CreditReasonIndicator.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CreditReasonIndicator, length must be less than or equal to 15.", new [] { "CreditReasonIndicator" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.cs b/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.cs index 2b4657ad..29b5c303 100644 --- a/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.cs +++ b/Model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CategoryCode (string) maxLength - if(this.CategoryCode != null && this.CategoryCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CategoryCode, length must be less than or equal to 4.", new [] { "CategoryCode" }); - } - - // SubCategoryCode (string) maxLength - if(this.SubCategoryCode != null && this.SubCategoryCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SubCategoryCode, length must be less than or equal to 4.", new [] { "SubCategoryCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.cs b/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.cs index 8165f00d..a152f52a 100644 --- a/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.cs +++ b/Model/Ptsv2paymentsTravelInformationTransitAirlineLegs.cs @@ -445,102 +445,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CarrierCode (string) maxLength - if(this.CarrierCode != null && this.CarrierCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CarrierCode, length must be less than or equal to 4.", new [] { "CarrierCode" }); - } - - // FlightNumber (string) maxLength - if(this.FlightNumber != null && this.FlightNumber.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FlightNumber, length must be less than or equal to 6.", new [] { "FlightNumber" }); - } - - // OriginatingAirportCode (string) maxLength - if(this.OriginatingAirportCode != null && this.OriginatingAirportCode.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginatingAirportCode, length must be less than or equal to 5.", new [] { "OriginatingAirportCode" }); - } - - // _Class (string) maxLength - if(this._Class != null && this._Class.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _Class, length must be less than or equal to 3.", new [] { "_Class" }); - } - - // DestinationAirportCode (string) maxLength - if(this.DestinationAirportCode != null && this.DestinationAirportCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DestinationAirportCode, length must be less than or equal to 3.", new [] { "DestinationAirportCode" }); - } - - // FareBasis (string) maxLength - if(this.FareBasis != null && this.FareBasis.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FareBasis, length must be less than or equal to 15.", new [] { "FareBasis" }); - } - - // DepartTaxAmount (string) maxLength - if(this.DepartTaxAmount != null && this.DepartTaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DepartTaxAmount, length must be less than or equal to 12.", new [] { "DepartTaxAmount" }); - } - - // ConjunctionTicket (string) maxLength - if(this.ConjunctionTicket != null && this.ConjunctionTicket.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ConjunctionTicket, length must be less than or equal to 25.", new [] { "ConjunctionTicket" }); - } - - // ExchangeTicketNumber (string) maxLength - if(this.ExchangeTicketNumber != null && this.ExchangeTicketNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeTicketNumber, length must be less than or equal to 25.", new [] { "ExchangeTicketNumber" }); - } - - // CouponNumber (string) maxLength - if(this.CouponNumber != null && this.CouponNumber.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CouponNumber, length must be less than or equal to 1.", new [] { "CouponNumber" }); - } - - // DepartureTimeMeridian (string) maxLength - if(this.DepartureTimeMeridian != null && this.DepartureTimeMeridian.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DepartureTimeMeridian, length must be less than or equal to 1.", new [] { "DepartureTimeMeridian" }); - } - - // ArrivalTimeMeridian (string) maxLength - if(this.ArrivalTimeMeridian != null && this.ArrivalTimeMeridian.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ArrivalTimeMeridian, length must be less than or equal to 1.", new [] { "ArrivalTimeMeridian" }); - } - - // EndorsementsRestrictions (string) maxLength - if(this.EndorsementsRestrictions != null && this.EndorsementsRestrictions.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EndorsementsRestrictions, length must be less than or equal to 20.", new [] { "EndorsementsRestrictions" }); - } - - // TotalFareAmount (string) maxLength - if(this.TotalFareAmount != null && this.TotalFareAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalFareAmount, length must be less than or equal to 15.", new [] { "TotalFareAmount" }); - } - - // FeeAmount (string) maxLength - if(this.FeeAmount != null && this.FeeAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FeeAmount, length must be less than or equal to 12.", new [] { "FeeAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 12.", new [] { "TaxAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer.cs b/Model/Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer.cs index fe25e9eb..62a32493 100644 --- a/Model/Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer.cs +++ b/Model/Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer.cs @@ -224,48 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 4.", new [] { "Code" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 20.", new [] { "Name" }); - } - - // Address (string) maxLength - if(this.Address != null && this.Address.Length >= 16) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address, length must be less than or equal to 16.", new [] { "Address" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 18.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 18.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 15.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 18.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidClientReferenceInformation.cs b/Model/Ptsv2paymentsidClientReferenceInformation.cs index 08697734..2fae615b 100644 --- a/Model/Ptsv2paymentsidClientReferenceInformation.cs +++ b/Model/Ptsv2paymentsidClientReferenceInformation.cs @@ -189,12 +189,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidClientReferenceInformationPartner.cs b/Model/Ptsv2paymentsidClientReferenceInformationPartner.cs index 3e7cf803..97e8c2a2 100644 --- a/Model/Ptsv2paymentsidClientReferenceInformationPartner.cs +++ b/Model/Ptsv2paymentsidClientReferenceInformationPartner.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // OriginalTransactionId (string) maxLength - if(this.OriginalTransactionId != null && this.OriginalTransactionId.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalTransactionId, length must be less than or equal to 32.", new [] { "OriginalTransactionId" }); - } - - // DeveloperId (string) maxLength - if(this.DeveloperId != null && this.DeveloperId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeveloperId, length must be less than or equal to 8.", new [] { "DeveloperId" }); - } - - // SolutionId (string) maxLength - if(this.SolutionId != null && this.SolutionId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SolutionId, length must be less than or equal to 8.", new [] { "SolutionId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidMerchantInformation.cs b/Model/Ptsv2paymentsidMerchantInformation.cs index 2d485f4a..e6f9849c 100644 --- a/Model/Ptsv2paymentsidMerchantInformation.cs +++ b/Model/Ptsv2paymentsidMerchantInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TransactionLocalDateTime (string) maxLength - if(this.TransactionLocalDateTime != null && this.TransactionLocalDateTime.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionLocalDateTime, length must be less than or equal to 14.", new [] { "TransactionLocalDateTime" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidOrderInformationAmountDetails.cs b/Model/Ptsv2paymentsidOrderInformationAmountDetails.cs index 24a6d62b..aee037fc 100644 --- a/Model/Ptsv2paymentsidOrderInformationAmountDetails.cs +++ b/Model/Ptsv2paymentsidOrderInformationAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AdditionalAmount (string) maxLength - if(this.AdditionalAmount != null && this.AdditionalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalAmount, length must be less than or equal to 19.", new [] { "AdditionalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidTravelInformation.cs b/Model/Ptsv2paymentsidTravelInformation.cs index ffa50b29..6ab2d1e2 100644 --- a/Model/Ptsv2paymentsidTravelInformation.cs +++ b/Model/Ptsv2paymentsidTravelInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Duration (string) maxLength - if(this.Duration != null && this.Duration.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Duration, length must be less than or equal to 2.", new [] { "Duration" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesAggregatorInformation.cs b/Model/Ptsv2paymentsidcapturesAggregatorInformation.cs index bcce1b9c..594fa389 100644 --- a/Model/Ptsv2paymentsidcapturesAggregatorInformation.cs +++ b/Model/Ptsv2paymentsidcapturesAggregatorInformation.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AggregatorId (string) maxLength - if(this.AggregatorId != null && this.AggregatorId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AggregatorId, length must be less than or equal to 20.", new [] { "AggregatorId" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 37) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 37.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.cs b/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.cs index 3ea131b3..8d41600a 100644 --- a/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.cs +++ b/Model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.cs @@ -258,60 +258,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 37) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 37.", new [] { "Name" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 38) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 38.", new [] { "Address1" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 21.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 3.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 15.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 3.", new [] { "Country" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 40.", new [] { "Email" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 20.", new [] { "PhoneNumber" }); - } - - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 20.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesBuyerInformation.cs b/Model/Ptsv2paymentsidcapturesBuyerInformation.cs index d21ebb76..7002b6a8 100644 --- a/Model/Ptsv2paymentsidcapturesBuyerInformation.cs +++ b/Model/Ptsv2paymentsidcapturesBuyerInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 20.", new [] { "VatRegistrationNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesDeviceInformation.cs b/Model/Ptsv2paymentsidcapturesDeviceInformation.cs index d1907149..b9aea07b 100644 --- a/Model/Ptsv2paymentsidcapturesDeviceInformation.cs +++ b/Model/Ptsv2paymentsidcapturesDeviceInformation.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // HostName (string) maxLength - if(this.HostName != null && this.HostName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HostName, length must be less than or equal to 60.", new [] { "HostName" }); - } - - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // UserAgent (string) maxLength - if(this.UserAgent != null && this.UserAgent.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserAgent, length must be less than or equal to 40.", new [] { "UserAgent" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesInstallmentInformation.cs b/Model/Ptsv2paymentsidcapturesInstallmentInformation.cs index fb6ff69a..d162d022 100644 --- a/Model/Ptsv2paymentsidcapturesInstallmentInformation.cs +++ b/Model/Ptsv2paymentsidcapturesInstallmentInformation.cs @@ -530,156 +530,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 12.", new [] { "Amount" }); - } - - // Frequency (string) maxLength - if(this.Frequency != null && this.Frequency.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Frequency, length must be less than or equal to 1.", new [] { "Frequency" }); - } - - // PlanType (string) maxLength - if(this.PlanType != null && this.PlanType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PlanType, length must be less than or equal to 1.", new [] { "PlanType" }); - } - // Sequence (int?) maximum - if(this.Sequence >= (int?)99) + if(this.Sequence > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Sequence, must be a value less than or equal to 99.", new [] { "Sequence" }); } - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 12.", new [] { "TotalAmount" }); - } - // TotalCount (int?) maximum - if(this.TotalCount >= (int?)99) + if(this.TotalCount > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCount, must be a value less than or equal to 99.", new [] { "TotalCount" }); } - // FirstInstallmentDate (string) maxLength - if(this.FirstInstallmentDate != null && this.FirstInstallmentDate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstInstallmentDate, length must be less than or equal to 6.", new [] { "FirstInstallmentDate" }); - } - - // FirstInstallmentAmount (string) maxLength - if(this.FirstInstallmentAmount != null && this.FirstInstallmentAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstInstallmentAmount, length must be less than or equal to 13.", new [] { "FirstInstallmentAmount" }); - } - - // InvoiceData (string) maxLength - if(this.InvoiceData != null && this.InvoiceData.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceData, length must be less than or equal to 20.", new [] { "InvoiceData" }); - } - - // PaymentType (string) maxLength - if(this.PaymentType != null && this.PaymentType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentType, length must be less than or equal to 1.", new [] { "PaymentType" }); - } - - // AdditionalCosts (string) maxLength - if(this.AdditionalCosts != null && this.AdditionalCosts.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalCosts, length must be less than or equal to 12.", new [] { "AdditionalCosts" }); - } - - // AdditionalCostsPercentage (string) maxLength - if(this.AdditionalCostsPercentage != null && this.AdditionalCostsPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdditionalCostsPercentage, length must be less than or equal to 4.", new [] { "AdditionalCostsPercentage" }); - } - - // AmountFunded (string) maxLength - if(this.AmountFunded != null && this.AmountFunded.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmountFunded, length must be less than or equal to 12.", new [] { "AmountFunded" }); - } - - // AmountRequestedPercentage (string) maxLength - if(this.AmountRequestedPercentage != null && this.AmountRequestedPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmountRequestedPercentage, length must be less than or equal to 4.", new [] { "AmountRequestedPercentage" }); - } - - // AnnualFinancingCost (string) maxLength - if(this.AnnualFinancingCost != null && this.AnnualFinancingCost.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AnnualFinancingCost, length must be less than or equal to 7.", new [] { "AnnualFinancingCost" }); - } - - // AnnualInterestRate (string) maxLength - if(this.AnnualInterestRate != null && this.AnnualInterestRate.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AnnualInterestRate, length must be less than or equal to 7.", new [] { "AnnualInterestRate" }); - } - - // Expenses (string) maxLength - if(this.Expenses != null && this.Expenses.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Expenses, length must be less than or equal to 12.", new [] { "Expenses" }); - } - - // ExpensesPercentage (string) maxLength - if(this.ExpensesPercentage != null && this.ExpensesPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpensesPercentage, length must be less than or equal to 4.", new [] { "ExpensesPercentage" }); - } - - // Fees (string) maxLength - if(this.Fees != null && this.Fees.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Fees, length must be less than or equal to 12.", new [] { "Fees" }); - } - - // FeesPercentage (string) maxLength - if(this.FeesPercentage != null && this.FeesPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FeesPercentage, length must be less than or equal to 4.", new [] { "FeesPercentage" }); - } - - // Insurance (string) maxLength - if(this.Insurance != null && this.Insurance.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Insurance, length must be less than or equal to 12.", new [] { "Insurance" }); - } - - // InsurancePercentage (string) maxLength - if(this.InsurancePercentage != null && this.InsurancePercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InsurancePercentage, length must be less than or equal to 4.", new [] { "InsurancePercentage" }); - } - - // MonthlyInterestRate (string) maxLength - if(this.MonthlyInterestRate != null && this.MonthlyInterestRate.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MonthlyInterestRate, length must be less than or equal to 7.", new [] { "MonthlyInterestRate" }); - } - - // Taxes (string) maxLength - if(this.Taxes != null && this.Taxes.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Taxes, length must be less than or equal to 12.", new [] { "Taxes" }); - } - - // TaxesPercentage (string) maxLength - if(this.TaxesPercentage != null && this.TaxesPercentage.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxesPercentage, length must be less than or equal to 4.", new [] { "TaxesPercentage" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesMerchantInformation.cs b/Model/Ptsv2paymentsidcapturesMerchantInformation.cs index f2c6d272..73cade1c 100644 --- a/Model/Ptsv2paymentsidcapturesMerchantInformation.cs +++ b/Model/Ptsv2paymentsidcapturesMerchantInformation.cs @@ -205,30 +205,12 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CardAcceptorReferenceNumber (string) maxLength - if(this.CardAcceptorReferenceNumber != null && this.CardAcceptorReferenceNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardAcceptorReferenceNumber, length must be less than or equal to 25.", new [] { "CardAcceptorReferenceNumber" }); - } - // CategoryCode (int?) maximum - if(this.CategoryCode >= (int?)9999) + if(this.CategoryCode > (int?)9999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CategoryCode, must be a value less than or equal to 9999.", new [] { "CategoryCode" }); } - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 21.", new [] { "VatRegistrationNumber" }); - } - - // TaxId (string) maxLength - if(this.TaxId != null && this.TaxId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxId, length must be less than or equal to 15.", new [] { "TaxId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.cs b/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.cs index 838dbdf0..2066b784 100644 --- a/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.cs +++ b/Model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.cs @@ -443,114 +443,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // DiscountAmount (string) maxLength - if(this.DiscountAmount != null && this.DiscountAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountAmount, length must be less than or equal to 15.", new [] { "DiscountAmount" }); - } - - // DutyAmount (string) maxLength - if(this.DutyAmount != null && this.DutyAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DutyAmount, length must be less than or equal to 15.", new [] { "DutyAmount" }); - } - - // GratuityAmount (string) maxLength - if(this.GratuityAmount != null && this.GratuityAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for GratuityAmount, length must be less than or equal to 13.", new [] { "GratuityAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 12.", new [] { "TaxAmount" }); - } - - // NationalTaxIncluded (string) maxLength - if(this.NationalTaxIncluded != null && this.NationalTaxIncluded.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NationalTaxIncluded, length must be less than or equal to 1.", new [] { "NationalTaxIncluded" }); - } - - // TaxAppliedAfterDiscount (string) maxLength - if(this.TaxAppliedAfterDiscount != null && this.TaxAppliedAfterDiscount.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAppliedAfterDiscount, length must be less than or equal to 1.", new [] { "TaxAppliedAfterDiscount" }); - } - - // TaxAppliedLevel (string) maxLength - if(this.TaxAppliedLevel != null && this.TaxAppliedLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAppliedLevel, length must be less than or equal to 1.", new [] { "TaxAppliedLevel" }); - } - - // TaxTypeCode (string) maxLength - if(this.TaxTypeCode != null && this.TaxTypeCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxTypeCode, length must be less than or equal to 3.", new [] { "TaxTypeCode" }); - } - - // FreightAmount (string) maxLength - if(this.FreightAmount != null && this.FreightAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FreightAmount, length must be less than or equal to 13.", new [] { "FreightAmount" }); - } - - // ForeignAmount (string) maxLength - if(this.ForeignAmount != null && this.ForeignAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForeignAmount, length must be less than or equal to 15.", new [] { "ForeignAmount" }); - } - - // ForeignCurrency (string) maxLength - if(this.ForeignCurrency != null && this.ForeignCurrency.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ForeignCurrency, length must be less than or equal to 5.", new [] { "ForeignCurrency" }); - } - - // ExchangeRate (string) maxLength - if(this.ExchangeRate != null && this.ExchangeRate.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeRate, length must be less than or equal to 13.", new [] { "ExchangeRate" }); - } - - // ExchangeRateTimeStamp (string) maxLength - if(this.ExchangeRateTimeStamp != null && this.ExchangeRateTimeStamp.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExchangeRateTimeStamp, length must be less than or equal to 14.", new [] { "ExchangeRateTimeStamp" }); - } - - // ServiceFeeAmount (string) maxLength - if(this.ServiceFeeAmount != null && this.ServiceFeeAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ServiceFeeAmount, length must be less than or equal to 15.", new [] { "ServiceFeeAmount" }); - } - - // OriginalCurrency (string) maxLength - if(this.OriginalCurrency != null && this.OriginalCurrency.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalCurrency, length must be less than or equal to 15.", new [] { "OriginalCurrency" }); - } - - // CashbackAmount (string) maxLength - if(this.CashbackAmount != null && this.CashbackAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CashbackAmount, length must be less than or equal to 13.", new [] { "CashbackAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.cs b/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.cs index 9c77048f..fece81d7 100644 --- a/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.cs +++ b/Model/Ptsv2paymentsidcapturesOrderInformationBillTo.cs @@ -291,66 +291,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.cs b/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.cs index b46fd5c1..4d111a86 100644 --- a/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.cs +++ b/Model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.cs @@ -223,36 +223,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PurchaseOrderNumber (string) maxLength - if(this.PurchaseOrderNumber != null && this.PurchaseOrderNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseOrderNumber, length must be less than or equal to 25.", new [] { "PurchaseOrderNumber" }); - } - - // PurchaseOrderDate (string) maxLength - if(this.PurchaseOrderDate != null && this.PurchaseOrderDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseOrderDate, length must be less than or equal to 10.", new [] { "PurchaseOrderDate" }); - } - - // PurchaseContactName (string) maxLength - if(this.PurchaseContactName != null && this.PurchaseContactName.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseContactName, length must be less than or equal to 36.", new [] { "PurchaseContactName" }); - } - - // VatInvoiceReferenceNumber (string) maxLength - if(this.VatInvoiceReferenceNumber != null && this.VatInvoiceReferenceNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatInvoiceReferenceNumber, length must be less than or equal to 15.", new [] { "VatInvoiceReferenceNumber" }); - } - - // CommodityCode (string) maxLength - if(this.CommodityCode != null && this.CommodityCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommodityCode, length must be less than or equal to 4.", new [] { "CommodityCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.cs b/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.cs index 5debe3fe..c46540c3 100644 --- a/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.cs +++ b/Model/Ptsv2paymentsidcapturesOrderInformationShipTo.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.cs b/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.cs index 2b9b9226..810d7f52 100644 --- a/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.cs +++ b/Model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ShipFromPostalCode (string) maxLength - if(this.ShipFromPostalCode != null && this.ShipFromPostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromPostalCode, length must be less than or equal to 10.", new [] { "ShipFromPostalCode" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesPaymentInformationCard.cs b/Model/Ptsv2paymentsidcapturesPaymentInformationCard.cs index fb20bf67..936a17bd 100644 --- a/Model/Ptsv2paymentsidcapturesPaymentInformationCard.cs +++ b/Model/Ptsv2paymentsidcapturesPaymentInformationCard.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SourceAccountType (string) maxLength - if(this.SourceAccountType != null && this.SourceAccountType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountType, length must be less than or equal to 20.", new [] { "SourceAccountType" }); - } - - // SourceAccountTypeDetails (string) maxLength - if(this.SourceAccountTypeDetails != null && this.SourceAccountTypeDetails.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountTypeDetails, length must be less than or equal to 4.", new [] { "SourceAccountTypeDetails" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.cs b/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.cs index f9bc1fde..5f4c1e6e 100644 --- a/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.cs +++ b/Model/Ptsv2paymentsidcapturesPointOfSaleInformation.cs @@ -138,12 +138,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AmexCapnData (string) maxLength - if(this.AmexCapnData != null && this.AmexCapnData.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AmexCapnData, length must be less than or equal to 15.", new [] { "AmexCapnData" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.cs b/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.cs index 3d77ab89..b912dfb9 100644 --- a/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.cs +++ b/Model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.cs @@ -147,12 +147,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Tags (string) maxLength - if(this.Tags != null && this.Tags.Length >= 1998) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Tags, length must be less than or equal to 1998.", new [] { "Tags" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesProcessingInformation.cs b/Model/Ptsv2paymentsidcapturesProcessingInformation.cs index c811e46a..566b6886 100644 --- a/Model/Ptsv2paymentsidcapturesProcessingInformation.cs +++ b/Model/Ptsv2paymentsidcapturesProcessingInformation.cs @@ -305,48 +305,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - - // LinkId (string) maxLength - if(this.LinkId != null && this.LinkId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LinkId, length must be less than or equal to 26.", new [] { "LinkId" }); - } - - // ReportGroup (string) maxLength - if(this.ReportGroup != null && this.ReportGroup.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportGroup, length must be less than or equal to 25.", new [] { "ReportGroup" }); - } - - // VisaCheckoutId (string) maxLength - if(this.VisaCheckoutId != null && this.VisaCheckoutId.Length >= 48) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VisaCheckoutId, length must be less than or equal to 48.", new [] { "VisaCheckoutId" }); - } - - // PurchaseLevel (string) maxLength - if(this.PurchaseLevel != null && this.PurchaseLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseLevel, length must be less than or equal to 1.", new [] { "PurchaseLevel" }); - } - - // IndustryDataType (string) maxLength - if(this.IndustryDataType != null && this.IndustryDataType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IndustryDataType, length must be less than or equal to 20.", new [] { "IndustryDataType" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.cs b/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.cs index 2fefeccb..76fcdb59 100644 --- a/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.cs +++ b/Model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthType (string) maxLength - if(this.AuthType != null && this.AuthType.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthType, length must be less than or equal to 15.", new [] { "AuthType" }); - } - - // VerbalAuthCode (string) maxLength - if(this.VerbalAuthCode != null && this.VerbalAuthCode.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VerbalAuthCode, length must be less than or equal to 7.", new [] { "VerbalAuthCode" }); - } - - // VerbalAuthTransactionId (string) maxLength - if(this.VerbalAuthTransactionId != null && this.VerbalAuthTransactionId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VerbalAuthTransactionId, length must be less than or equal to 15.", new [] { "VerbalAuthTransactionId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.cs b/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.cs index 45e6e233..352ee13d 100644 --- a/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.cs +++ b/Model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.cs @@ -140,25 +140,25 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // CaptureSequenceNumber (int?) maximum - if(this.CaptureSequenceNumber >= (int?)99) + if(this.CaptureSequenceNumber > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CaptureSequenceNumber, must be a value less than or equal to 99.", new [] { "CaptureSequenceNumber" }); } // CaptureSequenceNumber (int?) minimum - if(this.CaptureSequenceNumber <= (int?)1) + if(this.CaptureSequenceNumber < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CaptureSequenceNumber, must be a value greater than or equal to 1.", new [] { "CaptureSequenceNumber" }); } // TotalCaptureCount (int?) maximum - if(this.TotalCaptureCount >= (int?)99) + if(this.TotalCaptureCount > (int?)99) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCaptureCount, must be a value less than or equal to 99.", new [] { "TotalCaptureCount" }); } // TotalCaptureCount (int?) minimum - if(this.TotalCaptureCount <= (int?)1) + if(this.TotalCaptureCount < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalCaptureCount, must be a value greater than or equal to 1.", new [] { "TotalCaptureCount" }); } diff --git a/Model/Ptsv2paymentsidrefundsMerchantInformation.cs b/Model/Ptsv2paymentsidrefundsMerchantInformation.cs index 5d6db309..a522a04d 100644 --- a/Model/Ptsv2paymentsidrefundsMerchantInformation.cs +++ b/Model/Ptsv2paymentsidrefundsMerchantInformation.cs @@ -190,29 +190,11 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // CategoryCode (int?) maximum - if(this.CategoryCode >= (int?)9999) + if(this.CategoryCode > (int?)9999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CategoryCode, must be a value less than or equal to 9999.", new [] { "CategoryCode" }); } - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 21.", new [] { "VatRegistrationNumber" }); - } - - // CardAcceptorReferenceNumber (string) maxLength - if(this.CardAcceptorReferenceNumber != null && this.CardAcceptorReferenceNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardAcceptorReferenceNumber, length must be less than or equal to 25.", new [] { "CardAcceptorReferenceNumber" }); - } - - // TaxId (string) maxLength - if(this.TaxId != null && this.TaxId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxId, length must be less than or equal to 15.", new [] { "TaxId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.cs b/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.cs index 9cadcf97..25a34132 100644 --- a/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.cs +++ b/Model/Ptsv2paymentsidrefundsOrderInformationLineItems.cs @@ -444,114 +444,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ProductSku (string) maxLength - if(this.ProductSku != null && this.ProductSku.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSku, length must be less than or equal to 255.", new [] { "ProductSku" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - - // UnitOfMeasure (string) maxLength - if(this.UnitOfMeasure != null && this.UnitOfMeasure.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitOfMeasure, length must be less than or equal to 12.", new [] { "UnitOfMeasure" }); - } - - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 13.", new [] { "TotalAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - - // TaxRate (string) maxLength - if(this.TaxRate != null && this.TaxRate.Length >= 7) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxRate, length must be less than or equal to 7.", new [] { "TaxRate" }); - } - - // TaxAppliedAfterDiscount (string) maxLength - if(this.TaxAppliedAfterDiscount != null && this.TaxAppliedAfterDiscount.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAppliedAfterDiscount, length must be less than or equal to 1.", new [] { "TaxAppliedAfterDiscount" }); - } - - // TaxStatusIndicator (string) maxLength - if(this.TaxStatusIndicator != null && this.TaxStatusIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxStatusIndicator, length must be less than or equal to 1.", new [] { "TaxStatusIndicator" }); - } - - // TaxTypeCode (string) maxLength - if(this.TaxTypeCode != null && this.TaxTypeCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxTypeCode, length must be less than or equal to 4.", new [] { "TaxTypeCode" }); - } - - // TypeOfSupply (string) maxLength - if(this.TypeOfSupply != null && this.TypeOfSupply.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TypeOfSupply, length must be less than or equal to 2.", new [] { "TypeOfSupply" }); - } - - // CommodityCode (string) maxLength - if(this.CommodityCode != null && this.CommodityCode.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommodityCode, length must be less than or equal to 15.", new [] { "CommodityCode" }); - } - - // DiscountAmount (string) maxLength - if(this.DiscountAmount != null && this.DiscountAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountAmount, length must be less than or equal to 13.", new [] { "DiscountAmount" }); - } - - // DiscountRate (string) maxLength - if(this.DiscountRate != null && this.DiscountRate.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DiscountRate, length must be less than or equal to 6.", new [] { "DiscountRate" }); - } - - // InvoiceNumber (string) maxLength - if(this.InvoiceNumber != null && this.InvoiceNumber.Length >= 23) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceNumber, length must be less than or equal to 23.", new [] { "InvoiceNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidrefundsPaymentInformationCard.cs b/Model/Ptsv2paymentsidrefundsPaymentInformationCard.cs index 753b021c..4534f83d 100644 --- a/Model/Ptsv2paymentsidrefundsPaymentInformationCard.cs +++ b/Model/Ptsv2paymentsidrefundsPaymentInformationCard.cs @@ -275,60 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // AccountEncoderId (string) maxLength - if(this.AccountEncoderId != null && this.AccountEncoderId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountEncoderId, length must be less than or equal to 3.", new [] { "AccountEncoderId" }); - } - - // IssueNumber (string) maxLength - if(this.IssueNumber != null && this.IssueNumber.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be less than or equal to 5.", new [] { "IssueNumber" }); - } - - // StartMonth (string) maxLength - if(this.StartMonth != null && this.StartMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be less than or equal to 2.", new [] { "StartMonth" }); - } - - // StartYear (string) maxLength - if(this.StartYear != null && this.StartYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be less than or equal to 4.", new [] { "StartYear" }); - } - - // SourceAccountType (string) maxLength - if(this.SourceAccountType != null && this.SourceAccountType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountType, length must be less than or equal to 20.", new [] { "SourceAccountType" }); - } - - // SourceAccountTypeDetails (string) maxLength - if(this.SourceAccountTypeDetails != null && this.SourceAccountTypeDetails.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountTypeDetails, length must be less than or equal to 4.", new [] { "SourceAccountTypeDetails" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidrefundsProcessingInformation.cs b/Model/Ptsv2paymentsidrefundsProcessingInformation.cs index db1a0aab..9fbf508f 100644 --- a/Model/Ptsv2paymentsidrefundsProcessingInformation.cs +++ b/Model/Ptsv2paymentsidrefundsProcessingInformation.cs @@ -240,48 +240,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - - // LinkId (string) maxLength - if(this.LinkId != null && this.LinkId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LinkId, length must be less than or equal to 26.", new [] { "LinkId" }); - } - - // ReportGroup (string) maxLength - if(this.ReportGroup != null && this.ReportGroup.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportGroup, length must be less than or equal to 25.", new [] { "ReportGroup" }); - } - - // VisaCheckoutId (string) maxLength - if(this.VisaCheckoutId != null && this.VisaCheckoutId.Length >= 48) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VisaCheckoutId, length must be less than or equal to 48.", new [] { "VisaCheckoutId" }); - } - - // PurchaseLevel (string) maxLength - if(this.PurchaseLevel != null && this.PurchaseLevel.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PurchaseLevel, length must be less than or equal to 1.", new [] { "PurchaseLevel" }); - } - - // IndustryDataType (string) maxLength - if(this.IndustryDataType != null && this.IndustryDataType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IndustryDataType, length must be less than or equal to 20.", new [] { "IndustryDataType" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsClientReferenceInformation.cs b/Model/Ptsv2paymentsidreversalsClientReferenceInformation.cs index 5ebfe6e9..ace3051c 100644 --- a/Model/Ptsv2paymentsidreversalsClientReferenceInformation.cs +++ b/Model/Ptsv2paymentsidreversalsClientReferenceInformation.cs @@ -223,18 +223,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // PausedRequestId (string) maxLength - if(this.PausedRequestId != null && this.PausedRequestId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PausedRequestId, length must be less than or equal to 26.", new [] { "PausedRequestId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsClientReferenceInformationPartner.cs b/Model/Ptsv2paymentsidreversalsClientReferenceInformationPartner.cs index adb40873..ff4d180b 100644 --- a/Model/Ptsv2paymentsidreversalsClientReferenceInformationPartner.cs +++ b/Model/Ptsv2paymentsidreversalsClientReferenceInformationPartner.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DeveloperId (string) maxLength - if(this.DeveloperId != null && this.DeveloperId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeveloperId, length must be less than or equal to 8.", new [] { "DeveloperId" }); - } - - // SolutionId (string) maxLength - if(this.SolutionId != null && this.SolutionId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SolutionId, length must be less than or equal to 8.", new [] { "SolutionId" }); - } - - // ThirdPartyCertificationNumber (string) maxLength - if(this.ThirdPartyCertificationNumber != null && this.ThirdPartyCertificationNumber.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ThirdPartyCertificationNumber, length must be less than or equal to 12.", new [] { "ThirdPartyCertificationNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsOrderInformationAmountDetails.cs b/Model/Ptsv2paymentsidreversalsOrderInformationAmountDetails.cs index 752bebcb..1006b3f7 100644 --- a/Model/Ptsv2paymentsidreversalsOrderInformationAmountDetails.cs +++ b/Model/Ptsv2paymentsidreversalsOrderInformationAmountDetails.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ServiceFeeAmount (string) maxLength - if(this.ServiceFeeAmount != null && this.ServiceFeeAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ServiceFeeAmount, length must be less than or equal to 15.", new [] { "ServiceFeeAmount" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.cs b/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.cs index 9c6abc5f..b172756e 100644 --- a/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.cs +++ b/Model/Ptsv2paymentsidreversalsOrderInformationLineItems.cs @@ -140,23 +140,17 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsPointOfSaleInformationEmv.cs b/Model/Ptsv2paymentsidreversalsPointOfSaleInformationEmv.cs index 5be02670..2c28bc51 100644 --- a/Model/Ptsv2paymentsidreversalsPointOfSaleInformationEmv.cs +++ b/Model/Ptsv2paymentsidreversalsPointOfSaleInformationEmv.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Tags (string) maxLength - if(this.Tags != null && this.Tags.Length >= 1998) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Tags, length must be less than or equal to 1998.", new [] { "Tags" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsProcessingInformation.cs b/Model/Ptsv2paymentsidreversalsProcessingInformation.cs index 0e107f81..85c8aeb3 100644 --- a/Model/Ptsv2paymentsidreversalsProcessingInformation.cs +++ b/Model/Ptsv2paymentsidreversalsProcessingInformation.cs @@ -206,36 +206,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - - // LinkId (string) maxLength - if(this.LinkId != null && this.LinkId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LinkId, length must be less than or equal to 26.", new [] { "LinkId" }); - } - - // ReportGroup (string) maxLength - if(this.ReportGroup != null && this.ReportGroup.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportGroup, length must be less than or equal to 25.", new [] { "ReportGroup" }); - } - - // VisaCheckoutId (string) maxLength - if(this.VisaCheckoutId != null && this.VisaCheckoutId.Length >= 48) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VisaCheckoutId, length must be less than or equal to 48.", new [] { "VisaCheckoutId" }); - } - yield break; } } diff --git a/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.cs b/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.cs index 7fd02aa1..e9879df5 100644 --- a/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.cs +++ b/Model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsClientReferenceInformation.cs b/Model/Ptsv2payoutsClientReferenceInformation.cs index deccc389..1306ddd6 100644 --- a/Model/Ptsv2payoutsClientReferenceInformation.cs +++ b/Model/Ptsv2payoutsClientReferenceInformation.cs @@ -173,12 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsMerchantInformation.cs b/Model/Ptsv2payoutsMerchantInformation.cs index de8826d6..3944b65f 100644 --- a/Model/Ptsv2payoutsMerchantInformation.cs +++ b/Model/Ptsv2payoutsMerchantInformation.cs @@ -173,17 +173,11 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // CategoryCode (int?) maximum - if(this.CategoryCode >= (int?)9999) + if(this.CategoryCode > (int?)9999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CategoryCode, must be a value less than or equal to 9999.", new [] { "CategoryCode" }); } - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 21.", new [] { "VatRegistrationNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.cs b/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.cs index 22bbefa6..eb262703 100644 --- a/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.cs +++ b/Model/Ptsv2payoutsMerchantInformationMerchantDescriptor.cs @@ -207,30 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 13.", new [] { "Locality" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 14.", new [] { "PostalCode" }); - } - - // Contact (string) maxLength - if(this.Contact != null && this.Contact.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Contact, length must be less than or equal to 14.", new [] { "Contact" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsOrderInformationAmountDetails.cs b/Model/Ptsv2payoutsOrderInformationAmountDetails.cs index b739470b..0e0bef23 100644 --- a/Model/Ptsv2payoutsOrderInformationAmountDetails.cs +++ b/Model/Ptsv2payoutsOrderInformationAmountDetails.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.cs b/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.cs index 92db18b5..cca41ffd 100644 --- a/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.cs +++ b/Model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 15.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsOrderInformationBillTo.cs b/Model/Ptsv2payoutsOrderInformationBillTo.cs index 1f68e9d1..ab2da25e 100644 --- a/Model/Ptsv2payoutsOrderInformationBillTo.cs +++ b/Model/Ptsv2payoutsOrderInformationBillTo.cs @@ -275,60 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsPaymentInformationCard.cs b/Model/Ptsv2payoutsPaymentInformationCard.cs index 2eabcff5..1030837b 100644 --- a/Model/Ptsv2payoutsPaymentInformationCard.cs +++ b/Model/Ptsv2payoutsPaymentInformationCard.cs @@ -190,30 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // SourceAccountType (string) maxLength - if(this.SourceAccountType != null && this.SourceAccountType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SourceAccountType, length must be less than or equal to 20.", new [] { "SourceAccountType" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsProcessingInformation.cs b/Model/Ptsv2payoutsProcessingInformation.cs index b2170e25..ae966501 100644 --- a/Model/Ptsv2payoutsProcessingInformation.cs +++ b/Model/Ptsv2payoutsProcessingInformation.cs @@ -189,30 +189,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // BusinessApplicationId (string) maxLength - if(this.BusinessApplicationId != null && this.BusinessApplicationId.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessApplicationId, length must be less than or equal to 2.", new [] { "BusinessApplicationId" }); - } - - // NetworkRoutingOrder (string) maxLength - if(this.NetworkRoutingOrder != null && this.NetworkRoutingOrder.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkRoutingOrder, length must be less than or equal to 30.", new [] { "NetworkRoutingOrder" }); - } - - // CommerceIndicator (string) maxLength - if(this.CommerceIndicator != null && this.CommerceIndicator.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommerceIndicator, length must be less than or equal to 13.", new [] { "CommerceIndicator" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.cs b/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.cs index 975dbab8..107c9b61 100644 --- a/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.cs +++ b/Model/Ptsv2payoutsProcessingInformationPayoutsOptions.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AcquirerMerchantId (string) maxLength - if(this.AcquirerMerchantId != null && this.AcquirerMerchantId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcquirerMerchantId, length must be less than or equal to 15.", new [] { "AcquirerMerchantId" }); - } - - // AcquirerBin (string) maxLength - if(this.AcquirerBin != null && this.AcquirerBin.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcquirerBin, length must be less than or equal to 11.", new [] { "AcquirerBin" }); - } - - // RetrievalReferenceNumber (string) maxLength - if(this.RetrievalReferenceNumber != null && this.RetrievalReferenceNumber.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RetrievalReferenceNumber, length must be less than or equal to 12.", new [] { "RetrievalReferenceNumber" }); - } - - // AccountFundingReferenceId (string) maxLength - if(this.AccountFundingReferenceId != null && this.AccountFundingReferenceId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountFundingReferenceId, length must be less than or equal to 15.", new [] { "AccountFundingReferenceId" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsRecipientInformation.cs b/Model/Ptsv2payoutsRecipientInformation.cs index 1007e7a9..cbc3d277 100644 --- a/Model/Ptsv2payoutsRecipientInformation.cs +++ b/Model/Ptsv2payoutsRecipientInformation.cs @@ -275,72 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 35.", new [] { "FirstName" }); - } - - // MiddleInitial (string) maxLength - if(this.MiddleInitial != null && this.MiddleInitial.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiddleInitial, length must be less than or equal to 1.", new [] { "MiddleInitial" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 35.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 50.", new [] { "Address1" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 25.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 3.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 20.", new [] { "PhoneNumber" }); - } - - // DateOfBirth (string) maxLength - if(this.DateOfBirth != null && this.DateOfBirth.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOfBirth, length must be less than or equal to 8.", new [] { "DateOfBirth" }); - } - - // DateOfBirth (string) minLength - if(this.DateOfBirth != null && this.DateOfBirth.Length <= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOfBirth, length must be greater than or equal to 8.", new [] { "DateOfBirth" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsSenderInformation.cs b/Model/Ptsv2payoutsSenderInformation.cs index f45b9918..8dfbec61 100644 --- a/Model/Ptsv2payoutsSenderInformation.cs +++ b/Model/Ptsv2payoutsSenderInformation.cs @@ -342,90 +342,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ReferenceNumber (string) maxLength - if(this.ReferenceNumber != null && this.ReferenceNumber.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceNumber, length must be less than or equal to 19.", new [] { "ReferenceNumber" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 35.", new [] { "FirstName" }); - } - - // MiddleInitial (string) maxLength - if(this.MiddleInitial != null && this.MiddleInitial.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiddleInitial, length must be less than or equal to 1.", new [] { "MiddleInitial" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 35.", new [] { "LastName" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 24) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 24.", new [] { "Name" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 50.", new [] { "Address1" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 25.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // CountryCode (string) maxLength - if(this.CountryCode != null && this.CountryCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CountryCode, length must be less than or equal to 2.", new [] { "CountryCode" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 20.", new [] { "PhoneNumber" }); - } - - // DateOfBirth (string) maxLength - if(this.DateOfBirth != null && this.DateOfBirth.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOfBirth, length must be less than or equal to 8.", new [] { "DateOfBirth" }); - } - - // DateOfBirth (string) minLength - if(this.DateOfBirth != null && this.DateOfBirth.Length <= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOfBirth, length must be greater than or equal to 8.", new [] { "DateOfBirth" }); - } - - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 13.", new [] { "VatRegistrationNumber" }); - } - yield break; } } diff --git a/Model/Ptsv2payoutsSenderInformationAccount.cs b/Model/Ptsv2payoutsSenderInformationAccount.cs index ec561531..ef63377c 100644 --- a/Model/Ptsv2payoutsSenderInformationAccount.cs +++ b/Model/Ptsv2payoutsSenderInformationAccount.cs @@ -139,24 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FundsSource (string) maxLength - if(this.FundsSource != null && this.FundsSource.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FundsSource, length must be less than or equal to 2.", new [] { "FundsSource" }); - } - - // FundsSource (string) minLength - if(this.FundsSource != null && this.FundsSource.Length <= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FundsSource, length must be greater than or equal to 2.", new [] { "FundsSource" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 34) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 34.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/ReportingV3ChargebackDetailsGet200Response.cs b/Model/ReportingV3ChargebackDetailsGet200Response.cs new file mode 100644 index 00000000..df3b1f8d --- /dev/null +++ b/Model/ReportingV3ChargebackDetailsGet200Response.cs @@ -0,0 +1,180 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3ChargebackDetailsGet200Response + /// + [DataContract] + public partial class ReportingV3ChargebackDetailsGet200Response : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Organization Id. + /// Report Start Date (ISO 8601 Extended). + /// Report Start Date (ISO 8601 Extended). + /// List of Chargeback Details list.. + public ReportingV3ChargebackDetailsGet200Response(string OrganizationId = default(string), DateTime? StartTime = default(DateTime?), DateTime? EndTime = default(DateTime?), List ChargebackDetails = default(List)) + { + this.OrganizationId = OrganizationId; + this.StartTime = StartTime; + this.EndTime = EndTime; + this.ChargebackDetails = ChargebackDetails; + } + + /// + /// Organization Id + /// + /// Organization Id + [DataMember(Name="organizationId", EmitDefaultValue=false)] + public string OrganizationId { get; set; } + + /// + /// Report Start Date (ISO 8601 Extended) + /// + /// Report Start Date (ISO 8601 Extended) + [DataMember(Name="startTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Report Start Date (ISO 8601 Extended) + /// + /// Report Start Date (ISO 8601 Extended) + [DataMember(Name="endTime", EmitDefaultValue=false)] + public DateTime? EndTime { get; set; } + + /// + /// List of Chargeback Details list. + /// + /// List of Chargeback Details list. + [DataMember(Name="chargebackDetails", EmitDefaultValue=false)] + public List ChargebackDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3ChargebackDetailsGet200Response {\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append(" ChargebackDetails: ").Append(ChargebackDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3ChargebackDetailsGet200Response); + } + + /// + /// Returns true if ReportingV3ChargebackDetailsGet200Response instances are equal + /// + /// Instance of ReportingV3ChargebackDetailsGet200Response to be compared + /// Boolean + public bool Equals(ReportingV3ChargebackDetailsGet200Response other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.OrganizationId == other.OrganizationId || + this.OrganizationId != null && + this.OrganizationId.Equals(other.OrganizationId) + ) && + ( + this.StartTime == other.StartTime || + this.StartTime != null && + this.StartTime.Equals(other.StartTime) + ) && + ( + this.EndTime == other.EndTime || + this.EndTime != null && + this.EndTime.Equals(other.EndTime) + ) && + ( + this.ChargebackDetails == other.ChargebackDetails || + this.ChargebackDetails != null && + this.ChargebackDetails.SequenceEqual(other.ChargebackDetails) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.OrganizationId != null) + hash = hash * 59 + this.OrganizationId.GetHashCode(); + if (this.StartTime != null) + hash = hash * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hash = hash * 59 + this.EndTime.GetHashCode(); + if (this.ChargebackDetails != null) + hash = hash * 59 + this.ChargebackDetails.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.cs b/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.cs new file mode 100644 index 00000000..32e72719 --- /dev/null +++ b/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.cs @@ -0,0 +1,486 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3ChargebackDetailsGet200ResponseChargebackDetails + /// + [DataContract] + public partial class ReportingV3ChargebackDetailsGet200ResponseChargebackDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Processor Merchant Id. + /// Merchant Name. + /// Transaction Reference Number. + /// Merchant Reference Number. + /// Nature of Dispute. + /// Chargeback Alert Type. + /// Chargeback Amount. + /// Chargeback Sign. + /// Chargeback Action. + /// Card Type. + /// Original Settlement Date. + /// Tracking Number. + /// Valid ISO 4217 ALPHA-3 currency code. + /// Request Id. + /// Response Due Date. + /// Chargeback Date. + /// Chargeback Action Description. + /// Customer Id. + /// Chargeback Reason Code. + /// Representment CP Date. + /// ICS Request Applications. + /// Event Request Date. + public ReportingV3ChargebackDetailsGet200ResponseChargebackDetails(string ProcessorMerchantId = default(string), string MerchantName = default(string), string TransactionReferenceNumber = default(string), string MerchantReferenceNumber = default(string), string NatureOfDispute = default(string), string AlertType = default(string), string Amount = default(string), string Sign = default(string), string Action = default(string), string CardType = default(string), DateTime? OriginalSettlementTime = default(DateTime?), string TrackingNumber = default(string), string CurrencyCode = default(string), string RequestId = default(string), DateTime? ResponseDueTime = default(DateTime?), DateTime? Time = default(DateTime?), string ActionDescription = default(string), string CustomerId = default(string), string ReasonCode = default(string), DateTime? RepresentmentCPTime = default(DateTime?), string Applications = default(string), DateTime? EventRequestedTime = default(DateTime?)) + { + this.ProcessorMerchantId = ProcessorMerchantId; + this.MerchantName = MerchantName; + this.TransactionReferenceNumber = TransactionReferenceNumber; + this.MerchantReferenceNumber = MerchantReferenceNumber; + this.NatureOfDispute = NatureOfDispute; + this.AlertType = AlertType; + this.Amount = Amount; + this.Sign = Sign; + this.Action = Action; + this.CardType = CardType; + this.OriginalSettlementTime = OriginalSettlementTime; + this.TrackingNumber = TrackingNumber; + this.CurrencyCode = CurrencyCode; + this.RequestId = RequestId; + this.ResponseDueTime = ResponseDueTime; + this.Time = Time; + this.ActionDescription = ActionDescription; + this.CustomerId = CustomerId; + this.ReasonCode = ReasonCode; + this.RepresentmentCPTime = RepresentmentCPTime; + this.Applications = Applications; + this.EventRequestedTime = EventRequestedTime; + } + + /// + /// Processor Merchant Id + /// + /// Processor Merchant Id + [DataMember(Name="processorMerchantId", EmitDefaultValue=false)] + public string ProcessorMerchantId { get; set; } + + /// + /// Merchant Name + /// + /// Merchant Name + [DataMember(Name="merchantName", EmitDefaultValue=false)] + public string MerchantName { get; set; } + + /// + /// Transaction Reference Number + /// + /// Transaction Reference Number + [DataMember(Name="transactionReferenceNumber", EmitDefaultValue=false)] + public string TransactionReferenceNumber { get; set; } + + /// + /// Merchant Reference Number + /// + /// Merchant Reference Number + [DataMember(Name="merchantReferenceNumber", EmitDefaultValue=false)] + public string MerchantReferenceNumber { get; set; } + + /// + /// Nature of Dispute + /// + /// Nature of Dispute + [DataMember(Name="natureOfDispute", EmitDefaultValue=false)] + public string NatureOfDispute { get; set; } + + /// + /// Chargeback Alert Type + /// + /// Chargeback Alert Type + [DataMember(Name="alertType", EmitDefaultValue=false)] + public string AlertType { get; set; } + + /// + /// Chargeback Amount + /// + /// Chargeback Amount + [DataMember(Name="amount", EmitDefaultValue=false)] + public string Amount { get; set; } + + /// + /// Chargeback Sign + /// + /// Chargeback Sign + [DataMember(Name="sign", EmitDefaultValue=false)] + public string Sign { get; set; } + + /// + /// Chargeback Action + /// + /// Chargeback Action + [DataMember(Name="action", EmitDefaultValue=false)] + public string Action { get; set; } + + /// + /// Card Type + /// + /// Card Type + [DataMember(Name="cardType", EmitDefaultValue=false)] + public string CardType { get; set; } + + /// + /// Original Settlement Date + /// + /// Original Settlement Date + [DataMember(Name="originalSettlementTime", EmitDefaultValue=false)] + public DateTime? OriginalSettlementTime { get; set; } + + /// + /// Tracking Number + /// + /// Tracking Number + [DataMember(Name="trackingNumber", EmitDefaultValue=false)] + public string TrackingNumber { get; set; } + + /// + /// Valid ISO 4217 ALPHA-3 currency code + /// + /// Valid ISO 4217 ALPHA-3 currency code + [DataMember(Name="currencyCode", EmitDefaultValue=false)] + public string CurrencyCode { get; set; } + + /// + /// Request Id + /// + /// Request Id + [DataMember(Name="requestId", EmitDefaultValue=false)] + public string RequestId { get; set; } + + /// + /// Response Due Date + /// + /// Response Due Date + [DataMember(Name="responseDueTime", EmitDefaultValue=false)] + public DateTime? ResponseDueTime { get; set; } + + /// + /// Chargeback Date + /// + /// Chargeback Date + [DataMember(Name="time", EmitDefaultValue=false)] + public DateTime? Time { get; set; } + + /// + /// Chargeback Action Description + /// + /// Chargeback Action Description + [DataMember(Name="actionDescription", EmitDefaultValue=false)] + public string ActionDescription { get; set; } + + /// + /// Customer Id + /// + /// Customer Id + [DataMember(Name="customerId", EmitDefaultValue=false)] + public string CustomerId { get; set; } + + /// + /// Chargeback Reason Code + /// + /// Chargeback Reason Code + [DataMember(Name="reasonCode", EmitDefaultValue=false)] + public string ReasonCode { get; set; } + + /// + /// Representment CP Date + /// + /// Representment CP Date + [DataMember(Name="representmentCPTime", EmitDefaultValue=false)] + public DateTime? RepresentmentCPTime { get; set; } + + /// + /// ICS Request Applications + /// + /// ICS Request Applications + [DataMember(Name="applications", EmitDefaultValue=false)] + public string Applications { get; set; } + + /// + /// Event Request Date + /// + /// Event Request Date + [DataMember(Name="eventRequestedTime", EmitDefaultValue=false)] + public DateTime? EventRequestedTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3ChargebackDetailsGet200ResponseChargebackDetails {\n"); + sb.Append(" ProcessorMerchantId: ").Append(ProcessorMerchantId).Append("\n"); + sb.Append(" MerchantName: ").Append(MerchantName).Append("\n"); + sb.Append(" TransactionReferenceNumber: ").Append(TransactionReferenceNumber).Append("\n"); + sb.Append(" MerchantReferenceNumber: ").Append(MerchantReferenceNumber).Append("\n"); + sb.Append(" NatureOfDispute: ").Append(NatureOfDispute).Append("\n"); + sb.Append(" AlertType: ").Append(AlertType).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Sign: ").Append(Sign).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" CardType: ").Append(CardType).Append("\n"); + sb.Append(" OriginalSettlementTime: ").Append(OriginalSettlementTime).Append("\n"); + sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n"); + sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" RequestId: ").Append(RequestId).Append("\n"); + sb.Append(" ResponseDueTime: ").Append(ResponseDueTime).Append("\n"); + sb.Append(" Time: ").Append(Time).Append("\n"); + sb.Append(" ActionDescription: ").Append(ActionDescription).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); + sb.Append(" RepresentmentCPTime: ").Append(RepresentmentCPTime).Append("\n"); + sb.Append(" Applications: ").Append(Applications).Append("\n"); + sb.Append(" EventRequestedTime: ").Append(EventRequestedTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3ChargebackDetailsGet200ResponseChargebackDetails); + } + + /// + /// Returns true if ReportingV3ChargebackDetailsGet200ResponseChargebackDetails instances are equal + /// + /// Instance of ReportingV3ChargebackDetailsGet200ResponseChargebackDetails to be compared + /// Boolean + public bool Equals(ReportingV3ChargebackDetailsGet200ResponseChargebackDetails other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.ProcessorMerchantId == other.ProcessorMerchantId || + this.ProcessorMerchantId != null && + this.ProcessorMerchantId.Equals(other.ProcessorMerchantId) + ) && + ( + this.MerchantName == other.MerchantName || + this.MerchantName != null && + this.MerchantName.Equals(other.MerchantName) + ) && + ( + this.TransactionReferenceNumber == other.TransactionReferenceNumber || + this.TransactionReferenceNumber != null && + this.TransactionReferenceNumber.Equals(other.TransactionReferenceNumber) + ) && + ( + this.MerchantReferenceNumber == other.MerchantReferenceNumber || + this.MerchantReferenceNumber != null && + this.MerchantReferenceNumber.Equals(other.MerchantReferenceNumber) + ) && + ( + this.NatureOfDispute == other.NatureOfDispute || + this.NatureOfDispute != null && + this.NatureOfDispute.Equals(other.NatureOfDispute) + ) && + ( + this.AlertType == other.AlertType || + this.AlertType != null && + this.AlertType.Equals(other.AlertType) + ) && + ( + this.Amount == other.Amount || + this.Amount != null && + this.Amount.Equals(other.Amount) + ) && + ( + this.Sign == other.Sign || + this.Sign != null && + this.Sign.Equals(other.Sign) + ) && + ( + this.Action == other.Action || + this.Action != null && + this.Action.Equals(other.Action) + ) && + ( + this.CardType == other.CardType || + this.CardType != null && + this.CardType.Equals(other.CardType) + ) && + ( + this.OriginalSettlementTime == other.OriginalSettlementTime || + this.OriginalSettlementTime != null && + this.OriginalSettlementTime.Equals(other.OriginalSettlementTime) + ) && + ( + this.TrackingNumber == other.TrackingNumber || + this.TrackingNumber != null && + this.TrackingNumber.Equals(other.TrackingNumber) + ) && + ( + this.CurrencyCode == other.CurrencyCode || + this.CurrencyCode != null && + this.CurrencyCode.Equals(other.CurrencyCode) + ) && + ( + this.RequestId == other.RequestId || + this.RequestId != null && + this.RequestId.Equals(other.RequestId) + ) && + ( + this.ResponseDueTime == other.ResponseDueTime || + this.ResponseDueTime != null && + this.ResponseDueTime.Equals(other.ResponseDueTime) + ) && + ( + this.Time == other.Time || + this.Time != null && + this.Time.Equals(other.Time) + ) && + ( + this.ActionDescription == other.ActionDescription || + this.ActionDescription != null && + this.ActionDescription.Equals(other.ActionDescription) + ) && + ( + this.CustomerId == other.CustomerId || + this.CustomerId != null && + this.CustomerId.Equals(other.CustomerId) + ) && + ( + this.ReasonCode == other.ReasonCode || + this.ReasonCode != null && + this.ReasonCode.Equals(other.ReasonCode) + ) && + ( + this.RepresentmentCPTime == other.RepresentmentCPTime || + this.RepresentmentCPTime != null && + this.RepresentmentCPTime.Equals(other.RepresentmentCPTime) + ) && + ( + this.Applications == other.Applications || + this.Applications != null && + this.Applications.Equals(other.Applications) + ) && + ( + this.EventRequestedTime == other.EventRequestedTime || + this.EventRequestedTime != null && + this.EventRequestedTime.Equals(other.EventRequestedTime) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.ProcessorMerchantId != null) + hash = hash * 59 + this.ProcessorMerchantId.GetHashCode(); + if (this.MerchantName != null) + hash = hash * 59 + this.MerchantName.GetHashCode(); + if (this.TransactionReferenceNumber != null) + hash = hash * 59 + this.TransactionReferenceNumber.GetHashCode(); + if (this.MerchantReferenceNumber != null) + hash = hash * 59 + this.MerchantReferenceNumber.GetHashCode(); + if (this.NatureOfDispute != null) + hash = hash * 59 + this.NatureOfDispute.GetHashCode(); + if (this.AlertType != null) + hash = hash * 59 + this.AlertType.GetHashCode(); + if (this.Amount != null) + hash = hash * 59 + this.Amount.GetHashCode(); + if (this.Sign != null) + hash = hash * 59 + this.Sign.GetHashCode(); + if (this.Action != null) + hash = hash * 59 + this.Action.GetHashCode(); + if (this.CardType != null) + hash = hash * 59 + this.CardType.GetHashCode(); + if (this.OriginalSettlementTime != null) + hash = hash * 59 + this.OriginalSettlementTime.GetHashCode(); + if (this.TrackingNumber != null) + hash = hash * 59 + this.TrackingNumber.GetHashCode(); + if (this.CurrencyCode != null) + hash = hash * 59 + this.CurrencyCode.GetHashCode(); + if (this.RequestId != null) + hash = hash * 59 + this.RequestId.GetHashCode(); + if (this.ResponseDueTime != null) + hash = hash * 59 + this.ResponseDueTime.GetHashCode(); + if (this.Time != null) + hash = hash * 59 + this.Time.GetHashCode(); + if (this.ActionDescription != null) + hash = hash * 59 + this.ActionDescription.GetHashCode(); + if (this.CustomerId != null) + hash = hash * 59 + this.CustomerId.GetHashCode(); + if (this.ReasonCode != null) + hash = hash * 59 + this.ReasonCode.GetHashCode(); + if (this.RepresentmentCPTime != null) + hash = hash * 59 + this.RepresentmentCPTime.GetHashCode(); + if (this.Applications != null) + hash = hash * 59 + this.Applications.GetHashCode(); + if (this.EventRequestedTime != null) + hash = hash * 59 + this.EventRequestedTime.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3ChargebackSummariesGet200Response.cs b/Model/ReportingV3ChargebackSummariesGet200Response.cs new file mode 100644 index 00000000..fe5d896f --- /dev/null +++ b/Model/ReportingV3ChargebackSummariesGet200Response.cs @@ -0,0 +1,180 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3ChargebackSummariesGet200Response + /// + [DataContract] + public partial class ReportingV3ChargebackSummariesGet200Response : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Organization Id. + /// Report Start Date. + /// Report Start Date. + /// List of Summary values. + public ReportingV3ChargebackSummariesGet200Response(string OrganizationId = default(string), DateTime? StartTime = default(DateTime?), string EndTime = default(string), List ChargebackSummaries = default(List)) + { + this.OrganizationId = OrganizationId; + this.StartTime = StartTime; + this.EndTime = EndTime; + this.ChargebackSummaries = ChargebackSummaries; + } + + /// + /// Organization Id + /// + /// Organization Id + [DataMember(Name="organizationId", EmitDefaultValue=false)] + public string OrganizationId { get; set; } + + /// + /// Report Start Date + /// + /// Report Start Date + [DataMember(Name="startTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Report Start Date + /// + /// Report Start Date + [DataMember(Name="endTime", EmitDefaultValue=false)] + public string EndTime { get; set; } + + /// + /// List of Summary values + /// + /// List of Summary values + [DataMember(Name="chargebackSummaries", EmitDefaultValue=false)] + public List ChargebackSummaries { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3ChargebackSummariesGet200Response {\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append(" ChargebackSummaries: ").Append(ChargebackSummaries).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3ChargebackSummariesGet200Response); + } + + /// + /// Returns true if ReportingV3ChargebackSummariesGet200Response instances are equal + /// + /// Instance of ReportingV3ChargebackSummariesGet200Response to be compared + /// Boolean + public bool Equals(ReportingV3ChargebackSummariesGet200Response other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.OrganizationId == other.OrganizationId || + this.OrganizationId != null && + this.OrganizationId.Equals(other.OrganizationId) + ) && + ( + this.StartTime == other.StartTime || + this.StartTime != null && + this.StartTime.Equals(other.StartTime) + ) && + ( + this.EndTime == other.EndTime || + this.EndTime != null && + this.EndTime.Equals(other.EndTime) + ) && + ( + this.ChargebackSummaries == other.ChargebackSummaries || + this.ChargebackSummaries != null && + this.ChargebackSummaries.SequenceEqual(other.ChargebackSummaries) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.OrganizationId != null) + hash = hash * 59 + this.OrganizationId.GetHashCode(); + if (this.StartTime != null) + hash = hash * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hash = hash * 59 + this.EndTime.GetHashCode(); + if (this.ChargebackSummaries != null) + hash = hash * 59 + this.ChargebackSummaries.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.cs b/Model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.cs new file mode 100644 index 00000000..66331b98 --- /dev/null +++ b/Model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.cs @@ -0,0 +1,163 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries + /// + [DataContract] + public partial class ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Chargeback summary list count. + /// Summary Date. + /// Account Id. + public ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries(decimal? Count = default(decimal?), DateTime? Time = default(DateTime?), string AccountId = default(string)) + { + this.Count = Count; + this.Time = Time; + this.AccountId = AccountId; + } + + /// + /// Chargeback summary list count + /// + /// Chargeback summary list count + [DataMember(Name="count", EmitDefaultValue=false)] + public decimal? Count { get; set; } + + /// + /// Summary Date + /// + /// Summary Date + [DataMember(Name="time", EmitDefaultValue=false)] + public DateTime? Time { get; set; } + + /// + /// Account Id + /// + /// Account Id + [DataMember(Name="accountId", EmitDefaultValue=false)] + public string AccountId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries {\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); + sb.Append(" Time: ").Append(Time).Append("\n"); + sb.Append(" AccountId: ").Append(AccountId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries); + } + + /// + /// Returns true if ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries instances are equal + /// + /// Instance of ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries to be compared + /// Boolean + public bool Equals(ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.Count == other.Count || + this.Count != null && + this.Count.Equals(other.Count) + ) && + ( + this.Time == other.Time || + this.Time != null && + this.Time.Equals(other.Time) + ) && + ( + this.AccountId == other.AccountId || + this.AccountId != null && + this.AccountId.Equals(other.AccountId) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.Count != null) + hash = hash * 59 + this.Count.GetHashCode(); + if (this.Time != null) + hash = hash * 59 + this.Time.GetHashCode(); + if (this.AccountId != null) + hash = hash * 59 + this.AccountId.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3InterchangeClearingLevelDetailsGet200Response.cs b/Model/ReportingV3InterchangeClearingLevelDetailsGet200Response.cs new file mode 100644 index 00000000..bb56b2cd --- /dev/null +++ b/Model/ReportingV3InterchangeClearingLevelDetailsGet200Response.cs @@ -0,0 +1,163 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3InterchangeClearingLevelDetailsGet200Response + /// + [DataContract] + public partial class ReportingV3InterchangeClearingLevelDetailsGet200Response : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Valid report Start Date in **ISO 8601 format**. Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ . + /// Valid report Start Date in **ISO 8601 format**. . + /// List of InterchangeClearingLevelDetail. + public ReportingV3InterchangeClearingLevelDetailsGet200Response(DateTime? StartDate = default(DateTime?), DateTime? EndDate = default(DateTime?), List InterchangeClearingLevelDetails = default(List)) + { + this.StartDate = StartDate; + this.EndDate = EndDate; + this.InterchangeClearingLevelDetails = InterchangeClearingLevelDetails; + } + + /// + /// Valid report Start Date in **ISO 8601 format**. Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ + /// + /// Valid report Start Date in **ISO 8601 format**. Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ + [DataMember(Name="startDate", EmitDefaultValue=false)] + public DateTime? StartDate { get; set; } + + /// + /// Valid report Start Date in **ISO 8601 format**. + /// + /// Valid report Start Date in **ISO 8601 format**. + [DataMember(Name="endDate", EmitDefaultValue=false)] + public DateTime? EndDate { get; set; } + + /// + /// List of InterchangeClearingLevelDetail + /// + /// List of InterchangeClearingLevelDetail + [DataMember(Name="interchangeClearingLevelDetails", EmitDefaultValue=false)] + public List InterchangeClearingLevelDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3InterchangeClearingLevelDetailsGet200Response {\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append(" InterchangeClearingLevelDetails: ").Append(InterchangeClearingLevelDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3InterchangeClearingLevelDetailsGet200Response); + } + + /// + /// Returns true if ReportingV3InterchangeClearingLevelDetailsGet200Response instances are equal + /// + /// Instance of ReportingV3InterchangeClearingLevelDetailsGet200Response to be compared + /// Boolean + public bool Equals(ReportingV3InterchangeClearingLevelDetailsGet200Response other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.StartDate == other.StartDate || + this.StartDate != null && + this.StartDate.Equals(other.StartDate) + ) && + ( + this.EndDate == other.EndDate || + this.EndDate != null && + this.EndDate.Equals(other.EndDate) + ) && + ( + this.InterchangeClearingLevelDetails == other.InterchangeClearingLevelDetails || + this.InterchangeClearingLevelDetails != null && + this.InterchangeClearingLevelDetails.SequenceEqual(other.InterchangeClearingLevelDetails) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.StartDate != null) + hash = hash * 59 + this.StartDate.GetHashCode(); + if (this.EndDate != null) + hash = hash * 59 + this.EndDate.GetHashCode(); + if (this.InterchangeClearingLevelDetails != null) + hash = hash * 59 + this.InterchangeClearingLevelDetails.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.cs b/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.cs new file mode 100644 index 00000000..96a2f498 --- /dev/null +++ b/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.cs @@ -0,0 +1,932 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails + /// + [DataContract] + public partial class ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// RequestId. + /// OrganizationId. + /// AccountId. + /// ProcessorMerchantId. + /// TransactionReferenceNumber. + /// MerchantReferenceNumber. + /// AccountSuffix. + /// PaymentSubType. + /// PaymentSubTypeDescription. + /// TransactionTime. + /// ProcessedTime. + /// TransactionType. + /// Amount. + /// Valid ISO 4217 ALPHA-3 currency code. + /// PriceType. + /// PriceAmountOne. + /// PriceAmountTwo. + /// ReClass. + /// SettlementTime. + /// SettlementProcessor. + /// MerchantBatchNumber. + /// ClearedLevel. + /// BillbackReasonCode. + /// BillbackReasonDescription. + /// MerchantPricedLevel. + /// DiscountRate. + /// DiscountAmount. + /// ClearingRateAmountOne. + /// ClearingRateAmountTwo. + /// ClearingRateAmountThree. + /// Valid ISO 4217 ALPHA-3 currency code. + /// InterchangeAmount. + /// BillbackAmount. + /// SettlementAmount. + /// Valid ISO 4217 ALPHA-3 currency code. + /// ConversionRate. + /// DeltaCost. + /// SurchargeAmount. + /// PercentRateCharged. + /// PerTransactionCharged. + /// DowngradeReasonCode. + /// ProcessTime. + /// AuthCode. + /// BatchTime. + /// ProcessorBatchNumber. + /// CardIndicator. + /// MinimumUnit. + /// Valid ISO 4217 ALPHA-3 currency code. + /// CreditDeltaIndicator. + /// FeeCategory. + /// ApplicationName. + public ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails(string RequestId = default(string), string OrganizationId = default(string), string AccountId = default(string), string ProcessorMerchantId = default(string), string TransactionReferenceNumber = default(string), string MerchantReferenceNumber = default(string), string AccountSuffix = default(string), string PaymentSubType = default(string), string PaymentSubTypeDescription = default(string), DateTime? TransactionTime = default(DateTime?), DateTime? ProcessedTime = default(DateTime?), string TransactionType = default(string), string Amount = default(string), string CurrencyCode = default(string), string PriceType = default(string), string PriceAmountOne = default(string), string PriceAmountTwo = default(string), string ReClass = default(string), DateTime? SettlementTime = default(DateTime?), string SettlementProcessor = default(string), string MerchantBatchNumber = default(string), string ClearedLevel = default(string), string BillbackReasonCode = default(string), string BillbackReasonDescription = default(string), string MerchantPricedLevel = default(string), string DiscountRate = default(string), string DiscountAmount = default(string), string ClearingRateAmountOne = default(string), string ClearingRateAmountTwo = default(string), string ClearingRateAmountThree = default(string), string ClearingRateCurrencyCode = default(string), string InterchangeAmount = default(string), string BillbackAmount = default(string), string SettlementAmount = default(string), string SettlementCurrencyCode = default(string), string ConversionRate = default(string), string DeltaCost = default(string), string SurchargeAmount = default(string), string PercentRateCharged = default(string), string PerTransactionCharged = default(string), string DowngradeReasonCode = default(string), DateTime? ProcessTime = default(DateTime?), string AuthCode = default(string), DateTime? BatchTime = default(DateTime?), string ProcessorBatchNumber = default(string), string CardIndicator = default(string), int? MinimumUnit = default(int?), string MinimumUnitCurrencyCode = default(string), string CreditDeltaIndicator = default(string), string FeeCategory = default(string), string ApplicationName = default(string)) + { + this.RequestId = RequestId; + this.OrganizationId = OrganizationId; + this.AccountId = AccountId; + this.ProcessorMerchantId = ProcessorMerchantId; + this.TransactionReferenceNumber = TransactionReferenceNumber; + this.MerchantReferenceNumber = MerchantReferenceNumber; + this.AccountSuffix = AccountSuffix; + this.PaymentSubType = PaymentSubType; + this.PaymentSubTypeDescription = PaymentSubTypeDescription; + this.TransactionTime = TransactionTime; + this.ProcessedTime = ProcessedTime; + this.TransactionType = TransactionType; + this.Amount = Amount; + this.CurrencyCode = CurrencyCode; + this.PriceType = PriceType; + this.PriceAmountOne = PriceAmountOne; + this.PriceAmountTwo = PriceAmountTwo; + this.ReClass = ReClass; + this.SettlementTime = SettlementTime; + this.SettlementProcessor = SettlementProcessor; + this.MerchantBatchNumber = MerchantBatchNumber; + this.ClearedLevel = ClearedLevel; + this.BillbackReasonCode = BillbackReasonCode; + this.BillbackReasonDescription = BillbackReasonDescription; + this.MerchantPricedLevel = MerchantPricedLevel; + this.DiscountRate = DiscountRate; + this.DiscountAmount = DiscountAmount; + this.ClearingRateAmountOne = ClearingRateAmountOne; + this.ClearingRateAmountTwo = ClearingRateAmountTwo; + this.ClearingRateAmountThree = ClearingRateAmountThree; + this.ClearingRateCurrencyCode = ClearingRateCurrencyCode; + this.InterchangeAmount = InterchangeAmount; + this.BillbackAmount = BillbackAmount; + this.SettlementAmount = SettlementAmount; + this.SettlementCurrencyCode = SettlementCurrencyCode; + this.ConversionRate = ConversionRate; + this.DeltaCost = DeltaCost; + this.SurchargeAmount = SurchargeAmount; + this.PercentRateCharged = PercentRateCharged; + this.PerTransactionCharged = PerTransactionCharged; + this.DowngradeReasonCode = DowngradeReasonCode; + this.ProcessTime = ProcessTime; + this.AuthCode = AuthCode; + this.BatchTime = BatchTime; + this.ProcessorBatchNumber = ProcessorBatchNumber; + this.CardIndicator = CardIndicator; + this.MinimumUnit = MinimumUnit; + this.MinimumUnitCurrencyCode = MinimumUnitCurrencyCode; + this.CreditDeltaIndicator = CreditDeltaIndicator; + this.FeeCategory = FeeCategory; + this.ApplicationName = ApplicationName; + } + + /// + /// Gets or Sets RequestId + /// + [DataMember(Name="requestId", EmitDefaultValue=false)] + public string RequestId { get; set; } + + /// + /// Gets or Sets OrganizationId + /// + [DataMember(Name="organizationId", EmitDefaultValue=false)] + public string OrganizationId { get; set; } + + /// + /// Gets or Sets AccountId + /// + [DataMember(Name="accountId", EmitDefaultValue=false)] + public string AccountId { get; set; } + + /// + /// Gets or Sets ProcessorMerchantId + /// + [DataMember(Name="processorMerchantId", EmitDefaultValue=false)] + public string ProcessorMerchantId { get; set; } + + /// + /// Gets or Sets TransactionReferenceNumber + /// + [DataMember(Name="transactionReferenceNumber", EmitDefaultValue=false)] + public string TransactionReferenceNumber { get; set; } + + /// + /// Gets or Sets MerchantReferenceNumber + /// + [DataMember(Name="merchantReferenceNumber", EmitDefaultValue=false)] + public string MerchantReferenceNumber { get; set; } + + /// + /// Gets or Sets AccountSuffix + /// + [DataMember(Name="accountSuffix", EmitDefaultValue=false)] + public string AccountSuffix { get; set; } + + /// + /// Gets or Sets PaymentSubType + /// + [DataMember(Name="paymentSubType", EmitDefaultValue=false)] + public string PaymentSubType { get; set; } + + /// + /// Gets or Sets PaymentSubTypeDescription + /// + [DataMember(Name="paymentSubTypeDescription", EmitDefaultValue=false)] + public string PaymentSubTypeDescription { get; set; } + + /// + /// Gets or Sets TransactionTime + /// + [DataMember(Name="transactionTime", EmitDefaultValue=false)] + public DateTime? TransactionTime { get; set; } + + /// + /// Gets or Sets ProcessedTime + /// + [DataMember(Name="processedTime", EmitDefaultValue=false)] + public DateTime? ProcessedTime { get; set; } + + /// + /// Gets or Sets TransactionType + /// + [DataMember(Name="transactionType", EmitDefaultValue=false)] + public string TransactionType { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name="amount", EmitDefaultValue=false)] + public string Amount { get; set; } + + /// + /// Valid ISO 4217 ALPHA-3 currency code + /// + /// Valid ISO 4217 ALPHA-3 currency code + [DataMember(Name="currencyCode", EmitDefaultValue=false)] + public string CurrencyCode { get; set; } + + /// + /// Gets or Sets PriceType + /// + [DataMember(Name="priceType", EmitDefaultValue=false)] + public string PriceType { get; set; } + + /// + /// Gets or Sets PriceAmountOne + /// + [DataMember(Name="priceAmountOne", EmitDefaultValue=false)] + public string PriceAmountOne { get; set; } + + /// + /// Gets or Sets PriceAmountTwo + /// + [DataMember(Name="priceAmountTwo", EmitDefaultValue=false)] + public string PriceAmountTwo { get; set; } + + /// + /// Gets or Sets ReClass + /// + [DataMember(Name="reClass", EmitDefaultValue=false)] + public string ReClass { get; set; } + + /// + /// Gets or Sets SettlementTime + /// + [DataMember(Name="settlementTime", EmitDefaultValue=false)] + public DateTime? SettlementTime { get; set; } + + /// + /// Gets or Sets SettlementProcessor + /// + [DataMember(Name="settlementProcessor", EmitDefaultValue=false)] + public string SettlementProcessor { get; set; } + + /// + /// Gets or Sets MerchantBatchNumber + /// + [DataMember(Name="merchantBatchNumber", EmitDefaultValue=false)] + public string MerchantBatchNumber { get; set; } + + /// + /// Gets or Sets ClearedLevel + /// + [DataMember(Name="clearedLevel", EmitDefaultValue=false)] + public string ClearedLevel { get; set; } + + /// + /// Gets or Sets BillbackReasonCode + /// + [DataMember(Name="billbackReasonCode", EmitDefaultValue=false)] + public string BillbackReasonCode { get; set; } + + /// + /// Gets or Sets BillbackReasonDescription + /// + [DataMember(Name="billbackReasonDescription", EmitDefaultValue=false)] + public string BillbackReasonDescription { get; set; } + + /// + /// Gets or Sets MerchantPricedLevel + /// + [DataMember(Name="merchantPricedLevel", EmitDefaultValue=false)] + public string MerchantPricedLevel { get; set; } + + /// + /// Gets or Sets DiscountRate + /// + [DataMember(Name="discountRate", EmitDefaultValue=false)] + public string DiscountRate { get; set; } + + /// + /// Gets or Sets DiscountAmount + /// + [DataMember(Name="discountAmount", EmitDefaultValue=false)] + public string DiscountAmount { get; set; } + + /// + /// Gets or Sets ClearingRateAmountOne + /// + [DataMember(Name="clearingRateAmountOne", EmitDefaultValue=false)] + public string ClearingRateAmountOne { get; set; } + + /// + /// Gets or Sets ClearingRateAmountTwo + /// + [DataMember(Name="clearingRateAmountTwo", EmitDefaultValue=false)] + public string ClearingRateAmountTwo { get; set; } + + /// + /// Gets or Sets ClearingRateAmountThree + /// + [DataMember(Name="clearingRateAmountThree", EmitDefaultValue=false)] + public string ClearingRateAmountThree { get; set; } + + /// + /// Valid ISO 4217 ALPHA-3 currency code + /// + /// Valid ISO 4217 ALPHA-3 currency code + [DataMember(Name="clearingRateCurrencyCode", EmitDefaultValue=false)] + public string ClearingRateCurrencyCode { get; set; } + + /// + /// Gets or Sets InterchangeAmount + /// + [DataMember(Name="interchangeAmount", EmitDefaultValue=false)] + public string InterchangeAmount { get; set; } + + /// + /// Gets or Sets BillbackAmount + /// + [DataMember(Name="billbackAmount", EmitDefaultValue=false)] + public string BillbackAmount { get; set; } + + /// + /// Gets or Sets SettlementAmount + /// + [DataMember(Name="settlementAmount", EmitDefaultValue=false)] + public string SettlementAmount { get; set; } + + /// + /// Valid ISO 4217 ALPHA-3 currency code + /// + /// Valid ISO 4217 ALPHA-3 currency code + [DataMember(Name="settlementCurrencyCode", EmitDefaultValue=false)] + public string SettlementCurrencyCode { get; set; } + + /// + /// Gets or Sets ConversionRate + /// + [DataMember(Name="conversionRate", EmitDefaultValue=false)] + public string ConversionRate { get; set; } + + /// + /// Gets or Sets DeltaCost + /// + [DataMember(Name="deltaCost", EmitDefaultValue=false)] + public string DeltaCost { get; set; } + + /// + /// Gets or Sets SurchargeAmount + /// + [DataMember(Name="surchargeAmount", EmitDefaultValue=false)] + public string SurchargeAmount { get; set; } + + /// + /// Gets or Sets PercentRateCharged + /// + [DataMember(Name="percentRateCharged", EmitDefaultValue=false)] + public string PercentRateCharged { get; set; } + + /// + /// Gets or Sets PerTransactionCharged + /// + [DataMember(Name="perTransactionCharged", EmitDefaultValue=false)] + public string PerTransactionCharged { get; set; } + + /// + /// Gets or Sets DowngradeReasonCode + /// + [DataMember(Name="downgradeReasonCode", EmitDefaultValue=false)] + public string DowngradeReasonCode { get; set; } + + /// + /// Gets or Sets ProcessTime + /// + [DataMember(Name="processTime", EmitDefaultValue=false)] + public DateTime? ProcessTime { get; set; } + + /// + /// Gets or Sets AuthCode + /// + [DataMember(Name="authCode", EmitDefaultValue=false)] + public string AuthCode { get; set; } + + /// + /// Gets or Sets BatchTime + /// + [DataMember(Name="batchTime", EmitDefaultValue=false)] + public DateTime? BatchTime { get; set; } + + /// + /// Gets or Sets ProcessorBatchNumber + /// + [DataMember(Name="processorBatchNumber", EmitDefaultValue=false)] + public string ProcessorBatchNumber { get; set; } + + /// + /// Gets or Sets CardIndicator + /// + [DataMember(Name="cardIndicator", EmitDefaultValue=false)] + public string CardIndicator { get; set; } + + /// + /// Gets or Sets MinimumUnit + /// + [DataMember(Name="minimumUnit", EmitDefaultValue=false)] + public int? MinimumUnit { get; set; } + + /// + /// Valid ISO 4217 ALPHA-3 currency code + /// + /// Valid ISO 4217 ALPHA-3 currency code + [DataMember(Name="minimumUnitCurrencyCode", EmitDefaultValue=false)] + public string MinimumUnitCurrencyCode { get; set; } + + /// + /// Gets or Sets CreditDeltaIndicator + /// + [DataMember(Name="creditDeltaIndicator", EmitDefaultValue=false)] + public string CreditDeltaIndicator { get; set; } + + /// + /// Gets or Sets FeeCategory + /// + [DataMember(Name="feeCategory", EmitDefaultValue=false)] + public string FeeCategory { get; set; } + + /// + /// Gets or Sets ApplicationName + /// + [DataMember(Name="applicationName", EmitDefaultValue=false)] + public string ApplicationName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails {\n"); + sb.Append(" RequestId: ").Append(RequestId).Append("\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); + sb.Append(" AccountId: ").Append(AccountId).Append("\n"); + sb.Append(" ProcessorMerchantId: ").Append(ProcessorMerchantId).Append("\n"); + sb.Append(" TransactionReferenceNumber: ").Append(TransactionReferenceNumber).Append("\n"); + sb.Append(" MerchantReferenceNumber: ").Append(MerchantReferenceNumber).Append("\n"); + sb.Append(" AccountSuffix: ").Append(AccountSuffix).Append("\n"); + sb.Append(" PaymentSubType: ").Append(PaymentSubType).Append("\n"); + sb.Append(" PaymentSubTypeDescription: ").Append(PaymentSubTypeDescription).Append("\n"); + sb.Append(" TransactionTime: ").Append(TransactionTime).Append("\n"); + sb.Append(" ProcessedTime: ").Append(ProcessedTime).Append("\n"); + sb.Append(" TransactionType: ").Append(TransactionType).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" PriceType: ").Append(PriceType).Append("\n"); + sb.Append(" PriceAmountOne: ").Append(PriceAmountOne).Append("\n"); + sb.Append(" PriceAmountTwo: ").Append(PriceAmountTwo).Append("\n"); + sb.Append(" ReClass: ").Append(ReClass).Append("\n"); + sb.Append(" SettlementTime: ").Append(SettlementTime).Append("\n"); + sb.Append(" SettlementProcessor: ").Append(SettlementProcessor).Append("\n"); + sb.Append(" MerchantBatchNumber: ").Append(MerchantBatchNumber).Append("\n"); + sb.Append(" ClearedLevel: ").Append(ClearedLevel).Append("\n"); + sb.Append(" BillbackReasonCode: ").Append(BillbackReasonCode).Append("\n"); + sb.Append(" BillbackReasonDescription: ").Append(BillbackReasonDescription).Append("\n"); + sb.Append(" MerchantPricedLevel: ").Append(MerchantPricedLevel).Append("\n"); + sb.Append(" DiscountRate: ").Append(DiscountRate).Append("\n"); + sb.Append(" DiscountAmount: ").Append(DiscountAmount).Append("\n"); + sb.Append(" ClearingRateAmountOne: ").Append(ClearingRateAmountOne).Append("\n"); + sb.Append(" ClearingRateAmountTwo: ").Append(ClearingRateAmountTwo).Append("\n"); + sb.Append(" ClearingRateAmountThree: ").Append(ClearingRateAmountThree).Append("\n"); + sb.Append(" ClearingRateCurrencyCode: ").Append(ClearingRateCurrencyCode).Append("\n"); + sb.Append(" InterchangeAmount: ").Append(InterchangeAmount).Append("\n"); + sb.Append(" BillbackAmount: ").Append(BillbackAmount).Append("\n"); + sb.Append(" SettlementAmount: ").Append(SettlementAmount).Append("\n"); + sb.Append(" SettlementCurrencyCode: ").Append(SettlementCurrencyCode).Append("\n"); + sb.Append(" ConversionRate: ").Append(ConversionRate).Append("\n"); + sb.Append(" DeltaCost: ").Append(DeltaCost).Append("\n"); + sb.Append(" SurchargeAmount: ").Append(SurchargeAmount).Append("\n"); + sb.Append(" PercentRateCharged: ").Append(PercentRateCharged).Append("\n"); + sb.Append(" PerTransactionCharged: ").Append(PerTransactionCharged).Append("\n"); + sb.Append(" DowngradeReasonCode: ").Append(DowngradeReasonCode).Append("\n"); + sb.Append(" ProcessTime: ").Append(ProcessTime).Append("\n"); + sb.Append(" AuthCode: ").Append(AuthCode).Append("\n"); + sb.Append(" BatchTime: ").Append(BatchTime).Append("\n"); + sb.Append(" ProcessorBatchNumber: ").Append(ProcessorBatchNumber).Append("\n"); + sb.Append(" CardIndicator: ").Append(CardIndicator).Append("\n"); + sb.Append(" MinimumUnit: ").Append(MinimumUnit).Append("\n"); + sb.Append(" MinimumUnitCurrencyCode: ").Append(MinimumUnitCurrencyCode).Append("\n"); + sb.Append(" CreditDeltaIndicator: ").Append(CreditDeltaIndicator).Append("\n"); + sb.Append(" FeeCategory: ").Append(FeeCategory).Append("\n"); + sb.Append(" ApplicationName: ").Append(ApplicationName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails); + } + + /// + /// Returns true if ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails instances are equal + /// + /// Instance of ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails to be compared + /// Boolean + public bool Equals(ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.RequestId == other.RequestId || + this.RequestId != null && + this.RequestId.Equals(other.RequestId) + ) && + ( + this.OrganizationId == other.OrganizationId || + this.OrganizationId != null && + this.OrganizationId.Equals(other.OrganizationId) + ) && + ( + this.AccountId == other.AccountId || + this.AccountId != null && + this.AccountId.Equals(other.AccountId) + ) && + ( + this.ProcessorMerchantId == other.ProcessorMerchantId || + this.ProcessorMerchantId != null && + this.ProcessorMerchantId.Equals(other.ProcessorMerchantId) + ) && + ( + this.TransactionReferenceNumber == other.TransactionReferenceNumber || + this.TransactionReferenceNumber != null && + this.TransactionReferenceNumber.Equals(other.TransactionReferenceNumber) + ) && + ( + this.MerchantReferenceNumber == other.MerchantReferenceNumber || + this.MerchantReferenceNumber != null && + this.MerchantReferenceNumber.Equals(other.MerchantReferenceNumber) + ) && + ( + this.AccountSuffix == other.AccountSuffix || + this.AccountSuffix != null && + this.AccountSuffix.Equals(other.AccountSuffix) + ) && + ( + this.PaymentSubType == other.PaymentSubType || + this.PaymentSubType != null && + this.PaymentSubType.Equals(other.PaymentSubType) + ) && + ( + this.PaymentSubTypeDescription == other.PaymentSubTypeDescription || + this.PaymentSubTypeDescription != null && + this.PaymentSubTypeDescription.Equals(other.PaymentSubTypeDescription) + ) && + ( + this.TransactionTime == other.TransactionTime || + this.TransactionTime != null && + this.TransactionTime.Equals(other.TransactionTime) + ) && + ( + this.ProcessedTime == other.ProcessedTime || + this.ProcessedTime != null && + this.ProcessedTime.Equals(other.ProcessedTime) + ) && + ( + this.TransactionType == other.TransactionType || + this.TransactionType != null && + this.TransactionType.Equals(other.TransactionType) + ) && + ( + this.Amount == other.Amount || + this.Amount != null && + this.Amount.Equals(other.Amount) + ) && + ( + this.CurrencyCode == other.CurrencyCode || + this.CurrencyCode != null && + this.CurrencyCode.Equals(other.CurrencyCode) + ) && + ( + this.PriceType == other.PriceType || + this.PriceType != null && + this.PriceType.Equals(other.PriceType) + ) && + ( + this.PriceAmountOne == other.PriceAmountOne || + this.PriceAmountOne != null && + this.PriceAmountOne.Equals(other.PriceAmountOne) + ) && + ( + this.PriceAmountTwo == other.PriceAmountTwo || + this.PriceAmountTwo != null && + this.PriceAmountTwo.Equals(other.PriceAmountTwo) + ) && + ( + this.ReClass == other.ReClass || + this.ReClass != null && + this.ReClass.Equals(other.ReClass) + ) && + ( + this.SettlementTime == other.SettlementTime || + this.SettlementTime != null && + this.SettlementTime.Equals(other.SettlementTime) + ) && + ( + this.SettlementProcessor == other.SettlementProcessor || + this.SettlementProcessor != null && + this.SettlementProcessor.Equals(other.SettlementProcessor) + ) && + ( + this.MerchantBatchNumber == other.MerchantBatchNumber || + this.MerchantBatchNumber != null && + this.MerchantBatchNumber.Equals(other.MerchantBatchNumber) + ) && + ( + this.ClearedLevel == other.ClearedLevel || + this.ClearedLevel != null && + this.ClearedLevel.Equals(other.ClearedLevel) + ) && + ( + this.BillbackReasonCode == other.BillbackReasonCode || + this.BillbackReasonCode != null && + this.BillbackReasonCode.Equals(other.BillbackReasonCode) + ) && + ( + this.BillbackReasonDescription == other.BillbackReasonDescription || + this.BillbackReasonDescription != null && + this.BillbackReasonDescription.Equals(other.BillbackReasonDescription) + ) && + ( + this.MerchantPricedLevel == other.MerchantPricedLevel || + this.MerchantPricedLevel != null && + this.MerchantPricedLevel.Equals(other.MerchantPricedLevel) + ) && + ( + this.DiscountRate == other.DiscountRate || + this.DiscountRate != null && + this.DiscountRate.Equals(other.DiscountRate) + ) && + ( + this.DiscountAmount == other.DiscountAmount || + this.DiscountAmount != null && + this.DiscountAmount.Equals(other.DiscountAmount) + ) && + ( + this.ClearingRateAmountOne == other.ClearingRateAmountOne || + this.ClearingRateAmountOne != null && + this.ClearingRateAmountOne.Equals(other.ClearingRateAmountOne) + ) && + ( + this.ClearingRateAmountTwo == other.ClearingRateAmountTwo || + this.ClearingRateAmountTwo != null && + this.ClearingRateAmountTwo.Equals(other.ClearingRateAmountTwo) + ) && + ( + this.ClearingRateAmountThree == other.ClearingRateAmountThree || + this.ClearingRateAmountThree != null && + this.ClearingRateAmountThree.Equals(other.ClearingRateAmountThree) + ) && + ( + this.ClearingRateCurrencyCode == other.ClearingRateCurrencyCode || + this.ClearingRateCurrencyCode != null && + this.ClearingRateCurrencyCode.Equals(other.ClearingRateCurrencyCode) + ) && + ( + this.InterchangeAmount == other.InterchangeAmount || + this.InterchangeAmount != null && + this.InterchangeAmount.Equals(other.InterchangeAmount) + ) && + ( + this.BillbackAmount == other.BillbackAmount || + this.BillbackAmount != null && + this.BillbackAmount.Equals(other.BillbackAmount) + ) && + ( + this.SettlementAmount == other.SettlementAmount || + this.SettlementAmount != null && + this.SettlementAmount.Equals(other.SettlementAmount) + ) && + ( + this.SettlementCurrencyCode == other.SettlementCurrencyCode || + this.SettlementCurrencyCode != null && + this.SettlementCurrencyCode.Equals(other.SettlementCurrencyCode) + ) && + ( + this.ConversionRate == other.ConversionRate || + this.ConversionRate != null && + this.ConversionRate.Equals(other.ConversionRate) + ) && + ( + this.DeltaCost == other.DeltaCost || + this.DeltaCost != null && + this.DeltaCost.Equals(other.DeltaCost) + ) && + ( + this.SurchargeAmount == other.SurchargeAmount || + this.SurchargeAmount != null && + this.SurchargeAmount.Equals(other.SurchargeAmount) + ) && + ( + this.PercentRateCharged == other.PercentRateCharged || + this.PercentRateCharged != null && + this.PercentRateCharged.Equals(other.PercentRateCharged) + ) && + ( + this.PerTransactionCharged == other.PerTransactionCharged || + this.PerTransactionCharged != null && + this.PerTransactionCharged.Equals(other.PerTransactionCharged) + ) && + ( + this.DowngradeReasonCode == other.DowngradeReasonCode || + this.DowngradeReasonCode != null && + this.DowngradeReasonCode.Equals(other.DowngradeReasonCode) + ) && + ( + this.ProcessTime == other.ProcessTime || + this.ProcessTime != null && + this.ProcessTime.Equals(other.ProcessTime) + ) && + ( + this.AuthCode == other.AuthCode || + this.AuthCode != null && + this.AuthCode.Equals(other.AuthCode) + ) && + ( + this.BatchTime == other.BatchTime || + this.BatchTime != null && + this.BatchTime.Equals(other.BatchTime) + ) && + ( + this.ProcessorBatchNumber == other.ProcessorBatchNumber || + this.ProcessorBatchNumber != null && + this.ProcessorBatchNumber.Equals(other.ProcessorBatchNumber) + ) && + ( + this.CardIndicator == other.CardIndicator || + this.CardIndicator != null && + this.CardIndicator.Equals(other.CardIndicator) + ) && + ( + this.MinimumUnit == other.MinimumUnit || + this.MinimumUnit != null && + this.MinimumUnit.Equals(other.MinimumUnit) + ) && + ( + this.MinimumUnitCurrencyCode == other.MinimumUnitCurrencyCode || + this.MinimumUnitCurrencyCode != null && + this.MinimumUnitCurrencyCode.Equals(other.MinimumUnitCurrencyCode) + ) && + ( + this.CreditDeltaIndicator == other.CreditDeltaIndicator || + this.CreditDeltaIndicator != null && + this.CreditDeltaIndicator.Equals(other.CreditDeltaIndicator) + ) && + ( + this.FeeCategory == other.FeeCategory || + this.FeeCategory != null && + this.FeeCategory.Equals(other.FeeCategory) + ) && + ( + this.ApplicationName == other.ApplicationName || + this.ApplicationName != null && + this.ApplicationName.Equals(other.ApplicationName) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.RequestId != null) + hash = hash * 59 + this.RequestId.GetHashCode(); + if (this.OrganizationId != null) + hash = hash * 59 + this.OrganizationId.GetHashCode(); + if (this.AccountId != null) + hash = hash * 59 + this.AccountId.GetHashCode(); + if (this.ProcessorMerchantId != null) + hash = hash * 59 + this.ProcessorMerchantId.GetHashCode(); + if (this.TransactionReferenceNumber != null) + hash = hash * 59 + this.TransactionReferenceNumber.GetHashCode(); + if (this.MerchantReferenceNumber != null) + hash = hash * 59 + this.MerchantReferenceNumber.GetHashCode(); + if (this.AccountSuffix != null) + hash = hash * 59 + this.AccountSuffix.GetHashCode(); + if (this.PaymentSubType != null) + hash = hash * 59 + this.PaymentSubType.GetHashCode(); + if (this.PaymentSubTypeDescription != null) + hash = hash * 59 + this.PaymentSubTypeDescription.GetHashCode(); + if (this.TransactionTime != null) + hash = hash * 59 + this.TransactionTime.GetHashCode(); + if (this.ProcessedTime != null) + hash = hash * 59 + this.ProcessedTime.GetHashCode(); + if (this.TransactionType != null) + hash = hash * 59 + this.TransactionType.GetHashCode(); + if (this.Amount != null) + hash = hash * 59 + this.Amount.GetHashCode(); + if (this.CurrencyCode != null) + hash = hash * 59 + this.CurrencyCode.GetHashCode(); + if (this.PriceType != null) + hash = hash * 59 + this.PriceType.GetHashCode(); + if (this.PriceAmountOne != null) + hash = hash * 59 + this.PriceAmountOne.GetHashCode(); + if (this.PriceAmountTwo != null) + hash = hash * 59 + this.PriceAmountTwo.GetHashCode(); + if (this.ReClass != null) + hash = hash * 59 + this.ReClass.GetHashCode(); + if (this.SettlementTime != null) + hash = hash * 59 + this.SettlementTime.GetHashCode(); + if (this.SettlementProcessor != null) + hash = hash * 59 + this.SettlementProcessor.GetHashCode(); + if (this.MerchantBatchNumber != null) + hash = hash * 59 + this.MerchantBatchNumber.GetHashCode(); + if (this.ClearedLevel != null) + hash = hash * 59 + this.ClearedLevel.GetHashCode(); + if (this.BillbackReasonCode != null) + hash = hash * 59 + this.BillbackReasonCode.GetHashCode(); + if (this.BillbackReasonDescription != null) + hash = hash * 59 + this.BillbackReasonDescription.GetHashCode(); + if (this.MerchantPricedLevel != null) + hash = hash * 59 + this.MerchantPricedLevel.GetHashCode(); + if (this.DiscountRate != null) + hash = hash * 59 + this.DiscountRate.GetHashCode(); + if (this.DiscountAmount != null) + hash = hash * 59 + this.DiscountAmount.GetHashCode(); + if (this.ClearingRateAmountOne != null) + hash = hash * 59 + this.ClearingRateAmountOne.GetHashCode(); + if (this.ClearingRateAmountTwo != null) + hash = hash * 59 + this.ClearingRateAmountTwo.GetHashCode(); + if (this.ClearingRateAmountThree != null) + hash = hash * 59 + this.ClearingRateAmountThree.GetHashCode(); + if (this.ClearingRateCurrencyCode != null) + hash = hash * 59 + this.ClearingRateCurrencyCode.GetHashCode(); + if (this.InterchangeAmount != null) + hash = hash * 59 + this.InterchangeAmount.GetHashCode(); + if (this.BillbackAmount != null) + hash = hash * 59 + this.BillbackAmount.GetHashCode(); + if (this.SettlementAmount != null) + hash = hash * 59 + this.SettlementAmount.GetHashCode(); + if (this.SettlementCurrencyCode != null) + hash = hash * 59 + this.SettlementCurrencyCode.GetHashCode(); + if (this.ConversionRate != null) + hash = hash * 59 + this.ConversionRate.GetHashCode(); + if (this.DeltaCost != null) + hash = hash * 59 + this.DeltaCost.GetHashCode(); + if (this.SurchargeAmount != null) + hash = hash * 59 + this.SurchargeAmount.GetHashCode(); + if (this.PercentRateCharged != null) + hash = hash * 59 + this.PercentRateCharged.GetHashCode(); + if (this.PerTransactionCharged != null) + hash = hash * 59 + this.PerTransactionCharged.GetHashCode(); + if (this.DowngradeReasonCode != null) + hash = hash * 59 + this.DowngradeReasonCode.GetHashCode(); + if (this.ProcessTime != null) + hash = hash * 59 + this.ProcessTime.GetHashCode(); + if (this.AuthCode != null) + hash = hash * 59 + this.AuthCode.GetHashCode(); + if (this.BatchTime != null) + hash = hash * 59 + this.BatchTime.GetHashCode(); + if (this.ProcessorBatchNumber != null) + hash = hash * 59 + this.ProcessorBatchNumber.GetHashCode(); + if (this.CardIndicator != null) + hash = hash * 59 + this.CardIndicator.GetHashCode(); + if (this.MinimumUnit != null) + hash = hash * 59 + this.MinimumUnit.GetHashCode(); + if (this.MinimumUnitCurrencyCode != null) + hash = hash * 59 + this.MinimumUnitCurrencyCode.GetHashCode(); + if (this.CreditDeltaIndicator != null) + hash = hash * 59 + this.CreditDeltaIndicator.GetHashCode(); + if (this.FeeCategory != null) + hash = hash * 59 + this.FeeCategory.GetHashCode(); + if (this.ApplicationName != null) + hash = hash * 59 + this.ApplicationName.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3PurchaseRefundDetailsGet200ResponseFeeAndFundingDetails.cs b/Model/ReportingV3PurchaseRefundDetailsGet200ResponseFeeAndFundingDetails.cs index 1666dbff..75d13d92 100644 --- a/Model/ReportingV3PurchaseRefundDetailsGet200ResponseFeeAndFundingDetails.cs +++ b/Model/ReportingV3PurchaseRefundDetailsGet200ResponseFeeAndFundingDetails.cs @@ -326,12 +326,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RequestId (string) maxLength - if(this.RequestId != null && this.RequestId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestId, length must be less than or equal to 26.", new [] { "RequestId" }); - } - yield break; } } diff --git a/Model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers.cs b/Model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers.cs index 92f8b9ac..0765ff9f 100644 --- a/Model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers.cs +++ b/Model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers.cs @@ -224,12 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RequestId (string) maxLength - if(this.RequestId != null && this.RequestId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestId, length must be less than or equal to 26.", new [] { "RequestId" }); - } - yield break; } } diff --git a/Model/ReportingV3PurchaseRefundDetailsGet200ResponseSettlementStatuses.cs b/Model/ReportingV3PurchaseRefundDetailsGet200ResponseSettlementStatuses.cs index 0ab61fe2..7c492ebc 100644 --- a/Model/ReportingV3PurchaseRefundDetailsGet200ResponseSettlementStatuses.cs +++ b/Model/ReportingV3PurchaseRefundDetailsGet200ResponseSettlementStatuses.cs @@ -190,12 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RequestId (string) maxLength - if(this.RequestId != null && this.RequestId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestId, length must be less than or equal to 26.", new [] { "RequestId" }); - } - yield break; } } diff --git a/Model/ReportingV3RetrievalDetailsGet200Response.cs b/Model/ReportingV3RetrievalDetailsGet200Response.cs new file mode 100644 index 00000000..f920fea4 --- /dev/null +++ b/Model/ReportingV3RetrievalDetailsGet200Response.cs @@ -0,0 +1,180 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3RetrievalDetailsGet200Response + /// + [DataContract] + public partial class ReportingV3RetrievalDetailsGet200Response : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Organization Id. + /// Report Start Date (ISO 8601 Extended). + /// Report Start Date (ISO 8601 Extended). + /// List of Retrieval Details list.. + public ReportingV3RetrievalDetailsGet200Response(string OrganizationId = default(string), DateTime? StartTime = default(DateTime?), DateTime? EndTime = default(DateTime?), List RetrievalDetails = default(List)) + { + this.OrganizationId = OrganizationId; + this.StartTime = StartTime; + this.EndTime = EndTime; + this.RetrievalDetails = RetrievalDetails; + } + + /// + /// Organization Id + /// + /// Organization Id + [DataMember(Name="organizationId", EmitDefaultValue=false)] + public string OrganizationId { get; set; } + + /// + /// Report Start Date (ISO 8601 Extended) + /// + /// Report Start Date (ISO 8601 Extended) + [DataMember(Name="startTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Report Start Date (ISO 8601 Extended) + /// + /// Report Start Date (ISO 8601 Extended) + [DataMember(Name="endTime", EmitDefaultValue=false)] + public DateTime? EndTime { get; set; } + + /// + /// List of Retrieval Details list. + /// + /// List of Retrieval Details list. + [DataMember(Name="retrievalDetails", EmitDefaultValue=false)] + public List RetrievalDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3RetrievalDetailsGet200Response {\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append(" RetrievalDetails: ").Append(RetrievalDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3RetrievalDetailsGet200Response); + } + + /// + /// Returns true if ReportingV3RetrievalDetailsGet200Response instances are equal + /// + /// Instance of ReportingV3RetrievalDetailsGet200Response to be compared + /// Boolean + public bool Equals(ReportingV3RetrievalDetailsGet200Response other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.OrganizationId == other.OrganizationId || + this.OrganizationId != null && + this.OrganizationId.Equals(other.OrganizationId) + ) && + ( + this.StartTime == other.StartTime || + this.StartTime != null && + this.StartTime.Equals(other.StartTime) + ) && + ( + this.EndTime == other.EndTime || + this.EndTime != null && + this.EndTime.Equals(other.EndTime) + ) && + ( + this.RetrievalDetails == other.RetrievalDetails || + this.RetrievalDetails != null && + this.RetrievalDetails.SequenceEqual(other.RetrievalDetails) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.OrganizationId != null) + hash = hash * 59 + this.OrganizationId.GetHashCode(); + if (this.StartTime != null) + hash = hash * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hash = hash * 59 + this.EndTime.GetHashCode(); + if (this.RetrievalDetails != null) + hash = hash * 59 + this.RetrievalDetails.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.cs b/Model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.cs new file mode 100644 index 00000000..385bbf46 --- /dev/null +++ b/Model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.cs @@ -0,0 +1,486 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails + /// + [DataContract] + public partial class ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Processor Merchant Id. + /// Merchant Name. + /// Transaction Reference Number. + /// Merchant Reference Number. + /// Nature of Dispute. + /// Retrieval Alert Type. + /// Retrieval Amount. + /// Retrieval Sign. + /// Retrieval Action. + /// Card Type. + /// Original Settlement Date. + /// Tracking Number. + /// Valid ISO 4217 ALPHA-3 currency code. + /// Request Id. + /// Response Due Date. + /// Retrieval Date. + /// Retrieval Action Description. + /// Customer Id. + /// Retrieval Reason Code. + /// Representment CP Date. + /// ICS Request Applications. + /// Event Request Date. + public ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails(string ProcessorMerchantId = default(string), string MerchantName = default(string), string TransactionReferenceNumber = default(string), string MerchantReferenceNumber = default(string), string NatureOfDispute = default(string), string AlertType = default(string), string Amount = default(string), string Sign = default(string), string Action = default(string), string CardType = default(string), DateTime? OriginalSettlementTime = default(DateTime?), string TrackingNumber = default(string), string CurrencyCode = default(string), string RequestId = default(string), DateTime? ResponseDueTime = default(DateTime?), DateTime? Time = default(DateTime?), string ActionDescription = default(string), string CustomerId = default(string), string ReasonCode = default(string), DateTime? RepresentmentCPTime = default(DateTime?), string Applications = default(string), DateTime? EventRequestedTime = default(DateTime?)) + { + this.ProcessorMerchantId = ProcessorMerchantId; + this.MerchantName = MerchantName; + this.TransactionReferenceNumber = TransactionReferenceNumber; + this.MerchantReferenceNumber = MerchantReferenceNumber; + this.NatureOfDispute = NatureOfDispute; + this.AlertType = AlertType; + this.Amount = Amount; + this.Sign = Sign; + this.Action = Action; + this.CardType = CardType; + this.OriginalSettlementTime = OriginalSettlementTime; + this.TrackingNumber = TrackingNumber; + this.CurrencyCode = CurrencyCode; + this.RequestId = RequestId; + this.ResponseDueTime = ResponseDueTime; + this.Time = Time; + this.ActionDescription = ActionDescription; + this.CustomerId = CustomerId; + this.ReasonCode = ReasonCode; + this.RepresentmentCPTime = RepresentmentCPTime; + this.Applications = Applications; + this.EventRequestedTime = EventRequestedTime; + } + + /// + /// Processor Merchant Id + /// + /// Processor Merchant Id + [DataMember(Name="processorMerchantId", EmitDefaultValue=false)] + public string ProcessorMerchantId { get; set; } + + /// + /// Merchant Name + /// + /// Merchant Name + [DataMember(Name="merchantName", EmitDefaultValue=false)] + public string MerchantName { get; set; } + + /// + /// Transaction Reference Number + /// + /// Transaction Reference Number + [DataMember(Name="transactionReferenceNumber", EmitDefaultValue=false)] + public string TransactionReferenceNumber { get; set; } + + /// + /// Merchant Reference Number + /// + /// Merchant Reference Number + [DataMember(Name="merchantReferenceNumber", EmitDefaultValue=false)] + public string MerchantReferenceNumber { get; set; } + + /// + /// Nature of Dispute + /// + /// Nature of Dispute + [DataMember(Name="natureOfDispute", EmitDefaultValue=false)] + public string NatureOfDispute { get; set; } + + /// + /// Retrieval Alert Type + /// + /// Retrieval Alert Type + [DataMember(Name="alertType", EmitDefaultValue=false)] + public string AlertType { get; set; } + + /// + /// Retrieval Amount + /// + /// Retrieval Amount + [DataMember(Name="amount", EmitDefaultValue=false)] + public string Amount { get; set; } + + /// + /// Retrieval Sign + /// + /// Retrieval Sign + [DataMember(Name="sign", EmitDefaultValue=false)] + public string Sign { get; set; } + + /// + /// Retrieval Action + /// + /// Retrieval Action + [DataMember(Name="action", EmitDefaultValue=false)] + public string Action { get; set; } + + /// + /// Card Type + /// + /// Card Type + [DataMember(Name="cardType", EmitDefaultValue=false)] + public string CardType { get; set; } + + /// + /// Original Settlement Date + /// + /// Original Settlement Date + [DataMember(Name="originalSettlementTime", EmitDefaultValue=false)] + public DateTime? OriginalSettlementTime { get; set; } + + /// + /// Tracking Number + /// + /// Tracking Number + [DataMember(Name="trackingNumber", EmitDefaultValue=false)] + public string TrackingNumber { get; set; } + + /// + /// Valid ISO 4217 ALPHA-3 currency code + /// + /// Valid ISO 4217 ALPHA-3 currency code + [DataMember(Name="currencyCode", EmitDefaultValue=false)] + public string CurrencyCode { get; set; } + + /// + /// Request Id + /// + /// Request Id + [DataMember(Name="requestId", EmitDefaultValue=false)] + public string RequestId { get; set; } + + /// + /// Response Due Date + /// + /// Response Due Date + [DataMember(Name="responseDueTime", EmitDefaultValue=false)] + public DateTime? ResponseDueTime { get; set; } + + /// + /// Retrieval Date + /// + /// Retrieval Date + [DataMember(Name="time", EmitDefaultValue=false)] + public DateTime? Time { get; set; } + + /// + /// Retrieval Action Description + /// + /// Retrieval Action Description + [DataMember(Name="actionDescription", EmitDefaultValue=false)] + public string ActionDescription { get; set; } + + /// + /// Customer Id + /// + /// Customer Id + [DataMember(Name="customerId", EmitDefaultValue=false)] + public string CustomerId { get; set; } + + /// + /// Retrieval Reason Code + /// + /// Retrieval Reason Code + [DataMember(Name="reasonCode", EmitDefaultValue=false)] + public string ReasonCode { get; set; } + + /// + /// Representment CP Date + /// + /// Representment CP Date + [DataMember(Name="representmentCPTime", EmitDefaultValue=false)] + public DateTime? RepresentmentCPTime { get; set; } + + /// + /// ICS Request Applications + /// + /// ICS Request Applications + [DataMember(Name="applications", EmitDefaultValue=false)] + public string Applications { get; set; } + + /// + /// Event Request Date + /// + /// Event Request Date + [DataMember(Name="eventRequestedTime", EmitDefaultValue=false)] + public DateTime? EventRequestedTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails {\n"); + sb.Append(" ProcessorMerchantId: ").Append(ProcessorMerchantId).Append("\n"); + sb.Append(" MerchantName: ").Append(MerchantName).Append("\n"); + sb.Append(" TransactionReferenceNumber: ").Append(TransactionReferenceNumber).Append("\n"); + sb.Append(" MerchantReferenceNumber: ").Append(MerchantReferenceNumber).Append("\n"); + sb.Append(" NatureOfDispute: ").Append(NatureOfDispute).Append("\n"); + sb.Append(" AlertType: ").Append(AlertType).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Sign: ").Append(Sign).Append("\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" CardType: ").Append(CardType).Append("\n"); + sb.Append(" OriginalSettlementTime: ").Append(OriginalSettlementTime).Append("\n"); + sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n"); + sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" RequestId: ").Append(RequestId).Append("\n"); + sb.Append(" ResponseDueTime: ").Append(ResponseDueTime).Append("\n"); + sb.Append(" Time: ").Append(Time).Append("\n"); + sb.Append(" ActionDescription: ").Append(ActionDescription).Append("\n"); + sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); + sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); + sb.Append(" RepresentmentCPTime: ").Append(RepresentmentCPTime).Append("\n"); + sb.Append(" Applications: ").Append(Applications).Append("\n"); + sb.Append(" EventRequestedTime: ").Append(EventRequestedTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails); + } + + /// + /// Returns true if ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails instances are equal + /// + /// Instance of ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails to be compared + /// Boolean + public bool Equals(ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.ProcessorMerchantId == other.ProcessorMerchantId || + this.ProcessorMerchantId != null && + this.ProcessorMerchantId.Equals(other.ProcessorMerchantId) + ) && + ( + this.MerchantName == other.MerchantName || + this.MerchantName != null && + this.MerchantName.Equals(other.MerchantName) + ) && + ( + this.TransactionReferenceNumber == other.TransactionReferenceNumber || + this.TransactionReferenceNumber != null && + this.TransactionReferenceNumber.Equals(other.TransactionReferenceNumber) + ) && + ( + this.MerchantReferenceNumber == other.MerchantReferenceNumber || + this.MerchantReferenceNumber != null && + this.MerchantReferenceNumber.Equals(other.MerchantReferenceNumber) + ) && + ( + this.NatureOfDispute == other.NatureOfDispute || + this.NatureOfDispute != null && + this.NatureOfDispute.Equals(other.NatureOfDispute) + ) && + ( + this.AlertType == other.AlertType || + this.AlertType != null && + this.AlertType.Equals(other.AlertType) + ) && + ( + this.Amount == other.Amount || + this.Amount != null && + this.Amount.Equals(other.Amount) + ) && + ( + this.Sign == other.Sign || + this.Sign != null && + this.Sign.Equals(other.Sign) + ) && + ( + this.Action == other.Action || + this.Action != null && + this.Action.Equals(other.Action) + ) && + ( + this.CardType == other.CardType || + this.CardType != null && + this.CardType.Equals(other.CardType) + ) && + ( + this.OriginalSettlementTime == other.OriginalSettlementTime || + this.OriginalSettlementTime != null && + this.OriginalSettlementTime.Equals(other.OriginalSettlementTime) + ) && + ( + this.TrackingNumber == other.TrackingNumber || + this.TrackingNumber != null && + this.TrackingNumber.Equals(other.TrackingNumber) + ) && + ( + this.CurrencyCode == other.CurrencyCode || + this.CurrencyCode != null && + this.CurrencyCode.Equals(other.CurrencyCode) + ) && + ( + this.RequestId == other.RequestId || + this.RequestId != null && + this.RequestId.Equals(other.RequestId) + ) && + ( + this.ResponseDueTime == other.ResponseDueTime || + this.ResponseDueTime != null && + this.ResponseDueTime.Equals(other.ResponseDueTime) + ) && + ( + this.Time == other.Time || + this.Time != null && + this.Time.Equals(other.Time) + ) && + ( + this.ActionDescription == other.ActionDescription || + this.ActionDescription != null && + this.ActionDescription.Equals(other.ActionDescription) + ) && + ( + this.CustomerId == other.CustomerId || + this.CustomerId != null && + this.CustomerId.Equals(other.CustomerId) + ) && + ( + this.ReasonCode == other.ReasonCode || + this.ReasonCode != null && + this.ReasonCode.Equals(other.ReasonCode) + ) && + ( + this.RepresentmentCPTime == other.RepresentmentCPTime || + this.RepresentmentCPTime != null && + this.RepresentmentCPTime.Equals(other.RepresentmentCPTime) + ) && + ( + this.Applications == other.Applications || + this.Applications != null && + this.Applications.Equals(other.Applications) + ) && + ( + this.EventRequestedTime == other.EventRequestedTime || + this.EventRequestedTime != null && + this.EventRequestedTime.Equals(other.EventRequestedTime) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.ProcessorMerchantId != null) + hash = hash * 59 + this.ProcessorMerchantId.GetHashCode(); + if (this.MerchantName != null) + hash = hash * 59 + this.MerchantName.GetHashCode(); + if (this.TransactionReferenceNumber != null) + hash = hash * 59 + this.TransactionReferenceNumber.GetHashCode(); + if (this.MerchantReferenceNumber != null) + hash = hash * 59 + this.MerchantReferenceNumber.GetHashCode(); + if (this.NatureOfDispute != null) + hash = hash * 59 + this.NatureOfDispute.GetHashCode(); + if (this.AlertType != null) + hash = hash * 59 + this.AlertType.GetHashCode(); + if (this.Amount != null) + hash = hash * 59 + this.Amount.GetHashCode(); + if (this.Sign != null) + hash = hash * 59 + this.Sign.GetHashCode(); + if (this.Action != null) + hash = hash * 59 + this.Action.GetHashCode(); + if (this.CardType != null) + hash = hash * 59 + this.CardType.GetHashCode(); + if (this.OriginalSettlementTime != null) + hash = hash * 59 + this.OriginalSettlementTime.GetHashCode(); + if (this.TrackingNumber != null) + hash = hash * 59 + this.TrackingNumber.GetHashCode(); + if (this.CurrencyCode != null) + hash = hash * 59 + this.CurrencyCode.GetHashCode(); + if (this.RequestId != null) + hash = hash * 59 + this.RequestId.GetHashCode(); + if (this.ResponseDueTime != null) + hash = hash * 59 + this.ResponseDueTime.GetHashCode(); + if (this.Time != null) + hash = hash * 59 + this.Time.GetHashCode(); + if (this.ActionDescription != null) + hash = hash * 59 + this.ActionDescription.GetHashCode(); + if (this.CustomerId != null) + hash = hash * 59 + this.CustomerId.GetHashCode(); + if (this.ReasonCode != null) + hash = hash * 59 + this.ReasonCode.GetHashCode(); + if (this.RepresentmentCPTime != null) + hash = hash * 59 + this.RepresentmentCPTime.GetHashCode(); + if (this.Applications != null) + hash = hash * 59 + this.Applications.GetHashCode(); + if (this.EventRequestedTime != null) + hash = hash * 59 + this.EventRequestedTime.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/ReportingV3RetrievalSummariesGet200Response.cs b/Model/ReportingV3RetrievalSummariesGet200Response.cs new file mode 100644 index 00000000..ee4adc8c --- /dev/null +++ b/Model/ReportingV3RetrievalSummariesGet200Response.cs @@ -0,0 +1,180 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter; + +namespace CyberSource.Model +{ + /// + /// ReportingV3RetrievalSummariesGet200Response + /// + [DataContract] + public partial class ReportingV3RetrievalSummariesGet200Response : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Organization Id. + /// Report Start Date. + /// Report Start Date. + /// List of Summary values. + public ReportingV3RetrievalSummariesGet200Response(string OrganizationId = default(string), DateTime? StartTime = default(DateTime?), string EndTime = default(string), List RetrievalSummaries = default(List)) + { + this.OrganizationId = OrganizationId; + this.StartTime = StartTime; + this.EndTime = EndTime; + this.RetrievalSummaries = RetrievalSummaries; + } + + /// + /// Organization Id + /// + /// Organization Id + [DataMember(Name="organizationId", EmitDefaultValue=false)] + public string OrganizationId { get; set; } + + /// + /// Report Start Date + /// + /// Report Start Date + [DataMember(Name="startTime", EmitDefaultValue=false)] + public DateTime? StartTime { get; set; } + + /// + /// Report Start Date + /// + /// Report Start Date + [DataMember(Name="endTime", EmitDefaultValue=false)] + public string EndTime { get; set; } + + /// + /// List of Summary values + /// + /// List of Summary values + [DataMember(Name="retrievalSummaries", EmitDefaultValue=false)] + public List RetrievalSummaries { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReportingV3RetrievalSummariesGet200Response {\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); + sb.Append(" StartTime: ").Append(StartTime).Append("\n"); + sb.Append(" EndTime: ").Append(EndTime).Append("\n"); + sb.Append(" RetrievalSummaries: ").Append(RetrievalSummaries).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object obj) + { + // credit: http://stackoverflow.com/a/10454552/677735 + return this.Equals(obj as ReportingV3RetrievalSummariesGet200Response); + } + + /// + /// Returns true if ReportingV3RetrievalSummariesGet200Response instances are equal + /// + /// Instance of ReportingV3RetrievalSummariesGet200Response to be compared + /// Boolean + public bool Equals(ReportingV3RetrievalSummariesGet200Response other) + { + // credit: http://stackoverflow.com/a/10454552/677735 + if (other == null) + return false; + + return + ( + this.OrganizationId == other.OrganizationId || + this.OrganizationId != null && + this.OrganizationId.Equals(other.OrganizationId) + ) && + ( + this.StartTime == other.StartTime || + this.StartTime != null && + this.StartTime.Equals(other.StartTime) + ) && + ( + this.EndTime == other.EndTime || + this.EndTime != null && + this.EndTime.Equals(other.EndTime) + ) && + ( + this.RetrievalSummaries == other.RetrievalSummaries || + this.RetrievalSummaries != null && + this.RetrievalSummaries.SequenceEqual(other.RetrievalSummaries) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + // credit: http://stackoverflow.com/a/263416/677735 + unchecked // Overflow is fine, just wrap + { + int hash = 41; + // Suitable nullity checks etc, of course :) + if (this.OrganizationId != null) + hash = hash * 59 + this.OrganizationId.GetHashCode(); + if (this.StartTime != null) + hash = hash * 59 + this.StartTime.GetHashCode(); + if (this.EndTime != null) + hash = hash * 59 + this.EndTime.GetHashCode(); + if (this.RetrievalSummaries != null) + hash = hash * 59 + this.RetrievalSummaries.GetHashCode(); + return hash; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Model/RiskV1AddressVerificationsPost201Response.cs b/Model/RiskV1AddressVerificationsPost201Response.cs index 470d2060..f6adb40e 100644 --- a/Model/RiskV1AddressVerificationsPost201Response.cs +++ b/Model/RiskV1AddressVerificationsPost201Response.cs @@ -254,12 +254,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.cs b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.cs index 136f602a..a9f33786 100644 --- a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.cs +++ b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.cs @@ -239,36 +239,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AddressType (string) maxLength - if(this.AddressType != null && this.AddressType.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressType, length must be less than or equal to 255.", new [] { "AddressType" }); - } - - // ApplicableRegion (string) maxLength - if(this.ApplicableRegion != null && this.ApplicableRegion.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApplicableRegion, length must be less than or equal to 255.", new [] { "ApplicableRegion" }); - } - - // ErrorCode (string) maxLength - if(this.ErrorCode != null && this.ErrorCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ErrorCode, length must be less than or equal to 255.", new [] { "ErrorCode" }); - } - - // StatusCode (string) maxLength - if(this.StatusCode != null && this.StatusCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StatusCode, length must be less than or equal to 255.", new [] { "StatusCode" }); - } - - // CareOf (string) maxLength - if(this.CareOf != null && this.CareOf.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CareOf, length must be less than or equal to 255.", new [] { "CareOf" }); - } - yield break; } } diff --git a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationBarCode.cs b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationBarCode.cs index bd6c0cf5..42a14884 100644 --- a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationBarCode.cs +++ b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationBarCode.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 255.", new [] { "Value" }); - } - yield break; } } diff --git a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddress.cs b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddress.cs index e0ea0a5d..406c3299 100644 --- a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddress.cs +++ b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddress.cs @@ -291,66 +291,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 255.", new [] { "Address2" }); - } - - // Address3 (string) maxLength - if(this.Address3 != null && this.Address3.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address3, length must be less than or equal to 255.", new [] { "Address3" }); - } - - // Address4 (string) maxLength - if(this.Address4 != null && this.Address4.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address4, length must be less than or equal to 255.", new [] { "Address4" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 255.", new [] { "Locality" }); - } - - // County (string) maxLength - if(this.County != null && this.County.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for County, length must be less than or equal to 255.", new [] { "County" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 255.", new [] { "Country" }); - } - - // Csz (string) maxLength - if(this.Csz != null && this.Csz.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Csz, length must be less than or equal to 255.", new [] { "Csz" }); - } - - // IsoCountry (string) maxLength - if(this.IsoCountry != null && this.IsoCountry.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IsoCountry, length must be less than or equal to 255.", new [] { "IsoCountry" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 255.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 255.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddressAddress1.cs b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddressAddress1.cs index a29443bb..188d70cf 100644 --- a/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddressAddress1.cs +++ b/Model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddressAddress1.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // WithApartment (string) maxLength - if(this.WithApartment != null && this.WithApartment.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WithApartment, length must be less than or equal to 255.", new [] { "WithApartment" }); - } - - // WithoutApartment (string) maxLength - if(this.WithoutApartment != null && this.WithoutApartment.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WithoutApartment, length must be less than or equal to 255.", new [] { "WithoutApartment" }); - } - yield break; } } diff --git a/Model/RiskV1AuthenticationResultsPost201Response.cs b/Model/RiskV1AuthenticationResultsPost201Response.cs index 96ba1754..047aca7c 100644 --- a/Model/RiskV1AuthenticationResultsPost201Response.cs +++ b/Model/RiskV1AuthenticationResultsPost201Response.cs @@ -254,12 +254,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.cs b/Model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.cs index 028707ef..dea6a73a 100644 --- a/Model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.cs +++ b/Model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.cs @@ -496,66 +496,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AcsTransactionId (string) maxLength - if(this.AcsTransactionId != null && this.AcsTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsTransactionId, length must be less than or equal to 36.", new [] { "AcsTransactionId" }); - } - - // Cavv (string) maxLength - if(this.Cavv != null && this.Cavv.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cavv, length must be less than or equal to 255.", new [] { "Cavv" }); - } - - // CavvAlgorithm (string) maxLength - if(this.CavvAlgorithm != null && this.CavvAlgorithm.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CavvAlgorithm, length must be less than or equal to 1.", new [] { "CavvAlgorithm" }); - } - - // DirectoryServerErrorDescription (string) maxLength - if(this.DirectoryServerErrorDescription != null && this.DirectoryServerErrorDescription.Length >= 4096) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerErrorDescription, length must be less than or equal to 4096.", new [] { "DirectoryServerErrorDescription" }); - } - - // InteractionCounter (string) maxLength - if(this.InteractionCounter != null && this.InteractionCounter.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InteractionCounter, length must be less than or equal to 2.", new [] { "InteractionCounter" }); - } - - // SdkTransactionId (string) maxLength - if(this.SdkTransactionId != null && this.SdkTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkTransactionId, length must be less than or equal to 36.", new [] { "SdkTransactionId" }); - } - - // ThreeDSServerTransactionId (string) maxLength - if(this.ThreeDSServerTransactionId != null && this.ThreeDSServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ThreeDSServerTransactionId, length must be less than or equal to 36.", new [] { "ThreeDSServerTransactionId" }); - } - - // WhiteListStatus (string) maxLength - if(this.WhiteListStatus != null && this.WhiteListStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatus, length must be less than or equal to 1.", new [] { "WhiteListStatus" }); - } - - // WhiteListStatusSource (string) maxLength - if(this.WhiteListStatusSource != null && this.WhiteListStatusSource.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatusSource, length must be less than or equal to 2.", new [] { "WhiteListStatusSource" }); - } - - // DirectoryServerTransactionId (string) maxLength - if(this.DirectoryServerTransactionId != null && this.DirectoryServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerTransactionId, length must be less than or equal to 36.", new [] { "DirectoryServerTransactionId" }); - } - yield break; } } diff --git a/Model/RiskV1AuthenticationSetupsPost201Response.cs b/Model/RiskV1AuthenticationSetupsPost201Response.cs index 983cd8ca..89a9beb6 100644 --- a/Model/RiskV1AuthenticationSetupsPost201Response.cs +++ b/Model/RiskV1AuthenticationSetupsPost201Response.cs @@ -220,12 +220,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation.cs b/Model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation.cs index d6f82413..56987249 100644 --- a/Model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation.cs +++ b/Model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ReferenceId (string) maxLength - if(this.ReferenceId != null && this.ReferenceId.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, length must be less than or equal to 50.", new [] { "ReferenceId" }); - } - - // DeviceDataCollectionUrl (string) maxLength - if(this.DeviceDataCollectionUrl != null && this.DeviceDataCollectionUrl.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeviceDataCollectionUrl, length must be less than or equal to 100.", new [] { "DeviceDataCollectionUrl" }); - } - yield break; } } diff --git a/Model/RiskV1AuthenticationsPost201Response.cs b/Model/RiskV1AuthenticationsPost201Response.cs index 529af4bf..7803fb41 100644 --- a/Model/RiskV1AuthenticationsPost201Response.cs +++ b/Model/RiskV1AuthenticationsPost201Response.cs @@ -270,12 +270,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/RiskV1DecisionsPost201Response.cs b/Model/RiskV1DecisionsPost201Response.cs index cb9d9534..51e9e49a 100644 --- a/Model/RiskV1DecisionsPost201Response.cs +++ b/Model/RiskV1DecisionsPost201Response.cs @@ -285,12 +285,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/RiskV1DecisionsPost201ResponseClientReferenceInformation.cs b/Model/RiskV1DecisionsPost201ResponseClientReferenceInformation.cs index 66b24784..63319005 100644 --- a/Model/RiskV1DecisionsPost201ResponseClientReferenceInformation.cs +++ b/Model/RiskV1DecisionsPost201ResponseClientReferenceInformation.cs @@ -155,18 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // Comments (string) maxLength - if(this.Comments != null && this.Comments.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Comments, length must be less than or equal to 255.", new [] { "Comments" }); - } - yield break; } } diff --git a/Model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.cs b/Model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.cs index 9703ffdc..843705b2 100644 --- a/Model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.cs +++ b/Model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.cs @@ -716,120 +716,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AcsTransactionId (string) maxLength - if(this.AcsTransactionId != null && this.AcsTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsTransactionId, length must be less than or equal to 36.", new [] { "AcsTransactionId" }); - } - - // AcsUrl (string) maxLength - if(this.AcsUrl != null && this.AcsUrl.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsUrl, length must be less than or equal to 2048.", new [] { "AcsUrl" }); - } - - // AuthenticationTransactionId (string) maxLength - if(this.AuthenticationTransactionId != null && this.AuthenticationTransactionId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationTransactionId, length must be less than or equal to 20.", new [] { "AuthenticationTransactionId" }); - } - - // CardholderMessage (string) maxLength - if(this.CardholderMessage != null && this.CardholderMessage.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CardholderMessage, length must be less than or equal to 128.", new [] { "CardholderMessage" }); - } - - // Cavv (string) maxLength - if(this.Cavv != null && this.Cavv.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cavv, length must be less than or equal to 255.", new [] { "Cavv" }); - } - - // CavvAlgorithm (string) maxLength - if(this.CavvAlgorithm != null && this.CavvAlgorithm.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CavvAlgorithm, length must be less than or equal to 1.", new [] { "CavvAlgorithm" }); - } - - // ChallengeCancelCode (string) maxLength - if(this.ChallengeCancelCode != null && this.ChallengeCancelCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeCancelCode, length must be less than or equal to 2.", new [] { "ChallengeCancelCode" }); - } - - // ChallengeRequired (string) maxLength - if(this.ChallengeRequired != null && this.ChallengeRequired.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeRequired, length must be less than or equal to 1.", new [] { "ChallengeRequired" }); - } - - // DecoupledAuthenticationIndicator (string) maxLength - if(this.DecoupledAuthenticationIndicator != null && this.DecoupledAuthenticationIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DecoupledAuthenticationIndicator, length must be less than or equal to 1.", new [] { "DecoupledAuthenticationIndicator" }); - } - - // DirectoryServerErrorDescription (string) maxLength - if(this.DirectoryServerErrorDescription != null && this.DirectoryServerErrorDescription.Length >= 4096) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerErrorDescription, length must be less than or equal to 4096.", new [] { "DirectoryServerErrorDescription" }); - } - - // EcommerceIndicator (string) maxLength - if(this.EcommerceIndicator != null && this.EcommerceIndicator.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EcommerceIndicator, length must be less than or equal to 255.", new [] { "EcommerceIndicator" }); - } - - // EffectiveAuthenticationType (string) maxLength - if(this.EffectiveAuthenticationType != null && this.EffectiveAuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EffectiveAuthenticationType, length must be less than or equal to 2.", new [] { "EffectiveAuthenticationType" }); - } - - // NetworkScore (string) maxLength - if(this.NetworkScore != null && this.NetworkScore.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkScore, length must be less than or equal to 2.", new [] { "NetworkScore" }); - } - - // SdkTransactionId (string) maxLength - if(this.SdkTransactionId != null && this.SdkTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkTransactionId, length must be less than or equal to 36.", new [] { "SdkTransactionId" }); - } - - // SignedParesStatusReason (string) maxLength - if(this.SignedParesStatusReason != null && this.SignedParesStatusReason.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SignedParesStatusReason, length must be less than or equal to 2.", new [] { "SignedParesStatusReason" }); - } - - // StepUpUrl (string) maxLength - if(this.StepUpUrl != null && this.StepUpUrl.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StepUpUrl, length must be less than or equal to 2048.", new [] { "StepUpUrl" }); - } - - // ThreeDSServerTransactionId (string) maxLength - if(this.ThreeDSServerTransactionId != null && this.ThreeDSServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ThreeDSServerTransactionId, length must be less than or equal to 36.", new [] { "ThreeDSServerTransactionId" }); - } - - // WhiteListStatusSource (string) maxLength - if(this.WhiteListStatusSource != null && this.WhiteListStatusSource.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatusSource, length must be less than or equal to 2.", new [] { "WhiteListStatusSource" }); - } - - // DirectoryServerTransactionId (string) maxLength - if(this.DirectoryServerTransactionId != null && this.DirectoryServerTransactionId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DirectoryServerTransactionId, length must be less than or equal to 36.", new [] { "DirectoryServerTransactionId" }); - } - yield break; } } diff --git a/Model/RiskV1DecisionsPost201ResponseOrderInformationAmountDetails.cs b/Model/RiskV1DecisionsPost201ResponseOrderInformationAmountDetails.cs index 98a5acb6..d0e57099 100644 --- a/Model/RiskV1DecisionsPost201ResponseOrderInformationAmountDetails.cs +++ b/Model/RiskV1DecisionsPost201ResponseOrderInformationAmountDetails.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/RiskV1DecisionsPost201ResponsePaymentInformation.cs b/Model/RiskV1DecisionsPost201ResponsePaymentInformation.cs index 6521aaf1..050eebdc 100644 --- a/Model/RiskV1DecisionsPost201ResponsePaymentInformation.cs +++ b/Model/RiskV1DecisionsPost201ResponsePaymentInformation.cs @@ -190,36 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // BinCountry (string) maxLength - if(this.BinCountry != null && this.BinCountry.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BinCountry, length must be less than or equal to 255.", new [] { "BinCountry" }); - } - - // AccountType (string) maxLength - if(this.AccountType != null && this.AccountType.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountType, length must be less than or equal to 255.", new [] { "AccountType" }); - } - - // Issuer (string) maxLength - if(this.Issuer != null && this.Issuer.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Issuer, length must be less than or equal to 255.", new [] { "Issuer" }); - } - - // Scheme (string) maxLength - if(this.Scheme != null && this.Scheme.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Scheme, length must be less than or equal to 255.", new [] { "Scheme" }); - } - - // Bin (string) maxLength - if(this.Bin != null && this.Bin.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Bin, length must be less than or equal to 255.", new [] { "Bin" }); - } - yield break; } } diff --git a/Model/RiskV1ExportComplianceInquiriesPost201Response.cs b/Model/RiskV1ExportComplianceInquiriesPost201Response.cs index 1f4c7e62..ce108718 100644 --- a/Model/RiskV1ExportComplianceInquiriesPost201Response.cs +++ b/Model/RiskV1ExportComplianceInquiriesPost201Response.cs @@ -254,12 +254,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation.cs b/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation.cs index cefd0b3f..dd79f5b6 100644 --- a/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation.cs +++ b/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation.cs @@ -156,13 +156,13 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // IpCountryConfidence (int?) maximum - if(this.IpCountryConfidence >= (int?)100) + if(this.IpCountryConfidence > (int?)100) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpCountryConfidence, must be a value less than or equal to 100.", new [] { "IpCountryConfidence" }); } // IpCountryConfidence (int?) minimum - if(this.IpCountryConfidence <= (int?)-1) + if(this.IpCountryConfidence < (int?)-1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpCountryConfidence, must be a value greater than or equal to -1.", new [] { "IpCountryConfidence" }); } diff --git a/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches.cs b/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches.cs index ce404b97..a8d0086d 100644 --- a/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches.cs +++ b/Model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches.cs @@ -173,12 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SanctionList (string) maxLength - if(this.SanctionList != null && this.SanctionList.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SanctionList, length must be less than or equal to 255.", new [] { "SanctionList" }); - } - yield break; } } diff --git a/Model/RiskV1UpdatePost201Response.cs b/Model/RiskV1UpdatePost201Response.cs index 697e81c2..b87508f2 100644 --- a/Model/RiskV1UpdatePost201Response.cs +++ b/Model/RiskV1UpdatePost201Response.cs @@ -188,12 +188,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Riskv1addressverificationsBuyerInformation.cs b/Model/Riskv1addressverificationsBuyerInformation.cs index 9695cf04..a9b56e51 100644 --- a/Model/Riskv1addressverificationsBuyerInformation.cs +++ b/Model/Riskv1addressverificationsBuyerInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - yield break; } } diff --git a/Model/Riskv1addressverificationsOrderInformationBillTo.cs b/Model/Riskv1addressverificationsOrderInformationBillTo.cs index 72af43a8..946cb0dc 100644 --- a/Model/Riskv1addressverificationsOrderInformationBillTo.cs +++ b/Model/Riskv1addressverificationsOrderInformationBillTo.cs @@ -278,54 +278,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Address3 (string) maxLength - if(this.Address3 != null && this.Address3.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address3, length must be less than or equal to 60.", new [] { "Address3" }); - } - - // Address4 (string) maxLength - if(this.Address4 != null && this.Address4.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address4, length must be less than or equal to 60.", new [] { "Address4" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Riskv1addressverificationsOrderInformationLineItems.cs b/Model/Riskv1addressverificationsOrderInformationLineItems.cs index ae227e4d..fb113a6a 100644 --- a/Model/Riskv1addressverificationsOrderInformationLineItems.cs +++ b/Model/Riskv1addressverificationsOrderInformationLineItems.cs @@ -220,48 +220,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // ProductSKU (string) maxLength - if(this.ProductSKU != null && this.ProductSKU.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSKU, length must be less than or equal to 255.", new [] { "ProductSKU" }); - } - - // ProductRisk (string) maxLength - if(this.ProductRisk != null && this.ProductRisk.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductRisk, length must be less than or equal to 6.", new [] { "ProductRisk" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - yield break; } } diff --git a/Model/Riskv1addressverificationsOrderInformationShipTo.cs b/Model/Riskv1addressverificationsOrderInformationShipTo.cs index 590ddb15..756a59b2 100644 --- a/Model/Riskv1addressverificationsOrderInformationShipTo.cs +++ b/Model/Riskv1addressverificationsOrderInformationShipTo.cs @@ -262,54 +262,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Address3 (string) maxLength - if(this.Address3 != null && this.Address3.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address3, length must be less than or equal to 60.", new [] { "Address3" }); - } - - // Address4 (string) maxLength - if(this.Address4 != null && this.Address4.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address4, length must be less than or equal to 60.", new [] { "Address4" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationresultsConsumerAuthenticationInformation.cs b/Model/Riskv1authenticationresultsConsumerAuthenticationInformation.cs index c3aab13a..edb38bd4 100644 --- a/Model/Riskv1authenticationresultsConsumerAuthenticationInformation.cs +++ b/Model/Riskv1authenticationresultsConsumerAuthenticationInformation.cs @@ -224,36 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthenticationTransactionId (string) maxLength - if(this.AuthenticationTransactionId != null && this.AuthenticationTransactionId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationTransactionId, length must be less than or equal to 20.", new [] { "AuthenticationTransactionId" }); - } - - // AuthenticationType (string) maxLength - if(this.AuthenticationType != null && this.AuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationType, length must be less than or equal to 2.", new [] { "AuthenticationType" }); - } - - // EffectiveAuthenticationType (string) maxLength - if(this.EffectiveAuthenticationType != null && this.EffectiveAuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EffectiveAuthenticationType, length must be less than or equal to 2.", new [] { "EffectiveAuthenticationType" }); - } - - // SignedParesStatusReason (string) maxLength - if(this.SignedParesStatusReason != null && this.SignedParesStatusReason.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SignedParesStatusReason, length must be less than or equal to 2.", new [] { "SignedParesStatusReason" }); - } - - // WhiteListStatus (string) maxLength - if(this.WhiteListStatus != null && this.WhiteListStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatus, length must be less than or equal to 1.", new [] { "WhiteListStatus" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationresultsOrderInformationAmountDetails.cs b/Model/Riskv1authenticationresultsOrderInformationAmountDetails.cs index 2132b009..1038b73c 100644 --- a/Model/Riskv1authenticationresultsOrderInformationAmountDetails.cs +++ b/Model/Riskv1authenticationresultsOrderInformationAmountDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationresultsOrderInformationLineItems.cs b/Model/Riskv1authenticationresultsOrderInformationLineItems.cs index 661ed32f..c329dde7 100644 --- a/Model/Riskv1authenticationresultsOrderInformationLineItems.cs +++ b/Model/Riskv1authenticationresultsOrderInformationLineItems.cs @@ -169,30 +169,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationresultsPaymentInformationCard.cs b/Model/Riskv1authenticationresultsPaymentInformationCard.cs index a2c36c9f..5d3f6b62 100644 --- a/Model/Riskv1authenticationresultsPaymentInformationCard.cs +++ b/Model/Riskv1authenticationresultsPaymentInformationCard.cs @@ -190,30 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Bin (string) maxLength - if(this.Bin != null && this.Bin.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Bin, length must be less than or equal to 6.", new [] { "Bin" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationresultsPaymentInformationFluidData.cs b/Model/Riskv1authenticationresultsPaymentInformationFluidData.cs index edf5e545..0b29392d 100644 --- a/Model/Riskv1authenticationresultsPaymentInformationFluidData.cs +++ b/Model/Riskv1authenticationresultsPaymentInformationFluidData.cs @@ -173,24 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 3072) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 3072.", new [] { "Value" }); - } - - // Descriptor (string) maxLength - if(this.Descriptor != null && this.Descriptor.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Descriptor, length must be less than or equal to 128.", new [] { "Descriptor" }); - } - - // Encoding (string) maxLength - if(this.Encoding != null && this.Encoding.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Encoding, length must be less than or equal to 6.", new [] { "Encoding" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationresultsPaymentInformationTokenizedCard.cs b/Model/Riskv1authenticationresultsPaymentInformationTokenizedCard.cs index eba07db7..0a3a5f47 100644 --- a/Model/Riskv1authenticationresultsPaymentInformationTokenizedCard.cs +++ b/Model/Riskv1authenticationresultsPaymentInformationTokenizedCard.cs @@ -173,24 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsBuyerInformation.cs b/Model/Riskv1authenticationsBuyerInformation.cs index d2834bb5..88aa4883 100644 --- a/Model/Riskv1authenticationsBuyerInformation.cs +++ b/Model/Riskv1authenticationsBuyerInformation.cs @@ -169,12 +169,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsDeviceInformation.cs b/Model/Riskv1authenticationsDeviceInformation.cs index 3f468b24..01e9d424 100644 --- a/Model/Riskv1authenticationsDeviceInformation.cs +++ b/Model/Riskv1authenticationsDeviceInformation.cs @@ -308,60 +308,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // HttpAcceptBrowserValue (string) maxLength - if(this.HttpAcceptBrowserValue != null && this.HttpAcceptBrowserValue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpAcceptBrowserValue, length must be less than or equal to 255.", new [] { "HttpAcceptBrowserValue" }); - } - - // HttpAcceptContent (string) maxLength - if(this.HttpAcceptContent != null && this.HttpAcceptContent.Length >= 256) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpAcceptContent, length must be less than or equal to 256.", new [] { "HttpAcceptContent" }); - } - - // HttpBrowserLanguage (string) maxLength - if(this.HttpBrowserLanguage != null && this.HttpBrowserLanguage.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserLanguage, length must be less than or equal to 8.", new [] { "HttpBrowserLanguage" }); - } - - // HttpBrowserColorDepth (string) maxLength - if(this.HttpBrowserColorDepth != null && this.HttpBrowserColorDepth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserColorDepth, length must be less than or equal to 2.", new [] { "HttpBrowserColorDepth" }); - } - - // HttpBrowserScreenHeight (string) maxLength - if(this.HttpBrowserScreenHeight != null && this.HttpBrowserScreenHeight.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserScreenHeight, length must be less than or equal to 6.", new [] { "HttpBrowserScreenHeight" }); - } - - // HttpBrowserScreenWidth (string) maxLength - if(this.HttpBrowserScreenWidth != null && this.HttpBrowserScreenWidth.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserScreenWidth, length must be less than or equal to 6.", new [] { "HttpBrowserScreenWidth" }); - } - - // HttpBrowserTimeDifference (string) maxLength - if(this.HttpBrowserTimeDifference != null && this.HttpBrowserTimeDifference.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserTimeDifference, length must be less than or equal to 5.", new [] { "HttpBrowserTimeDifference" }); - } - - // UserAgentBrowserValue (string) maxLength - if(this.UserAgentBrowserValue != null && this.UserAgentBrowserValue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserAgentBrowserValue, length must be less than or equal to 255.", new [] { "UserAgentBrowserValue" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsOrderInformation.cs b/Model/Riskv1authenticationsOrderInformation.cs index b2319df9..06c5dabb 100644 --- a/Model/Riskv1authenticationsOrderInformation.cs +++ b/Model/Riskv1authenticationsOrderInformation.cs @@ -238,18 +238,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PreOrderDate (string) maxLength - if(this.PreOrderDate != null && this.PreOrderDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PreOrderDate, length must be less than or equal to 10.", new [] { "PreOrderDate" }); - } - - // TotalOffersCount (string) maxLength - if(this.TotalOffersCount != null && this.TotalOffersCount.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalOffersCount, length must be less than or equal to 2.", new [] { "TotalOffersCount" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsOrderInformationAmountDetails.cs b/Model/Riskv1authenticationsOrderInformationAmountDetails.cs index 2c6ccdd2..c50e3fa8 100644 --- a/Model/Riskv1authenticationsOrderInformationAmountDetails.cs +++ b/Model/Riskv1authenticationsOrderInformationAmountDetails.cs @@ -160,18 +160,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsOrderInformationBillTo.cs b/Model/Riskv1authenticationsOrderInformationBillTo.cs index d862b220..0d76377b 100644 --- a/Model/Riskv1authenticationsOrderInformationBillTo.cs +++ b/Model/Riskv1authenticationsOrderInformationBillTo.cs @@ -336,66 +336,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsOrderInformationLineItems.cs b/Model/Riskv1authenticationsOrderInformationLineItems.cs index 87ecdb95..4946f423 100644 --- a/Model/Riskv1authenticationsOrderInformationLineItems.cs +++ b/Model/Riskv1authenticationsOrderInformationLineItems.cs @@ -287,54 +287,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 13.", new [] { "TotalAmount" }); - } - - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // ProductSKU (string) maxLength - if(this.ProductSKU != null && this.ProductSKU.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSKU, length must be less than or equal to 255.", new [] { "ProductSKU" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ShippingDestinationTypes (string) maxLength - if(this.ShippingDestinationTypes != null && this.ShippingDestinationTypes.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingDestinationTypes, length must be less than or equal to 50.", new [] { "ShippingDestinationTypes" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsPaymentInformationCard.cs b/Model/Riskv1authenticationsPaymentInformationCard.cs index fbafd90d..6c1ff858 100644 --- a/Model/Riskv1authenticationsPaymentInformationCard.cs +++ b/Model/Riskv1authenticationsPaymentInformationCard.cs @@ -227,30 +227,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Bin (string) maxLength - if(this.Bin != null && this.Bin.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Bin, length must be less than or equal to 6.", new [] { "Bin" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsPaymentInformationTokenizedCard.cs b/Model/Riskv1authenticationsPaymentInformationTokenizedCard.cs index 8edc3d5e..b86757cd 100644 --- a/Model/Riskv1authenticationsPaymentInformationTokenizedCard.cs +++ b/Model/Riskv1authenticationsPaymentInformationTokenizedCard.cs @@ -210,24 +210,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsetupsPaymentInformationCard.cs b/Model/Riskv1authenticationsetupsPaymentInformationCard.cs index abcdfb6c..07a7a629 100644 --- a/Model/Riskv1authenticationsetupsPaymentInformationCard.cs +++ b/Model/Riskv1authenticationsetupsPaymentInformationCard.cs @@ -202,24 +202,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsetupsPaymentInformationCustomer.cs b/Model/Riskv1authenticationsetupsPaymentInformationCustomer.cs index 7ab81c16..825321bd 100644 --- a/Model/Riskv1authenticationsetupsPaymentInformationCustomer.cs +++ b/Model/Riskv1authenticationsetupsPaymentInformationCustomer.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CustomerId (string) maxLength - if(this.CustomerId != null && this.CustomerId.Length >= 22) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerId, length must be less than or equal to 22.", new [] { "CustomerId" }); - } - - // CustomerId (string) minLength - if(this.CustomerId != null && this.CustomerId.Length <= 16) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerId, length must be greater than or equal to 16.", new [] { "CustomerId" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsetupsPaymentInformationFluidData.cs b/Model/Riskv1authenticationsetupsPaymentInformationFluidData.cs index 916a931f..6704ac00 100644 --- a/Model/Riskv1authenticationsetupsPaymentInformationFluidData.cs +++ b/Model/Riskv1authenticationsetupsPaymentInformationFluidData.cs @@ -186,24 +186,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 3072) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 3072.", new [] { "Value" }); - } - - // Descriptor (string) maxLength - if(this.Descriptor != null && this.Descriptor.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Descriptor, length must be less than or equal to 128.", new [] { "Descriptor" }); - } - - // Encoding (string) maxLength - if(this.Encoding != null && this.Encoding.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Encoding, length must be less than or equal to 6.", new [] { "Encoding" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsetupsPaymentInformationTokenizedCard.cs b/Model/Riskv1authenticationsetupsPaymentInformationTokenizedCard.cs index b485cea9..b19afaf3 100644 --- a/Model/Riskv1authenticationsetupsPaymentInformationTokenizedCard.cs +++ b/Model/Riskv1authenticationsetupsPaymentInformationTokenizedCard.cs @@ -235,30 +235,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TransactionType (string) maxLength - if(this.TransactionType != null && this.TransactionType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionType, length must be less than or equal to 1.", new [] { "TransactionType" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Riskv1authenticationsetupsProcessingInformation.cs b/Model/Riskv1authenticationsetupsProcessingInformation.cs index a806cacb..c84293e4 100644 --- a/Model/Riskv1authenticationsetupsProcessingInformation.cs +++ b/Model/Riskv1authenticationsetupsProcessingInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // VisaCheckoutId (string) maxLength - if(this.VisaCheckoutId != null && this.VisaCheckoutId.Length >= 48) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VisaCheckoutId, length must be less than or equal to 48.", new [] { "VisaCheckoutId" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsBuyerInformation.cs b/Model/Riskv1decisionsBuyerInformation.cs index ac07e4aa..a7928099 100644 --- a/Model/Riskv1decisionsBuyerInformation.cs +++ b/Model/Riskv1decisionsBuyerInformation.cs @@ -189,30 +189,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - - // Username (string) maxLength - if(this.Username != null && this.Username.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Username, length must be less than or equal to 255.", new [] { "Username" }); - } - - // HashedPassword (string) maxLength - if(this.HashedPassword != null && this.HashedPassword.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HashedPassword, length must be less than or equal to 100.", new [] { "HashedPassword" }); - } - - // DateOfBirth (string) maxLength - if(this.DateOfBirth != null && this.DateOfBirth.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOfBirth, length must be less than or equal to 8.", new [] { "DateOfBirth" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsClientReferenceInformation.cs b/Model/Riskv1decisionsClientReferenceInformation.cs index cf4e9261..bdd1d23b 100644 --- a/Model/Riskv1decisionsClientReferenceInformation.cs +++ b/Model/Riskv1decisionsClientReferenceInformation.cs @@ -185,24 +185,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // PausedRequestId (string) maxLength - if(this.PausedRequestId != null && this.PausedRequestId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PausedRequestId, length must be less than or equal to 26.", new [] { "PausedRequestId" }); - } - - // Comments (string) maxLength - if(this.Comments != null && this.Comments.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Comments, length must be less than or equal to 255.", new [] { "Comments" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsClientReferenceInformationPartner.cs b/Model/Riskv1decisionsClientReferenceInformationPartner.cs index 4891ecdb..a2c5f140 100644 --- a/Model/Riskv1decisionsClientReferenceInformationPartner.cs +++ b/Model/Riskv1decisionsClientReferenceInformationPartner.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // DeveloperId (string) maxLength - if(this.DeveloperId != null && this.DeveloperId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeveloperId, length must be less than or equal to 8.", new [] { "DeveloperId" }); - } - - // SolutionId (string) maxLength - if(this.SolutionId != null && this.SolutionId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SolutionId, length must be less than or equal to 8.", new [] { "SolutionId" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsConsumerAuthenticationInformation.cs b/Model/Riskv1decisionsConsumerAuthenticationInformation.cs index 264adb42..5e2e275c 100644 --- a/Model/Riskv1decisionsConsumerAuthenticationInformation.cs +++ b/Model/Riskv1decisionsConsumerAuthenticationInformation.cs @@ -784,186 +784,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthenticationType (string) maxLength - if(this.AuthenticationType != null && this.AuthenticationType.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationType, length must be less than or equal to 2.", new [] { "AuthenticationType" }); - } - - // AcsWindowSize (string) maxLength - if(this.AcsWindowSize != null && this.AcsWindowSize.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AcsWindowSize, length must be less than or equal to 2.", new [] { "AcsWindowSize" }); - } - - // AlternateAuthenticationData (string) maxLength - if(this.AlternateAuthenticationData != null && this.AlternateAuthenticationData.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AlternateAuthenticationData, length must be less than or equal to 2048.", new [] { "AlternateAuthenticationData" }); - } - - // AlternateAuthenticationDate (string) maxLength - if(this.AlternateAuthenticationDate != null && this.AlternateAuthenticationDate.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AlternateAuthenticationDate, length must be less than or equal to 14.", new [] { "AlternateAuthenticationDate" }); - } - - // AuthenticationDate (string) maxLength - if(this.AuthenticationDate != null && this.AuthenticationDate.Length >= 14) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationDate, length must be less than or equal to 14.", new [] { "AuthenticationDate" }); - } - - // AuthenticationTransactionId (string) maxLength - if(this.AuthenticationTransactionId != null && this.AuthenticationTransactionId.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationTransactionId, length must be less than or equal to 20.", new [] { "AuthenticationTransactionId" }); - } - - // ChallengeCancelCode (string) maxLength - if(this.ChallengeCancelCode != null && this.ChallengeCancelCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeCancelCode, length must be less than or equal to 2.", new [] { "ChallengeCancelCode" }); - } - - // ChallengeStatus (string) maxLength - if(this.ChallengeStatus != null && this.ChallengeStatus.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ChallengeStatus, length must be less than or equal to 2.", new [] { "ChallengeStatus" }); - } - - // CustomerCardAlias (string) maxLength - if(this.CustomerCardAlias != null && this.CustomerCardAlias.Length >= 128) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CustomerCardAlias, length must be less than or equal to 128.", new [] { "CustomerCardAlias" }); - } - - // DecoupledAuthenticationIndicator (string) maxLength - if(this.DecoupledAuthenticationIndicator != null && this.DecoupledAuthenticationIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DecoupledAuthenticationIndicator, length must be less than or equal to 1.", new [] { "DecoupledAuthenticationIndicator" }); - } - - // DecoupledAuthenticationMaxTime (string) maxLength - if(this.DecoupledAuthenticationMaxTime != null && this.DecoupledAuthenticationMaxTime.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DecoupledAuthenticationMaxTime, length must be less than or equal to 5.", new [] { "DecoupledAuthenticationMaxTime" }); - } - - // DeviceChannel (string) maxLength - if(this.DeviceChannel != null && this.DeviceChannel.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeviceChannel, length must be less than or equal to 10.", new [] { "DeviceChannel" }); - } - - // MerchantFraudRate (string) maxLength - if(this.MerchantFraudRate != null && this.MerchantFraudRate.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantFraudRate, length must be less than or equal to 2.", new [] { "MerchantFraudRate" }); - } - - // MarketingSource (string) maxLength - if(this.MarketingSource != null && this.MarketingSource.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MarketingSource, length must be less than or equal to 40.", new [] { "MarketingSource" }); - } - - // Mcc (string) maxLength - if(this.Mcc != null && this.Mcc.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Mcc, length must be less than or equal to 4.", new [] { "Mcc" }); - } - - // NpaCode (string) maxLength - if(this.NpaCode != null && this.NpaCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NpaCode, length must be less than or equal to 2.", new [] { "NpaCode" }); - } - - // OverrideCountryCode (string) maxLength - if(this.OverrideCountryCode != null && this.OverrideCountryCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OverrideCountryCode, length must be less than or equal to 2.", new [] { "OverrideCountryCode" }); - } - - // PriorAuthenticationData (string) maxLength - if(this.PriorAuthenticationData != null && this.PriorAuthenticationData.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationData, length must be less than or equal to 2048.", new [] { "PriorAuthenticationData" }); - } - - // PriorAuthenticationMethod (string) maxLength - if(this.PriorAuthenticationMethod != null && this.PriorAuthenticationMethod.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationMethod, length must be less than or equal to 2.", new [] { "PriorAuthenticationMethod" }); - } - - // PriorAuthenticationReferenceId (string) maxLength - if(this.PriorAuthenticationReferenceId != null && this.PriorAuthenticationReferenceId.Length >= 36) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationReferenceId, length must be less than or equal to 36.", new [] { "PriorAuthenticationReferenceId" }); - } - - // PriorAuthenticationTime (string) maxLength - if(this.PriorAuthenticationTime != null && this.PriorAuthenticationTime.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PriorAuthenticationTime, length must be less than or equal to 12.", new [] { "PriorAuthenticationTime" }); - } - - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 3.", new [] { "ProductCode" }); - } - - // ReturnUrl (string) maxLength - if(this.ReturnUrl != null && this.ReturnUrl.Length >= 2048) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReturnUrl, length must be less than or equal to 2048.", new [] { "ReturnUrl" }); - } - - // RequestorId (string) maxLength - if(this.RequestorId != null && this.RequestorId.Length >= 35) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorId, length must be less than or equal to 35.", new [] { "RequestorId" }); - } - - // RequestorInitiatedAuthenticationIndicator (string) maxLength - if(this.RequestorInitiatedAuthenticationIndicator != null && this.RequestorInitiatedAuthenticationIndicator.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorInitiatedAuthenticationIndicator, length must be less than or equal to 2.", new [] { "RequestorInitiatedAuthenticationIndicator" }); - } - - // RequestorName (string) maxLength - if(this.RequestorName != null && this.RequestorName.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorName, length must be less than or equal to 40.", new [] { "RequestorName" }); - } - - // ReferenceId (string) maxLength - if(this.ReferenceId != null && this.ReferenceId.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, length must be less than or equal to 50.", new [] { "ReferenceId" }); - } - - // SdkMaxTimeout (string) maxLength - if(this.SdkMaxTimeout != null && this.SdkMaxTimeout.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkMaxTimeout, length must be less than or equal to 2.", new [] { "SdkMaxTimeout" }); - } - - // SecureCorporatePaymentIndicator (string) maxLength - if(this.SecureCorporatePaymentIndicator != null && this.SecureCorporatePaymentIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecureCorporatePaymentIndicator, length must be less than or equal to 1.", new [] { "SecureCorporatePaymentIndicator" }); - } - - // WhiteListStatus (string) maxLength - if(this.WhiteListStatus != null && this.WhiteListStatus.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for WhiteListStatus, length must be less than or equal to 1.", new [] { "WhiteListStatus" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.cs b/Model/Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.cs index 3264bc26..9f591ea6 100644 --- a/Model/Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.cs +++ b/Model/Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthenticationIndicator (string) maxLength - if(this.AuthenticationIndicator != null && this.AuthenticationIndicator.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthenticationIndicator, length must be less than or equal to 2.", new [] { "AuthenticationIndicator" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsDeviceInformation.cs b/Model/Riskv1decisionsDeviceInformation.cs index 8f8d74fd..668517fe 100644 --- a/Model/Riskv1decisionsDeviceInformation.cs +++ b/Model/Riskv1decisionsDeviceInformation.cs @@ -393,72 +393,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // HostName (string) maxLength - if(this.HostName != null && this.HostName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HostName, length must be less than or equal to 60.", new [] { "HostName" }); - } - - // UserAgent (string) maxLength - if(this.UserAgent != null && this.UserAgent.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserAgent, length must be less than or equal to 40.", new [] { "UserAgent" }); - } - - // HttpAcceptBrowserValue (string) maxLength - if(this.HttpAcceptBrowserValue != null && this.HttpAcceptBrowserValue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpAcceptBrowserValue, length must be less than or equal to 255.", new [] { "HttpAcceptBrowserValue" }); - } - - // HttpAcceptContent (string) maxLength - if(this.HttpAcceptContent != null && this.HttpAcceptContent.Length >= 256) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpAcceptContent, length must be less than or equal to 256.", new [] { "HttpAcceptContent" }); - } - - // HttpBrowserLanguage (string) maxLength - if(this.HttpBrowserLanguage != null && this.HttpBrowserLanguage.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserLanguage, length must be less than or equal to 8.", new [] { "HttpBrowserLanguage" }); - } - - // HttpBrowserColorDepth (string) maxLength - if(this.HttpBrowserColorDepth != null && this.HttpBrowserColorDepth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserColorDepth, length must be less than or equal to 2.", new [] { "HttpBrowserColorDepth" }); - } - - // HttpBrowserScreenHeight (string) maxLength - if(this.HttpBrowserScreenHeight != null && this.HttpBrowserScreenHeight.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserScreenHeight, length must be less than or equal to 6.", new [] { "HttpBrowserScreenHeight" }); - } - - // HttpBrowserScreenWidth (string) maxLength - if(this.HttpBrowserScreenWidth != null && this.HttpBrowserScreenWidth.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserScreenWidth, length must be less than or equal to 6.", new [] { "HttpBrowserScreenWidth" }); - } - - // HttpBrowserTimeDifference (string) maxLength - if(this.HttpBrowserTimeDifference != null && this.HttpBrowserTimeDifference.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HttpBrowserTimeDifference, length must be less than or equal to 5.", new [] { "HttpBrowserTimeDifference" }); - } - - // UserAgentBrowserValue (string) maxLength - if(this.UserAgentBrowserValue != null && this.UserAgentBrowserValue.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserAgentBrowserValue, length must be less than or equal to 255.", new [] { "UserAgentBrowserValue" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsMerchantDefinedInformation.cs b/Model/Riskv1decisionsMerchantDefinedInformation.cs index 2c3b1d58..b87183fe 100644 --- a/Model/Riskv1decisionsMerchantDefinedInformation.cs +++ b/Model/Riskv1decisionsMerchantDefinedInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Key (string) maxLength - if(this.Key != null && this.Key.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Key, length must be less than or equal to 255.", new [] { "Key" }); - } - - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 255.", new [] { "Value" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsMerchantInformation.cs b/Model/Riskv1decisionsMerchantInformation.cs index 2614e20e..6f2f8d34 100644 --- a/Model/Riskv1decisionsMerchantInformation.cs +++ b/Model/Riskv1decisionsMerchantInformation.cs @@ -138,12 +138,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantName (string) maxLength - if(this.MerchantName != null && this.MerchantName.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantName, length must be less than or equal to 25.", new [] { "MerchantName" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsMerchantInformationMerchantDescriptor.cs b/Model/Riskv1decisionsMerchantInformationMerchantDescriptor.cs index 7d71bb24..ba25c472 100644 --- a/Model/Riskv1decisionsMerchantInformationMerchantDescriptor.cs +++ b/Model/Riskv1decisionsMerchantInformationMerchantDescriptor.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Url (string) maxLength - if(this.Url != null && this.Url.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Url, length must be less than or equal to 255.", new [] { "Url" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsOrderInformation.cs b/Model/Riskv1decisionsOrderInformation.cs index 7169e6ec..1abf6f90 100644 --- a/Model/Riskv1decisionsOrderInformation.cs +++ b/Model/Riskv1decisionsOrderInformation.cs @@ -271,18 +271,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PreOrderDate (string) maxLength - if(this.PreOrderDate != null && this.PreOrderDate.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PreOrderDate, length must be less than or equal to 10.", new [] { "PreOrderDate" }); - } - - // TotalOffersCount (string) maxLength - if(this.TotalOffersCount != null && this.TotalOffersCount.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalOffersCount, length must be less than or equal to 2.", new [] { "TotalOffersCount" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsOrderInformationAmountDetails.cs b/Model/Riskv1decisionsOrderInformationAmountDetails.cs index 799a2a1a..a74e0509 100644 --- a/Model/Riskv1decisionsOrderInformationAmountDetails.cs +++ b/Model/Riskv1decisionsOrderInformationAmountDetails.cs @@ -152,18 +152,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsOrderInformationBillTo.cs b/Model/Riskv1decisionsOrderInformationBillTo.cs index b8d0323f..7403a015 100644 --- a/Model/Riskv1decisionsOrderInformationBillTo.cs +++ b/Model/Riskv1decisionsOrderInformationBillTo.cs @@ -275,66 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsOrderInformationLineItems.cs b/Model/Riskv1decisionsOrderInformationLineItems.cs index 7c4ad323..5a684aed 100644 --- a/Model/Riskv1decisionsOrderInformationLineItems.cs +++ b/Model/Riskv1decisionsOrderInformationLineItems.cs @@ -342,72 +342,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 13.", new [] { "TotalAmount" }); - } - - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // ProductSKU (string) maxLength - if(this.ProductSKU != null && this.ProductSKU.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSKU, length must be less than or equal to 255.", new [] { "ProductSKU" }); - } - - // ProductRisk (string) maxLength - if(this.ProductRisk != null && this.ProductRisk.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductRisk, length must be less than or equal to 6.", new [] { "ProductRisk" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - - // DistributorProductSku (string) maxLength - if(this.DistributorProductSku != null && this.DistributorProductSku.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DistributorProductSku, length must be less than or equal to 15.", new [] { "DistributorProductSku" }); - } - - // ShippingDestinationTypes (string) maxLength - if(this.ShippingDestinationTypes != null && this.ShippingDestinationTypes.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingDestinationTypes, length must be less than or equal to 50.", new [] { "ShippingDestinationTypes" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsOrderInformationShipTo.cs b/Model/Riskv1decisionsOrderInformationShipTo.cs index a3ed586f..54d89d1a 100644 --- a/Model/Riskv1decisionsOrderInformationShipTo.cs +++ b/Model/Riskv1decisionsOrderInformationShipTo.cs @@ -309,72 +309,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // DestinationTypes (string) maxLength - if(this.DestinationTypes != null && this.DestinationTypes.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DestinationTypes, length must be less than or equal to 25.", new [] { "DestinationTypes" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Method (string) maxLength - if(this.Method != null && this.Method.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Method, length must be less than or equal to 10.", new [] { "Method" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsOrderInformationShippingDetails.cs b/Model/Riskv1decisionsOrderInformationShippingDetails.cs index 67ddc84e..e41f2d35 100644 --- a/Model/Riskv1decisionsOrderInformationShippingDetails.cs +++ b/Model/Riskv1decisionsOrderInformationShippingDetails.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ShippingMethod (string) maxLength - if(this.ShippingMethod != null && this.ShippingMethod.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingMethod, length must be less than or equal to 10.", new [] { "ShippingMethod" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsPaymentInformation.cs b/Model/Riskv1decisionsPaymentInformation.cs index 3c9f3188..8f176748 100644 --- a/Model/Riskv1decisionsPaymentInformation.cs +++ b/Model/Riskv1decisionsPaymentInformation.cs @@ -186,12 +186,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Method (string) maxLength - if(this.Method != null && this.Method.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Method, length must be less than or equal to 10.", new [] { "Method" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsPaymentInformationCard.cs b/Model/Riskv1decisionsPaymentInformationCard.cs index 906f266c..87b9fa76 100644 --- a/Model/Riskv1decisionsPaymentInformationCard.cs +++ b/Model/Riskv1decisionsPaymentInformationCard.cs @@ -190,30 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // Bin (string) maxLength - if(this.Bin != null && this.Bin.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Bin, length must be less than or equal to 6.", new [] { "Bin" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsPaymentInformationTokenizedCard.cs b/Model/Riskv1decisionsPaymentInformationTokenizedCard.cs index 09e51c2d..06cf3fbc 100644 --- a/Model/Riskv1decisionsPaymentInformationTokenizedCard.cs +++ b/Model/Riskv1decisionsPaymentInformationTokenizedCard.cs @@ -173,24 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsProcessorInformationAvs.cs b/Model/Riskv1decisionsProcessorInformationAvs.cs index d348e2b7..2e11b0ee 100644 --- a/Model/Riskv1decisionsProcessorInformationAvs.cs +++ b/Model/Riskv1decisionsProcessorInformationAvs.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 3.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsProcessorInformationCardVerification.cs b/Model/Riskv1decisionsProcessorInformationCardVerification.cs index 5b5a3e00..5030be5b 100644 --- a/Model/Riskv1decisionsProcessorInformationCardVerification.cs +++ b/Model/Riskv1decisionsProcessorInformationCardVerification.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ResultCode (string) maxLength - if(this.ResultCode != null && this.ResultCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResultCode, length must be less than or equal to 1.", new [] { "ResultCode" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsRiskInformation.cs b/Model/Riskv1decisionsRiskInformation.cs index e76d3a85..fd1db97c 100644 --- a/Model/Riskv1decisionsRiskInformation.cs +++ b/Model/Riskv1decisionsRiskInformation.cs @@ -170,12 +170,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // EventType (string) maxLength - if(this.EventType != null && this.EventType.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EventType, length must be less than or equal to 255.", new [] { "EventType" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsTravelInformation.cs b/Model/Riskv1decisionsTravelInformation.cs index f3b5b8fd..cb647ae6 100644 --- a/Model/Riskv1decisionsTravelInformation.cs +++ b/Model/Riskv1decisionsTravelInformation.cs @@ -222,30 +222,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ActualFinalDestination (string) maxLength - if(this.ActualFinalDestination != null && this.ActualFinalDestination.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ActualFinalDestination, length must be less than or equal to 3.", new [] { "ActualFinalDestination" }); - } - - // CompleteRoute (string) maxLength - if(this.CompleteRoute != null && this.CompleteRoute.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CompleteRoute, length must be less than or equal to 255.", new [] { "CompleteRoute" }); - } - - // DepartureTime (string) maxLength - if(this.DepartureTime != null && this.DepartureTime.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DepartureTime, length must be less than or equal to 25.", new [] { "DepartureTime" }); - } - - // JourneyType (string) maxLength - if(this.JourneyType != null && this.JourneyType.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for JourneyType, length must be less than or equal to 32.", new [] { "JourneyType" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsTravelInformationLegs.cs b/Model/Riskv1decisionsTravelInformationLegs.cs index f8d087a4..5a6e3d4f 100644 --- a/Model/Riskv1decisionsTravelInformationLegs.cs +++ b/Model/Riskv1decisionsTravelInformationLegs.cs @@ -173,24 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Origination (string) maxLength - if(this.Origination != null && this.Origination.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Origination, length must be less than or equal to 3.", new [] { "Origination" }); - } - - // Destination (string) maxLength - if(this.Destination != null && this.Destination.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Destination, length must be less than or equal to 3.", new [] { "Destination" }); - } - - // CarrierCode (string) maxLength - if(this.CarrierCode != null && this.CarrierCode.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CarrierCode, length must be less than or equal to 2.", new [] { "CarrierCode" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsTravelInformationPassengers.cs b/Model/Riskv1decisionsTravelInformationPassengers.cs index 8d35c8db..c4ff4994 100644 --- a/Model/Riskv1decisionsTravelInformationPassengers.cs +++ b/Model/Riskv1decisionsTravelInformationPassengers.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - yield break; } } diff --git a/Model/Riskv1decisionsidmarkingRiskInformationMarkingDetails.cs b/Model/Riskv1decisionsidmarkingRiskInformationMarkingDetails.cs index f5f9061e..ee167c4b 100644 --- a/Model/Riskv1decisionsidmarkingRiskInformationMarkingDetails.cs +++ b/Model/Riskv1decisionsidmarkingRiskInformationMarkingDetails.cs @@ -173,18 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Notes (string) maxLength - if(this.Notes != null && this.Notes.Length >= 120) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Notes, length must be less than or equal to 120.", new [] { "Notes" }); - } - - // Reason (string) maxLength - if(this.Reason != null && this.Reason.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reason, length must be less than or equal to 25.", new [] { "Reason" }); - } - yield break; } } diff --git a/Model/Riskv1exportcomplianceinquiriesDeviceInformation.cs b/Model/Riskv1exportcomplianceinquiriesDeviceInformation.cs index fcff28b9..088794cc 100644 --- a/Model/Riskv1exportcomplianceinquiriesDeviceInformation.cs +++ b/Model/Riskv1exportcomplianceinquiriesDeviceInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // HostName (string) maxLength - if(this.HostName != null && this.HostName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HostName, length must be less than or equal to 60.", new [] { "HostName" }); - } - yield break; } } diff --git a/Model/Riskv1exportcomplianceinquiriesExportComplianceInformationWeights.cs b/Model/Riskv1exportcomplianceinquiriesExportComplianceInformationWeights.cs index af4c84de..ef28398d 100644 --- a/Model/Riskv1exportcomplianceinquiriesExportComplianceInformationWeights.cs +++ b/Model/Riskv1exportcomplianceinquiriesExportComplianceInformationWeights.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address (string) maxLength - if(this.Address != null && this.Address.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address, length must be less than or equal to 6.", new [] { "Address" }); - } - - // Company (string) maxLength - if(this.Company != null && this.Company.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Company, length must be less than or equal to 6.", new [] { "Company" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 6.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/Riskv1exportcomplianceinquiriesOrderInformationBillTo.cs b/Model/Riskv1exportcomplianceinquiriesOrderInformationBillTo.cs index 5558c57e..2c49a0a6 100644 --- a/Model/Riskv1exportcomplianceinquiriesOrderInformationBillTo.cs +++ b/Model/Riskv1exportcomplianceinquiriesOrderInformationBillTo.cs @@ -353,72 +353,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Address3 (string) maxLength - if(this.Address3 != null && this.Address3.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address3, length must be less than or equal to 60.", new [] { "Address3" }); - } - - // Address4 (string) maxLength - if(this.Address4 != null && this.Address4.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address4, length must be less than or equal to 60.", new [] { "Address4" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - yield break; } } diff --git a/Model/Riskv1exportcomplianceinquiriesOrderInformationBillToCompany.cs b/Model/Riskv1exportcomplianceinquiriesOrderInformationBillToCompany.cs index d397bcd5..e2d1af08 100644 --- a/Model/Riskv1exportcomplianceinquiriesOrderInformationBillToCompany.cs +++ b/Model/Riskv1exportcomplianceinquiriesOrderInformationBillToCompany.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 60.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/Riskv1exportcomplianceinquiriesOrderInformationLineItems.cs b/Model/Riskv1exportcomplianceinquiriesOrderInformationLineItems.cs index 0636c599..e835a496 100644 --- a/Model/Riskv1exportcomplianceinquiriesOrderInformationLineItems.cs +++ b/Model/Riskv1exportcomplianceinquiriesOrderInformationLineItems.cs @@ -252,48 +252,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // ProductSKU (string) maxLength - if(this.ProductSKU != null && this.ProductSKU.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSKU, length must be less than or equal to 255.", new [] { "ProductSKU" }); - } - - // ProductRisk (string) maxLength - if(this.ProductRisk != null && this.ProductRisk.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductRisk, length must be less than or equal to 6.", new [] { "ProductRisk" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - yield break; } } diff --git a/Model/Riskv1exportcomplianceinquiriesOrderInformationShipTo.cs b/Model/Riskv1exportcomplianceinquiriesOrderInformationShipTo.cs index 9c61c927..88377f6b 100644 --- a/Model/Riskv1exportcomplianceinquiriesOrderInformationShipTo.cs +++ b/Model/Riskv1exportcomplianceinquiriesOrderInformationShipTo.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesClientReferenceInformation.cs b/Model/Riskv1liststypeentriesClientReferenceInformation.cs index 23b99cfb..0c5ef234 100644 --- a/Model/Riskv1liststypeentriesClientReferenceInformation.cs +++ b/Model/Riskv1liststypeentriesClientReferenceInformation.cs @@ -168,18 +168,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // Comments (string) maxLength - if(this.Comments != null && this.Comments.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Comments, length must be less than or equal to 255.", new [] { "Comments" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesDeviceInformation.cs b/Model/Riskv1liststypeentriesDeviceInformation.cs index c3c5d252..6b08266a 100644 --- a/Model/Riskv1liststypeentriesDeviceInformation.cs +++ b/Model/Riskv1liststypeentriesDeviceInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // NetworkIpAddress (string) maxLength - if(this.NetworkIpAddress != null && this.NetworkIpAddress.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NetworkIpAddress, length must be less than or equal to 11.", new [] { "NetworkIpAddress" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesOrderInformationAddress.cs b/Model/Riskv1liststypeentriesOrderInformationAddress.cs index 84a33c49..5b1b336b 100644 --- a/Model/Riskv1liststypeentriesOrderInformationAddress.cs +++ b/Model/Riskv1liststypeentriesOrderInformationAddress.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesOrderInformationBillTo.cs b/Model/Riskv1liststypeentriesOrderInformationBillTo.cs index fe9290a4..80bda406 100644 --- a/Model/Riskv1liststypeentriesOrderInformationBillTo.cs +++ b/Model/Riskv1liststypeentriesOrderInformationBillTo.cs @@ -292,72 +292,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // EmailDomain (string) maxLength - if(this.EmailDomain != null && this.EmailDomain.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EmailDomain, length must be less than or equal to 100.", new [] { "EmailDomain" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesOrderInformationLineItems.cs b/Model/Riskv1liststypeentriesOrderInformationLineItems.cs index dbc85c75..81535b11 100644 --- a/Model/Riskv1liststypeentriesOrderInformationLineItems.cs +++ b/Model/Riskv1liststypeentriesOrderInformationLineItems.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesOrderInformationShipTo.cs b/Model/Riskv1liststypeentriesOrderInformationShipTo.cs index ccd25f74..cbb342e1 100644 --- a/Model/Riskv1liststypeentriesOrderInformationShipTo.cs +++ b/Model/Riskv1liststypeentriesOrderInformationShipTo.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesPaymentInformationBank.cs b/Model/Riskv1liststypeentriesPaymentInformationBank.cs index a89b5b96..ed977090 100644 --- a/Model/Riskv1liststypeentriesPaymentInformationBank.cs +++ b/Model/Riskv1liststypeentriesPaymentInformationBank.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AccountNumber (string) maxLength - if(this.AccountNumber != null && this.AccountNumber.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than or equal to 30.", new [] { "AccountNumber" }); - } - - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 15.", new [] { "Code" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Iban (string) maxLength - if(this.Iban != null && this.Iban.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Iban, length must be less than or equal to 30.", new [] { "Iban" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesPaymentInformationCard.cs b/Model/Riskv1liststypeentriesPaymentInformationCard.cs index 3e604d53..c1cb0b91 100644 --- a/Model/Riskv1liststypeentriesPaymentInformationCard.cs +++ b/Model/Riskv1liststypeentriesPaymentInformationCard.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 20.", new [] { "Number" }); - } - - // Bin (string) maxLength - if(this.Bin != null && this.Bin.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Bin, length must be less than or equal to 6.", new [] { "Bin" }); - } - yield break; } } diff --git a/Model/Riskv1liststypeentriesRiskInformationMarkingDetails.cs b/Model/Riskv1liststypeentriesRiskInformationMarkingDetails.cs index c9a4608d..7df9cf70 100644 --- a/Model/Riskv1liststypeentriesRiskInformationMarkingDetails.cs +++ b/Model/Riskv1liststypeentriesRiskInformationMarkingDetails.cs @@ -173,24 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Notes (string) maxLength - if(this.Notes != null && this.Notes.Length >= 120) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Notes, length must be less than or equal to 120.", new [] { "Notes" }); - } - - // Reason (string) maxLength - if(this.Reason != null && this.Reason.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reason, length must be less than or equal to 25.", new [] { "Reason" }); - } - - // RecordName (string) maxLength - if(this.RecordName != null && this.RecordName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RecordName, length must be less than or equal to 255.", new [] { "RecordName" }); - } - yield break; } } diff --git a/Model/TmsV2CustomersResponse.cs b/Model/TmsV2CustomersResponse.cs index 1e0b4ae7..6fcaa08e 100644 --- a/Model/TmsV2CustomersResponse.cs +++ b/Model/TmsV2CustomersResponse.cs @@ -267,18 +267,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Tmsv2customersBuyerInformation.cs b/Model/Tmsv2customersBuyerInformation.cs index 629bf7a5..7764a151 100644 --- a/Model/Tmsv2customersBuyerInformation.cs +++ b/Model/Tmsv2customersBuyerInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerID (string) maxLength - if(this.MerchantCustomerID != null && this.MerchantCustomerID.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerID, length must be less than or equal to 100.", new [] { "MerchantCustomerID" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - yield break; } } diff --git a/Model/Tmsv2customersClientReferenceInformation.cs b/Model/Tmsv2customersClientReferenceInformation.cs index 44109001..e85ec345 100644 --- a/Model/Tmsv2customersClientReferenceInformation.cs +++ b/Model/Tmsv2customersClientReferenceInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrument.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrument.cs index 42014eab..0bb883ab 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrument.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrument.cs @@ -329,18 +329,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.cs index 8b060c43..dd86aaab 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 18) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 18.", new [] { "Type" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.cs index 153ffc1c..400e4be4 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.cs @@ -292,72 +292,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Company (string) maxLength - if(this.Company != null && this.Company.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Company, length must be less than or equal to 60.", new [] { "Company" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.cs index b791648c..4b90d0b1 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.cs @@ -173,18 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CompanyTaxID (string) maxLength - if(this.CompanyTaxID != null && this.CompanyTaxID.Length >= 9) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CompanyTaxID, length must be less than or equal to 9.", new [] { "CompanyTaxID" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.cs index c6f0c1ee..f440d722 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.cs index 58049096..3a84b1d8 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.cs @@ -155,12 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.cs index 3ab0e7e4..b2b4e7fa 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.cs @@ -240,36 +240,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // IssueNumber (string) maxLength - if(this.IssueNumber != null && this.IssueNumber.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be less than or equal to 2.", new [] { "IssueNumber" }); - } - - // StartMonth (string) maxLength - if(this.StartMonth != null && this.StartMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be less than or equal to 2.", new [] { "StartMonth" }); - } - - // StartYear (string) maxLength - if(this.StartYear != null && this.StartYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be less than or equal to 4.", new [] { "StartYear" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.cs index 6fa2603a..75809ed7 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // RequestorID (string) maxLength - if(this.RequestorID != null && this.RequestorID.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RequestorID, length must be less than or equal to 11.", new [] { "RequestorID" }); - } - - // TransactionType (string) maxLength - if(this.TransactionType != null && this.TransactionType.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionType, length must be less than or equal to 1.", new [] { "TransactionType" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.cs index 92a54800..12a1bb33 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 17) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 17.", new [] { "Number" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.cs index ca2f6f3b..a8d08c86 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.cs index 30748753..f8f46c49 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.cs @@ -173,36 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Number (string) maxLength - if(this.Number != null && this.Number.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than or equal to 19.", new [] { "Number" }); - } - - // Number (string) minLength - if(this.Number != null && this.Number.Length <= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be greater than or equal to 12.", new [] { "Number" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // SecurityCode (string) maxLength - if(this.SecurityCode != null && this.SecurityCode.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecurityCode, length must be less than or equal to 4.", new [] { "SecurityCode" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.cs index 934e55f5..1699c951 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.cs @@ -121,12 +121,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentAccountReference (string) maxLength - if(this.PaymentAccountReference != null && this.PaymentAccountReference.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentAccountReference, length must be less than or equal to 32.", new [] { "PaymentAccountReference" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.cs index 7595425e..1344f258 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.cs @@ -211,18 +211,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard.cs index 9349bd1d..3a3dd2ee 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard.cs @@ -151,18 +151,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedMerchantInitiatedTransaction.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedMerchantInitiatedTransaction.cs index 3070ab92..cb57836b 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedMerchantInitiatedTransaction.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedMerchantInitiatedTransaction.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PreviousTransactionId (string) maxLength - if(this.PreviousTransactionId != null && this.PreviousTransactionId.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PreviousTransactionId, length must be less than or equal to 15.", new [] { "PreviousTransactionId" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.cs index 62927eef..c13dd36e 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.cs @@ -122,18 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 12.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.cs index f9b332e0..59dc2f19 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AlternateName (string) maxLength - if(this.AlternateName != null && this.AlternateName.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AlternateName, length must be less than or equal to 13.", new [] { "AlternateName" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions.cs b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions.cs index bea27323..6bf9d535 100644 --- a/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions.cs +++ b/Model/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SECCode (string) maxLength - if(this.SECCode != null && this.SECCode.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SECCode, length must be less than or equal to 3.", new [] { "SECCode" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultShippingAddress.cs b/Model/Tmsv2customersEmbeddedDefaultShippingAddress.cs index a24373b3..4cf6a5ce 100644 --- a/Model/Tmsv2customersEmbeddedDefaultShippingAddress.cs +++ b/Model/Tmsv2customersEmbeddedDefaultShippingAddress.cs @@ -187,18 +187,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 32.", new [] { "Id" }); - } - - // Id (string) minLength - if(this.Id != null && this.Id.Length <= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than or equal to 1.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.cs b/Model/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.cs index 472a6cec..2cedb39f 100644 --- a/Model/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.cs +++ b/Model/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.cs @@ -292,72 +292,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Company (string) maxLength - if(this.Company != null && this.Company.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Company, length must be less than or equal to 60.", new [] { "Company" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 320) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 320.", new [] { "Email" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/Tmsv2customersMerchantDefinedInformation.cs b/Model/Tmsv2customersMerchantDefinedInformation.cs index 79211d3a..6e678960 100644 --- a/Model/Tmsv2customersMerchantDefinedInformation.cs +++ b/Model/Tmsv2customersMerchantDefinedInformation.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Value (string) maxLength - if(this.Value != null && this.Value.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Value, length must be less than or equal to 100.", new [] { "Value" }); - } - yield break; } } diff --git a/Model/Tmsv2customersObjectInformation.cs b/Model/Tmsv2customersObjectInformation.cs index 6a0a86ad..4ec82aae 100644 --- a/Model/Tmsv2customersObjectInformation.cs +++ b/Model/Tmsv2customersObjectInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Title (string) maxLength - if(this.Title != null && this.Title.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than or equal to 60.", new [] { "Title" }); - } - - // Comment (string) maxLength - if(this.Comment != null && this.Comment.Length >= 150) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Comment, length must be less than or equal to 150.", new [] { "Comment" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200Response.cs b/Model/TssV2TransactionsGet200Response.cs index 4412ea98..dae81379 100644 --- a/Model/TssV2TransactionsGet200Response.cs +++ b/Model/TssV2TransactionsGet200Response.cs @@ -512,24 +512,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - - // RootId (string) maxLength - if(this.RootId != null && this.RootId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RootId, length must be less than or equal to 26.", new [] { "RootId" }); - } - - // ReconciliationId (string) maxLength - if(this.ReconciliationId != null && this.ReconciliationId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReconciliationId, length must be less than or equal to 60.", new [] { "ReconciliationId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseBuyerInformation.cs b/Model/TssV2TransactionsGet200ResponseBuyerInformation.cs index db7d3142..cabdc587 100644 --- a/Model/TssV2TransactionsGet200ResponseBuyerInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseBuyerInformation.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - - // HashedPassword (string) maxLength - if(this.HashedPassword != null && this.HashedPassword.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HashedPassword, length must be less than or equal to 100.", new [] { "HashedPassword" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.cs b/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.cs index bc52ea72..0e884ad1 100644 --- a/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseClientReferenceInformation.cs @@ -190,18 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - - // Comments (string) maxLength - if(this.Comments != null && this.Comments.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Comments, length must be less than or equal to 255.", new [] { "Comments" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.cs b/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.cs index 310c5c48..2a7271f6 100644 --- a/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.cs @@ -189,24 +189,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // EciRaw (string) maxLength - if(this.EciRaw != null && this.EciRaw.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EciRaw, length must be less than or equal to 2.", new [] { "EciRaw" }); - } - - // Cavv (string) maxLength - if(this.Cavv != null && this.Cavv.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Cavv, length must be less than or equal to 40.", new [] { "Cavv" }); - } - - // Xid (string) maxLength - if(this.Xid != null && this.Xid.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Xid, length must be less than or equal to 40.", new [] { "Xid" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication.cs b/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication.cs index cc0c1949..d563a06e 100644 --- a/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication.cs +++ b/Model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication.cs @@ -190,36 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // LowValueExemptionIndicator (string) maxLength - if(this.LowValueExemptionIndicator != null && this.LowValueExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LowValueExemptionIndicator, length must be less than or equal to 1.", new [] { "LowValueExemptionIndicator" }); - } - - // RiskAnalysisExemptionIndicator (string) maxLength - if(this.RiskAnalysisExemptionIndicator != null && this.RiskAnalysisExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RiskAnalysisExemptionIndicator, length must be less than or equal to 1.", new [] { "RiskAnalysisExemptionIndicator" }); - } - - // TrustedMerchantExemptionIndicator (string) maxLength - if(this.TrustedMerchantExemptionIndicator != null && this.TrustedMerchantExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TrustedMerchantExemptionIndicator, length must be less than or equal to 1.", new [] { "TrustedMerchantExemptionIndicator" }); - } - - // SecureCorporatePaymentIndicator (string) maxLength - if(this.SecureCorporatePaymentIndicator != null && this.SecureCorporatePaymentIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SecureCorporatePaymentIndicator, length must be less than or equal to 1.", new [] { "SecureCorporatePaymentIndicator" }); - } - - // DelegatedAuthenticationExemptionIndicator (string) maxLength - if(this.DelegatedAuthenticationExemptionIndicator != null && this.DelegatedAuthenticationExemptionIndicator.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DelegatedAuthenticationExemptionIndicator, length must be less than or equal to 1.", new [] { "DelegatedAuthenticationExemptionIndicator" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseDeviceInformation.cs b/Model/TssV2TransactionsGet200ResponseDeviceInformation.cs index 23d39232..48da24ad 100644 --- a/Model/TssV2TransactionsGet200ResponseDeviceInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseDeviceInformation.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - - // HostName (string) maxLength - if(this.HostName != null && this.HostName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for HostName, length must be less than or equal to 60.", new [] { "HostName" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.cs b/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.cs index be3d7e47..450f7d09 100644 --- a/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.cs +++ b/Model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TotalAmount (string) maxLength - if(this.TotalAmount != null && this.TotalAmount.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TotalAmount, length must be less than or equal to 19.", new [] { "TotalAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 12.", new [] { "TaxAmount" }); - } - - // AuthorizedAmount (string) maxLength - if(this.AuthorizedAmount != null && this.AuthorizedAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthorizedAmount, length must be less than or equal to 15.", new [] { "AuthorizedAmount" }); - } - - // SettlementAmount (string) maxLength - if(this.SettlementAmount != null && this.SettlementAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementAmount, length must be less than or equal to 12.", new [] { "SettlementAmount" }); - } - - // SettlementCurrency (string) maxLength - if(this.SettlementCurrency != null && this.SettlementCurrency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SettlementCurrency, length must be less than or equal to 3.", new [] { "SettlementCurrency" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.cs b/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.cs index 0a4c72a4..6d81e81c 100644 --- a/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.cs +++ b/Model/TssV2TransactionsGet200ResponseOrderInformationBillTo.cs @@ -343,90 +343,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // MiddleName (string) maxLength - if(this.MiddleName != null && this.MiddleName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MiddleName, length must be less than or equal to 60.", new [] { "MiddleName" }); - } - - // NameSuffix (string) maxLength - if(this.NameSuffix != null && this.NameSuffix.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NameSuffix, length must be less than or equal to 60.", new [] { "NameSuffix" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Company (string) maxLength - if(this.Company != null && this.Company.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Company, length must be less than or equal to 60.", new [] { "Company" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // Title (string) maxLength - if(this.Title != null && this.Title.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be less than or equal to 60.", new [] { "Title" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseOrderInformationInvoiceDetails.cs b/Model/TssV2TransactionsGet200ResponseOrderInformationInvoiceDetails.cs index aad3da7f..40c4aaac 100644 --- a/Model/TssV2TransactionsGet200ResponseOrderInformationInvoiceDetails.cs +++ b/Model/TssV2TransactionsGet200ResponseOrderInformationInvoiceDetails.cs @@ -123,7 +123,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { // SalesSlipNumber (int?) maximum - if(this.SalesSlipNumber >= (int?)99999) + if(this.SalesSlipNumber > (int?)99999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SalesSlipNumber, must be a value less than or equal to 99999.", new [] { "SalesSlipNumber" }); } diff --git a/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.cs b/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.cs index 35bc4089..d2fb501b 100644 --- a/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.cs +++ b/Model/TssV2TransactionsGet200ResponseOrderInformationLineItems.cs @@ -224,48 +224,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // ProductSku (string) maxLength - if(this.ProductSku != null && this.ProductSku.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSku, length must be less than or equal to 255.", new [] { "ProductSku" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.cs b/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.cs index 66e7e710..b22a017c 100644 --- a/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.cs +++ b/Model/TssV2TransactionsGet200ResponseOrderInformationShipTo.cs @@ -275,66 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 20.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Company (string) maxLength - if(this.Company != null && this.Company.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Company, length must be less than or equal to 60.", new [] { "Company" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.cs b/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.cs index 125f8ef9..d2b2f3b3 100644 --- a/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.cs +++ b/Model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ShippingMethod (string) maxLength - if(this.ShippingMethod != null && this.ShippingMethod.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShippingMethod, length must be less than or equal to 10.", new [] { "ShippingMethod" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.cs b/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.cs index 1304bff6..69933022 100644 --- a/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.cs +++ b/Model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // BalanceAmount (string) maxLength - if(this.BalanceAmount != null && this.BalanceAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BalanceAmount, length must be less than or equal to 12.", new [] { "BalanceAmount" }); - } - - // PreviousBalanceAmount (string) maxLength - if(this.PreviousBalanceAmount != null && this.PreviousBalanceAmount.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PreviousBalanceAmount, length must be less than or equal to 12.", new [] { "PreviousBalanceAmount" }); - } - - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 5.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.cs b/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.cs index 0187c162..c63493bd 100644 --- a/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.cs +++ b/Model/TssV2TransactionsGet200ResponsePaymentInformationBank.cs @@ -222,12 +222,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Iban (string) maxLength - if(this.Iban != null && this.Iban.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Iban, length must be less than or equal to 50.", new [] { "Iban" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.cs b/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.cs index 879d93a5..422c6490 100644 --- a/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.cs +++ b/Model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.cs @@ -224,24 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // CheckNumber (string) maxLength - if(this.CheckNumber != null && this.CheckNumber.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CheckNumber, length must be less than or equal to 8.", new [] { "CheckNumber" }); - } - - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 1.", new [] { "Type" }); - } - - // EncoderId (string) maxLength - if(this.EncoderId != null && this.EncoderId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncoderId, length must be less than or equal to 3.", new [] { "EncoderId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.cs b/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.cs index 8fcf1ee0..86862644 100644 --- a/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.cs +++ b/Model/TssV2TransactionsGet200ResponsePaymentInformationCard.cs @@ -275,54 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Prefix (string) maxLength - if(this.Prefix != null && this.Prefix.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Prefix, length must be less than or equal to 6.", new [] { "Prefix" }); - } - - // ExpirationMonth (string) maxLength - if(this.ExpirationMonth != null && this.ExpirationMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationMonth, length must be less than or equal to 2.", new [] { "ExpirationMonth" }); - } - - // ExpirationYear (string) maxLength - if(this.ExpirationYear != null && this.ExpirationYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpirationYear, length must be less than or equal to 4.", new [] { "ExpirationYear" }); - } - - // StartMonth (string) maxLength - if(this.StartMonth != null && this.StartMonth.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be less than or equal to 2.", new [] { "StartMonth" }); - } - - // StartYear (string) maxLength - if(this.StartYear != null && this.StartYear.Length >= 4) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be less than or equal to 4.", new [] { "StartYear" }); - } - - // IssueNumber (string) maxLength - if(this.IssueNumber != null && this.IssueNumber.Length >= 5) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be less than or equal to 5.", new [] { "IssueNumber" }); - } - - // AccountEncoderId (string) maxLength - if(this.AccountEncoderId != null && this.AccountEncoderId.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountEncoderId, length must be less than or equal to 3.", new [] { "AccountEncoderId" }); - } - - // UseAs (string) maxLength - if(this.UseAs != null && this.UseAs.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UseAs, length must be less than or equal to 20.", new [] { "UseAs" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.cs b/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.cs index 9d8a5fe1..8bca45ea 100644 --- a/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.cs +++ b/Model/TssV2TransactionsGet200ResponsePointOfSaleInformation.cs @@ -172,26 +172,14 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 8.", new [] { "TerminalId" }); - } - - // EntryMode (string) maxLength - if(this.EntryMode != null && this.EntryMode.Length >= 11) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EntryMode, length must be less than or equal to 11.", new [] { "EntryMode" }); - } - // TerminalCapability (int?) maximum - if(this.TerminalCapability >= (int?)5) + if(this.TerminalCapability > (int?)5) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCapability, must be a value less than or equal to 5.", new [] { "TerminalCapability" }); } // TerminalCapability (int?) minimum - if(this.TerminalCapability <= (int?)1) + if(this.TerminalCapability < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalCapability, must be a value greater than or equal to 1.", new [] { "TerminalCapability" }); } diff --git a/Model/TssV2TransactionsGet200ResponseProcessingInformation.cs b/Model/TssV2TransactionsGet200ResponseProcessingInformation.cs index 8b2680ca..0c297324 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessingInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessingInformation.cs @@ -221,24 +221,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IndustryDataType (string) maxLength - if(this.IndustryDataType != null && this.IndustryDataType.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IndustryDataType, length must be less than or equal to 20.", new [] { "IndustryDataType" }); - } - - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 50.", new [] { "PaymentSolution" }); - } - - // CommerceIndicator (string) maxLength - if(this.CommerceIndicator != null && this.CommerceIndicator.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommerceIndicator, length must be less than or equal to 20.", new [] { "CommerceIndicator" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.cs b/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.cs index 5c62285d..7a92f362 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.cs @@ -138,12 +138,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AuthType (string) maxLength - if(this.AuthType != null && this.AuthType.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthType, length must be less than or equal to 15.", new [] { "AuthType" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.cs b/Model/TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.cs index 12977b5c..155a784b 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentMethod (string) maxLength - if(this.PaymentMethod != null && this.PaymentMethod.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentMethod, length must be less than or equal to 2.", new [] { "PaymentMethod" }); - } - - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 13) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 13.", new [] { "TerminalId" }); - } - - // BusinessName (string) maxLength - if(this.BusinessName != null && this.BusinessName.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessName, length must be less than or equal to 25.", new [] { "BusinessName" }); - } - - // BusinessNameKatakana (string) maxLength - if(this.BusinessNameKatakana != null && this.BusinessNameKatakana.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BusinessNameKatakana, length must be less than or equal to 25.", new [] { "BusinessNameKatakana" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseProcessorInformation.cs b/Model/TssV2TransactionsGet200ResponseProcessorInformation.cs index 99323100..aade8bdc 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessorInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessorInformation.cs @@ -321,36 +321,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TransactionId (string) maxLength - if(this.TransactionId != null && this.TransactionId.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TransactionId, length must be less than or equal to 50.", new [] { "TransactionId" }); - } - - // ApprovalCode (string) maxLength - if(this.ApprovalCode != null && this.ApprovalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApprovalCode, length must be less than or equal to 6.", new [] { "ApprovalCode" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - - // SystemTraceAuditNumber (string) maxLength - if(this.SystemTraceAuditNumber != null && this.SystemTraceAuditNumber.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SystemTraceAuditNumber, length must be less than or equal to 6.", new [] { "SystemTraceAuditNumber" }); - } - - // ResponseCodeSource (string) maxLength - if(this.ResponseCodeSource != null && this.ResponseCodeSource.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCodeSource, length must be less than or equal to 1.", new [] { "ResponseCodeSource" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.cs b/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.cs index c82ef0f7..1b994035 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.cs @@ -275,66 +275,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 1.", new [] { "Email" }); - } - - // EmailRaw (string) maxLength - if(this.EmailRaw != null && this.EmailRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EmailRaw, length must be less than or equal to 1.", new [] { "EmailRaw" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - - // NameRaw (string) maxLength - if(this.NameRaw != null && this.NameRaw.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NameRaw, length must be less than or equal to 30.", new [] { "NameRaw" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 1.", new [] { "PhoneNumber" }); - } - - // PhoneNumberRaw (string) maxLength - if(this.PhoneNumberRaw != null && this.PhoneNumberRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumberRaw, length must be less than or equal to 1.", new [] { "PhoneNumberRaw" }); - } - - // Street (string) maxLength - if(this.Street != null && this.Street.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Street, length must be less than or equal to 1.", new [] { "Street" }); - } - - // StreetRaw (string) maxLength - if(this.StreetRaw != null && this.StreetRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StreetRaw, length must be less than or equal to 1.", new [] { "StreetRaw" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 1.", new [] { "PostalCode" }); - } - - // PostalCodeRaw (string) maxLength - if(this.PostalCodeRaw != null && this.PostalCodeRaw.Length >= 1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCodeRaw, length must be less than or equal to 1.", new [] { "PostalCodeRaw" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting.cs b/Model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting.cs index 22538a68..75aac9a7 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting.cs @@ -173,18 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - - // ResponseCode (string) maxLength - if(this.ResponseCode != null && this.ResponseCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResponseCode, length must be less than or equal to 10.", new [] { "ResponseCode" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.cs b/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.cs index 5d97e962..b08e8a80 100644 --- a/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.cs +++ b/Model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 30) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 30.", new [] { "Name" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseRiskInformationRules.cs b/Model/TssV2TransactionsGet200ResponseRiskInformationRules.cs index 4b3a5887..95ee77db 100644 --- a/Model/TssV2TransactionsGet200ResponseRiskInformationRules.cs +++ b/Model/TssV2TransactionsGet200ResponseRiskInformationRules.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 255.", new [] { "Name" }); - } - - // Decision (string) maxLength - if(this.Decision != null && this.Decision.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Decision, length must be less than or equal to 255.", new [] { "Decision" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsGet200ResponseSenderInformation.cs b/Model/TssV2TransactionsGet200ResponseSenderInformation.cs index 5207b04a..0abb67bb 100644 --- a/Model/TssV2TransactionsGet200ResponseSenderInformation.cs +++ b/Model/TssV2TransactionsGet200ResponseSenderInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ReferenceNumber (string) maxLength - if(this.ReferenceNumber != null && this.ReferenceNumber.Length >= 19) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceNumber, length must be less than or equal to 19.", new [] { "ReferenceNumber" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201Response.cs b/Model/TssV2TransactionsPost201Response.cs index 6e8dc57f..0ce794a8 100644 --- a/Model/TssV2TransactionsPost201Response.cs +++ b/Model/TssV2TransactionsPost201Response.cs @@ -341,12 +341,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SearchId (string) maxLength - if(this.SearchId != null && this.SearchId.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SearchId, length must be less than or equal to 60.", new [] { "SearchId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.cs index 72d35ec6..0cbaa5b2 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // MerchantCustomerId (string) maxLength - if(this.MerchantCustomerId != null && this.MerchantCustomerId.Length >= 100) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MerchantCustomerId, length must be less than or equal to 100.", new [] { "MerchantCustomerId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.cs index 6dcb9318..f8283ba2 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.cs @@ -156,12 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.cs index 1c9032b0..ea23267c 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Xid (string) maxLength - if(this.Xid != null && this.Xid.Length >= 40) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Xid, length must be less than or equal to 40.", new [] { "Xid" }); - } - - // EciRaw (string) maxLength - if(this.EciRaw != null && this.EciRaw.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EciRaw, length must be less than or equal to 2.", new [] { "EciRaw" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.cs index 89f1fa94..bcd8ab10 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // IpAddress (string) maxLength - if(this.IpAddress != null && this.IpAddress.Length >= 45) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IpAddress, length must be less than or equal to 45.", new [] { "IpAddress" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.cs index 33dabe49..b975154e 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ResellerId (string) maxLength - if(this.ResellerId != null && this.ResellerId.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ResellerId, length must be less than or equal to 26.", new [] { "ResellerId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.cs index d83ea9b0..82d8e307 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Email (string) maxLength - if(this.Email != null && this.Email.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than or equal to 255.", new [] { "Email" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.cs index 4982bc63..de88818d 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.cs @@ -190,36 +190,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // FirstName (string) maxLength - if(this.FirstName != null && this.FirstName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than or equal to 60.", new [] { "FirstName" }); - } - - // LastName (string) maxLength - if(this.LastName != null && this.LastName.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than or equal to 60.", new [] { "LastName" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // PhoneNumber (string) maxLength - if(this.PhoneNumber != null && this.PhoneNumber.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than or equal to 15.", new [] { "PhoneNumber" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.cs index 8843f46e..4a718659 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.cs @@ -156,12 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Prefix (string) maxLength - if(this.Prefix != null && this.Prefix.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Prefix, length must be less than or equal to 6.", new [] { "Prefix" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.cs index 81ae8dc0..9eb1b402 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.cs @@ -172,18 +172,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TerminalId (string) maxLength - if(this.TerminalId != null && this.TerminalId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalId, length must be less than or equal to 8.", new [] { "TerminalId" }); - } - - // TerminalSerialNumber (string) maxLength - if(this.TerminalSerialNumber != null && this.TerminalSerialNumber.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TerminalSerialNumber, length must be less than or equal to 32.", new [] { "TerminalSerialNumber" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.cs index 6495858f..3eef1b69 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // OriginalTransactionId (string) maxLength - if(this.OriginalTransactionId != null && this.OriginalTransactionId.Length >= 32) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OriginalTransactionId, length must be less than or equal to 32.", new [] { "OriginalTransactionId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.cs index 9986550a..1d8a4a02 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.cs @@ -156,18 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // PaymentSolution (string) maxLength - if(this.PaymentSolution != null && this.PaymentSolution.Length >= 12) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PaymentSolution, length must be less than or equal to 12.", new [] { "PaymentSolution" }); - } - - // CommerceIndicator (string) maxLength - if(this.CommerceIndicator != null && this.CommerceIndicator.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for CommerceIndicator, length must be less than or equal to 20.", new [] { "CommerceIndicator" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs index 171e200f..aa4190b8 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.cs @@ -138,12 +138,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ApprovalCode (string) maxLength - if(this.ApprovalCode != null && this.ApprovalCode.Length >= 6) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ApprovalCode, length must be less than or equal to 6.", new [] { "ApprovalCode" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.cs index 45f7c476..b6b6e1c9 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.cs @@ -156,24 +156,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // TrueIpaddress (string) maxLength - if(this.TrueIpaddress != null && this.TrueIpaddress.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TrueIpaddress, length must be less than or equal to 255.", new [] { "TrueIpaddress" }); - } - - // Hash (string) maxLength - if(this.Hash != null && this.Hash.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Hash, length must be less than or equal to 255.", new [] { "Hash" }); - } - - // SmartId (string) maxLength - if(this.SmartId != null && this.SmartId.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SmartId, length must be less than or equal to 255.", new [] { "SmartId" }); - } - yield break; } } diff --git a/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs b/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs index 7c4fd9a8..ab596e63 100644 --- a/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs +++ b/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.cs @@ -397,12 +397,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/VasV2PaymentsPost201Response.cs b/Model/VasV2PaymentsPost201Response.cs index 1f2df358..7a6e19ac 100644 --- a/Model/VasV2PaymentsPost201Response.cs +++ b/Model/VasV2PaymentsPost201Response.cs @@ -220,12 +220,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/VasV2PaymentsPost201ResponseOrderInformation.cs b/Model/VasV2PaymentsPost201ResponseOrderInformation.cs index 9a4de3df..74835aae 100644 --- a/Model/VasV2PaymentsPost201ResponseOrderInformation.cs +++ b/Model/VasV2PaymentsPost201ResponseOrderInformation.cs @@ -204,24 +204,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExemptAmount (string) maxLength - if(this.ExemptAmount != null && this.ExemptAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExemptAmount, length must be less than or equal to 15.", new [] { "ExemptAmount" }); - } - - // TaxableAmount (string) maxLength - if(this.TaxableAmount != null && this.TaxableAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxableAmount, length must be less than or equal to 15.", new [] { "TaxableAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - yield break; } } diff --git a/Model/VasV2PaymentsPost201ResponseOrderInformationJurisdiction.cs b/Model/VasV2PaymentsPost201ResponseOrderInformationJurisdiction.cs index afa8aaad..31a4ce60 100644 --- a/Model/VasV2PaymentsPost201ResponseOrderInformationJurisdiction.cs +++ b/Model/VasV2PaymentsPost201ResponseOrderInformationJurisdiction.cs @@ -258,60 +258,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 15.", new [] { "Type" }); - } - - // TaxName (string) maxLength - if(this.TaxName != null && this.TaxName.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxName, length must be less than or equal to 15.", new [] { "TaxName" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - - // Taxable (string) maxLength - if(this.Taxable != null && this.Taxable.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Taxable, length must be less than or equal to 15.", new [] { "Taxable" }); - } - - // Name (string) maxLength - if(this.Name != null && this.Name.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than or equal to 15.", new [] { "Name" }); - } - - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 15.", new [] { "Code" }); - } - - // Rate (string) maxLength - if(this.Rate != null && this.Rate.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Rate, length must be less than or equal to 15.", new [] { "Rate" }); - } - - // Region (string) maxLength - if(this.Region != null && this.Region.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Region, length must be less than or equal to 15.", new [] { "Region" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 15.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/VasV2PaymentsPost201ResponseOrderInformationLineItems.cs b/Model/VasV2PaymentsPost201ResponseOrderInformationLineItems.cs index f61640ea..2118697b 100644 --- a/Model/VasV2PaymentsPost201ResponseOrderInformationLineItems.cs +++ b/Model/VasV2PaymentsPost201ResponseOrderInformationLineItems.cs @@ -188,24 +188,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ExemptAmount (string) maxLength - if(this.ExemptAmount != null && this.ExemptAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExemptAmount, length must be less than or equal to 15.", new [] { "ExemptAmount" }); - } - - // TaxableAmount (string) maxLength - if(this.TaxableAmount != null && this.TaxableAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxableAmount, length must be less than or equal to 15.", new [] { "TaxableAmount" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - yield break; } } diff --git a/Model/VasV2PaymentsPost201ResponseOrderInformationTaxDetails.cs b/Model/VasV2PaymentsPost201ResponseOrderInformationTaxDetails.cs index 45c9370e..0b94dd9c 100644 --- a/Model/VasV2PaymentsPost201ResponseOrderInformationTaxDetails.cs +++ b/Model/VasV2PaymentsPost201ResponseOrderInformationTaxDetails.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Type (string) maxLength - if(this.Type != null && this.Type.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be less than or equal to 15.", new [] { "Type" }); - } - - // Amount (string) maxLength - if(this.Amount != null && this.Amount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Amount, length must be less than or equal to 15.", new [] { "Amount" }); - } - yield break; } } diff --git a/Model/VasV2TaxVoid200Response.cs b/Model/VasV2TaxVoid200Response.cs index aa51fe10..c3db0f34 100644 --- a/Model/VasV2TaxVoid200Response.cs +++ b/Model/VasV2TaxVoid200Response.cs @@ -188,12 +188,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) maxLength - if(this.Id != null && this.Id.Length >= 26) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be less than or equal to 26.", new [] { "Id" }); - } - yield break; } } diff --git a/Model/VasV2TaxVoid200ResponseVoidAmountDetails.cs b/Model/VasV2TaxVoid200ResponseVoidAmountDetails.cs index 175f7721..73d4816c 100644 --- a/Model/VasV2TaxVoid200ResponseVoidAmountDetails.cs +++ b/Model/VasV2TaxVoid200ResponseVoidAmountDetails.cs @@ -139,12 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Currency (string) maxLength - if(this.Currency != null && this.Currency.Length >= 3) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than or equal to 3.", new [] { "Currency" }); - } - yield break; } } diff --git a/Model/Vasv2taxBuyerInformation.cs b/Model/Vasv2taxBuyerInformation.cs index cac31925..410e19e5 100644 --- a/Model/Vasv2taxBuyerInformation.cs +++ b/Model/Vasv2taxBuyerInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 20) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 20.", new [] { "VatRegistrationNumber" }); - } - yield break; } } diff --git a/Model/Vasv2taxClientReferenceInformation.cs b/Model/Vasv2taxClientReferenceInformation.cs index b489a9d9..79ed2aa3 100644 --- a/Model/Vasv2taxClientReferenceInformation.cs +++ b/Model/Vasv2taxClientReferenceInformation.cs @@ -155,12 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Vasv2taxMerchantInformation.cs b/Model/Vasv2taxMerchantInformation.cs index 8fa601a7..0ecc9d98 100644 --- a/Model/Vasv2taxMerchantInformation.cs +++ b/Model/Vasv2taxMerchantInformation.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // VatRegistrationNumber (string) maxLength - if(this.VatRegistrationNumber != null && this.VatRegistrationNumber.Length >= 21) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for VatRegistrationNumber, length must be less than or equal to 21.", new [] { "VatRegistrationNumber" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationBillTo.cs b/Model/Vasv2taxOrderInformationBillTo.cs index 5ddfd4fa..5d536a97 100644 --- a/Model/Vasv2taxOrderInformationBillTo.cs +++ b/Model/Vasv2taxOrderInformationBillTo.cs @@ -207,42 +207,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationInvoiceDetails.cs b/Model/Vasv2taxOrderInformationInvoiceDetails.cs index 5b21c5f4..b5b76e14 100644 --- a/Model/Vasv2taxOrderInformationInvoiceDetails.cs +++ b/Model/Vasv2taxOrderInformationInvoiceDetails.cs @@ -122,12 +122,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // InvoiceDate (string) maxLength - if(this.InvoiceDate != null && this.InvoiceDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for InvoiceDate, length must be less than or equal to 8.", new [] { "InvoiceDate" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationLineItems.cs b/Model/Vasv2taxOrderInformationLineItems.cs index 63061dd9..2ffb0936 100644 --- a/Model/Vasv2taxOrderInformationLineItems.cs +++ b/Model/Vasv2taxOrderInformationLineItems.cs @@ -341,84 +341,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ProductSKU (string) maxLength - if(this.ProductSKU != null && this.ProductSKU.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductSKU, length must be less than or equal to 255.", new [] { "ProductSKU" }); - } - - // ProductCode (string) maxLength - if(this.ProductCode != null && this.ProductCode.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductCode, length must be less than or equal to 255.", new [] { "ProductCode" }); - } - // Quantity (int?) maximum - if(this.Quantity >= (int?)999999999) + if(this.Quantity > (int?)999999999) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value less than or equal to 999999999.", new [] { "Quantity" }); } // Quantity (int?) minimum - if(this.Quantity <= (int?)1) + if(this.Quantity < (int?)1) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); } - // ProductName (string) maxLength - if(this.ProductName != null && this.ProductName.Length >= 255) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than or equal to 255.", new [] { "ProductName" }); - } - - // UnitPrice (string) maxLength - if(this.UnitPrice != null && this.UnitPrice.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UnitPrice, length must be less than or equal to 15.", new [] { "UnitPrice" }); - } - - // TaxAmount (string) maxLength - if(this.TaxAmount != null && this.TaxAmount.Length >= 15) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for TaxAmount, length must be less than or equal to 15.", new [] { "TaxAmount" }); - } - - // ShipFromCountry (string) maxLength - if(this.ShipFromCountry != null && this.ShipFromCountry.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromCountry, length must be less than or equal to 2.", new [] { "ShipFromCountry" }); - } - - // ShipFromAdministrativeArea (string) maxLength - if(this.ShipFromAdministrativeArea != null && this.ShipFromAdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromAdministrativeArea, length must be less than or equal to 2.", new [] { "ShipFromAdministrativeArea" }); - } - - // ShipFromLocality (string) maxLength - if(this.ShipFromLocality != null && this.ShipFromLocality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromLocality, length must be less than or equal to 50.", new [] { "ShipFromLocality" }); - } - - // ShipFromPostalCode (string) maxLength - if(this.ShipFromPostalCode != null && this.ShipFromPostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromPostalCode, length must be less than or equal to 10.", new [] { "ShipFromPostalCode" }); - } - - // BuyerVatRegistrationNumber (string) maxLength - if(this.BuyerVatRegistrationNumber != null && this.BuyerVatRegistrationNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BuyerVatRegistrationNumber, length must be less than or equal to 25.", new [] { "BuyerVatRegistrationNumber" }); - } - - // SellerVatRegistrationNumber (string) maxLength - if(this.SellerVatRegistrationNumber != null && this.SellerVatRegistrationNumber.Length >= 25) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SellerVatRegistrationNumber, length must be less than or equal to 25.", new [] { "SellerVatRegistrationNumber" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationOrderAcceptance.cs b/Model/Vasv2taxOrderInformationOrderAcceptance.cs index f1e23c9e..678b2364 100644 --- a/Model/Vasv2taxOrderInformationOrderAcceptance.cs +++ b/Model/Vasv2taxOrderInformationOrderAcceptance.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationOrderOrigin.cs b/Model/Vasv2taxOrderInformationOrderOrigin.cs index 7be950e9..057b121a 100644 --- a/Model/Vasv2taxOrderInformationOrderOrigin.cs +++ b/Model/Vasv2taxOrderInformationOrderOrigin.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationShipTo.cs b/Model/Vasv2taxOrderInformationShipTo.cs index 06ab9a6a..3682b540 100644 --- a/Model/Vasv2taxOrderInformationShipTo.cs +++ b/Model/Vasv2taxOrderInformationShipTo.cs @@ -224,48 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Country (string) maxLength - if(this.Country != null && this.Country.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Country, length must be less than or equal to 2.", new [] { "Country" }); - } - - // AdministrativeArea (string) maxLength - if(this.AdministrativeArea != null && this.AdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AdministrativeArea, length must be less than or equal to 2.", new [] { "AdministrativeArea" }); - } - - // Locality (string) maxLength - if(this.Locality != null && this.Locality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locality, length must be less than or equal to 50.", new [] { "Locality" }); - } - - // PostalCode (string) maxLength - if(this.PostalCode != null && this.PostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than or equal to 10.", new [] { "PostalCode" }); - } - - // Address1 (string) maxLength - if(this.Address1 != null && this.Address1.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address1, length must be less than or equal to 60.", new [] { "Address1" }); - } - - // Address2 (string) maxLength - if(this.Address2 != null && this.Address2.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address2, length must be less than or equal to 60.", new [] { "Address2" }); - } - - // Address3 (string) maxLength - if(this.Address3 != null && this.Address3.Length >= 60) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Address3, length must be less than or equal to 60.", new [] { "Address3" }); - } - yield break; } } diff --git a/Model/Vasv2taxOrderInformationShippingDetails.cs b/Model/Vasv2taxOrderInformationShippingDetails.cs index 318ec1d4..a82fa8d2 100644 --- a/Model/Vasv2taxOrderInformationShippingDetails.cs +++ b/Model/Vasv2taxOrderInformationShippingDetails.cs @@ -173,30 +173,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ShipFromLocality (string) maxLength - if(this.ShipFromLocality != null && this.ShipFromLocality.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromLocality, length must be less than or equal to 50.", new [] { "ShipFromLocality" }); - } - - // ShipFromCountry (string) maxLength - if(this.ShipFromCountry != null && this.ShipFromCountry.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromCountry, length must be less than or equal to 2.", new [] { "ShipFromCountry" }); - } - - // ShipFromPostalCode (string) maxLength - if(this.ShipFromPostalCode != null && this.ShipFromPostalCode.Length >= 10) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromPostalCode, length must be less than or equal to 10.", new [] { "ShipFromPostalCode" }); - } - - // ShipFromAdministrativeArea (string) maxLength - if(this.ShipFromAdministrativeArea != null && this.ShipFromAdministrativeArea.Length >= 2) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ShipFromAdministrativeArea, length must be less than or equal to 2.", new [] { "ShipFromAdministrativeArea" }); - } - yield break; } } diff --git a/Model/Vasv2taxTaxInformation.cs b/Model/Vasv2taxTaxInformation.cs index 749e3639..e91552ef 100644 --- a/Model/Vasv2taxTaxInformation.cs +++ b/Model/Vasv2taxTaxInformation.cs @@ -224,18 +224,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ReportingDate (string) maxLength - if(this.ReportingDate != null && this.ReportingDate.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReportingDate, length must be less than or equal to 8.", new [] { "ReportingDate" }); - } - - // DateOverrideReason (string) maxLength - if(this.DateOverrideReason != null && this.DateOverrideReason.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DateOverrideReason, length must be less than or equal to 50.", new [] { "DateOverrideReason" }); - } - yield break; } } diff --git a/Model/Vasv2taxidClientReferenceInformation.cs b/Model/Vasv2taxidClientReferenceInformation.cs index 63faac24..4ec79041 100644 --- a/Model/Vasv2taxidClientReferenceInformation.cs +++ b/Model/Vasv2taxidClientReferenceInformation.cs @@ -155,12 +155,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Code (string) maxLength - if(this.Code != null && this.Code.Length >= 50) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Code, length must be less than or equal to 50.", new [] { "Code" }); - } - yield break; } } diff --git a/Model/Vasv2taxidClientReferenceInformationPartner.cs b/Model/Vasv2taxidClientReferenceInformationPartner.cs index 3b5d0427..cacee4cb 100644 --- a/Model/Vasv2taxidClientReferenceInformationPartner.cs +++ b/Model/Vasv2taxidClientReferenceInformationPartner.cs @@ -139,18 +139,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SolutionId (string) maxLength - if(this.SolutionId != null && this.SolutionId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SolutionId, length must be less than or equal to 8.", new [] { "SolutionId" }); - } - - // DeveloperId (string) maxLength - if(this.DeveloperId != null && this.DeveloperId.Length >= 8) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeveloperId, length must be less than or equal to 8.", new [] { "DeveloperId" }); - } - yield break; } } diff --git a/docs/ChargebackDetailsApi.md b/docs/ChargebackDetailsApi.md new file mode 100644 index 00000000..ef7e7e00 --- /dev/null +++ b/docs/ChargebackDetailsApi.md @@ -0,0 +1,74 @@ +# CyberSource.Api.ChargebackDetailsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetChargebackDetails**](ChargebackDetailsApi.md#getchargebackdetails) | **GET** /reporting/v3/chargeback-details | Get Chargeback Details + + + +# **GetChargebackDetails** +> ReportingV3ChargebackDetailsGet200Response GetChargebackDetails (DateTime? startTime, DateTime? endTime, string organizationId = null) + +Get Chargeback Details + +Chargeback Detail Report Description + +### Example +```csharp +using System; +using System.Diagnostics; +using CyberSource.Api; +using CyberSource.Client; +using CyberSource.Model; + +namespace Example +{ + public class GetChargebackDetailsExample + { + public void main() + { + var apiInstance = new ChargebackDetailsApi(); + var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) + + try + { + // Get Chargeback Details + ReportingV3ChargebackDetailsGet200Response result = apiInstance.GetChargebackDetails(startTime, endTime, organizationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChargebackDetailsApi.GetChargebackDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **organizationId** | **string**| Valid Organization Id | [optional] + +### Return type + +[**ReportingV3ChargebackDetailsGet200Response**](ReportingV3ChargebackDetailsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ChargebackSummariesApi.md b/docs/ChargebackSummariesApi.md new file mode 100644 index 00000000..3942447e --- /dev/null +++ b/docs/ChargebackSummariesApi.md @@ -0,0 +1,74 @@ +# CyberSource.Api.ChargebackSummariesApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetChargebackSummaries**](ChargebackSummariesApi.md#getchargebacksummaries) | **GET** /reporting/v3/chargeback-summaries | Get Chargeback Summaries + + + +# **GetChargebackSummaries** +> ReportingV3ChargebackSummariesGet200Response GetChargebackSummaries (DateTime? startTime, DateTime? endTime, string organizationId = null) + +Get Chargeback Summaries + +Chargeback Summary Report Description + +### Example +```csharp +using System; +using System.Diagnostics; +using CyberSource.Api; +using CyberSource.Client; +using CyberSource.Model; + +namespace Example +{ + public class GetChargebackSummariesExample + { + public void main() + { + var apiInstance = new ChargebackSummariesApi(); + var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) + + try + { + // Get Chargeback Summaries + ReportingV3ChargebackSummariesGet200Response result = apiInstance.GetChargebackSummaries(startTime, endTime, organizationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling ChargebackSummariesApi.GetChargebackSummaries: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **organizationId** | **string**| Valid Organization Id | [optional] + +### Return type + +[**ReportingV3ChargebackSummariesGet200Response**](ReportingV3ChargebackSummariesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ConversionDetailsApi.md b/docs/ConversionDetailsApi.md index 90212029..1ed8563f 100644 --- a/docs/ConversionDetailsApi.md +++ b/docs/ConversionDetailsApi.md @@ -32,7 +32,7 @@ namespace Example var apiInstance = new ConversionDetailsApi(); var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -55,7 +55,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type diff --git a/docs/InterchangeClearingLevelDetailsApi.md b/docs/InterchangeClearingLevelDetailsApi.md new file mode 100644 index 00000000..641f02d4 --- /dev/null +++ b/docs/InterchangeClearingLevelDetailsApi.md @@ -0,0 +1,74 @@ +# CyberSource.Api.InterchangeClearingLevelDetailsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetInterchangeClearingLevelDetails**](InterchangeClearingLevelDetailsApi.md#getinterchangeclearingleveldetails) | **GET** /reporting/v3/interchange-clearing-level-details | Interchange Clearing Level data for an account or a merchant + + + +# **GetInterchangeClearingLevelDetails** +> ReportingV3InterchangeClearingLevelDetailsGet200Response GetInterchangeClearingLevelDetails (DateTime? startTime, DateTime? endTime, string organizationId = null) + +Interchange Clearing Level data for an account or a merchant + +Interchange Clearing Level data for an account or a merchant + +### Example +```csharp +using System; +using System.Diagnostics; +using CyberSource.Api; +using CyberSource.Client; +using CyberSource.Model; + +namespace Example +{ + public class GetInterchangeClearingLevelDetailsExample + { + public void main() + { + var apiInstance = new InterchangeClearingLevelDetailsApi(); + var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) + + try + { + // Interchange Clearing Level data for an account or a merchant + ReportingV3InterchangeClearingLevelDetailsGet200Response result = apiInstance.GetInterchangeClearingLevelDetails(startTime, endTime, organizationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling InterchangeClearingLevelDetailsApi.GetInterchangeClearingLevelDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **organizationId** | **string**| Valid Organization Id | [optional] + +### Return type + +[**ReportingV3InterchangeClearingLevelDetailsGet200Response**](ReportingV3InterchangeClearingLevelDetailsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/NetFundingsApi.md b/docs/NetFundingsApi.md index 47f5411f..4bea7e06 100644 --- a/docs/NetFundingsApi.md +++ b/docs/NetFundingsApi.md @@ -32,7 +32,7 @@ namespace Example var apiInstance = new NetFundingsApi(); var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) var groupName = groupName_example; // string | Valid CyberSource Group Name. (optional) try @@ -56,7 +56,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] **groupName** | **string**| Valid CyberSource Group Name. | [optional] ### Return type diff --git a/docs/PaymentBatchSummariesApi.md b/docs/PaymentBatchSummariesApi.md index b860c80c..4538b3ed 100644 --- a/docs/PaymentBatchSummariesApi.md +++ b/docs/PaymentBatchSummariesApi.md @@ -32,7 +32,7 @@ namespace Example var apiInstance = new PaymentBatchSummariesApi(); var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) var rollUp = rollUp_example; // string | Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant (optional) var breakdown = breakdown_example; // string | Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. (optional) var startDayOfWeek = 56; // int? | Optional - Start day of week to breakdown data for weeks in a month (optional) @@ -58,7 +58,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] **rollUp** | **string**| Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant | [optional] **breakdown** | **string**| Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant. | [optional] **startDayOfWeek** | **int?**| Optional - Start day of week to breakdown data for weeks in a month | [optional] diff --git a/docs/Ptsv2paymentsClientReferenceInformation.md b/docs/Ptsv2paymentsClientReferenceInformation.md index ea7b5c12..0d7768f8 100644 --- a/docs/Ptsv2paymentsClientReferenceInformation.md +++ b/docs/Ptsv2paymentsClientReferenceInformation.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **string** | Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports. | [optional] +**PausedRequestId** | **string** | Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call. | [optional] **TransactionId** | **string** | Identifier that you assign to the transaction. Normally generated by a client server to identify a unique API request. **Note** Use this field only if you want to support merchant-initiated reversal and void operations. #### Used by **Authorization, Authorization Reversal, Capture, Credit, and Void** Optional field. #### PIN Debit For a PIN debit reversal, your request must include a request ID or a merchant transaction identifier. Optional field for PIN debit purchase or credit requests. | [optional] **Comments** | **string** | Comments | [optional] **Partner** | [**Ptsv2paymentsClientReferenceInformationPartner**](Ptsv2paymentsClientReferenceInformationPartner.md) | | [optional] diff --git a/docs/PurchaseAndRefundDetailsApi.md b/docs/PurchaseAndRefundDetailsApi.md index adab0360..40f468e7 100644 --- a/docs/PurchaseAndRefundDetailsApi.md +++ b/docs/PurchaseAndRefundDetailsApi.md @@ -32,7 +32,7 @@ namespace Example var apiInstance = new PurchaseAndRefundDetailsApi(); var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) var paymentSubtype = paymentSubtype_example; // string | Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit (optional) (default to ALL) var viewBy = viewBy_example; // string | View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date (optional) (default to requestDate) var groupName = groupName_example; // string | Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds (optional) @@ -60,7 +60,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] **paymentSubtype** | **string**| Payment Subtypes. - **ALL**: All Payment Subtypes - **VI** : Visa - **MC** : Master Card - **AX** : American Express - **DI** : Discover - **DP** : Pinless Debit | [optional] [default to ALL] **viewBy** | **string**| View results by Request Date or Submission Date. - **requestDate** : Request Date - **submissionDate**: Submission Date | [optional] [default to requestDate] **groupName** | **string**| Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds | [optional] diff --git a/docs/ReportDefinitionsApi.md b/docs/ReportDefinitionsApi.md index 6edff6df..b22d27b0 100644 --- a/docs/ReportDefinitionsApi.md +++ b/docs/ReportDefinitionsApi.md @@ -34,7 +34,7 @@ namespace Example var reportDefinitionName = reportDefinitionName_example; // string | Name of the Report definition to retrieve var subscriptionType = subscriptionType_example; // string | The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) var reportMimeType = reportMimeType_example; // string | The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv (optional) - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -58,7 +58,7 @@ Name | Type | Description | Notes **reportDefinitionName** | **string**| Name of the Report definition to retrieve | **subscriptionType** | **string**| The subscription type for which report definition is required. By default the type will be CUSTOM. Valid Values: - CLASSIC - CUSTOM - STANDARD | [optional] **reportMimeType** | **string**| The format for which the report definition is required. By default the value will be CSV. Valid Values: - application/xml - text/csv | [optional] - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -99,7 +99,7 @@ namespace Example { var apiInstance = new ReportDefinitionsApi(); var subscriptionType = subscriptionType_example; // string | Valid Values: - CLASSIC - CUSTOM - STANDARD (optional) - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -121,7 +121,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **subscriptionType** | **string**| Valid Values: - CLASSIC - CUSTOM - STANDARD | [optional] - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type diff --git a/docs/ReportDownloadsApi.md b/docs/ReportDownloadsApi.md index ed8524bb..1f6de81e 100644 --- a/docs/ReportDownloadsApi.md +++ b/docs/ReportDownloadsApi.md @@ -32,7 +32,7 @@ namespace Example var apiInstance = new ReportDownloadsApi(); var reportDate = 2013-10-20; // DateTime? | Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 var reportName = reportName_example; // string | Name of the report to download - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -54,7 +54,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **reportDate** | **DateTime?**| Valid date on which to download the report in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** yyyy-mm-dd For reports that span multiple days, this value would be the end date of the report in the time zone of the report subscription. Example 1: If your report start date is 2020-03-06 and the end date is 2020-03-09, the reportDate passed in the query is 2020-03-09. Example 2: If your report runs from midnight to midnight on 2020-03-09, the reportDate passed in the query is 2020-03-10 | **reportName** | **string**| Name of the report to download | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type diff --git a/docs/ReportSubscriptionsApi.md b/docs/ReportSubscriptionsApi.md index 95e77ac3..cf9633af 100644 --- a/docs/ReportSubscriptionsApi.md +++ b/docs/ReportSubscriptionsApi.md @@ -35,7 +35,7 @@ namespace Example { var apiInstance = new ReportSubscriptionsApi(); var predefinedSubscriptionRequestBean = new PredefinedSubscriptionRequestBean(); // PredefinedSubscriptionRequestBean | Report subscription request payload - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -56,7 +56,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **predefinedSubscriptionRequestBean** | [**PredefinedSubscriptionRequestBean**](PredefinedSubscriptionRequestBean.md)| Report subscription request payload | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -97,7 +97,7 @@ namespace Example { var apiInstance = new ReportSubscriptionsApi(); var createReportSubscriptionRequest = new CreateReportSubscriptionRequest(); // CreateReportSubscriptionRequest | Report subscription request payload - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -118,7 +118,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **createReportSubscriptionRequest** | [**CreateReportSubscriptionRequest**](CreateReportSubscriptionRequest.md)| Report subscription request payload | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -159,7 +159,7 @@ namespace Example { var apiInstance = new ReportSubscriptionsApi(); var reportName = reportName_example; // string | Name of the Report to Delete - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -180,7 +180,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **reportName** | **string**| Name of the Report to Delete | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -220,7 +220,7 @@ namespace Example public void main() { var apiInstance = new ReportSubscriptionsApi(); - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -241,7 +241,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -282,7 +282,7 @@ namespace Example { var apiInstance = new ReportSubscriptionsApi(); var reportName = reportName_example; // string | Name of the Report to Retrieve - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -304,7 +304,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **reportName** | **string**| Name of the Report to Retrieve | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type diff --git a/docs/ReportingV3ChargebackDetailsGet200Response.md b/docs/ReportingV3ChargebackDetailsGet200Response.md new file mode 100644 index 00000000..346a3aa4 --- /dev/null +++ b/docs/ReportingV3ChargebackDetailsGet200Response.md @@ -0,0 +1,12 @@ +# CyberSource.Model.ReportingV3ChargebackDetailsGet200Response +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | Organization Id | [optional] +**StartTime** | **DateTime?** | Report Start Date (ISO 8601 Extended) | [optional] +**EndTime** | **DateTime?** | Report Start Date (ISO 8601 Extended) | [optional] +**ChargebackDetails** | [**List<ReportingV3ChargebackDetailsGet200ResponseChargebackDetails>**](ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.md) | List of Chargeback Details list. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.md b/docs/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.md new file mode 100644 index 00000000..6c1d010d --- /dev/null +++ b/docs/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.md @@ -0,0 +1,30 @@ +# CyberSource.Model.ReportingV3ChargebackDetailsGet200ResponseChargebackDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessorMerchantId** | **string** | Processor Merchant Id | [optional] +**MerchantName** | **string** | Merchant Name | [optional] +**TransactionReferenceNumber** | **string** | Transaction Reference Number | [optional] +**MerchantReferenceNumber** | **string** | Merchant Reference Number | [optional] +**NatureOfDispute** | **string** | Nature of Dispute | [optional] +**AlertType** | **string** | Chargeback Alert Type | [optional] +**Amount** | **string** | Chargeback Amount | [optional] +**Sign** | **string** | Chargeback Sign | [optional] +**Action** | **string** | Chargeback Action | [optional] +**CardType** | **string** | Card Type | [optional] +**OriginalSettlementTime** | **DateTime?** | Original Settlement Date | [optional] +**TrackingNumber** | **string** | Tracking Number | [optional] +**CurrencyCode** | **string** | Valid ISO 4217 ALPHA-3 currency code | [optional] +**RequestId** | **string** | Request Id | [optional] +**ResponseDueTime** | **DateTime?** | Response Due Date | [optional] +**Time** | **DateTime?** | Chargeback Date | [optional] +**ActionDescription** | **string** | Chargeback Action Description | [optional] +**CustomerId** | **string** | Customer Id | [optional] +**ReasonCode** | **string** | Chargeback Reason Code | [optional] +**RepresentmentCPTime** | **DateTime?** | Representment CP Date | [optional] +**Applications** | **string** | ICS Request Applications | [optional] +**EventRequestedTime** | **DateTime?** | Event Request Date | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3ChargebackSummariesGet200Response.md b/docs/ReportingV3ChargebackSummariesGet200Response.md new file mode 100644 index 00000000..b156942f --- /dev/null +++ b/docs/ReportingV3ChargebackSummariesGet200Response.md @@ -0,0 +1,12 @@ +# CyberSource.Model.ReportingV3ChargebackSummariesGet200Response +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | Organization Id | [optional] +**StartTime** | **DateTime?** | Report Start Date | [optional] +**EndTime** | **string** | Report Start Date | [optional] +**ChargebackSummaries** | [**List<ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries>**](ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.md) | List of Summary values | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.md b/docs/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.md new file mode 100644 index 00000000..a905c5a2 --- /dev/null +++ b/docs/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.md @@ -0,0 +1,11 @@ +# CyberSource.Model.ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **decimal?** | Chargeback summary list count | [optional] +**Time** | **DateTime?** | Summary Date | [optional] +**AccountId** | **string** | Account Id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3InterchangeClearingLevelDetailsGet200Response.md b/docs/ReportingV3InterchangeClearingLevelDetailsGet200Response.md new file mode 100644 index 00000000..4d721a3a --- /dev/null +++ b/docs/ReportingV3InterchangeClearingLevelDetailsGet200Response.md @@ -0,0 +1,11 @@ +# CyberSource.Model.ReportingV3InterchangeClearingLevelDetailsGet200Response +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDate** | **DateTime?** | Valid report Start Date in **ISO 8601 format**. Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ | [optional] +**EndDate** | **DateTime?** | Valid report Start Date in **ISO 8601 format**. | [optional] +**InterchangeClearingLevelDetails** | [**List<ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails>**](ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.md) | List of InterchangeClearingLevelDetail | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.md b/docs/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.md new file mode 100644 index 00000000..08814f19 --- /dev/null +++ b/docs/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.md @@ -0,0 +1,59 @@ +# CyberSource.Model.ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | **string** | | [optional] +**OrganizationId** | **string** | | [optional] +**AccountId** | **string** | | [optional] +**ProcessorMerchantId** | **string** | | [optional] +**TransactionReferenceNumber** | **string** | | [optional] +**MerchantReferenceNumber** | **string** | | [optional] +**AccountSuffix** | **string** | | [optional] +**PaymentSubType** | **string** | | [optional] +**PaymentSubTypeDescription** | **string** | | [optional] +**TransactionTime** | **DateTime?** | | [optional] +**ProcessedTime** | **DateTime?** | | [optional] +**TransactionType** | **string** | | [optional] +**Amount** | **string** | | [optional] +**CurrencyCode** | **string** | Valid ISO 4217 ALPHA-3 currency code | [optional] +**PriceType** | **string** | | [optional] +**PriceAmountOne** | **string** | | [optional] +**PriceAmountTwo** | **string** | | [optional] +**ReClass** | **string** | | [optional] +**SettlementTime** | **DateTime?** | | [optional] +**SettlementProcessor** | **string** | | [optional] +**MerchantBatchNumber** | **string** | | [optional] +**ClearedLevel** | **string** | | [optional] +**BillbackReasonCode** | **string** | | [optional] +**BillbackReasonDescription** | **string** | | [optional] +**MerchantPricedLevel** | **string** | | [optional] +**DiscountRate** | **string** | | [optional] +**DiscountAmount** | **string** | | [optional] +**ClearingRateAmountOne** | **string** | | [optional] +**ClearingRateAmountTwo** | **string** | | [optional] +**ClearingRateAmountThree** | **string** | | [optional] +**ClearingRateCurrencyCode** | **string** | Valid ISO 4217 ALPHA-3 currency code | [optional] +**InterchangeAmount** | **string** | | [optional] +**BillbackAmount** | **string** | | [optional] +**SettlementAmount** | **string** | | [optional] +**SettlementCurrencyCode** | **string** | Valid ISO 4217 ALPHA-3 currency code | [optional] +**ConversionRate** | **string** | | [optional] +**DeltaCost** | **string** | | [optional] +**SurchargeAmount** | **string** | | [optional] +**PercentRateCharged** | **string** | | [optional] +**PerTransactionCharged** | **string** | | [optional] +**DowngradeReasonCode** | **string** | | [optional] +**ProcessTime** | **DateTime?** | | [optional] +**AuthCode** | **string** | | [optional] +**BatchTime** | **DateTime?** | | [optional] +**ProcessorBatchNumber** | **string** | | [optional] +**CardIndicator** | **string** | | [optional] +**MinimumUnit** | **int?** | | [optional] +**MinimumUnitCurrencyCode** | **string** | Valid ISO 4217 ALPHA-3 currency code | [optional] +**CreditDeltaIndicator** | **string** | | [optional] +**FeeCategory** | **string** | | [optional] +**ApplicationName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3RetrievalDetailsGet200Response.md b/docs/ReportingV3RetrievalDetailsGet200Response.md new file mode 100644 index 00000000..f899ab85 --- /dev/null +++ b/docs/ReportingV3RetrievalDetailsGet200Response.md @@ -0,0 +1,12 @@ +# CyberSource.Model.ReportingV3RetrievalDetailsGet200Response +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | Organization Id | [optional] +**StartTime** | **DateTime?** | Report Start Date (ISO 8601 Extended) | [optional] +**EndTime** | **DateTime?** | Report Start Date (ISO 8601 Extended) | [optional] +**RetrievalDetails** | [**List<ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails>**](ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.md) | List of Retrieval Details list. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.md b/docs/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.md new file mode 100644 index 00000000..7e53875a --- /dev/null +++ b/docs/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.md @@ -0,0 +1,30 @@ +# CyberSource.Model.ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProcessorMerchantId** | **string** | Processor Merchant Id | [optional] +**MerchantName** | **string** | Merchant Name | [optional] +**TransactionReferenceNumber** | **string** | Transaction Reference Number | [optional] +**MerchantReferenceNumber** | **string** | Merchant Reference Number | [optional] +**NatureOfDispute** | **string** | Nature of Dispute | [optional] +**AlertType** | **string** | Retrieval Alert Type | [optional] +**Amount** | **string** | Retrieval Amount | [optional] +**Sign** | **string** | Retrieval Sign | [optional] +**Action** | **string** | Retrieval Action | [optional] +**CardType** | **string** | Card Type | [optional] +**OriginalSettlementTime** | **DateTime?** | Original Settlement Date | [optional] +**TrackingNumber** | **string** | Tracking Number | [optional] +**CurrencyCode** | **string** | Valid ISO 4217 ALPHA-3 currency code | [optional] +**RequestId** | **string** | Request Id | [optional] +**ResponseDueTime** | **DateTime?** | Response Due Date | [optional] +**Time** | **DateTime?** | Retrieval Date | [optional] +**ActionDescription** | **string** | Retrieval Action Description | [optional] +**CustomerId** | **string** | Customer Id | [optional] +**ReasonCode** | **string** | Retrieval Reason Code | [optional] +**RepresentmentCPTime** | **DateTime?** | Representment CP Date | [optional] +**Applications** | **string** | ICS Request Applications | [optional] +**EventRequestedTime** | **DateTime?** | Event Request Date | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportingV3RetrievalSummariesGet200Response.md b/docs/ReportingV3RetrievalSummariesGet200Response.md new file mode 100644 index 00000000..468826e6 --- /dev/null +++ b/docs/ReportingV3RetrievalSummariesGet200Response.md @@ -0,0 +1,12 @@ +# CyberSource.Model.ReportingV3RetrievalSummariesGet200Response +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | Organization Id | [optional] +**StartTime** | **DateTime?** | Report Start Date | [optional] +**EndTime** | **string** | Report Start Date | [optional] +**RetrievalSummaries** | [**List<ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries>**](ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.md) | List of Summary values | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md index ab5783ed..49173722 100644 --- a/docs/ReportsApi.md +++ b/docs/ReportsApi.md @@ -33,7 +33,7 @@ namespace Example { var apiInstance = new ReportsApi(); var createAdhocReportRequest = new CreateAdhocReportRequest(); // CreateAdhocReportRequest | Report subscription request payload - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -54,7 +54,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **createAdhocReportRequest** | [**CreateAdhocReportRequest**](CreateAdhocReportRequest.md)| Report subscription request payload | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -95,7 +95,7 @@ namespace Example { var apiInstance = new ReportsApi(); var reportId = reportId_example; // string | Valid Report Id - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) try { @@ -117,7 +117,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **reportId** | **string**| Valid Report Id | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] ### Return type @@ -160,7 +160,7 @@ namespace Example var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) var timeQueryType = timeQueryType_example; // string | Specify time you would like to search Valid values: - reportTimeFrame - executedTime - var organizationId = organizationId_example; // string | Valid Cybersource Organization Id (optional) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) var reportMimeType = reportMimeType_example; // string | Valid Report Format Valid values: - application/xml - text/csv (optional) var reportFrequency = reportFrequency_example; // string | Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC (optional) var reportName = reportName_example; // string | Valid Report Name (optional) @@ -189,7 +189,7 @@ Name | Type | Description | Notes **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | **timeQueryType** | **string**| Specify time you would like to search Valid values: - reportTimeFrame - executedTime | - **organizationId** | **string**| Valid Cybersource Organization Id | [optional] + **organizationId** | **string**| Valid Organization Id | [optional] **reportMimeType** | **string**| Valid Report Format Valid values: - application/xml - text/csv | [optional] **reportFrequency** | **string**| Valid Report Frequency Valid values: - DAILY - WEEKLY - MONTHLY - USER_DEFINED - ADHOC | [optional] **reportName** | **string**| Valid Report Name | [optional] diff --git a/docs/RetrievalDetailsApi.md b/docs/RetrievalDetailsApi.md new file mode 100644 index 00000000..495c01d9 --- /dev/null +++ b/docs/RetrievalDetailsApi.md @@ -0,0 +1,74 @@ +# CyberSource.Api.RetrievalDetailsApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetRetrievalDetails**](RetrievalDetailsApi.md#getretrievaldetails) | **GET** /reporting/v3/retrieval-details | Get Retrieval Details + + + +# **GetRetrievalDetails** +> ReportingV3RetrievalDetailsGet200Response GetRetrievalDetails (DateTime? startTime, DateTime? endTime, string organizationId = null) + +Get Retrieval Details + +Retrieval Detail Report Description + +### Example +```csharp +using System; +using System.Diagnostics; +using CyberSource.Api; +using CyberSource.Client; +using CyberSource.Model; + +namespace Example +{ + public class GetRetrievalDetailsExample + { + public void main() + { + var apiInstance = new RetrievalDetailsApi(); + var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) + + try + { + // Get Retrieval Details + ReportingV3RetrievalDetailsGet200Response result = apiInstance.GetRetrievalDetails(startTime, endTime, organizationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RetrievalDetailsApi.GetRetrievalDetails: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **organizationId** | **string**| Valid Organization Id | [optional] + +### Return type + +[**ReportingV3RetrievalDetailsGet200Response**](ReportingV3RetrievalDetailsGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RetrievalSummariesApi.md b/docs/RetrievalSummariesApi.md new file mode 100644 index 00000000..f803d0e8 --- /dev/null +++ b/docs/RetrievalSummariesApi.md @@ -0,0 +1,74 @@ +# CyberSource.Api.RetrievalSummariesApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetRetrievalSummary**](RetrievalSummariesApi.md#getretrievalsummary) | **GET** /reporting/v3/retrieval-summaries | Get Retrieval Summaries + + + +# **GetRetrievalSummary** +> ReportingV3RetrievalSummariesGet200Response GetRetrievalSummary (DateTime? startTime, DateTime? endTime, string organizationId = null) + +Get Retrieval Summaries + +Retrieval Summary Report Description + +### Example +```csharp +using System; +using System.Diagnostics; +using CyberSource.Api; +using CyberSource.Client; +using CyberSource.Model; + +namespace Example +{ + public class GetRetrievalSummaryExample + { + public void main() + { + var apiInstance = new RetrievalSummariesApi(); + var startTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var endTime = 2013-10-20T19:20:30+01:00; // DateTime? | Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) + var organizationId = organizationId_example; // string | Valid Organization Id (optional) + + try + { + // Get Retrieval Summaries + ReportingV3RetrievalSummariesGet200Response result = apiInstance.GetRetrievalSummary(startTime, endTime, organizationId); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling RetrievalSummariesApi.GetRetrievalSummary: " + e.Message ); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startTime** | **DateTime?**| Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **endTime** | **DateTime?**| Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z) | + **organizationId** | **string**| Valid Organization Id | [optional] + +### Return type + +[**ReportingV3RetrievalSummariesGet200Response**](ReportingV3RetrievalSummariesGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=utf-8 + - **Accept**: application/hal+json, application/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/generator/cybersource-csharp-template/modelGeneric.mustache b/generator/cybersource-csharp-template/modelGeneric.mustache index c12010c8..4c84bc86 100644 --- a/generator/cybersource-csharp-template/modelGeneric.mustache +++ b/generator/cybersource-csharp-template/modelGeneric.mustache @@ -209,26 +209,10 @@ this.{{name}} = {{name}}; IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { {{#vars}} - {{#hasValidation}} - {{#maxLength}} - // {{{name}}} ({{{datatype}}}) maxLength - if(this.{{{name}}} != null && this.{{{name}}}.Length >= {{maxLength}}) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, length must be less than or equal to {{maxLength}}.", new [] { "{{{name}}}" }); - } - - {{/maxLength}} - {{#minLength}} - // {{{name}}} ({{{datatype}}}) minLength - if(this.{{{name}}} != null && this.{{{name}}}.Length <= {{minLength}}) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, length must be greater than or equal to {{minLength}}.", new [] { "{{{name}}}" }); - } - - {{/minLength}} + {{#hasValidation}} {{#maximum}} // {{{name}}} ({{{datatype}}}) maximum - if(this.{{{name}}} >= ({{{datatype}}}){{maximum}}) + if(this.{{{name}}} > ({{{datatype}}}){{maximum}}) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must be a value less than or equal to {{maximum}}.", new [] { "{{{name}}}" }); } @@ -236,7 +220,7 @@ this.{{name}} = {{name}}; {{/maximum}} {{#minimum}} // {{{name}}} ({{{datatype}}}) minimum - if(this.{{{name}}} <= ({{{datatype}}}){{minimum}}) + if(this.{{{name}}} < ({{{datatype}}}){{minimum}}) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for {{{name}}}, must be a value greater than or equal to {{minimum}}.", new [] { "{{{name}}}" }); } diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 478e6dd3..4acaa59b 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -92,10 +92,6 @@ "name": "Subscriptions", "description": "Create and manage Recurring Subscriptions.\n\nYou have option to link subscription to plan or create independent subscriptions.\n" }, - { - "name": "Report Downloads", - "description": "API for creation and retrieval of Reports" - }, { "name": "Reports", "description": "API for creation and retrieval of Reports" @@ -104,10 +100,18 @@ "name": "Report Definitions", "description": "Get report definition information" }, + { + "name": "Report Downloads", + "description": "API for creation and retrieval of Reports" + }, { "name": "Report Subscriptions", "description": "API for creation and retrieval of Report Subscriptions" }, + { + "name": "Net Fundings", + "description": "API for retrieving the netfunding data for an account or a merchant" + }, { "name": "Notification Of Changes", "description": "API for Notification Of Change" @@ -120,10 +124,6 @@ "name": "Payment Batch Summaries", "description": "API for payment batch summary reports" }, - { - "name": "Net Fundings", - "description": "API for retrieving the netfunding data for an account or a merchant" - }, { "name": "Conversion Details", "description": "API for retrieving conversion data for merchant" @@ -136,6 +136,26 @@ "name": "Download XSD", "description": "API to download report XSDs" }, + { + "name": "Chargeback Summaries", + "description": "API for requesting Chargeback Summaries." + }, + { + "name": "Chargeback Details", + "description": "API for requesting Chargeback Details." + }, + { + "name": "Retrieval Summaries", + "description": "API for requesting Retrieval Summaries" + }, + { + "name": "Retrieval Details", + "description": "API for requesting Retrieval Details." + }, + { + "name": "Interchange Clearing Level Details", + "description": "API for requesting Interchange Clearing Level data for an account or a merchant." + }, { "name": "File Details", "description": "API to access file information" @@ -164,6 +184,10 @@ "name": "taxes", "description": "tax calculation service" }, + { + "name": "surcharge", + "description": "Surcharge service" + }, { "name": "key-management", "description": "Generate and deactivate batches of keys.\n" @@ -245,6 +269,9 @@ { "name": "Value_Added_Service" }, + { + "name": "Fee Service" + }, { "name": "Key_Management" }, @@ -289,6 +316,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -8832,6 +8864,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -9317,6 +9354,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -11913,6 +11955,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -14276,6 +14323,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -16617,6 +16669,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -20877,6 +20934,11 @@ "maxLength": 50, "description": "Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each\ntransaction so that you can perform meaningful searches for the transaction.\n\n#### Used by\n**Authorization**\nRequired field.\n\n#### PIN Debit\nRequests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being\nreversed.\n\nRequired field for all PIN Debit requests (purchase, credit, and reversal).\n\n#### FDC Nashville Global\nCertain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.\n" }, + "pausedRequestId": { + "type": "string", + "maxLength": 26, + "description": "Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.\n" + }, "transactionId": { "type": "string", "maxLength": 30, @@ -59634,7 +59696,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -59741,7 +59803,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -60002,7 +60064,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -60744,7 +60806,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -60959,7 +61021,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -61287,7 +61349,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -61480,7 +61542,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -61681,7 +61743,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -62423,7 +62485,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -62637,7 +62699,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -62780,7 +62842,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -63249,7 +63311,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -63905,7 +63967,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -64116,7 +64178,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -64399,7 +64461,7 @@ { "name": "organizationId", "in": "query", - "description": "Valid Cybersource Organization Id", + "description": "Valid Organization Id", "pattern": "[a-zA-Z0-9-_]+", "required": false, "type": "string", @@ -64848,6 +64910,1035 @@ } } }, + "/reporting/v3/chargeback-summaries": { + "get": { + "tags": [ + "Chargeback Summaries" + ], + "summary": "Get Chargeback Summaries", + "description": "Chargeback Summary Report Description", + "operationId": "getChargebackSummaries", + "x-devcenter-metaData": { + "categoryTag": "Reporting", + "enableDownload": true, + "accessLevel": "code", + "x-custom-headers": { + "accept": [ + "application/hal+json", + "application/xml" + ] + } + }, + "x-queryParameterDefaults": { + "organizationId": "testrest", + "startTime": "2019-08-01T00:00:00Z", + "endTime": "2019-09-01T23:59:59Z" + }, + "produces": [ + "application/hal+json", + "application/xml" + ], + "parameters": [ + { + "name": "startTime", + "in": "query", + "description": "Valid report Start Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "description": "Valid report End Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "organizationId", + "in": "query", + "description": "Valid Organization Id", + "pattern": "[a-zA-Z0-9-_]+", + "required": false, + "type": "string", + "minLength": 1, + "maxLength": 32 + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "title": "reportingV3ChargebackSummariesGet200Response", + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Organization Id", + "example": "testrest", + "xml": { + "name": "MerchantId", + "attribute": true + } + }, + "startTime": { + "type": "string", + "description": "Report Start Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time", + "xml": { + "name": "ReportStartDate", + "attribute": true + } + }, + "endTime": { + "type": "string", + "description": "Report Start Date", + "example": "2017-10-01T10:10:10+05:00", + "xml": { + "name": "ReportEndDate", + "attribute": true + } + }, + "chargebackSummaries": { + "type": "array", + "description": "List of Summary values", + "items": { + "type": "object", + "properties": { + "count": { + "type": "number", + "description": "Chargeback summary list count", + "example": "8" + }, + "time": { + "type": "string", + "description": "Summary Date", + "example": "2018-01-04T11:33:06.000-0800", + "format": "date-time" + }, + "accountId": { + "type": "string", + "description": "Account Id", + "example": "testrest_acct" + } + }, + "xml": { + "name": "Request", + "wrapped": true + } + } + } + }, + "xml": { + "name": "Report", + "wrapped": true + } + } + } + } + } + }, + "/reporting/v3/chargeback-details": { + "get": { + "tags": [ + "Chargeback Details" + ], + "summary": "Get Chargeback Details", + "description": "Chargeback Detail Report Description", + "operationId": "getChargebackDetails", + "x-devcenter-metaData": { + "categoryTag": "Reporting", + "enableDownload": true, + "accessLevel": "code", + "x-custom-headers": { + "accept": [ + "application/hal+json", + "application/xml" + ] + } + }, + "x-queryParameterDefaults": { + "organizationId": "testrest", + "startTime": "2019-08-01T00:00:00Z", + "endTime": "2019-09-01T23:59:59Z" + }, + "produces": [ + "application/hal+json", + "application/xml" + ], + "parameters": [ + { + "name": "startTime", + "in": "query", + "description": "Valid report Start Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "description": "Valid report End Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "organizationId", + "in": "query", + "description": "Valid Organization Id", + "pattern": "[a-zA-Z0-9-_]+", + "required": false, + "type": "string", + "minLength": 1, + "maxLength": 32 + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "title": "reportingV3ChargebackDetailsGet200Response", + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Organization Id", + "example": "testrest", + "xml": { + "name": "MerchantId", + "attribute": true + } + }, + "startTime": { + "type": "string", + "description": "Report Start Date (ISO 8601 Extended)", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time", + "xml": { + "name": "ReportStartDate", + "attribute": true + } + }, + "endTime": { + "type": "string", + "description": "Report Start Date (ISO 8601 Extended)", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time", + "xml": { + "name": "ReportEndDate", + "attribute": true + } + }, + "chargebackDetails": { + "type": "array", + "description": "List of Chargeback Details list.", + "items": { + "type": "object", + "properties": { + "processorMerchantId": { + "type": "string", + "description": "Processor Merchant Id", + "example": "174263416896" + }, + "merchantName": { + "type": "string", + "description": "Merchant Name", + "example": "Revolutionary Entertainment Inc" + }, + "transactionReferenceNumber": { + "type": "string", + "description": "Transaction Reference Number", + "example": "93983883073" + }, + "merchantReferenceNumber": { + "type": "string", + "description": "Merchant Reference Number", + "example": "X03434388DEADBEEF" + }, + "natureOfDispute": { + "type": "string", + "description": "Nature of Dispute", + "example": "Chargeback" + }, + "alertType": { + "type": "string", + "description": "Chargeback Alert Type", + "example": "2" + }, + "amount": { + "type": "string", + "description": "Chargeback Amount", + "example": "5" + }, + "sign": { + "type": "string", + "description": "Chargeback Sign", + "example": "C" + }, + "action": { + "type": "string", + "description": "Chargeback Action", + "example": "3" + }, + "cardType": { + "type": "string", + "description": "Card Type", + "example": "American Express" + }, + "originalSettlementTime": { + "type": "string", + "description": "Original Settlement Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "trackingNumber": { + "type": "string", + "description": "Tracking Number", + "example": "990175" + }, + "currencyCode": { + "type": "string", + "description": "Valid ISO 4217 ALPHA-3 currency code", + "example": "USD" + }, + "requestId": { + "type": "string", + "description": "Request Id", + "example": "5060113732046412501541" + }, + "responseDueTime": { + "type": "string", + "description": "Response Due Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "time": { + "type": "string", + "description": "Chargeback Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "actionDescription": { + "type": "string", + "description": "Chargeback Action Description", + "example": "Financial transaction" + }, + "customerId": { + "type": "string", + "description": "Customer Id", + "example": "937999JFK" + }, + "reasonCode": { + "type": "string", + "description": "Chargeback Reason Code", + "example": "1050" + }, + "representmentCPTime": { + "type": "string", + "description": "Representment CP Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "applications": { + "type": "string", + "description": "ICS Request Applications", + "example": "ics_bill" + }, + "eventRequestedTime": { + "type": "string", + "description": "Event Request Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + } + }, + "xml": { + "name": "Request", + "wrapped": true + } + } + } + }, + "xml": { + "name": "Report", + "wrapped": true + } + } + } + } + } + }, + "/reporting/v3/retrieval-summaries": { + "get": { + "tags": [ + "Retrieval Summaries" + ], + "summary": "Get Retrieval Summaries", + "description": "Retrieval Summary Report Description", + "operationId": "getRetrievalSummary", + "x-devcenter-metaData": { + "categoryTag": "Reporting", + "enableDownload": true, + "accessLevel": "code", + "x-custom-headers": { + "accept": [ + "application/hal+json", + "application/xml" + ] + } + }, + "x-queryParameterDefaults": { + "organizationId": "testrest", + "startTime": "2019-08-01T00:00:00Z", + "endTime": "2019-09-01T23:59:59Z" + }, + "produces": [ + "application/hal+json", + "application/xml" + ], + "parameters": [ + { + "name": "startTime", + "in": "query", + "description": "Valid report Start Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "description": "Valid report End Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "organizationId", + "in": "query", + "description": "Valid Organization Id", + "pattern": "[a-zA-Z0-9-_]+", + "required": false, + "type": "string", + "minLength": 1, + "maxLength": 32 + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "title": "reportingV3RetrievalSummariesGet200Response", + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Organization Id", + "example": "testrest", + "xml": { + "name": "MerchantId", + "attribute": true + } + }, + "startTime": { + "type": "string", + "description": "Report Start Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time", + "xml": { + "name": "ReportStartDate", + "attribute": true + } + }, + "endTime": { + "type": "string", + "description": "Report Start Date", + "example": "2017-10-01T10:10:10+05:00", + "xml": { + "name": "ReportEndDate", + "attribute": true + } + }, + "retrievalSummaries": { + "type": "array", + "description": "List of Summary values", + "items": { + "type": "object", + "properties": { + "count": { + "type": "number", + "description": "Chargeback summary list count", + "example": "8" + }, + "time": { + "type": "string", + "description": "Summary Date", + "example": "2018-01-04T11:33:06.000-0800", + "format": "date-time" + }, + "accountId": { + "type": "string", + "description": "Account Id", + "example": "testrest_acct" + } + }, + "xml": { + "name": "Request", + "wrapped": true + } + } + } + }, + "xml": { + "name": "Report", + "wrapped": true + } + } + } + } + } + }, + "/reporting/v3/retrieval-details": { + "get": { + "tags": [ + "Retrieval Details" + ], + "summary": "Get Retrieval Details", + "description": "Retrieval Detail Report Description", + "operationId": "getRetrievalDetails", + "x-devcenter-metaData": { + "categoryTag": "Reporting", + "enableDownload": true, + "accessLevel": "code", + "x-custom-headers": { + "accept": [ + "application/hal+json", + "application/xml" + ] + } + }, + "x-queryParameterDefaults": { + "organizationId": "testrest", + "startTime": "2019-08-01T00:00:00Z", + "endTime": "2019-09-01T23:59:59Z" + }, + "produces": [ + "application/hal+json", + "application/xml" + ], + "parameters": [ + { + "name": "startTime", + "in": "query", + "description": "Valid report Start Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "description": "Valid report End Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "organizationId", + "in": "query", + "description": "Valid Organization Id", + "pattern": "[a-zA-Z0-9-_]+", + "required": false, + "type": "string", + "minLength": 1, + "maxLength": 32 + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "title": "reportingV3RetrievalDetailsGet200Response", + "type": "object", + "properties": { + "organizationId": { + "type": "string", + "description": "Organization Id", + "example": "testrest", + "xml": { + "name": "MerchantId", + "attribute": true + } + }, + "startTime": { + "type": "string", + "description": "Report Start Date (ISO 8601 Extended)", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time", + "xml": { + "name": "ReportStartDate", + "attribute": true + } + }, + "endTime": { + "type": "string", + "description": "Report Start Date (ISO 8601 Extended)", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time", + "xml": { + "name": "ReportEndDate", + "attribute": true + } + }, + "retrievalDetails": { + "type": "array", + "description": "List of Retrieval Details list.", + "items": { + "type": "object", + "properties": { + "processorMerchantId": { + "type": "string", + "description": "Processor Merchant Id", + "example": "174263416896" + }, + "merchantName": { + "type": "string", + "description": "Merchant Name", + "example": "ZZZZZZ USA_EUR" + }, + "transactionReferenceNumber": { + "type": "string", + "description": "Transaction Reference Number", + "example": "02230413" + }, + "merchantReferenceNumber": { + "type": "string", + "description": "Merchant Reference Number", + "example": "123" + }, + "natureOfDispute": { + "type": "string", + "description": "Nature of Dispute", + "example": "Retrieval" + }, + "alertType": { + "type": "string", + "description": "Retrieval Alert Type", + "example": "2" + }, + "amount": { + "type": "string", + "description": "Retrieval Amount", + "example": "5" + }, + "sign": { + "type": "string", + "description": "Retrieval Sign", + "example": "C" + }, + "action": { + "type": "string", + "description": "Retrieval Action", + "example": "3" + }, + "cardType": { + "type": "string", + "description": "Card Type", + "example": "American Express" + }, + "originalSettlementTime": { + "type": "string", + "description": "Original Settlement Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "trackingNumber": { + "type": "string", + "description": "Tracking Number", + "example": "990175" + }, + "currencyCode": { + "type": "string", + "description": "Valid ISO 4217 ALPHA-3 currency code", + "example": "USD" + }, + "requestId": { + "type": "string", + "description": "Request Id", + "example": "5060113732046412501541" + }, + "responseDueTime": { + "type": "string", + "description": "Response Due Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "time": { + "type": "string", + "description": "Retrieval Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "actionDescription": { + "type": "string", + "description": "Retrieval Action Description", + "example": "Financial transaction" + }, + "customerId": { + "type": "string", + "description": "Customer Id", + "example": "Customer Id" + }, + "reasonCode": { + "type": "string", + "description": "Retrieval Reason Code", + "example": "1050" + }, + "representmentCPTime": { + "type": "string", + "description": "Representment CP Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "applications": { + "type": "string", + "description": "ICS Request Applications", + "example": "ics_auth" + }, + "eventRequestedTime": { + "type": "string", + "description": "Event Request Date", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + } + }, + "xml": { + "name": "Request", + "wrapped": true + } + } + } + }, + "xml": { + "name": "Report", + "wrapped": true + } + } + } + } + } + }, + "/reporting/v3/interchange-clearing-level-details": { + "get": { + "tags": [ + "Interchange Clearing Level Details" + ], + "summary": "Interchange Clearing Level data for an account or a merchant", + "description": "Interchange Clearing Level data for an account or a merchant", + "operationId": "getInterchangeClearingLevelDetails", + "x-devcenter-metaData": { + "categoryTag": "Reporting", + "enableDownload": true, + "accessLevel": "code", + "x-custom-headers": { + "accept": [ + "application/hal+json", + "application/xml" + ] + } + }, + "x-queryParameterDefaults": { + "organizationId": "testrest", + "startTime": "2019-08-01T00:00:00Z", + "endTime": "2019-09-01T23:59:59Z" + }, + "produces": [ + "application/hal+json", + "application/xml" + ], + "parameters": [ + { + "name": "startTime", + "in": "query", + "description": "Valid report Start Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "endTime", + "in": "query", + "description": "Valid report End Time in **ISO 8601 format**\nPlease refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14)\n\n**Example date format:**\n - yyyy-MM-dd'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)\n", + "required": true, + "type": "string", + "format": "date-time" + }, + { + "name": "organizationId", + "in": "query", + "description": "Valid Organization Id", + "pattern": "[a-zA-Z0-9-_]+", + "required": false, + "type": "string", + "minLength": 1, + "maxLength": 32 + } + ], + "responses": { + "200": { + "description": "Ok", + "schema": { + "title": "reportingV3InterchangeClearingLevelDetailsGet200Response", + "type": "object", + "properties": { + "startDate": { + "type": "string", + "description": "Valid report Start Date in **ISO 8601 format**.\nPlease refer the following link to know more about ISO 8601 format.\n- https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14\n\n**Example:**\n- yyyy-MM-dd'T'HH:mm:ss.SSSZZ\n", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "endDate": { + "type": "string", + "description": "Valid report Start Date in **ISO 8601 format**.\n", + "example": "2017-10-01T10:10:10+05:00", + "format": "date-time" + }, + "interchangeClearingLevelDetails": { + "type": "array", + "description": "List of InterchangeClearingLevelDetail", + "items": { + "type": "object", + "properties": { + "requestId": { + "type": "string", + "example": "5166566062346232701541" + }, + "organizationId": { + "type": "string", + "example": "testrest" + }, + "accountId": { + "type": "string", + "example": "testrest_acct" + }, + "processorMerchantId": { + "type": "string", + "example": "174180221999" + }, + "transactionReferenceNumber": { + "type": "string", + "example": "21339480" + }, + "merchantReferenceNumber": { + "type": "string", + "example": "33557799" + }, + "accountSuffix": { + "type": "string", + "example": "2393" + }, + "paymentSubType": { + "type": "string", + "example": "VI" + }, + "paymentSubTypeDescription": { + "type": "string", + "example": "Visa" + }, + "transactionTime": { + "type": "string", + "format": "date-time", + "example": "2017-10-01T10:10:10+05:00" + }, + "processedTime": { + "type": "string", + "format": "date-time", + "example": "2017-10-01T10:10:10+05:00" + }, + "transactionType": { + "type": "string", + "example": "Sale" + }, + "amount": { + "type": "string", + "example": "90.50" + }, + "currencyCode": { + "type": "string", + "description": "Valid ISO 4217 ALPHA-3 currency code", + "example": "USD" + }, + "priceType": { + "type": "string", + "example": "077" + }, + "priceAmountOne": { + "type": "string", + "example": "0.018" + }, + "priceAmountTwo": { + "type": "string", + "example": "0.1" + }, + "reClass": { + "type": "string", + "example": "0" + }, + "settlementTime": { + "type": "string", + "format": "date-time", + "example": "2017-10-01T10:10:10+05:00" + }, + "settlementProcessor": { + "type": "string", + "example": "fdiglobal" + }, + "merchantBatchNumber": { + "type": "string", + "example": "000000037800" + }, + "clearedLevel": { + "type": "string", + "example": "REG" + }, + "billbackReasonCode": { + "type": "string", + "example": "VI" + }, + "billbackReasonDescription": { + "type": "string", + "example": "B278-TRANSACTION CLEARED AS REGULATED" + }, + "merchantPricedLevel": { + "type": "string", + "example": "1.72" + }, + "discountRate": { + "type": "string", + "example": "0.0" + }, + "discountAmount": { + "type": "string", + "example": "0.0" + }, + "clearingRateAmountOne": { + "type": "string", + "example": "0.005" + }, + "clearingRateAmountTwo": { + "type": "string", + "example": "0.22" + }, + "clearingRateAmountThree": { + "type": "string", + "example": "0.0" + }, + "clearingRateCurrencyCode": { + "type": "string", + "description": "Valid ISO 4217 ALPHA-3 currency code", + "example": "USD" + }, + "interchangeAmount": { + "type": "string", + "example": "0.27" + }, + "billbackAmount": { + "type": "string", + "example": "-1.46" + }, + "settlementAmount": { + "type": "string", + "example": "1.23" + }, + "settlementCurrencyCode": { + "type": "string", + "description": "Valid ISO 4217 ALPHA-3 currency code", + "example": "USD" + }, + "conversionRate": { + "type": "string", + "example": "1.0" + }, + "deltaCost": { + "type": "string", + "example": "5.0" + }, + "surchargeAmount": { + "type": "string", + "example": "5.0" + }, + "percentRateCharged": { + "type": "string", + "example": "5.5" + }, + "perTransactionCharged": { + "type": "string", + "example": "5.0" + }, + "downgradeReasonCode": { + "type": "string", + "example": "1" + }, + "processTime": { + "type": "string", + "format": "date-time", + "example": "2017-10-01T10:10:10+05:00" + }, + "authCode": { + "type": "string", + "example": "012628" + }, + "batchTime": { + "type": "string", + "format": "date-time", + "example": "2017-10-01T10:10:10+05:00" + }, + "processorBatchNumber": { + "type": "string", + "example": "00001" + }, + "cardIndicator": { + "type": "string", + "example": "P" + }, + "minimumUnit": { + "type": "integer", + "example": 1 + }, + "minimumUnitCurrencyCode": { + "type": "string", + "description": "Valid ISO 4217 ALPHA-3 currency code", + "example": "USD" + }, + "creditDeltaIndicator": { + "type": "string", + "example": "N" + }, + "feeCategory": { + "type": "string", + "example": "A" + }, + "applicationName": { + "type": "string", + "example": "ics_auth" + } + }, + "xml": { + "name": "Request" + } + } + } + }, + "xml": { + "name": "Report" + } + } + } + } + } + }, "/sfs/v1/file-details": { "get": { "tags": [ diff --git a/test/Api/ChargebackDetailsApiTests.cs b/test/Api/ChargebackDetailsApiTests.cs new file mode 100644 index 00000000..87bb91ac --- /dev/null +++ b/test/Api/ChargebackDetailsApiTests.cs @@ -0,0 +1,83 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using NUnit.Framework; + +using CyberSource.Client; +using CyberSource.Api; +using CyberSource.Model; + +namespace CyberSource.Test +{ + /// + /// Class for testing ChargebackDetailsApi + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the API endpoint. + /// + [TestFixture] + public class ChargebackDetailsApiTests + { + private ChargebackDetailsApi instance; + + /// + /// Setup before each unit test + /// + [SetUp] + public void Init() + { + instance = new ChargebackDetailsApi(); + } + + /// + /// Clean up after each unit test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ChargebackDetailsApi + /// + [Test] + public void InstanceTest() + { + // TODO uncomment below to test 'IsInstanceOfType' ChargebackDetailsApi + //Assert.IsInstanceOfType(typeof(ChargebackDetailsApi), instance, "instance is a ChargebackDetailsApi"); + } + + + /// + /// Test GetChargebackDetails + /// + [Test] + public void GetChargebackDetailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? startTime = null; + //DateTime? endTime = null; + //string organizationId = null; + //var response = instance.GetChargebackDetails(startTime, endTime, organizationId); + //Assert.IsInstanceOf (response, "response is ReportingV3ChargebackDetailsGet200Response"); + } + + } + +} diff --git a/test/Api/ChargebackSummariesApiTests.cs b/test/Api/ChargebackSummariesApiTests.cs new file mode 100644 index 00000000..96156ed3 --- /dev/null +++ b/test/Api/ChargebackSummariesApiTests.cs @@ -0,0 +1,83 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using NUnit.Framework; + +using CyberSource.Client; +using CyberSource.Api; +using CyberSource.Model; + +namespace CyberSource.Test +{ + /// + /// Class for testing ChargebackSummariesApi + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the API endpoint. + /// + [TestFixture] + public class ChargebackSummariesApiTests + { + private ChargebackSummariesApi instance; + + /// + /// Setup before each unit test + /// + [SetUp] + public void Init() + { + instance = new ChargebackSummariesApi(); + } + + /// + /// Clean up after each unit test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ChargebackSummariesApi + /// + [Test] + public void InstanceTest() + { + // TODO uncomment below to test 'IsInstanceOfType' ChargebackSummariesApi + //Assert.IsInstanceOfType(typeof(ChargebackSummariesApi), instance, "instance is a ChargebackSummariesApi"); + } + + + /// + /// Test GetChargebackSummaries + /// + [Test] + public void GetChargebackSummariesTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? startTime = null; + //DateTime? endTime = null; + //string organizationId = null; + //var response = instance.GetChargebackSummaries(startTime, endTime, organizationId); + //Assert.IsInstanceOf (response, "response is ReportingV3ChargebackSummariesGet200Response"); + } + + } + +} diff --git a/test/Api/InterchangeClearingLevelDetailsApiTests.cs b/test/Api/InterchangeClearingLevelDetailsApiTests.cs new file mode 100644 index 00000000..237ca7a2 --- /dev/null +++ b/test/Api/InterchangeClearingLevelDetailsApiTests.cs @@ -0,0 +1,83 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using NUnit.Framework; + +using CyberSource.Client; +using CyberSource.Api; +using CyberSource.Model; + +namespace CyberSource.Test +{ + /// + /// Class for testing InterchangeClearingLevelDetailsApi + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the API endpoint. + /// + [TestFixture] + public class InterchangeClearingLevelDetailsApiTests + { + private InterchangeClearingLevelDetailsApi instance; + + /// + /// Setup before each unit test + /// + [SetUp] + public void Init() + { + instance = new InterchangeClearingLevelDetailsApi(); + } + + /// + /// Clean up after each unit test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of InterchangeClearingLevelDetailsApi + /// + [Test] + public void InstanceTest() + { + // TODO uncomment below to test 'IsInstanceOfType' InterchangeClearingLevelDetailsApi + //Assert.IsInstanceOfType(typeof(InterchangeClearingLevelDetailsApi), instance, "instance is a InterchangeClearingLevelDetailsApi"); + } + + + /// + /// Test GetInterchangeClearingLevelDetails + /// + [Test] + public void GetInterchangeClearingLevelDetailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? startTime = null; + //DateTime? endTime = null; + //string organizationId = null; + //var response = instance.GetInterchangeClearingLevelDetails(startTime, endTime, organizationId); + //Assert.IsInstanceOf (response, "response is ReportingV3InterchangeClearingLevelDetailsGet200Response"); + } + + } + +} diff --git a/test/Api/RetrievalDetailsApiTests.cs b/test/Api/RetrievalDetailsApiTests.cs new file mode 100644 index 00000000..49de5085 --- /dev/null +++ b/test/Api/RetrievalDetailsApiTests.cs @@ -0,0 +1,83 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using NUnit.Framework; + +using CyberSource.Client; +using CyberSource.Api; +using CyberSource.Model; + +namespace CyberSource.Test +{ + /// + /// Class for testing RetrievalDetailsApi + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the API endpoint. + /// + [TestFixture] + public class RetrievalDetailsApiTests + { + private RetrievalDetailsApi instance; + + /// + /// Setup before each unit test + /// + [SetUp] + public void Init() + { + instance = new RetrievalDetailsApi(); + } + + /// + /// Clean up after each unit test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of RetrievalDetailsApi + /// + [Test] + public void InstanceTest() + { + // TODO uncomment below to test 'IsInstanceOfType' RetrievalDetailsApi + //Assert.IsInstanceOfType(typeof(RetrievalDetailsApi), instance, "instance is a RetrievalDetailsApi"); + } + + + /// + /// Test GetRetrievalDetails + /// + [Test] + public void GetRetrievalDetailsTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? startTime = null; + //DateTime? endTime = null; + //string organizationId = null; + //var response = instance.GetRetrievalDetails(startTime, endTime, organizationId); + //Assert.IsInstanceOf (response, "response is ReportingV3RetrievalDetailsGet200Response"); + } + + } + +} diff --git a/test/Api/RetrievalSummariesApiTests.cs b/test/Api/RetrievalSummariesApiTests.cs new file mode 100644 index 00000000..fa065efd --- /dev/null +++ b/test/Api/RetrievalSummariesApiTests.cs @@ -0,0 +1,83 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using NUnit.Framework; + +using CyberSource.Client; +using CyberSource.Api; +using CyberSource.Model; + +namespace CyberSource.Test +{ + /// + /// Class for testing RetrievalSummariesApi + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the API endpoint. + /// + [TestFixture] + public class RetrievalSummariesApiTests + { + private RetrievalSummariesApi instance; + + /// + /// Setup before each unit test + /// + [SetUp] + public void Init() + { + instance = new RetrievalSummariesApi(); + } + + /// + /// Clean up after each unit test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of RetrievalSummariesApi + /// + [Test] + public void InstanceTest() + { + // TODO uncomment below to test 'IsInstanceOfType' RetrievalSummariesApi + //Assert.IsInstanceOfType(typeof(RetrievalSummariesApi), instance, "instance is a RetrievalSummariesApi"); + } + + + /// + /// Test GetRetrievalSummary + /// + [Test] + public void GetRetrievalSummaryTest() + { + // TODO uncomment below to test the method and replace null with proper value + //DateTime? startTime = null; + //DateTime? endTime = null; + //string organizationId = null; + //var response = instance.GetRetrievalSummary(startTime, endTime, organizationId); + //Assert.IsInstanceOf (response, "response is ReportingV3RetrievalSummariesGet200Response"); + } + + } + +} diff --git a/test/Model/Ptsv2paymentsClientReferenceInformationTests.cs b/test/Model/Ptsv2paymentsClientReferenceInformationTests.cs index 6eae3a9e..e0269487 100644 --- a/test/Model/Ptsv2paymentsClientReferenceInformationTests.cs +++ b/test/Model/Ptsv2paymentsClientReferenceInformationTests.cs @@ -73,6 +73,14 @@ public void CodeTest() // TODO unit test for the property 'Code' } /// + /// Test the property 'PausedRequestId' + /// + [Test] + public void PausedRequestIdTest() + { + // TODO unit test for the property 'PausedRequestId' + } + /// /// Test the property 'TransactionId' /// [Test] diff --git a/test/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetailsTests.cs b/test/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetailsTests.cs new file mode 100644 index 00000000..df2a9124 --- /dev/null +++ b/test/Model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetailsTests.cs @@ -0,0 +1,246 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3ChargebackDetailsGet200ResponseChargebackDetails + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3ChargebackDetailsGet200ResponseChargebackDetailsTests + { + // TODO uncomment below to declare an instance variable for ReportingV3ChargebackDetailsGet200ResponseChargebackDetails + //private ReportingV3ChargebackDetailsGet200ResponseChargebackDetails instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3ChargebackDetailsGet200ResponseChargebackDetails + //instance = new ReportingV3ChargebackDetailsGet200ResponseChargebackDetails(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3ChargebackDetailsGet200ResponseChargebackDetails + /// + [Test] + public void ReportingV3ChargebackDetailsGet200ResponseChargebackDetailsInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3ChargebackDetailsGet200ResponseChargebackDetails + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3ChargebackDetailsGet200ResponseChargebackDetails"); + } + + /// + /// Test the property 'ProcessorMerchantId' + /// + [Test] + public void ProcessorMerchantIdTest() + { + // TODO unit test for the property 'ProcessorMerchantId' + } + /// + /// Test the property 'MerchantName' + /// + [Test] + public void MerchantNameTest() + { + // TODO unit test for the property 'MerchantName' + } + /// + /// Test the property 'TransactionReferenceNumber' + /// + [Test] + public void TransactionReferenceNumberTest() + { + // TODO unit test for the property 'TransactionReferenceNumber' + } + /// + /// Test the property 'MerchantReferenceNumber' + /// + [Test] + public void MerchantReferenceNumberTest() + { + // TODO unit test for the property 'MerchantReferenceNumber' + } + /// + /// Test the property 'NatureOfDispute' + /// + [Test] + public void NatureOfDisputeTest() + { + // TODO unit test for the property 'NatureOfDispute' + } + /// + /// Test the property 'AlertType' + /// + [Test] + public void AlertTypeTest() + { + // TODO unit test for the property 'AlertType' + } + /// + /// Test the property 'Amount' + /// + [Test] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'Sign' + /// + [Test] + public void SignTest() + { + // TODO unit test for the property 'Sign' + } + /// + /// Test the property 'Action' + /// + [Test] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'CardType' + /// + [Test] + public void CardTypeTest() + { + // TODO unit test for the property 'CardType' + } + /// + /// Test the property 'OriginalSettlementTime' + /// + [Test] + public void OriginalSettlementTimeTest() + { + // TODO unit test for the property 'OriginalSettlementTime' + } + /// + /// Test the property 'TrackingNumber' + /// + [Test] + public void TrackingNumberTest() + { + // TODO unit test for the property 'TrackingNumber' + } + /// + /// Test the property 'CurrencyCode' + /// + [Test] + public void CurrencyCodeTest() + { + // TODO unit test for the property 'CurrencyCode' + } + /// + /// Test the property 'RequestId' + /// + [Test] + public void RequestIdTest() + { + // TODO unit test for the property 'RequestId' + } + /// + /// Test the property 'ResponseDueTime' + /// + [Test] + public void ResponseDueTimeTest() + { + // TODO unit test for the property 'ResponseDueTime' + } + /// + /// Test the property 'Time' + /// + [Test] + public void TimeTest() + { + // TODO unit test for the property 'Time' + } + /// + /// Test the property 'ActionDescription' + /// + [Test] + public void ActionDescriptionTest() + { + // TODO unit test for the property 'ActionDescription' + } + /// + /// Test the property 'CustomerId' + /// + [Test] + public void CustomerIdTest() + { + // TODO unit test for the property 'CustomerId' + } + /// + /// Test the property 'ReasonCode' + /// + [Test] + public void ReasonCodeTest() + { + // TODO unit test for the property 'ReasonCode' + } + /// + /// Test the property 'RepresentmentCPTime' + /// + [Test] + public void RepresentmentCPTimeTest() + { + // TODO unit test for the property 'RepresentmentCPTime' + } + /// + /// Test the property 'Applications' + /// + [Test] + public void ApplicationsTest() + { + // TODO unit test for the property 'Applications' + } + /// + /// Test the property 'EventRequestedTime' + /// + [Test] + public void EventRequestedTimeTest() + { + // TODO unit test for the property 'EventRequestedTime' + } + + } + +} diff --git a/test/Model/ReportingV3ChargebackDetailsGet200ResponseTests.cs b/test/Model/ReportingV3ChargebackDetailsGet200ResponseTests.cs new file mode 100644 index 00000000..627cfd27 --- /dev/null +++ b/test/Model/ReportingV3ChargebackDetailsGet200ResponseTests.cs @@ -0,0 +1,102 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3ChargebackDetailsGet200Response + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3ChargebackDetailsGet200ResponseTests + { + // TODO uncomment below to declare an instance variable for ReportingV3ChargebackDetailsGet200Response + //private ReportingV3ChargebackDetailsGet200Response instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3ChargebackDetailsGet200Response + //instance = new ReportingV3ChargebackDetailsGet200Response(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3ChargebackDetailsGet200Response + /// + [Test] + public void ReportingV3ChargebackDetailsGet200ResponseInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3ChargebackDetailsGet200Response + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3ChargebackDetailsGet200Response"); + } + + /// + /// Test the property 'OrganizationId' + /// + [Test] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// + /// Test the property 'StartTime' + /// + [Test] + public void StartTimeTest() + { + // TODO unit test for the property 'StartTime' + } + /// + /// Test the property 'EndTime' + /// + [Test] + public void EndTimeTest() + { + // TODO unit test for the property 'EndTime' + } + /// + /// Test the property 'ChargebackDetails' + /// + [Test] + public void ChargebackDetailsTest() + { + // TODO unit test for the property 'ChargebackDetails' + } + + } + +} diff --git a/test/Model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummariesTests.cs b/test/Model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummariesTests.cs new file mode 100644 index 00000000..2bc8a661 --- /dev/null +++ b/test/Model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummariesTests.cs @@ -0,0 +1,94 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3ChargebackSummariesGet200ResponseChargebackSummariesTests + { + // TODO uncomment below to declare an instance variable for ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries + //private ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries + //instance = new ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries + /// + [Test] + public void ReportingV3ChargebackSummariesGet200ResponseChargebackSummariesInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries"); + } + + /// + /// Test the property 'Count' + /// + [Test] + public void CountTest() + { + // TODO unit test for the property 'Count' + } + /// + /// Test the property 'Time' + /// + [Test] + public void TimeTest() + { + // TODO unit test for the property 'Time' + } + /// + /// Test the property 'AccountId' + /// + [Test] + public void AccountIdTest() + { + // TODO unit test for the property 'AccountId' + } + + } + +} diff --git a/test/Model/ReportingV3ChargebackSummariesGet200ResponseTests.cs b/test/Model/ReportingV3ChargebackSummariesGet200ResponseTests.cs new file mode 100644 index 00000000..4a8ac9ab --- /dev/null +++ b/test/Model/ReportingV3ChargebackSummariesGet200ResponseTests.cs @@ -0,0 +1,102 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3ChargebackSummariesGet200Response + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3ChargebackSummariesGet200ResponseTests + { + // TODO uncomment below to declare an instance variable for ReportingV3ChargebackSummariesGet200Response + //private ReportingV3ChargebackSummariesGet200Response instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3ChargebackSummariesGet200Response + //instance = new ReportingV3ChargebackSummariesGet200Response(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3ChargebackSummariesGet200Response + /// + [Test] + public void ReportingV3ChargebackSummariesGet200ResponseInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3ChargebackSummariesGet200Response + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3ChargebackSummariesGet200Response"); + } + + /// + /// Test the property 'OrganizationId' + /// + [Test] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// + /// Test the property 'StartTime' + /// + [Test] + public void StartTimeTest() + { + // TODO unit test for the property 'StartTime' + } + /// + /// Test the property 'EndTime' + /// + [Test] + public void EndTimeTest() + { + // TODO unit test for the property 'EndTime' + } + /// + /// Test the property 'ChargebackSummaries' + /// + [Test] + public void ChargebackSummariesTest() + { + // TODO unit test for the property 'ChargebackSummaries' + } + + } + +} diff --git a/test/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetailsTests.cs b/test/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetailsTests.cs new file mode 100644 index 00000000..36d0f9c7 --- /dev/null +++ b/test/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetailsTests.cs @@ -0,0 +1,478 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetailsTests + { + // TODO uncomment below to declare an instance variable for ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails + //private ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails + //instance = new ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails + /// + [Test] + public void ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetailsInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails"); + } + + /// + /// Test the property 'RequestId' + /// + [Test] + public void RequestIdTest() + { + // TODO unit test for the property 'RequestId' + } + /// + /// Test the property 'OrganizationId' + /// + [Test] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// + /// Test the property 'AccountId' + /// + [Test] + public void AccountIdTest() + { + // TODO unit test for the property 'AccountId' + } + /// + /// Test the property 'ProcessorMerchantId' + /// + [Test] + public void ProcessorMerchantIdTest() + { + // TODO unit test for the property 'ProcessorMerchantId' + } + /// + /// Test the property 'TransactionReferenceNumber' + /// + [Test] + public void TransactionReferenceNumberTest() + { + // TODO unit test for the property 'TransactionReferenceNumber' + } + /// + /// Test the property 'MerchantReferenceNumber' + /// + [Test] + public void MerchantReferenceNumberTest() + { + // TODO unit test for the property 'MerchantReferenceNumber' + } + /// + /// Test the property 'AccountSuffix' + /// + [Test] + public void AccountSuffixTest() + { + // TODO unit test for the property 'AccountSuffix' + } + /// + /// Test the property 'PaymentSubType' + /// + [Test] + public void PaymentSubTypeTest() + { + // TODO unit test for the property 'PaymentSubType' + } + /// + /// Test the property 'PaymentSubTypeDescription' + /// + [Test] + public void PaymentSubTypeDescriptionTest() + { + // TODO unit test for the property 'PaymentSubTypeDescription' + } + /// + /// Test the property 'TransactionTime' + /// + [Test] + public void TransactionTimeTest() + { + // TODO unit test for the property 'TransactionTime' + } + /// + /// Test the property 'ProcessedTime' + /// + [Test] + public void ProcessedTimeTest() + { + // TODO unit test for the property 'ProcessedTime' + } + /// + /// Test the property 'TransactionType' + /// + [Test] + public void TransactionTypeTest() + { + // TODO unit test for the property 'TransactionType' + } + /// + /// Test the property 'Amount' + /// + [Test] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'CurrencyCode' + /// + [Test] + public void CurrencyCodeTest() + { + // TODO unit test for the property 'CurrencyCode' + } + /// + /// Test the property 'PriceType' + /// + [Test] + public void PriceTypeTest() + { + // TODO unit test for the property 'PriceType' + } + /// + /// Test the property 'PriceAmountOne' + /// + [Test] + public void PriceAmountOneTest() + { + // TODO unit test for the property 'PriceAmountOne' + } + /// + /// Test the property 'PriceAmountTwo' + /// + [Test] + public void PriceAmountTwoTest() + { + // TODO unit test for the property 'PriceAmountTwo' + } + /// + /// Test the property 'ReClass' + /// + [Test] + public void ReClassTest() + { + // TODO unit test for the property 'ReClass' + } + /// + /// Test the property 'SettlementTime' + /// + [Test] + public void SettlementTimeTest() + { + // TODO unit test for the property 'SettlementTime' + } + /// + /// Test the property 'SettlementProcessor' + /// + [Test] + public void SettlementProcessorTest() + { + // TODO unit test for the property 'SettlementProcessor' + } + /// + /// Test the property 'MerchantBatchNumber' + /// + [Test] + public void MerchantBatchNumberTest() + { + // TODO unit test for the property 'MerchantBatchNumber' + } + /// + /// Test the property 'ClearedLevel' + /// + [Test] + public void ClearedLevelTest() + { + // TODO unit test for the property 'ClearedLevel' + } + /// + /// Test the property 'BillbackReasonCode' + /// + [Test] + public void BillbackReasonCodeTest() + { + // TODO unit test for the property 'BillbackReasonCode' + } + /// + /// Test the property 'BillbackReasonDescription' + /// + [Test] + public void BillbackReasonDescriptionTest() + { + // TODO unit test for the property 'BillbackReasonDescription' + } + /// + /// Test the property 'MerchantPricedLevel' + /// + [Test] + public void MerchantPricedLevelTest() + { + // TODO unit test for the property 'MerchantPricedLevel' + } + /// + /// Test the property 'DiscountRate' + /// + [Test] + public void DiscountRateTest() + { + // TODO unit test for the property 'DiscountRate' + } + /// + /// Test the property 'DiscountAmount' + /// + [Test] + public void DiscountAmountTest() + { + // TODO unit test for the property 'DiscountAmount' + } + /// + /// Test the property 'ClearingRateAmountOne' + /// + [Test] + public void ClearingRateAmountOneTest() + { + // TODO unit test for the property 'ClearingRateAmountOne' + } + /// + /// Test the property 'ClearingRateAmountTwo' + /// + [Test] + public void ClearingRateAmountTwoTest() + { + // TODO unit test for the property 'ClearingRateAmountTwo' + } + /// + /// Test the property 'ClearingRateAmountThree' + /// + [Test] + public void ClearingRateAmountThreeTest() + { + // TODO unit test for the property 'ClearingRateAmountThree' + } + /// + /// Test the property 'ClearingRateCurrencyCode' + /// + [Test] + public void ClearingRateCurrencyCodeTest() + { + // TODO unit test for the property 'ClearingRateCurrencyCode' + } + /// + /// Test the property 'InterchangeAmount' + /// + [Test] + public void InterchangeAmountTest() + { + // TODO unit test for the property 'InterchangeAmount' + } + /// + /// Test the property 'BillbackAmount' + /// + [Test] + public void BillbackAmountTest() + { + // TODO unit test for the property 'BillbackAmount' + } + /// + /// Test the property 'SettlementAmount' + /// + [Test] + public void SettlementAmountTest() + { + // TODO unit test for the property 'SettlementAmount' + } + /// + /// Test the property 'SettlementCurrencyCode' + /// + [Test] + public void SettlementCurrencyCodeTest() + { + // TODO unit test for the property 'SettlementCurrencyCode' + } + /// + /// Test the property 'ConversionRate' + /// + [Test] + public void ConversionRateTest() + { + // TODO unit test for the property 'ConversionRate' + } + /// + /// Test the property 'DeltaCost' + /// + [Test] + public void DeltaCostTest() + { + // TODO unit test for the property 'DeltaCost' + } + /// + /// Test the property 'SurchargeAmount' + /// + [Test] + public void SurchargeAmountTest() + { + // TODO unit test for the property 'SurchargeAmount' + } + /// + /// Test the property 'PercentRateCharged' + /// + [Test] + public void PercentRateChargedTest() + { + // TODO unit test for the property 'PercentRateCharged' + } + /// + /// Test the property 'PerTransactionCharged' + /// + [Test] + public void PerTransactionChargedTest() + { + // TODO unit test for the property 'PerTransactionCharged' + } + /// + /// Test the property 'DowngradeReasonCode' + /// + [Test] + public void DowngradeReasonCodeTest() + { + // TODO unit test for the property 'DowngradeReasonCode' + } + /// + /// Test the property 'ProcessTime' + /// + [Test] + public void ProcessTimeTest() + { + // TODO unit test for the property 'ProcessTime' + } + /// + /// Test the property 'AuthCode' + /// + [Test] + public void AuthCodeTest() + { + // TODO unit test for the property 'AuthCode' + } + /// + /// Test the property 'BatchTime' + /// + [Test] + public void BatchTimeTest() + { + // TODO unit test for the property 'BatchTime' + } + /// + /// Test the property 'ProcessorBatchNumber' + /// + [Test] + public void ProcessorBatchNumberTest() + { + // TODO unit test for the property 'ProcessorBatchNumber' + } + /// + /// Test the property 'CardIndicator' + /// + [Test] + public void CardIndicatorTest() + { + // TODO unit test for the property 'CardIndicator' + } + /// + /// Test the property 'MinimumUnit' + /// + [Test] + public void MinimumUnitTest() + { + // TODO unit test for the property 'MinimumUnit' + } + /// + /// Test the property 'MinimumUnitCurrencyCode' + /// + [Test] + public void MinimumUnitCurrencyCodeTest() + { + // TODO unit test for the property 'MinimumUnitCurrencyCode' + } + /// + /// Test the property 'CreditDeltaIndicator' + /// + [Test] + public void CreditDeltaIndicatorTest() + { + // TODO unit test for the property 'CreditDeltaIndicator' + } + /// + /// Test the property 'FeeCategory' + /// + [Test] + public void FeeCategoryTest() + { + // TODO unit test for the property 'FeeCategory' + } + /// + /// Test the property 'ApplicationName' + /// + [Test] + public void ApplicationNameTest() + { + // TODO unit test for the property 'ApplicationName' + } + + } + +} diff --git a/test/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseTests.cs b/test/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseTests.cs new file mode 100644 index 00000000..2a30efcd --- /dev/null +++ b/test/Model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseTests.cs @@ -0,0 +1,94 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3InterchangeClearingLevelDetailsGet200Response + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3InterchangeClearingLevelDetailsGet200ResponseTests + { + // TODO uncomment below to declare an instance variable for ReportingV3InterchangeClearingLevelDetailsGet200Response + //private ReportingV3InterchangeClearingLevelDetailsGet200Response instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3InterchangeClearingLevelDetailsGet200Response + //instance = new ReportingV3InterchangeClearingLevelDetailsGet200Response(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3InterchangeClearingLevelDetailsGet200Response + /// + [Test] + public void ReportingV3InterchangeClearingLevelDetailsGet200ResponseInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3InterchangeClearingLevelDetailsGet200Response + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3InterchangeClearingLevelDetailsGet200Response"); + } + + /// + /// Test the property 'StartDate' + /// + [Test] + public void StartDateTest() + { + // TODO unit test for the property 'StartDate' + } + /// + /// Test the property 'EndDate' + /// + [Test] + public void EndDateTest() + { + // TODO unit test for the property 'EndDate' + } + /// + /// Test the property 'InterchangeClearingLevelDetails' + /// + [Test] + public void InterchangeClearingLevelDetailsTest() + { + // TODO unit test for the property 'InterchangeClearingLevelDetails' + } + + } + +} diff --git a/test/Model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetailsTests.cs b/test/Model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetailsTests.cs new file mode 100644 index 00000000..3ee17037 --- /dev/null +++ b/test/Model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetailsTests.cs @@ -0,0 +1,246 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3RetrievalDetailsGet200ResponseRetrievalDetailsTests + { + // TODO uncomment below to declare an instance variable for ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails + //private ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails + //instance = new ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails + /// + [Test] + public void ReportingV3RetrievalDetailsGet200ResponseRetrievalDetailsInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails"); + } + + /// + /// Test the property 'ProcessorMerchantId' + /// + [Test] + public void ProcessorMerchantIdTest() + { + // TODO unit test for the property 'ProcessorMerchantId' + } + /// + /// Test the property 'MerchantName' + /// + [Test] + public void MerchantNameTest() + { + // TODO unit test for the property 'MerchantName' + } + /// + /// Test the property 'TransactionReferenceNumber' + /// + [Test] + public void TransactionReferenceNumberTest() + { + // TODO unit test for the property 'TransactionReferenceNumber' + } + /// + /// Test the property 'MerchantReferenceNumber' + /// + [Test] + public void MerchantReferenceNumberTest() + { + // TODO unit test for the property 'MerchantReferenceNumber' + } + /// + /// Test the property 'NatureOfDispute' + /// + [Test] + public void NatureOfDisputeTest() + { + // TODO unit test for the property 'NatureOfDispute' + } + /// + /// Test the property 'AlertType' + /// + [Test] + public void AlertTypeTest() + { + // TODO unit test for the property 'AlertType' + } + /// + /// Test the property 'Amount' + /// + [Test] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'Sign' + /// + [Test] + public void SignTest() + { + // TODO unit test for the property 'Sign' + } + /// + /// Test the property 'Action' + /// + [Test] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'CardType' + /// + [Test] + public void CardTypeTest() + { + // TODO unit test for the property 'CardType' + } + /// + /// Test the property 'OriginalSettlementTime' + /// + [Test] + public void OriginalSettlementTimeTest() + { + // TODO unit test for the property 'OriginalSettlementTime' + } + /// + /// Test the property 'TrackingNumber' + /// + [Test] + public void TrackingNumberTest() + { + // TODO unit test for the property 'TrackingNumber' + } + /// + /// Test the property 'CurrencyCode' + /// + [Test] + public void CurrencyCodeTest() + { + // TODO unit test for the property 'CurrencyCode' + } + /// + /// Test the property 'RequestId' + /// + [Test] + public void RequestIdTest() + { + // TODO unit test for the property 'RequestId' + } + /// + /// Test the property 'ResponseDueTime' + /// + [Test] + public void ResponseDueTimeTest() + { + // TODO unit test for the property 'ResponseDueTime' + } + /// + /// Test the property 'Time' + /// + [Test] + public void TimeTest() + { + // TODO unit test for the property 'Time' + } + /// + /// Test the property 'ActionDescription' + /// + [Test] + public void ActionDescriptionTest() + { + // TODO unit test for the property 'ActionDescription' + } + /// + /// Test the property 'CustomerId' + /// + [Test] + public void CustomerIdTest() + { + // TODO unit test for the property 'CustomerId' + } + /// + /// Test the property 'ReasonCode' + /// + [Test] + public void ReasonCodeTest() + { + // TODO unit test for the property 'ReasonCode' + } + /// + /// Test the property 'RepresentmentCPTime' + /// + [Test] + public void RepresentmentCPTimeTest() + { + // TODO unit test for the property 'RepresentmentCPTime' + } + /// + /// Test the property 'Applications' + /// + [Test] + public void ApplicationsTest() + { + // TODO unit test for the property 'Applications' + } + /// + /// Test the property 'EventRequestedTime' + /// + [Test] + public void EventRequestedTimeTest() + { + // TODO unit test for the property 'EventRequestedTime' + } + + } + +} diff --git a/test/Model/ReportingV3RetrievalDetailsGet200ResponseTests.cs b/test/Model/ReportingV3RetrievalDetailsGet200ResponseTests.cs new file mode 100644 index 00000000..11d1f7b6 --- /dev/null +++ b/test/Model/ReportingV3RetrievalDetailsGet200ResponseTests.cs @@ -0,0 +1,102 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3RetrievalDetailsGet200Response + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3RetrievalDetailsGet200ResponseTests + { + // TODO uncomment below to declare an instance variable for ReportingV3RetrievalDetailsGet200Response + //private ReportingV3RetrievalDetailsGet200Response instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3RetrievalDetailsGet200Response + //instance = new ReportingV3RetrievalDetailsGet200Response(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3RetrievalDetailsGet200Response + /// + [Test] + public void ReportingV3RetrievalDetailsGet200ResponseInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3RetrievalDetailsGet200Response + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3RetrievalDetailsGet200Response"); + } + + /// + /// Test the property 'OrganizationId' + /// + [Test] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// + /// Test the property 'StartTime' + /// + [Test] + public void StartTimeTest() + { + // TODO unit test for the property 'StartTime' + } + /// + /// Test the property 'EndTime' + /// + [Test] + public void EndTimeTest() + { + // TODO unit test for the property 'EndTime' + } + /// + /// Test the property 'RetrievalDetails' + /// + [Test] + public void RetrievalDetailsTest() + { + // TODO unit test for the property 'RetrievalDetails' + } + + } + +} diff --git a/test/Model/ReportingV3RetrievalSummariesGet200ResponseTests.cs b/test/Model/ReportingV3RetrievalSummariesGet200ResponseTests.cs new file mode 100644 index 00000000..d0e36a0f --- /dev/null +++ b/test/Model/ReportingV3RetrievalSummariesGet200ResponseTests.cs @@ -0,0 +1,102 @@ +/* + * CyberSource Merged Spec + * + * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + * + * OpenAPI spec version: 0.0.1 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + + +using NUnit.Framework; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CyberSource.Api; +using CyberSource.Model; +using CyberSource.Client; +using System.Reflection; + +namespace CyberSource.Test +{ + /// + /// Class for testing ReportingV3RetrievalSummariesGet200Response + /// + /// + /// This file is automatically generated by Swagger Codegen. + /// Please update the test case below to test the model. + /// + [TestFixture] + public class ReportingV3RetrievalSummariesGet200ResponseTests + { + // TODO uncomment below to declare an instance variable for ReportingV3RetrievalSummariesGet200Response + //private ReportingV3RetrievalSummariesGet200Response instance; + + /// + /// Setup before each test + /// + [SetUp] + public void Init() + { + // TODO uncomment below to create an instance of ReportingV3RetrievalSummariesGet200Response + //instance = new ReportingV3RetrievalSummariesGet200Response(); + } + + /// + /// Clean up after each test + /// + [TearDown] + public void Cleanup() + { + + } + + /// + /// Test an instance of ReportingV3RetrievalSummariesGet200Response + /// + [Test] + public void ReportingV3RetrievalSummariesGet200ResponseInstanceTest() + { + // TODO uncomment below to test "IsInstanceOfType" ReportingV3RetrievalSummariesGet200Response + //Assert.IsInstanceOfType (instance, "variable 'instance' is a ReportingV3RetrievalSummariesGet200Response"); + } + + /// + /// Test the property 'OrganizationId' + /// + [Test] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// + /// Test the property 'StartTime' + /// + [Test] + public void StartTimeTest() + { + // TODO unit test for the property 'StartTime' + } + /// + /// Test the property 'EndTime' + /// + [Test] + public void EndTimeTest() + { + // TODO unit test for the property 'EndTime' + } + /// + /// Test the property 'RetrievalSummaries' + /// + [Test] + public void RetrievalSummariesTest() + { + // TODO unit test for the property 'RetrievalSummaries' + } + + } + +}