Class Invoice

java.lang.Object
io.micronaut.chatbots.telegram.api.Invoice

public class Invoice extends Object
This object contains basic information about an invoice.
See Also:
  • Constructor Details

    • Invoice

      public Invoice()
  • Method Details

    • getTitle

      @NonNull public @NonNull String getTitle()
      Returns:
      Product name.
    • setTitle

      public void setTitle(@NonNull @NonNull String title)
      Parameters:
      title - Product name.
    • getDescription

      @NonNull public @NonNull String getDescription()
      Returns:
      Product description.
    • setDescription

      public void setDescription(@NonNull @NonNull String description)
      Parameters:
      description - Product description.
    • getStartParameter

      @NonNull public @NonNull String getStartParameter()
      Returns:
      Unique bot deep-linking parameter that can be used to generate this invoice.
    • setStartParameter

      public void setStartParameter(@NonNull @NonNull String startParameter)
      Parameters:
      startParameter - Unique bot deep-linking parameter that can be used to generate this invoice.
    • getCurrency

      @NonNull public @NonNull String getCurrency()
      Returns:
      Three-letter ISO 4217 currency code.
    • setCurrency

      public void setCurrency(@NonNull @NonNull String currency)
      Parameters:
      currency - Three-letter ISO 4217 currency code.
    • getTotalAmount

      @NonNull public @NonNull Integer getTotalAmount()
      Returns:
      Total price in the smallest units of the currency (integer, not float/double).
    • setTotalAmount

      public void setTotalAmount(@NonNull @NonNull Integer totalAmount)
      Parameters:
      totalAmount - Total price in the smallest units of the currency (integer, not float/double).
    • toString

      public String toString()
      Overrides:
      toString in class Object