Class TdApi.StarPaymentOption

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.StarPaymentOption
Enclosing class:
TdApi

public static class TdApi.StarPaymentOption extends TdApi.Object
Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    The amount to pay, in the smallest units of the currency.
    static final int
    Identifier uniquely determining type of the object.
    ISO 4217 currency code for the payment.
    boolean
    True, if the option must be shown only in the full list of payment options.
    long
    Number of Telegram Stars that will be purchased.
    Identifier of the store product associated with the option; may be empty if none.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Describes an option for buying Telegram Stars.
    StarPaymentOption(String currency, long amount, long starCount, String storeProductId, boolean isAdditional)
    Describes an option for buying Telegram Stars.
  • 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

    • currency

      public String currency
      ISO 4217 currency code for the payment.
    • amount

      public long amount
      The amount to pay, in the smallest units of the currency.
    • starCount

      public long starCount
      Number of Telegram Stars that will be purchased.
    • storeProductId

      public String storeProductId
      Identifier of the store product associated with the option; may be empty if none.
    • isAdditional

      public boolean isAdditional
      True, if the option must be shown only in the full list of payment options.
    • CONSTRUCTOR

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

    • StarPaymentOption

      public StarPaymentOption()
      Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.
    • StarPaymentOption

      public StarPaymentOption(String currency, long amount, long starCount, String storeProductId, boolean isAdditional)
      Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments.
      Parameters:
      currency - ISO 4217 currency code for the payment.
      amount - The amount to pay, in the smallest units of the currency.
      starCount - Number of Telegram Stars that will be purchased.
      storeProductId - Identifier of the store product associated with the option; may be empty if none.
      isAdditional - True, if the option must be shown only in the full list of payment options.
  • 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