<?php

namespace Shm\ShmPayment\TBankPayment\TBankCollections;

use Shm\Collection\Collection;
use Shm\Shm;
use Shm\ShmTypes\StructureType;

class TNominalBankDetails extends Collection
{

    public function schema(): StructureType
    {
        return Shm::structure([
            "beneficiary" => Shm::ID(TNominalBeneficiaries::structure()),
            "type" => Shm::static("PAYMENT_DETAILS"),
            "isDefault" => Shm::boolean(),
            "bik" => Shm::string()->title("БИК"),
            "kpp" => Shm::string()->title("КПП"),
            "inn" => Shm::string()->title("ИНН"),
            "name" => Shm::string()->title("ФИО получателя ИП или Юр.лицо"),
            "bankName" => Shm::string()->title("Наименование банка"),
            "accountNumber" => Shm::string()->title("Номер счета"),
            "corrAccountNumber" => Shm::string()->title("Корреспондентский счет"),
        ]);
    }
}