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

namespace MyTelegram.Schema.Payments;

///<summary>
/// See <a href="https://corefork.telegram.org/method/payments.canPurchaseStore" />
///</summary>
[TlObject(0x4fdc5ea7)]
public sealed class RequestCanPurchaseStore : IRequest<IBool>
{
    public uint ConstructorId => 0x4fdc5ea7;
    public MyTelegram.Schema.IInputStorePaymentPurpose Purpose { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Purpose = buffer.Read<MyTelegram.Schema.IInputStorePaymentPurpose>();
    }
}
