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

namespace MyTelegram.Schema.Auth;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/auth.sentCodePaymentRequired" />
///</summary>
[TlObject(0xd7cef980)]
public sealed class TSentCodePaymentRequired : ISentCode
{
    public uint ConstructorId => 0xd7cef980;
    public string StoreProduct { get; set; }
    public string PhoneCodeHash { get; set; }

    public void ComputeFlag()
    {

    }

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

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