<?php #CodeGenerator V3 Δ 5bb782320760a3271513e53dc0f63d22 Δ 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 11:44:50
 * @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\TenantRecords;


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 TenantRecordRequest 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 [
            'city'                         => ['nullable', 'string', 'max:50'],
            'company'                      => ['nullable', 'string', 'max:100'],
            'description'                  => ['nullable'],
            'email'                        => ['nullable', 'email', 'max:255'],
            'homePage'                     => ['nullable', 'string', 'max:255'],
            'houseNumber'                  => ['nullable', 'string', 'max:5'],
            'mobilePhoneNumber'            => ['nullable', 'string', 'max:30'],
            'mobilePhoneNumberCountryCode' => ['nullable', 'string', 'max:5'],
            'phoneNumber'                  => ['nullable', 'string', 'max:30'],
            'phoneNumberCountryCode'       => ['nullable', 'string', 'max:5'],
            'shortName'                    => ['nullable', 'string', 'max:30'],
            'street'                       => ['nullable', 'string', 'max:100'],
            'zipCode'                      => ['nullable', 'string', 'max:10'],

            'tenant'                       => JsonApiRule::toOne(),
            'country'                      => JsonApiRule::toOne(),

        ];
    } // rules()


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


} // class TenantRecordRequest extends ResourceRequest {}
