<?php #CodeGenerator V3 Δ 4c58ed2f3b4ed2bf38c8ef1f6cf57f44 Δ 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-05-27 10:03:41
 * @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\Data\Individuals;


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


/**
 * JSON:API Request Class
 *
 * @version     1.0.0 / 2026-05-27
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class IndividualRequest 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-05-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(),
            'company'                      => ['nullable', 'string', 'max:30'],
            'contact'                      => JsonApiRule::boolean(),
            'contactGroup'                 => ['nullable', 'string', 'max:30'],
            'costCenter'                   => ['nullable', 'string', 'max:30'],
            'dateOfBirth'                  => ['nullable'],
            'dateOfEntry'                  => ['nullable'],
            'department'                   => ['nullable', 'string', 'max:50'],
            'email'                        => ['nullable', 'email', 'max:255'],
            'emergencyContact'             => JsonApiRule::boolean(),
            'firstName'                    => ['nullable', 'string', 'max:50'],
            'formOfAddress'                => ['nullable', 'string', 'max:10'],
            'function'                     => ['nullable', 'string', 'max:50'],
            'gender'                       => ['nullable', 'string', 'max:30'],
            'globalContact'                => JsonApiRule::boolean(),
            'idNumber'                     => ['nullable', 'string', 'max:36'],
            'jobTitle'                     => ['nullable', 'string', 'max:30'],
            'lastName'                     => ['nullable', 'string', 'max:50'],
            'mobilePhoneNumber'            => ['nullable', 'string', 'max:20'],
            'mobilePhoneNumberCountryCode' => ['nullable', 'string', 'max:4'],
            'mobilePhoneNumberFull'        => ['nullable', 'string', 'max:25'],
            'organizationalUnit'           => ['nullable', 'string', 'max:30'],
            'personnelNumber'              => ['nullable', 'numeric', 'max:30'],
            'phoneNumber'                  => ['nullable', 'string', 'max:20'],
            'phoneNumberCountryCode'       => ['nullable', 'string', 'max:4'],
            'phoneNumberFull'              => ['nullable', 'string', 'max:25'],

            'entity-type'                  => ['required', JsonApiRule::toOne()],

        ];
    } // rules()


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


} // class IndividualRequest extends ResourceRequest {}
