<?php

declare(strict_types=1);

namespace PHPMax\Api\Auth;

use PHPMax\Support\Model;

class ConfirmRegistrationPayload extends Model
{
     
    public $firstName;
     
    public $lastName;
     
    public $token;
     
    public $tokenType;

    protected static function schema(): array
    {
        return [
            'firstName' => ['type' => 'string', 'required' => true],
            'lastName' => ['type' => 'string'],
            'token' => ['type' => 'string', 'required' => true],
            'tokenType' => ['type' => 'string', 'default' => AuthType::REGISTER],
        ];
    }
}

