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

namespace MyTelegram.Schema;

///<summary>
/// Google Pay payment credentials
/// See <a href="https://corefork.telegram.org/constructor/inputPaymentCredentialsGooglePay" />
///</summary>
[TlObject(0x8ac32801)]
public sealed class TInputPaymentCredentialsGooglePay : IInputPaymentCredentials
{
    public uint ConstructorId => 0x8ac32801;
    ///<summary>
    /// Payment token
    /// See <a href="https://corefork.telegram.org/type/DataJSON" />
    ///</summary>
    public MyTelegram.Schema.IDataJSON PaymentToken { get; set; }

    public void ComputeFlag()
    {

    }

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

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