<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\Dingtalk\Vhrm_1_0\Models\GetUserSignedRecordsByOuterIdResponseBody;

use AlibabaCloud\Tea\Model;

class result extends Model
{
    /**
     * @example ding33a9d1a6e9647854a39a90f97fcb1e09
     *
     * @var string
     */
    public $corpId;

    /**
     * @example CONTRACT_123456
     *
     * @var string
     */
    public $outerId;

    /**
     * @example 测试
     *
     * @var string
     */
    public $remark;

    /**
     * @example 1720775436000
     *
     * @var string
     */
    public $signExpireTime;

    /**
     * @example 小明-劳动合同-20240808.pdf
     *
     * @var string
     */
    public $signFileName;

    /**
     * @example https://n.dingtalk.com/xxx
     *
     * @var string
     */
    public $signFileUrl;

    /**
     * @example 1720775436000
     *
     * @var string
     */
    public $signFinishTime;

    /**
     * @example xx公司
     *
     * @var string
     */
    public $signLegalEntityName;

    /**
     * @example fb1a9c4adaba4f52b7cab7941008b9dd
     *
     * @var string
     */
    public $signRecordId;

    /**
     * @example 1720775436000
     *
     * @var string
     */
    public $signStartTime;

    /**
     * @example FINISHED
     *
     * @var string
     */
    public $signStatus;

    /**
     * @example 法人公司未开通
     *
     * @var string
     */
    public $signStatusRemarks;

    /**
     * @example CONTRACT
     *
     * @var string
     */
    public $signTemplateType;

    /**
     * @example userId123
     *
     * @var string
     */
    public $signUserId;

    /**
     * @example userName
     *
     * @var string
     */
    public $signUserName;

    /**
     * @example ON_LINE
     *
     * @var string
     */
    public $signWay;
    protected $_name = [
        'corpId' => 'corpId',
        'outerId' => 'outerId',
        'remark' => 'remark',
        'signExpireTime' => 'signExpireTime',
        'signFileName' => 'signFileName',
        'signFileUrl' => 'signFileUrl',
        'signFinishTime' => 'signFinishTime',
        'signLegalEntityName' => 'signLegalEntityName',
        'signRecordId' => 'signRecordId',
        'signStartTime' => 'signStartTime',
        'signStatus' => 'signStatus',
        'signStatusRemarks' => 'signStatusRemarks',
        'signTemplateType' => 'signTemplateType',
        'signUserId' => 'signUserId',
        'signUserName' => 'signUserName',
        'signWay' => 'signWay',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->corpId) {
            $res['corpId'] = $this->corpId;
        }
        if (null !== $this->outerId) {
            $res['outerId'] = $this->outerId;
        }
        if (null !== $this->remark) {
            $res['remark'] = $this->remark;
        }
        if (null !== $this->signExpireTime) {
            $res['signExpireTime'] = $this->signExpireTime;
        }
        if (null !== $this->signFileName) {
            $res['signFileName'] = $this->signFileName;
        }
        if (null !== $this->signFileUrl) {
            $res['signFileUrl'] = $this->signFileUrl;
        }
        if (null !== $this->signFinishTime) {
            $res['signFinishTime'] = $this->signFinishTime;
        }
        if (null !== $this->signLegalEntityName) {
            $res['signLegalEntityName'] = $this->signLegalEntityName;
        }
        if (null !== $this->signRecordId) {
            $res['signRecordId'] = $this->signRecordId;
        }
        if (null !== $this->signStartTime) {
            $res['signStartTime'] = $this->signStartTime;
        }
        if (null !== $this->signStatus) {
            $res['signStatus'] = $this->signStatus;
        }
        if (null !== $this->signStatusRemarks) {
            $res['signStatusRemarks'] = $this->signStatusRemarks;
        }
        if (null !== $this->signTemplateType) {
            $res['signTemplateType'] = $this->signTemplateType;
        }
        if (null !== $this->signUserId) {
            $res['signUserId'] = $this->signUserId;
        }
        if (null !== $this->signUserName) {
            $res['signUserName'] = $this->signUserName;
        }
        if (null !== $this->signWay) {
            $res['signWay'] = $this->signWay;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return result
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['corpId'])) {
            $model->corpId = $map['corpId'];
        }
        if (isset($map['outerId'])) {
            $model->outerId = $map['outerId'];
        }
        if (isset($map['remark'])) {
            $model->remark = $map['remark'];
        }
        if (isset($map['signExpireTime'])) {
            $model->signExpireTime = $map['signExpireTime'];
        }
        if (isset($map['signFileName'])) {
            $model->signFileName = $map['signFileName'];
        }
        if (isset($map['signFileUrl'])) {
            $model->signFileUrl = $map['signFileUrl'];
        }
        if (isset($map['signFinishTime'])) {
            $model->signFinishTime = $map['signFinishTime'];
        }
        if (isset($map['signLegalEntityName'])) {
            $model->signLegalEntityName = $map['signLegalEntityName'];
        }
        if (isset($map['signRecordId'])) {
            $model->signRecordId = $map['signRecordId'];
        }
        if (isset($map['signStartTime'])) {
            $model->signStartTime = $map['signStartTime'];
        }
        if (isset($map['signStatus'])) {
            $model->signStatus = $map['signStatus'];
        }
        if (isset($map['signStatusRemarks'])) {
            $model->signStatusRemarks = $map['signStatusRemarks'];
        }
        if (isset($map['signTemplateType'])) {
            $model->signTemplateType = $map['signTemplateType'];
        }
        if (isset($map['signUserId'])) {
            $model->signUserId = $map['signUserId'];
        }
        if (isset($map['signUserName'])) {
            $model->signUserName = $map['signUserName'];
        }
        if (isset($map['signWay'])) {
            $model->signWay = $map['signWay'];
        }

        return $model;
    }
}
