// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema.Payments;

///<summary>
/// Get info about a credit card
/// <para>Possible errors</para>
/// Code Type Description
/// 400 BANK_CARD_NUMBER_INVALID The specified card number is invalid.
/// See <a href="https://corefork.telegram.org/method/payments.getBankCardData" />
///</summary>
[TlObject(0x2e79d779)]
public sealed class RequestGetBankCardData : IRequest<MyTelegram.Schema.Payments.IBankCardData>
{
    public uint ConstructorId => 0x2e79d779;
    ///<summary>
    /// Credit card number
    ///</summary>
    public string Number { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Number);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Number = buffer.ReadString();
    }
}
