/// <summary>
 /// Initializes a new instance of the <see cref="KYCCheckStatusData" /> class.
 /// </summary>
 /// <param name="requiredFields">A list of the fields required for execution of the check. (required).</param>
 /// <param name="status">The status of the check. &gt;Permitted Values: &#x60;DATA_PROVIDED&#x60;, &#x60;PASSED&#x60;, &#x60;PENDING&#x60;, &#x60;AWAITING_DATA&#x60;, &#x60;RETRY_LIMIT_REACHED&#x60;, &#x60;INVALID_DATA&#x60;, &#x60;FAILED&#x60;. (required).</param>
 /// <param name="summary">summary (required).</param>
 /// <param name="type">The type of check. &gt;Permitted Values: &#x60;COMPANY_VERIFICATION&#x60;, &#x60;IDENTITY_VERIFICATION&#x60;, &#x60;PASSPORT_VERIFICATION&#x60;, &#x60;BANK_ACCOUNT_VERIFICATION&#x60;, &#x60;NONPROFIT_VERIFICATION&#x60;. (required).</param>
 public KYCCheckStatusData(List <string> requiredFields = default(List <string>), StatusEnum status = default(StatusEnum), KYCCheckSummary summary = default(KYCCheckSummary), TypeEnum type = default(TypeEnum))
 {
     this.Status         = status;
     this.Type           = type;
     this.RequiredFields = requiredFields;
     this.Summary        = summary;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KYCCheckStatusData" /> class.
 /// </summary>
 /// <param name="requiredFields">A list of the fields required for execution of the check. (required).</param>
 /// <param name="status">The status of the check. &gt;Permitted Values: &#x60;DATA_PROVIDED&#x60;, &#x60;PASSED&#x60;, &#x60;PENDING&#x60;, &#x60;AWAITING_DATA&#x60;, &#x60;RETRY_LIMIT_REACHED&#x60;, &#x60;INVALID_DATA&#x60;, &#x60;FAILED&#x60;. (required).</param>
 /// <param name="summary">summary (required).</param>
 /// <param name="type">The type of check. &gt;Permitted Values: &#x60;COMPANY_VERIFICATION&#x60;, &#x60;IDENTITY_VERIFICATION&#x60;, &#x60;PASSPORT_VERIFICATION&#x60;, &#x60;BANK_ACCOUNT_VERIFICATION&#x60;, &#x60;NONPROFIT_VERIFICATION&#x60;. (required).</param>
 public KYCCheckStatusData(List <string> requiredFields = default(List <string>), StatusEnum status = default(StatusEnum), KYCCheckSummary summary = default(KYCCheckSummary), TypeEnum type = default(TypeEnum))
 {
     // to ensure "status" is required (not null)
     if (status == null)
     {
         throw new InvalidDataException("status is a required property for KYCCheckStatusData and cannot be null");
     }
     else
     {
         this.Status = status;
     }
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new InvalidDataException("type is a required property for KYCCheckStatusData and cannot be null");
     }
     else
     {
         this.Type = type;
     }
     this.RequiredFields = requiredFields;
     this.Summary        = summary;
 }