<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vbizfinance_1_0\Models\UpdateInvoiceAbandonStatusRequest\blueGeneralInvoiceVO;

use AlibabaCloud\Tea\Model;

class usedVehicleSaleDetailVOList extends Model
{
    /**
     * @description 经营、拍卖单位
     *
     * @var string
     */
    public $auctionUnit;

    /**
     * @description 经营、拍卖单位地址
     *
     * @var string
     */
    public $auctionUnitAddress;

    /**
     * @description 经营、拍卖单位银行
     *
     * @var string
     */
    public $auctionUnitBank;

    /**
     * @description 经营、拍卖单位税号
     *
     * @var string
     */
    public $auctionUnitTaxNo;

    /**
     * @description 经营、拍卖单位电话
     *
     * @var string
     */
    public $auctionUtilTel;

    /**
     * @description 厂牌型号
     *
     * @var string
     */
    public $carModel;

    /**
     * @description 车牌照号
     *
     * @var string
     */
    public $cardNo;

    /**
     * @description 登记证号
     *
     * @var string
     */
    public $registration;

    /**
     * @description 转入地车辆管理所名称
     *
     * @var string
     */
    public $transferVehicle;

    /**
     * @description 二手车市场地址
     *
     * @var string
     */
    public $usedCarAddress;

    /**
     * @description 二手车市场
     *
     * @var string
     */
    public $usedCarMarket;

    /**
     * @description 二手车市场开户银行、账号
     *
     * @var string
     */
    public $usedCarMarketBank;

    /**
     * @description 二手车市场电话
     *
     * @var string
     */
    public $usedCarMarketPhone;

    /**
     * @description 二手车市场纳税人识别号
     *
     * @var string
     */
    public $usedCarMarketTaxNo;

    /**
     * @description 车架号/车辆识别号
     *
     * @var string
     */
    public $vehicleNo;

    /**
     * @description 车辆类型
     *
     * @var string
     */
    public $vehicleType;
    protected $_name = [
        'auctionUnit'        => 'auctionUnit',
        'auctionUnitAddress' => 'auctionUnitAddress',
        'auctionUnitBank'    => 'auctionUnitBank',
        'auctionUnitTaxNo'   => 'auctionUnitTaxNo',
        'auctionUtilTel'     => 'auctionUtilTel',
        'carModel'           => 'carModel',
        'cardNo'             => 'cardNo',
        'registration'       => 'registration',
        'transferVehicle'    => 'transferVehicle',
        'usedCarAddress'     => 'usedCarAddress',
        'usedCarMarket'      => 'usedCarMarket',
        'usedCarMarketBank'  => 'usedCarMarketBank',
        'usedCarMarketPhone' => 'usedCarMarketPhone',
        'usedCarMarketTaxNo' => 'usedCarMarketTaxNo',
        'vehicleNo'          => 'vehicleNo',
        'vehicleType'        => 'vehicleType',
    ];

    public function validate()
    {
    }

    public function toMap()
    {
        $res = [];
        if (null !== $this->auctionUnit) {
            $res['auctionUnit'] = $this->auctionUnit;
        }
        if (null !== $this->auctionUnitAddress) {
            $res['auctionUnitAddress'] = $this->auctionUnitAddress;
        }
        if (null !== $this->auctionUnitBank) {
            $res['auctionUnitBank'] = $this->auctionUnitBank;
        }
        if (null !== $this->auctionUnitTaxNo) {
            $res['auctionUnitTaxNo'] = $this->auctionUnitTaxNo;
        }
        if (null !== $this->auctionUtilTel) {
            $res['auctionUtilTel'] = $this->auctionUtilTel;
        }
        if (null !== $this->carModel) {
            $res['carModel'] = $this->carModel;
        }
        if (null !== $this->cardNo) {
            $res['cardNo'] = $this->cardNo;
        }
        if (null !== $this->registration) {
            $res['registration'] = $this->registration;
        }
        if (null !== $this->transferVehicle) {
            $res['transferVehicle'] = $this->transferVehicle;
        }
        if (null !== $this->usedCarAddress) {
            $res['usedCarAddress'] = $this->usedCarAddress;
        }
        if (null !== $this->usedCarMarket) {
            $res['usedCarMarket'] = $this->usedCarMarket;
        }
        if (null !== $this->usedCarMarketBank) {
            $res['usedCarMarketBank'] = $this->usedCarMarketBank;
        }
        if (null !== $this->usedCarMarketPhone) {
            $res['usedCarMarketPhone'] = $this->usedCarMarketPhone;
        }
        if (null !== $this->usedCarMarketTaxNo) {
            $res['usedCarMarketTaxNo'] = $this->usedCarMarketTaxNo;
        }
        if (null !== $this->vehicleNo) {
            $res['vehicleNo'] = $this->vehicleNo;
        }
        if (null !== $this->vehicleType) {
            $res['vehicleType'] = $this->vehicleType;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return usedVehicleSaleDetailVOList
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['auctionUnit'])) {
            $model->auctionUnit = $map['auctionUnit'];
        }
        if (isset($map['auctionUnitAddress'])) {
            $model->auctionUnitAddress = $map['auctionUnitAddress'];
        }
        if (isset($map['auctionUnitBank'])) {
            $model->auctionUnitBank = $map['auctionUnitBank'];
        }
        if (isset($map['auctionUnitTaxNo'])) {
            $model->auctionUnitTaxNo = $map['auctionUnitTaxNo'];
        }
        if (isset($map['auctionUtilTel'])) {
            $model->auctionUtilTel = $map['auctionUtilTel'];
        }
        if (isset($map['carModel'])) {
            $model->carModel = $map['carModel'];
        }
        if (isset($map['cardNo'])) {
            $model->cardNo = $map['cardNo'];
        }
        if (isset($map['registration'])) {
            $model->registration = $map['registration'];
        }
        if (isset($map['transferVehicle'])) {
            $model->transferVehicle = $map['transferVehicle'];
        }
        if (isset($map['usedCarAddress'])) {
            $model->usedCarAddress = $map['usedCarAddress'];
        }
        if (isset($map['usedCarMarket'])) {
            $model->usedCarMarket = $map['usedCarMarket'];
        }
        if (isset($map['usedCarMarketBank'])) {
            $model->usedCarMarketBank = $map['usedCarMarketBank'];
        }
        if (isset($map['usedCarMarketPhone'])) {
            $model->usedCarMarketPhone = $map['usedCarMarketPhone'];
        }
        if (isset($map['usedCarMarketTaxNo'])) {
            $model->usedCarMarketTaxNo = $map['usedCarMarketTaxNo'];
        }
        if (isset($map['vehicleNo'])) {
            $model->vehicleNo = $map['vehicleNo'];
        }
        if (isset($map['vehicleType'])) {
            $model->vehicleType = $map['vehicleType'];
        }

        return $model;
    }
}
