v3/src/Model/AlipayOpenAgentMobilepaySignRequest.php
<?php
/**
 * AlipayOpenAgentMobilepaySignRequest
 *
 * 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;

/**
 * AlipayOpenAgentMobilepaySignRequest 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 AlipayOpenAgentMobilepaySignRequest implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'appAuthPic' => '\SplFileObject',
        'appDemo' => '\SplFileObject',
        'appHomeScreenshot' => '\SplFileObject',
        'appItemScreenshot' => '\SplFileObject',
        'appPayScreenshot' => '\SplFileObject',
        'businessLicenseAuthPic' => '\SplFileObject',
        'businessLicensePic' => '\SplFileObject',
        'data' => '\Alipay\OpenAPISDK\Model\AlipayOpenAgentMobilepaySignModel',
        'homeScreenshot' => '\SplFileObject',
        'inAppScreenshot' => '\SplFileObject',
        'payScreenshot' => '\SplFileObject',
        'specialLicensePic' => '\SplFileObject'
    ];

    /**
      * 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 = [
        'appAuthPic' => 'binary',
        'appDemo' => 'binary',
        'appHomeScreenshot' => 'binary',
        'appItemScreenshot' => 'binary',
        'appPayScreenshot' => 'binary',
        'businessLicenseAuthPic' => 'binary',
        'businessLicensePic' => 'binary',
        'data' => null,
        'homeScreenshot' => 'binary',
        'inAppScreenshot' => 'binary',
        'payScreenshot' => 'binary',
        'specialLicensePic' => 'binary'
    ];

    /**
     * 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 = [
        'appAuthPic' => 'app_auth_pic',
        'appDemo' => 'app_demo',
        'appHomeScreenshot' => 'app_home_screenshot',
        'appItemScreenshot' => 'app_item_screenshot',
        'appPayScreenshot' => 'app_pay_screenshot',
        'businessLicenseAuthPic' => 'business_license_auth_pic',
        'businessLicensePic' => 'business_license_pic',
        'data' => 'data',
        'homeScreenshot' => 'home_screenshot',
        'inAppScreenshot' => 'in_app_screenshot',
        'payScreenshot' => 'pay_screenshot',
        'specialLicensePic' => 'special_license_pic'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'appAuthPic' => 'setAppAuthPic',
        'appDemo' => 'setAppDemo',
        'appHomeScreenshot' => 'setAppHomeScreenshot',
        'appItemScreenshot' => 'setAppItemScreenshot',
        'appPayScreenshot' => 'setAppPayScreenshot',
        'businessLicenseAuthPic' => 'setBusinessLicenseAuthPic',
        'businessLicensePic' => 'setBusinessLicensePic',
        'data' => 'setData',
        'homeScreenshot' => 'setHomeScreenshot',
        'inAppScreenshot' => 'setInAppScreenshot',
        'payScreenshot' => 'setPayScreenshot',
        'specialLicensePic' => 'setSpecialLicensePic'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'appAuthPic' => 'getAppAuthPic',
        'appDemo' => 'getAppDemo',
        'appHomeScreenshot' => 'getAppHomeScreenshot',
        'appItemScreenshot' => 'getAppItemScreenshot',
        'appPayScreenshot' => 'getAppPayScreenshot',
        'businessLicenseAuthPic' => 'getBusinessLicenseAuthPic',
        'businessLicensePic' => 'getBusinessLicensePic',
        'data' => 'getData',
        'homeScreenshot' => 'getHomeScreenshot',
        'inAppScreenshot' => 'getInAppScreenshot',
        'payScreenshot' => 'getPayScreenshot',
        'specialLicensePic' => 'getSpecialLicensePic'
    ];

    /**
     * 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;
    }


    /**
     * 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['appAuthPic'] = $data['appAuthPic'] ?? null;
        $this->container['appDemo'] = $data['appDemo'] ?? null;
        $this->container['appHomeScreenshot'] = $data['appHomeScreenshot'] ?? null;
        $this->container['appItemScreenshot'] = $data['appItemScreenshot'] ?? null;
        $this->container['appPayScreenshot'] = $data['appPayScreenshot'] ?? null;
        $this->container['businessLicenseAuthPic'] = $data['businessLicenseAuthPic'] ?? null;
        $this->container['businessLicensePic'] = $data['businessLicensePic'] ?? null;
        $this->container['data'] = $data['data'] ?? null;
        $this->container['homeScreenshot'] = $data['homeScreenshot'] ?? null;
        $this->container['inAppScreenshot'] = $data['inAppScreenshot'] ?? null;
        $this->container['payScreenshot'] = $data['payScreenshot'] ?? null;
        $this->container['specialLicensePic'] = $data['specialLicensePic'] ?? null;
    }

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

        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 appAuthPic
     *
     * @return \SplFileObject|null
     */
    public function getAppAuthPic()
    {
        return $this->container['appAuthPic'];
    }

    /**
     * Sets appAuthPic
     *
     * @param \SplFileObject|null $appAuthPic appAuthPic
     *
     * @return self
     */
    public function setAppAuthPic($appAuthPic)
    {
        $this->container['appAuthPic'] = $appAuthPic;

        return $this;
    }

    /**
     * Gets appDemo
     *
     * @return \SplFileObject|null
     */
    public function getAppDemo()
    {
        return $this->container['appDemo'];
    }

    /**
     * Sets appDemo
     *
     * @param \SplFileObject|null $appDemo appDemo
     *
     * @return self
     */
    public function setAppDemo($appDemo)
    {
        $this->container['appDemo'] = $appDemo;

        return $this;
    }

    /**
     * Gets appHomeScreenshot
     *
     * @return \SplFileObject|null
     */
    public function getAppHomeScreenshot()
    {
        return $this->container['appHomeScreenshot'];
    }

    /**
     * Sets appHomeScreenshot
     *
     * @param \SplFileObject|null $appHomeScreenshot appHomeScreenshot
     *
     * @return self
     */
    public function setAppHomeScreenshot($appHomeScreenshot)
    {
        $this->container['appHomeScreenshot'] = $appHomeScreenshot;

        return $this;
    }

    /**
     * Gets appItemScreenshot
     *
     * @return \SplFileObject|null
     */
    public function getAppItemScreenshot()
    {
        return $this->container['appItemScreenshot'];
    }

    /**
     * Sets appItemScreenshot
     *
     * @param \SplFileObject|null $appItemScreenshot appItemScreenshot
     *
     * @return self
     */
    public function setAppItemScreenshot($appItemScreenshot)
    {
        $this->container['appItemScreenshot'] = $appItemScreenshot;

        return $this;
    }

    /**
     * Gets appPayScreenshot
     *
     * @return \SplFileObject|null
     */
    public function getAppPayScreenshot()
    {
        return $this->container['appPayScreenshot'];
    }

    /**
     * Sets appPayScreenshot
     *
     * @param \SplFileObject|null $appPayScreenshot appPayScreenshot
     *
     * @return self
     */
    public function setAppPayScreenshot($appPayScreenshot)
    {
        $this->container['appPayScreenshot'] = $appPayScreenshot;

        return $this;
    }

    /**
     * Gets businessLicenseAuthPic
     *
     * @return \SplFileObject|null
     */
    public function getBusinessLicenseAuthPic()
    {
        return $this->container['businessLicenseAuthPic'];
    }

    /**
     * Sets businessLicenseAuthPic
     *
     * @param \SplFileObject|null $businessLicenseAuthPic businessLicenseAuthPic
     *
     * @return self
     */
    public function setBusinessLicenseAuthPic($businessLicenseAuthPic)
    {
        $this->container['businessLicenseAuthPic'] = $businessLicenseAuthPic;

        return $this;
    }

    /**
     * Gets businessLicensePic
     *
     * @return \SplFileObject|null
     */
    public function getBusinessLicensePic()
    {
        return $this->container['businessLicensePic'];
    }

    /**
     * Sets businessLicensePic
     *
     * @param \SplFileObject|null $businessLicensePic businessLicensePic
     *
     * @return self
     */
    public function setBusinessLicensePic($businessLicensePic)
    {
        $this->container['businessLicensePic'] = $businessLicensePic;

        return $this;
    }

    /**
     * Gets data
     *
     * @return \Alipay\OpenAPISDK\Model\AlipayOpenAgentMobilepaySignModel|null
     */
    public function getData()
    {
        return $this->container['data'];
    }

    /**
     * Sets data
     *
     * @param \Alipay\OpenAPISDK\Model\AlipayOpenAgentMobilepaySignModel|null $data data
     *
     * @return self
     */
    public function setData($data)
    {
        $this->container['data'] = $data;

        return $this;
    }

    /**
     * Gets homeScreenshot
     *
     * @return \SplFileObject|null
     */
    public function getHomeScreenshot()
    {
        return $this->container['homeScreenshot'];
    }

    /**
     * Sets homeScreenshot
     *
     * @param \SplFileObject|null $homeScreenshot homeScreenshot
     *
     * @return self
     */
    public function setHomeScreenshot($homeScreenshot)
    {
        $this->container['homeScreenshot'] = $homeScreenshot;

        return $this;
    }

    /**
     * Gets inAppScreenshot
     *
     * @return \SplFileObject|null
     */
    public function getInAppScreenshot()
    {
        return $this->container['inAppScreenshot'];
    }

    /**
     * Sets inAppScreenshot
     *
     * @param \SplFileObject|null $inAppScreenshot inAppScreenshot
     *
     * @return self
     */
    public function setInAppScreenshot($inAppScreenshot)
    {
        $this->container['inAppScreenshot'] = $inAppScreenshot;

        return $this;
    }

    /**
     * Gets payScreenshot
     *
     * @return \SplFileObject|null
     */
    public function getPayScreenshot()
    {
        return $this->container['payScreenshot'];
    }

    /**
     * Sets payScreenshot
     *
     * @param \SplFileObject|null $payScreenshot payScreenshot
     *
     * @return self
     */
    public function setPayScreenshot($payScreenshot)
    {
        $this->container['payScreenshot'] = $payScreenshot;

        return $this;
    }

    /**
     * Gets specialLicensePic
     *
     * @return \SplFileObject|null
     */
    public function getSpecialLicensePic()
    {
        return $this->container['specialLicensePic'];
    }

    /**
     * Sets specialLicensePic
     *
     * @param \SplFileObject|null $specialLicensePic specialLicensePic
     *
     * @return self
     */
    public function setSpecialLicensePic($specialLicensePic)
    {
        $this->container['specialLicensePic'] = $specialLicensePic;

        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));
    }
}


