v3/src/Model/AntMerchantExpandShopCreateErrorResponseModel.php
<?php
/**
 * AntMerchantExpandShopCreateErrorResponseModel
 *
 * PHP version 7.4
 *
 * @category Class
 * @package  Alipay\OpenAPISDK
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 */

/**
 * 支付宝开放平台API
 *
 * 支付宝开放平台v3协议文档
 *
 * The version of the OpenAPI document: 2025-08-26
 * Generated by: https://openapi-generator.tech
 * OpenAPI Generator version: 6.2.1
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Alipay\OpenAPISDK\Model;

use \ArrayAccess;
use \Alipay\OpenAPISDK\ObjectSerializer;

/**
 * AntMerchantExpandShopCreateErrorResponseModel Class Doc Comment
 *
 * @category Class
 * @package  Alipay\OpenAPISDK
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 * @implements \ArrayAccess<TKey, TValue>
 * @template TKey int|null
 * @template TValue mixed|null
 */
class AntMerchantExpandShopCreateErrorResponseModel implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

    /**
      * The original name of the model.
      *
      * @var string
      */
    protected static $openAPIModelName = 'AntMerchantExpandShopCreateErrorResponseModel';

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'code' => 'string',
        'links' => 'string',
        'message' => 'string'
    ];

    /**
      * Array of property to format mappings. Used for (de)serialization
      *
      * @var string[]
      * @phpstan-var array<string, string|null>
      * @psalm-var array<string, string|null>
      */
    protected static $openAPIFormats = [
        'code' => null,
        'links' => null,
        'message' => null
    ];

    /**
     * Array of property to type mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPITypes()
    {
        return self::$openAPITypes;
    }

    /**
     * Array of property to format mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPIFormats()
    {
        return self::$openAPIFormats;
    }

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @var string[]
     */
    protected static $attributeMap = [
        'code' => 'code',
        'links' => 'links',
        'message' => 'message'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'code' => 'setCode',
        'links' => 'setLinks',
        'message' => 'setMessage'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'code' => 'getCode',
        'links' => 'getLinks',
        'message' => 'getMessage'
    ];

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @return array
     */
    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @return array
     */
    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @return array
     */
    public static function getters()
    {
        return self::$getters;
    }

    /**
     * The original name of the model.
     *
     * @return string
     */
    public function getModelName()
    {
        return self::$openAPIModelName;
    }

    public const CODE_NOT_ALLOWED_SETTLE = 'NOT_ALLOWED_SETTLE';
    public const CODE_SHOP_CATEGORY_IS_ILLEGAL = 'SHOP_CATEGORY_IS_ILLEGAL';
    public const CODE_ISV_NOT_EXIST = 'ISV_NOT_EXIST';
    public const CODE_SHOP_ACCOUNT_NO_IS_ILLEGAL = 'SHOP_ACCOUNT_NO_IS_ILLEGAL';
    public const CODE_SHOP_SHOPNO_IS_EMPTY = 'SHOP_SHOPNO_IS_EMPTY';
    public const CODE_INDUSTRY_QUALIFICATION_IS_EMPTY = 'INDUSTRY_QUALIFICATION_IS_EMPTY';
    public const CODE_SETTLED_OUTDOORIMAGE_EMPTY = 'SETTLED_OUTDOORIMAGE_EMPTY';
    public const CODE_SHOP_SHOPNAME_IS_EMPTY = 'SHOP_SHOPNAME_IS_EMPTY';
    public const CODE_SETTLED_BIZ_ADDRESS_ILLEGAL = 'SETTLED_BIZ_ADDRESS_ILLEGAL';
    public const CODE_SHOP_CATEGORY_IS_EMPTY = 'SHOP_CATEGORY_IS_EMPTY';
    public const CODE_CONTACT_WAY_VALUE_NULL = 'CONTACT_WAY_VALUE_NULL';
    public const CODE_ADDRESS_PROVINCE_CODE_ILLEGAL = 'ADDRESS_PROVINCE_CODE_ILLEGAL';
    public const CODE_ADDRESS_CITY_CODE_ILLEGAL = 'ADDRESS_CITY_CODE_ILLEGAL';
    public const CODE_ADDRESS_DISTRICT_CODE_ILLEGAL = 'ADDRESS_DISTRICT_CODE_ILLEGAL';
    public const CODE_SHOP_ALREADY_EXIST = 'SHOP_ALREADY_EXIST';
    public const CODE_GONGAN_CHECK_FAIL = 'GONGAN_CHECK_FAIL';
    public const CODE_GONGSHANG_CHECK_FAIL = 'GONGSHANG_CHECK_FAIL';
    public const CODE_INVALID_PARAMETER = 'INVALID_PARAMETER';
    public const CODE_CONTACT_PERSON_NAME_NULL = 'CONTACT_PERSON_NAME_NULL';
    public const CODE_USER_ILLEGAL = 'USER_ILLEGAL';
    public const CODE_BRAND_ILLEGAL = 'BRAND_ILLEGAL';
    public const CODE_PROFILE_KEY_ILLEGAL = 'PROFILE_KEY_ILLEGAL';
    public const CODE_SETTLED_BANKCARD_NO_IS_EMPTY = 'SETTLED_BANKCARD_NO_IS_EMPTY';
    public const CODE_SETTLED_ACCOUNTHOLDERNAME_EMPTY = 'SETTLED_ACCOUNTHOLDERNAME_EMPTY';
    public const CODE_SETTLED_ACCOUNTBRANCHNAME_EMPTY = 'SETTLED_ACCOUNTBRANCHNAME_EMPTY';
    public const CODE_SETTLED_ACCOUNTINSTNAME_EMPTY = 'SETTLED_ACCOUNTINSTNAME_EMPTY';
    public const CODE_SETTLED_USAGETYPE_IS_EMPTY = 'SETTLED_USAGETYPE_IS_EMPTY';
    public const CODE_BANK_BRANCH_NAME_ILLEGAL = 'BANK_BRANCH_NAME_ILLEGAL';
    public const CODE_SETTLED_USAGETYPE_ILLEGAL = 'SETTLED_USAGETYPE_ILLEGAL';
    public const CODE_SETTLED_CARD_ACCOUNTINSTID_EMPTY = 'SETTLED_CARD_ACCOUNTINSTID_EMPTY';
    public const CODE_SETTLED_CARD_ACCOUNTTYPE_EMPTY = 'SETTLED_CARD_ACCOUNTTYPE_EMPTY';
    public const CODE_BANK_ACCOUNTINSTID_ILLEGAL = 'BANK_ACCOUNTINSTID_ILLEGAL';
    public const CODE_SETTLED_CARD_ACCOUNTTYPE_ILLEGAL = 'SETTLED_CARD_ACCOUNTTYPE_ILLEGAL';
    public const CODE_BANK_ACCOUNTINSTNAME_ILLEGAL = 'BANK_ACCOUNTINSTNAME_ILLEGAL';
    public const CODE_SYSTEM_ERROR = 'SYSTEM_ERROR';
    public const CODE_GONGSHANG_LICENSE_ILLEGAL = 'GONGSHANG_LICENSE_ILLEGAL';
    public const CODE_BUSINESS_LICENSE_EMPTY = 'BUSINESS_LICENSE_EMPTY';
    public const CODE_MERCHANT_NOT_EXIST = 'MERCHANT_NOT_EXIST';
    public const CODE_ATTACHMENT_TYPE_ILLEGAL = 'ATTACHMENT_TYPE_ILLEGAL';
    public const CODE_SHOP_NOT_EXIST = 'SHOP_NOT_EXIST';
    public const CODE_ATTACHMENT_URL_NULL = 'ATTACHMENT_URL_NULL';
    public const CODE_LOCATION_CHECK_FAIL = 'LOCATION_CHECK_FAIL';
    public const CODE_ATTACHMENT_CHECK_FAIL = 'ATTACHMENT_CHECK_FAIL';
    public const CODE_BUSINESS_TIME_ILLEGAL = 'BUSINESS_TIME_ILLEGAL';
    public const CODE_SHOP_AUDIT_REJECT = 'SHOP_AUDIT_REJECT';
    public const CODE_CTU_INDIRECT_CREATE_FAIL = 'CTU_INDIRECT_CREATE_FAIL';
    public const CODE_DETAIL_ADDRESS_NOT_CONTAIN_KEYWORD_VALUE = 'DETAIL_ADDRESS_NOT_CONTAIN_KEYWORD_VALUE';
    public const CODE_SHOP_NAME_EXIST_RISK = 'SHOP_NAME_EXIST_RISK';
    public const CODE_SHOP_ADDRESS_EXIST_RISK = 'SHOP_ADDRESS_EXIST_RISK';
    public const CODE_SHOP_REMARK_EXIST_RISK = 'SHOP_REMARK_EXIST_RISK';
    public const CODE_EXTERNAL_SHOP_CODE_EXIST_RISK = 'EXTERNAL_SHOP_CODE_EXIST_RISK';
    public const CODE_SHOP_CODE_ALREADY_EXIST = 'SHOP_CODE_ALREADY_EXIST';
    public const CODE_SETTLED_ALIPAYACCOUNT_NOT_EXIST = 'SETTLED_ALIPAYACCOUNT_NOT_EXIST';
    public const CODE_DETAIL_ADDRESS_NOT_CONTAINS_CHINESE_CHARACTER = 'DETAIL_ADDRESS_NOT_CONTAINS_CHINESE_CHARACTER';
    public const CODE_OUTDOOR_IMAGE_URL_IS_EMPTY = 'OUTDOOR_IMAGE_URL_IS_EMPTY';
    public const CODE_BIZ_SCENE_PIC_URL_IS_EMPTY = 'BIZ_SCENE_PIC_URL_IS_EMPTY';
    public const CODE_BUSINESS_LICENSE_URL_IS_EMPTY = 'BUSINESS_LICENSE_URL_IS_EMPTY';
    public const CODE_MERCHANT_LOGO_URL_IS_EMPTY = 'MERCHANT_LOGO_URL_IS_EMPTY';
    public const CODE_SETTLED_BANKCARD_NUMBER_LENGTH_ILLEGAL = 'SETTLED_BANKCARD_NUMBER_LENGTH_ILLEGAL';
    public const CODE_ACCOUNT_HOLDER_NAME_LENGTH_ILLEGAL = 'ACCOUNT_HOLDER_NAME_LENGTH_ILLEGAL';
    public const CODE_ACCOUNT_INST_PROVINCE_LENGTH_ILLEGAL = 'ACCOUNT_INST_PROVINCE_LENGTH_ILLEGAL';
    public const CODE_ACCOUNT_INST_CITY_LENGTH_ILLEGAL = 'ACCOUNT_INST_CITY_LENGTH_ILLEGAL';
    public const CODE_ACCOUNT_BRANCH_NAME_LENGTH_ILLEGAL = 'ACCOUNT_BRANCH_NAME_LENGTH_ILLEGAL';
    public const CODE_ACCOUNT_NAME_LENGTH_ILLEGAL = 'ACCOUNT_NAME_LENGTH_ILLEGAL';
    public const CODE_ACCOUNT_INST_ID_LENGTH_ILLEGAL = 'ACCOUNT_INST_ID_LENGTH_ILLEGAL';
    public const CODE_OUTDOOR_IMAGE_OSSKEY_NOT_EXIST = 'OUTDOOR_IMAGE_OSSKEY_NOT_EXIST';
    public const CODE_BUSINESS_LICENSE_OSSKEY_NOT_EXIST = 'BUSINESS_LICENSE_OSSKEY_NOT_EXIST';
    public const CODE_SPECIAL_TRAVEL_PERMIT_OSSKEY_NOT_EXIST = 'SPECIAL_TRAVEL_PERMIT_OSSKEY_NOT_EXIST';
    public const CODE_OTA_SNAPSHOT_OSSKEY_NOT_EXIST = 'OTA_SNAPSHOT_OSSKEY_NOT_EXIST';
    public const CODE_ID_CARD_MSG_ILLEGAL = 'ID_CARD_MSG_ILLEGAL';
    public const CODE_BUSINESS_LICENSE_ILLEGAL = 'BUSINESS_LICENSE_ILLEGAL';
    public const CODE_BUSINESS_ADDRESS_IS_EMPTY = 'BUSINESS_ADDRESS_IS_EMPTY';
    public const CODE_DETAIL_ADDRESS_CONTAIN_PROVINCES_CITY_REGION = 'DETAIL_ADDRESS_CONTAIN_PROVINCES_CITY_REGION';
    public const CODE_SHOP_INFO_SOURCE_OTHER_TAG = 'SHOP_INFO_SOURCE_OTHER_TAG';
    public const CODE_MERCHANT_ORDER_EXECUTE_CONFLICT = 'MERCHANT_ORDER_EXECUTE_CONFLICT';
    public const CODE_BANK_CARD_TYPE_ILLEGAL = 'BANK_CARD_TYPE_ILLEGAL';
    public const CODE_TARGET_TYPE_ILLEGAL = 'TARGET_TYPE_ILLEGAL';
    public const CODE_SHOP_EXT_INFO_NULL = 'SHOP_EXT_INFO_NULL';
    public const CODE_SHOP_INFO_SOURCE_ILLEGAL = 'SHOP_INFO_SOURCE_ILLEGAL';
    public const CODE_SHOP_INFO_SOURCE_CHANNEL_ILLEGAL = 'SHOP_INFO_SOURCE_CHANNEL_ILLEGAL';
    public const CODE_SHOP_INFO_SOURCE_BIZ_FROM_ILLEGAL = 'SHOP_INFO_SOURCE_BIZ_FROM_ILLEGAL';
    public const CODE_DISTRICT_CODE_ILLEGAL = 'DISTRICT_CODE_ILLEGAL';
    public const CODE_SETTLED_BANKCARD_ACCOUNTINSTPROVINCE_IS_EMPTY = 'SETTLED_BANKCARD_ACCOUNTINSTPROVINCE_IS_EMPTY';
    public const CODE_SETTLED_BANKCARD_ACCOUNTINSTCITY_IS_EMPTY = 'SETTLED_BANKCARD_ACCOUNTINSTCITY_IS_EMPTY';
    public const CODE_SETTLED_CARD_SIZE_IS_ILLEGAL = 'SETTLED_CARD_SIZE_IS_ILLEGAL';
    public const CODE_BANK_CODE_ILLEGAL = 'BANK_CODE_ILLEGAL';
    public const CODE_ADDRESS_VERSION_CODE_ILLEGAL = 'ADDRESS_VERSION_CODE_ILLEGAL';
    public const CODE_SHOP_SHOP_TYPE_ILLEGAL = 'SHOP_SHOP_TYPE_ILLEGAL';
    public const CODE_SHOP_SOURCE_IS_ILLEGAL = 'SHOP_SOURCE_IS_ILLEGAL';
    public const CODE_CATEGORY_WITH_NO_PROOF = 'CATEGORY_WITH_NO_PROOF';
    public const CODE_SHOP_ASSET_CHECK_RESULT_EMPTY = 'SHOP_ASSET_CHECK_RESULT_EMPTY';
    public const CODE_SHOP_ASSET_NOT_BINDABLE = 'SHOP_ASSET_NOT_BINDABLE';
    public const CODE_SHOP_ASSET_MAX_LIMIT = 'SHOP_ASSET_MAX_LIMIT';
    public const CODE_SHOP_PRE_POI_NOT_FILL_ERROR = 'SHOP_PRE_POI_NOT_FILL_ERROR';
    public const CODE_STORE_ID_LENGTH_ILLEGAL = 'STORE_ID_LENGTH_ILLEGAL';
    public const CODE_SHOP_COVER_OSSKEY_NOT_EXIST = 'SHOP_COVER_OSSKEY_NOT_EXIST';
    public const CODE_SHOP_COVER_NOT_EXIST = 'SHOP_COVER_NOT_EXIST';
    public const CODE_SHOP_EXT_INFO_INPUT_ARGUMENT_ILLEGAL = 'SHOP_EXT_INFO_INPUT_ARGUMENT_ILLEGAL';
    public const CODE_SHOP_EXT_INFO_VALUE_INPUT_ARGUMENT_ILLEGAL = 'SHOP_EXT_INFO_VALUE_INPUT_ARGUMENT_ILLEGAL';
    public const CODE_SHOP_CATEGORY_EMPTY = 'SHOP_CATEGORY_EMPTY';
    public const CODE_SHOP_NAME_BRAND_AUDIT_REJECT = 'SHOP_NAME_BRAND_AUDIT_REJECT';
    public const CODE_SHOP_NAME_BUSINESS_AUDIT_REJECT = 'SHOP_NAME_BUSINESS_AUDIT_REJECT';
    public const CODE_BUSINESS_LICENSE_NAME_NOT_MATCH = 'BUSINESS_LICENSE_NAME_NOT_MATCH';
    public const CODE_BUSINESS_LICENSE_EXPIRED = 'BUSINESS_LICENSE_EXPIRED';
    public const CODE_BUSINESS_LICENSE_CANCEL = 'BUSINESS_LICENSE_CANCEL';
    public const CODE_BUSINESS_LICENSE_REVOKED = 'BUSINESS_LICENSE_REVOKED';
    public const CODE_BUSINESS_LICENSE_DATA_STATUS_EXCEPTION = 'BUSINESS_LICENSE_DATA_STATUS_EXCEPTION';
    public const CODE_REQUEST_MER_ARGUMENT_NULL = 'REQUEST_MER_ARGUMENT_NULL';
    public const CODE_CATEGORY_NOT_ALLOWED_TO_MODIFY = 'CATEGORY_NOT_ALLOWED_TO_MODIFY';
    public const CODE_SUBMIT_DIGITAL_POI_AUDIT_FAIL = 'SUBMIT_DIGITAL_POI_AUDIT_FAIL';
    public const CODE_SHOP_INDUSTRY_CODE_DUPLICATED = 'SHOP_INDUSTRY_CODE_DUPLICATED';
    public const CODE_SHOP_INDUSTRY_REQUIRED_VALUE_NULL = 'SHOP_INDUSTRY_REQUIRED_VALUE_NULL';
    public const CODE_LOCATION_NOT_NULL = 'LOCATION_NOT_NULL';
    public const CODE_SHOP_MODIFY_AUDITING = 'SHOP_MODIFY_AUDITING';
    public const CODE_SHOP_INDUSTRY_LICENSE_REQUIRED_BOTH = 'SHOP_INDUSTRY_LICENSE_REQUIRED_BOTH';
    public const CODE_SHOP_LICENSE_REQUIRED_NULL = 'SHOP_LICENSE_REQUIRED_NULL';
    public const CODE_SHOP_INDUSTRY_VALUE_ERROR = 'SHOP_INDUSTRY_VALUE_ERROR';
    public const CODE_BUSINESS_LICENCE_INFO_REQUIRED = 'BUSINESS_LICENCE_INFO_REQUIRED';
    public const CODE_SHOP_MAIN_TYPE_ILLEGAL = 'SHOP_MAIN_TYPE_ILLEGAL';
    public const CODE_SHOP_AUTH_LETTER_EMPTY = 'SHOP_AUTH_LETTER_EMPTY';
    public const CODE_BUSINESS_MODE_NOT_EXIST = 'BUSINESS_MODE_NOT_EXIST';
    public const CODE_GUIDE_B_SITE_OPEN_API = 'GUIDE_B_SITE_OPEN_API';
    public const CODE_SHOP_MAIN_TYPE_EMPTY = 'SHOP_MAIN_TYPE_EMPTY';
    public const CODE_SETTLED_INDUSTRYQUALIFICATIONTYPE_IS_ILLEGAL = 'SETTLED_INDUSTRYQUALIFICATIONTYPE_IS_ILLEGAL';
    public const CODE_BUSINESS_TIME_WEEKDAY_ERROR = 'BUSINESS_TIME_WEEKDAY_ERROR';
    public const CODE_BUSINESS_TIME_WEEKDAY_DUP = 'BUSINESS_TIME_WEEKDAY_DUP';
    public const CODE_BUSINESS_TIME_TIMEPERIOD_ERROR = 'BUSINESS_TIME_TIMEPERIOD_ERROR';
    public const CODE_BUSINESS_TIME_TIMEPERIOD_SIZE_LIMIT = 'BUSINESS_TIME_TIMEPERIOD_SIZE_LIMIT';

    /**
     * Gets allowable values of the enum
     *
     * @return string[]
     */
    public function getCodeAllowableValues()
    {
        return [
            self::CODE_NOT_ALLOWED_SETTLE,
            self::CODE_SHOP_CATEGORY_IS_ILLEGAL,
            self::CODE_ISV_NOT_EXIST,
            self::CODE_SHOP_ACCOUNT_NO_IS_ILLEGAL,
            self::CODE_SHOP_SHOPNO_IS_EMPTY,
            self::CODE_INDUSTRY_QUALIFICATION_IS_EMPTY,
            self::CODE_SETTLED_OUTDOORIMAGE_EMPTY,
            self::CODE_SHOP_SHOPNAME_IS_EMPTY,
            self::CODE_SETTLED_BIZ_ADDRESS_ILLEGAL,
            self::CODE_SHOP_CATEGORY_IS_EMPTY,
            self::CODE_CONTACT_WAY_VALUE_NULL,
            self::CODE_ADDRESS_PROVINCE_CODE_ILLEGAL,
            self::CODE_ADDRESS_CITY_CODE_ILLEGAL,
            self::CODE_ADDRESS_DISTRICT_CODE_ILLEGAL,
            self::CODE_SHOP_ALREADY_EXIST,
            self::CODE_GONGAN_CHECK_FAIL,
            self::CODE_GONGSHANG_CHECK_FAIL,
            self::CODE_INVALID_PARAMETER,
            self::CODE_CONTACT_PERSON_NAME_NULL,
            self::CODE_USER_ILLEGAL,
            self::CODE_BRAND_ILLEGAL,
            self::CODE_PROFILE_KEY_ILLEGAL,
            self::CODE_SETTLED_BANKCARD_NO_IS_EMPTY,
            self::CODE_SETTLED_ACCOUNTHOLDERNAME_EMPTY,
            self::CODE_SETTLED_ACCOUNTBRANCHNAME_EMPTY,
            self::CODE_SETTLED_ACCOUNTINSTNAME_EMPTY,
            self::CODE_SETTLED_USAGETYPE_IS_EMPTY,
            self::CODE_BANK_BRANCH_NAME_ILLEGAL,
            self::CODE_SETTLED_USAGETYPE_ILLEGAL,
            self::CODE_SETTLED_CARD_ACCOUNTINSTID_EMPTY,
            self::CODE_SETTLED_CARD_ACCOUNTTYPE_EMPTY,
            self::CODE_BANK_ACCOUNTINSTID_ILLEGAL,
            self::CODE_SETTLED_CARD_ACCOUNTTYPE_ILLEGAL,
            self::CODE_BANK_ACCOUNTINSTNAME_ILLEGAL,
            self::CODE_SYSTEM_ERROR,
            self::CODE_GONGSHANG_LICENSE_ILLEGAL,
            self::CODE_BUSINESS_LICENSE_EMPTY,
            self::CODE_MERCHANT_NOT_EXIST,
            self::CODE_ATTACHMENT_TYPE_ILLEGAL,
            self::CODE_SHOP_NOT_EXIST,
            self::CODE_ATTACHMENT_URL_NULL,
            self::CODE_LOCATION_CHECK_FAIL,
            self::CODE_ATTACHMENT_CHECK_FAIL,
            self::CODE_BUSINESS_TIME_ILLEGAL,
            self::CODE_SHOP_AUDIT_REJECT,
            self::CODE_CTU_INDIRECT_CREATE_FAIL,
            self::CODE_DETAIL_ADDRESS_NOT_CONTAIN_KEYWORD_VALUE,
            self::CODE_SHOP_NAME_EXIST_RISK,
            self::CODE_SHOP_ADDRESS_EXIST_RISK,
            self::CODE_SHOP_REMARK_EXIST_RISK,
            self::CODE_EXTERNAL_SHOP_CODE_EXIST_RISK,
            self::CODE_SHOP_CODE_ALREADY_EXIST,
            self::CODE_SETTLED_ALIPAYACCOUNT_NOT_EXIST,
            self::CODE_DETAIL_ADDRESS_NOT_CONTAINS_CHINESE_CHARACTER,
            self::CODE_OUTDOOR_IMAGE_URL_IS_EMPTY,
            self::CODE_BIZ_SCENE_PIC_URL_IS_EMPTY,
            self::CODE_BUSINESS_LICENSE_URL_IS_EMPTY,
            self::CODE_MERCHANT_LOGO_URL_IS_EMPTY,
            self::CODE_SETTLED_BANKCARD_NUMBER_LENGTH_ILLEGAL,
            self::CODE_ACCOUNT_HOLDER_NAME_LENGTH_ILLEGAL,
            self::CODE_ACCOUNT_INST_PROVINCE_LENGTH_ILLEGAL,
            self::CODE_ACCOUNT_INST_CITY_LENGTH_ILLEGAL,
            self::CODE_ACCOUNT_BRANCH_NAME_LENGTH_ILLEGAL,
            self::CODE_ACCOUNT_NAME_LENGTH_ILLEGAL,
            self::CODE_ACCOUNT_INST_ID_LENGTH_ILLEGAL,
            self::CODE_OUTDOOR_IMAGE_OSSKEY_NOT_EXIST,
            self::CODE_BUSINESS_LICENSE_OSSKEY_NOT_EXIST,
            self::CODE_SPECIAL_TRAVEL_PERMIT_OSSKEY_NOT_EXIST,
            self::CODE_OTA_SNAPSHOT_OSSKEY_NOT_EXIST,
            self::CODE_ID_CARD_MSG_ILLEGAL,
            self::CODE_BUSINESS_LICENSE_ILLEGAL,
            self::CODE_BUSINESS_ADDRESS_IS_EMPTY,
            self::CODE_DETAIL_ADDRESS_CONTAIN_PROVINCES_CITY_REGION,
            self::CODE_SHOP_INFO_SOURCE_OTHER_TAG,
            self::CODE_MERCHANT_ORDER_EXECUTE_CONFLICT,
            self::CODE_BANK_CARD_TYPE_ILLEGAL,
            self::CODE_TARGET_TYPE_ILLEGAL,
            self::CODE_SHOP_EXT_INFO_NULL,
            self::CODE_SHOP_INFO_SOURCE_ILLEGAL,
            self::CODE_SHOP_INFO_SOURCE_CHANNEL_ILLEGAL,
            self::CODE_SHOP_INFO_SOURCE_BIZ_FROM_ILLEGAL,
            self::CODE_DISTRICT_CODE_ILLEGAL,
            self::CODE_SETTLED_BANKCARD_ACCOUNTINSTPROVINCE_IS_EMPTY,
            self::CODE_SETTLED_BANKCARD_ACCOUNTINSTCITY_IS_EMPTY,
            self::CODE_SETTLED_CARD_SIZE_IS_ILLEGAL,
            self::CODE_BANK_CODE_ILLEGAL,
            self::CODE_ADDRESS_VERSION_CODE_ILLEGAL,
            self::CODE_SHOP_SHOP_TYPE_ILLEGAL,
            self::CODE_SHOP_SOURCE_IS_ILLEGAL,
            self::CODE_CATEGORY_WITH_NO_PROOF,
            self::CODE_SHOP_ASSET_CHECK_RESULT_EMPTY,
            self::CODE_SHOP_ASSET_NOT_BINDABLE,
            self::CODE_SHOP_ASSET_MAX_LIMIT,
            self::CODE_SHOP_PRE_POI_NOT_FILL_ERROR,
            self::CODE_STORE_ID_LENGTH_ILLEGAL,
            self::CODE_SHOP_COVER_OSSKEY_NOT_EXIST,
            self::CODE_SHOP_COVER_NOT_EXIST,
            self::CODE_SHOP_EXT_INFO_INPUT_ARGUMENT_ILLEGAL,
            self::CODE_SHOP_EXT_INFO_VALUE_INPUT_ARGUMENT_ILLEGAL,
            self::CODE_SHOP_CATEGORY_EMPTY,
            self::CODE_SHOP_NAME_BRAND_AUDIT_REJECT,
            self::CODE_SHOP_NAME_BUSINESS_AUDIT_REJECT,
            self::CODE_BUSINESS_LICENSE_NAME_NOT_MATCH,
            self::CODE_BUSINESS_LICENSE_EXPIRED,
            self::CODE_BUSINESS_LICENSE_CANCEL,
            self::CODE_BUSINESS_LICENSE_REVOKED,
            self::CODE_BUSINESS_LICENSE_DATA_STATUS_EXCEPTION,
            self::CODE_REQUEST_MER_ARGUMENT_NULL,
            self::CODE_CATEGORY_NOT_ALLOWED_TO_MODIFY,
            self::CODE_SUBMIT_DIGITAL_POI_AUDIT_FAIL,
            self::CODE_SHOP_INDUSTRY_CODE_DUPLICATED,
            self::CODE_SHOP_INDUSTRY_REQUIRED_VALUE_NULL,
            self::CODE_LOCATION_NOT_NULL,
            self::CODE_SHOP_MODIFY_AUDITING,
            self::CODE_SHOP_INDUSTRY_LICENSE_REQUIRED_BOTH,
            self::CODE_SHOP_LICENSE_REQUIRED_NULL,
            self::CODE_SHOP_INDUSTRY_VALUE_ERROR,
            self::CODE_BUSINESS_LICENCE_INFO_REQUIRED,
            self::CODE_SHOP_MAIN_TYPE_ILLEGAL,
            self::CODE_SHOP_AUTH_LETTER_EMPTY,
            self::CODE_BUSINESS_MODE_NOT_EXIST,
            self::CODE_GUIDE_B_SITE_OPEN_API,
            self::CODE_SHOP_MAIN_TYPE_EMPTY,
            self::CODE_SETTLED_INDUSTRYQUALIFICATIONTYPE_IS_ILLEGAL,
            self::CODE_BUSINESS_TIME_WEEKDAY_ERROR,
            self::CODE_BUSINESS_TIME_WEEKDAY_DUP,
            self::CODE_BUSINESS_TIME_TIMEPERIOD_ERROR,
            self::CODE_BUSINESS_TIME_TIMEPERIOD_SIZE_LIMIT,
        ];
    }

    /**
     * Associative array for storing property values
     *
     * @var mixed[]
     */
    protected $container = [];

    /**
     * Constructor
     *
     * @param mixed[] $data Associated array of property values
     *                      initializing the model
     */
    public function __construct(array $data = null)
    {
        $this->container['code'] = $data['code'] ?? null;
        $this->container['links'] = $data['links'] ?? null;
        $this->container['message'] = $data['message'] ?? null;
    }

    /**
     * Show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalidProperties = [];

        //if ($this->container['code'] === null) {
        //    $invalidProperties[] = "'code' can't be null";
        //}
        $allowedValues = $this->getCodeAllowableValues();
        if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) {
            $invalidProperties[] = sprintf(
                "invalid value '%s' for 'code', must be one of '%s'",
                $this->container['code'],
                implode("', '", $allowedValues)
            );
        }

        //if ($this->container['message'] === null) {
        //    $invalidProperties[] = "'message' can't be null";
        //}
        return $invalidProperties;
    }

    /**
     * Validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {
        return count($this->listInvalidProperties()) === 0;
    }


    /**
     * Gets code
     *
     * @return string
     */
    public function getCode()
    {
        return $this->container['code'];
    }

    /**
     * Sets code
     *
     * @param string $code 错误码
     *
     * @return self
     */
    public function setCode($code)
    {
        $allowedValues = $this->getCodeAllowableValues();
        if (!is_null($code) && !in_array($code, $allowedValues, true)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value '%s' for 'code', must be one of '%s'",
                    $code,
                    implode("', '", $allowedValues)
                )
            );
        }
        $this->container['code'] = $code;

        return $this;
    }

    /**
     * Gets links
     *
     * @return string|null
     */
    public function getLinks()
    {
        return $this->container['links'];
    }

    /**
     * Sets links
     *
     * @param string|null $links 解决方案链接
     *
     * @return self
     */
    public function setLinks($links)
    {
        $this->container['links'] = $links;

        return $this;
    }

    /**
     * Gets message
     *
     * @return string
     */
    public function getMessage()
    {
        return $this->container['message'];
    }

    /**
     * Sets message
     *
     * @param string $message 错误描述
     *
     * @return self
     */
    public function setMessage($message)
    {
        $this->container['message'] = $message;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     *
     * @param integer $offset Offset
     *
     * @return boolean
     */
    public function offsetExists($offset): bool
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     *
     * @param integer $offset Offset
     *
     * @return mixed|null
     */
    #[\ReturnTypeWillChange]
    public function offsetGet($offset)
    {
        return $this->container[$offset] ?? null;
    }

    /**
     * Sets value based on offset.
     *
     * @param int|null $offset Offset
     * @param mixed    $value  Value to be set
     *
     * @return void
     */
    public function offsetSet($offset, $value): void
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     *
     * @param integer $offset Offset
     *
     * @return void
     */
    public function offsetUnset($offset): void
    {
        unset($this->container[$offset]);
    }

    /**
     * Serializes the object to a value that can be serialized natively by json_encode().
     * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
     *
     * @return mixed Returns data which can be serialized by json_encode(), which is a value
     * of any type other than a resource.
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
       return ObjectSerializer::sanitizeForSerialization($this);
    }

    /**
     * Gets the string presentation of the object
     *
     * @return string
     */
    public function __toString()
    {
        return json_encode(
            ObjectSerializer::sanitizeForSerialization($this),
            JSON_PRETTY_PRINT
        );
    }

    /**
     * Gets a header-safe presentation of the object
     *
     * @return string
     */
    public function toHeaderValue()
    {
        return json_encode(ObjectSerializer::sanitizeForSerialization($this));
    }
}


