<?php #CodeGenerator V3 Δ 550f19c9a186d8822f79b2bf129d8844 Δ DYNAMICALLY GENERATED FILE - Do not modify this line! Remove it completely to protect the file from changes.
/**
 * JSON:API Request Class
 *
 * @version     1.0.$Revision:$
 * @version     SVN: $Id:$
 * @version     STUB: 1.0.0
 * @generated   2026-03-27 09:38:45
 * @package     bplan-base/globals
 * @subpackage  Requests
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 * @copyright   Copyright (C) 2025, 2026 bplan-solutions GmbH & Co. KG <https://www.bplan-solutions.de/>
 * /Δ\
 */

namespace BplanBase\Globals\JsonApi\Terminal\Countries;


use LaravelJsonApi\Laravel\Http\Requests\ResourceRequest;
use LaravelJsonApi\Validation\Rule as JsonApiRule;


/**
 * JSON:API Request Class
 *
 * @version     1.0.0 / 2026-03-27
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class CountryRequest extends ResourceRequest
{


/* +++ TRAITS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS CONSTANTS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT MEMBERS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS MEMBERS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT METHODS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


    /**
     * Get the validation rules for the resource.
     *
     * @return      array
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function rules(): array
    {
        return [
            'active'                       => JsonApiRule::boolean(),
            'area'                         => ['nullable'],
            'capitalNames'                 => [],
            'comments'                     => ['nullable', 'string', 'max:2000'],
            'fips10'                       => ['nullable', 'string', 'max:2'],
            'ioc'                          => ['nullable', 'string', 'max:3'],
            'iso3166Alpha2'                => ['nullable', 'string', 'max:2'],
            'iso3166Alpha3'                => ['nullable', 'string', 'max:3'],
            'iso3166Numeric'               => ['nullable', 'string', 'max:3'],
            'localName'                    => ['nullable', 'string', 'max:150'],
            'locales'                      => [],
            'longNames'                    => [],
            'nationalityNames'             => [],
            'natoCountryCode2'             => ['nullable', 'string', 'max:2'],
            'natoCountryCode3'             => ['nullable', 'string', 'max:3'],
            'shortNames'                   => [],
            'telephoneCountryCode'         => ['nullable', 'string', 'max:5'],
            'telephoneCountryCodeExtended' => ['nullable', 'string', 'max:100'],
            'tld'                          => ['nullable', 'string', 'max:3'],
            'vehicleRegistrationCode'      => ['nullable', 'string', 'max:3'],

        ];
    } // rules()


/* +++ CLASS METHODS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


} // class CountryRequest extends ResourceRequest {}
