Class TdApi.MessagePaymentSuccessful

Enclosing class:
TdApi

public static class TdApi.MessagePaymentSuccessful extends TdApi.MessageContent
A payment has been completed.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Currency for the price of the product.
    long
    Identifier of the chat, containing the corresponding invoice message.
    long
    Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.
    Name of the invoice; may be empty if unknown.
    boolean
    True, if this is the first recurring payment.
    boolean
    True, if this is a recurring payment.
    long
    Total price for the product, in the smallest units of the currency.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A payment has been completed.
    MessagePaymentSuccessful(long invoiceChatId, long invoiceMessageId, String currency, long totalAmount, boolean isRecurring, boolean isFirstRecurring, String invoiceName)
    A payment has been completed.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • invoiceChatId

      public long invoiceChatId
      Identifier of the chat, containing the corresponding invoice message.
    • invoiceMessageId

      public long invoiceMessageId
      Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.
    • currency

      public String currency
      Currency for the price of the product.
    • totalAmount

      public long totalAmount
      Total price for the product, in the smallest units of the currency.
    • isRecurring

      public boolean isRecurring
      True, if this is a recurring payment.
    • isFirstRecurring

      public boolean isFirstRecurring
      True, if this is the first recurring payment.
    • invoiceName

      public String invoiceName
      Name of the invoice; may be empty if unknown.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • MessagePaymentSuccessful

      public MessagePaymentSuccessful()
      A payment has been completed.
    • MessagePaymentSuccessful

      public MessagePaymentSuccessful(long invoiceChatId, long invoiceMessageId, String currency, long totalAmount, boolean isRecurring, boolean isFirstRecurring, String invoiceName)
      A payment has been completed.
      Parameters:
      invoiceChatId - Identifier of the chat, containing the corresponding invoice message.
      invoiceMessageId - Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.
      currency - Currency for the price of the product.
      totalAmount - Total price for the product, in the smallest units of the currency.
      isRecurring - True, if this is a recurring payment.
      isFirstRecurring - True, if this is the first recurring payment.
      invoiceName - Name of the invoice; may be empty if unknown.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR