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

namespace MyTelegram.Schema;

///<summary>
/// Apple pay payment credentials
/// See <a href="https://corefork.telegram.org/constructor/inputPaymentCredentialsApplePay" />
///</summary>
[TlObject(0xaa1c39f)]
public sealed class TInputPaymentCredentialsApplePay : IInputPaymentCredentials
{
    public uint ConstructorId => 0xaa1c39f;
    ///<summary>
    /// Payment data
    /// See <a href="https://corefork.telegram.org/type/DataJSON" />
    ///</summary>
    public MyTelegram.Schema.IDataJSON PaymentData { get; set; }

    public void ComputeFlag()
    {

    }

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

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