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

namespace MyTelegram.Schema.Payments;

///<summary>
/// Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a>
/// See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice" />
///</summary>
[TlObject(0xaed0cbd9)]
public sealed class TExportedInvoice : IExportedInvoice
{
    public uint ConstructorId => 0xaed0cbd9;
    ///<summary>
    /// Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a>
    ///</summary>
    public string Url { get; set; }

    public void ComputeFlag()
    {

    }

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

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