/// <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. >Permitted Values: `DATA_PROVIDED`, `PASSED`, `PENDING`, `AWAITING_DATA`, `RETRY_LIMIT_REACHED`, `INVALID_DATA`, `FAILED`. (required).</param> /// <param name="summary">summary (required).</param> /// <param name="type">The type of check. >Permitted Values: `COMPANY_VERIFICATION`, `IDENTITY_VERIFICATION`, `PASSPORT_VERIFICATION`, `BANK_ACCOUNT_VERIFICATION`, `NONPROFIT_VERIFICATION`. (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; }
/// <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. >Permitted Values: `DATA_PROVIDED`, `PASSED`, `PENDING`, `AWAITING_DATA`, `RETRY_LIMIT_REACHED`, `INVALID_DATA`, `FAILED`. (required).</param> /// <param name="summary">summary (required).</param> /// <param name="type">The type of check. >Permitted Values: `COMPANY_VERIFICATION`, `IDENTITY_VERIFICATION`, `PASSPORT_VERIFICATION`, `BANK_ACCOUNT_VERIFICATION`, `NONPROFIT_VERIFICATION`. (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; }