using JsonRpcEndpointSample.Rpc.Abstractions;

namespace JsonRpcEndpointSample.Bank.Models;

public sealed class MakeDepositRequest
{
    [RpcSchemaProperty(Description = "Bank account number receiving the deposit.", Required = true)]
    public string? AccountNumber
    {
        get; set;
    }

    [RpcSchemaProperty(Description = "Amount of money to deposit.", Required = true, HasMinimum = true, Minimum = 0.01)]
    public decimal Amount
    {
        get; set;
    }
}
