<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio - Numbers
 * This is the public Twilio REST API.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Numbers\V2;

use Twilio\Values;
abstract class ApplicationModels
{
    /**
     * @property string $customerFacingProfile The Compliance Profile SID for the customer-facing business profile.
    */
    public static function createCreateShortCodeApplicationRequestBusinessInformation(array $payload = []): CreateShortCodeApplicationRequestBusinessInformation
    {
        return new CreateShortCodeApplicationRequestBusinessInformation($payload);
    }

    /**
     * @property bool $chargesApply
    */
    public static function createCreateShortCodeApplicationRequestSetup(array $payload = []): CreateShortCodeApplicationRequestSetup
    {
        return new CreateShortCodeApplicationRequestSetup($payload);
    }

    /**
     * @property string $friendlyName The friendly name for the short code application.
     * @property string $isoCountry The ISO country code.
     * @property CreateShortCodeApplicationRequestBusinessInformation $businessInformation
     * @property CreateShortCodeApplicationRequestSetup $setup
    */
    public static function createCreateShortCodeApplicationRequest(array $payload = []): CreateShortCodeApplicationRequest
    {
        return new CreateShortCodeApplicationRequest($payload);
    }

}

class CreateShortCodeApplicationRequestBusinessInformation implements \JsonSerializable
{
    /**
     * @property string $customerFacingProfile The Compliance Profile SID for the customer-facing business profile.
    */
        protected $customerFacingProfile;
    public function __construct(array $payload = []) {
        $this->customerFacingProfile = Values::array_get($payload, 'customer_facing_profile');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        $jsonString = [
            'customer_facing_profile' => $this->customerFacingProfile
        ];
        return $jsonString;
    }
}

class CreateShortCodeApplicationRequestSetup implements \JsonSerializable
{
    /**
     * @property bool $chargesApply
    */
        protected $chargesApply;
    public function __construct(array $payload = []) {
        $this->chargesApply = Values::array_get($payload, 'charges_apply');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        $jsonString = [
            'charges_apply' => $this->chargesApply
        ];
        return $jsonString;
    }
}

class CreateShortCodeApplicationRequest implements \JsonSerializable
{
    /**
     * @property string $friendlyName The friendly name for the short code application.
     * @property string $isoCountry The ISO country code.
     * @property CreateShortCodeApplicationRequestBusinessInformation $businessInformation
     * @property CreateShortCodeApplicationRequestSetup $setup
    */
        protected $friendlyName;
        protected $isoCountry;
        protected $businessInformation;
        protected $setup;
    public function __construct(array $payload = []) {
        $this->friendlyName = Values::array_get($payload, 'friendly_name');
        $this->isoCountry = Values::array_get($payload, 'iso_country');
        $this->businessInformation = Values::array_get($payload, 'business_information');
        $this->setup = Values::array_get($payload, 'setup');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        $jsonString = [
            'friendly_name' => $this->friendlyName,
            'iso_country' => $this->isoCountry,
            'business_information' => $this->businessInformation,
            'setup' => $this->setup
        ];
        return $jsonString;
    }
}

