Record Class InputInvoiceMessageContent

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputInvoiceMessageContent
All Implemented Interfaces:
Serializable, ApiResult, InputMessageContent

public record InputInvoiceMessageContent(String title, String description, String payload, @Nullable String providerToken, String currency, List<LabeledPrice> prices, int maxTipAmount, @Nullable List<Integer> suggestedTipAmounts, @Nullable String providerData, @Nullable String photoUrl, int photoSize, int photoWidth, int photoHeight, boolean needName, boolean needPhoneNumber, boolean needEmail, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailToProvider, boolean isFlexible) extends Record implements InputMessageContent
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    InputInvoiceMessageContent(String title, String description, String payload, @Nullable String providerToken, String currency, List<LabeledPrice> prices, int maxTipAmount, @Nullable List<Integer> suggestedTipAmounts, @Nullable String providerData, @Nullable String photoUrl, int photoSize, int photoWidth, int photoHeight, boolean needName, boolean needPhoneNumber, boolean needEmail, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailToProvider, boolean isFlexible)
    Creates an instance of a InputInvoiceMessageContent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the currency record component.
    Returns the value of the description record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isFlexible record component.
    int
    Returns the value of the maxTipAmount record component.
    boolean
    Returns the value of the needEmail record component.
    boolean
    Returns the value of the needName record component.
    boolean
    Returns the value of the needPhoneNumber record component.
    boolean
    Returns the value of the needShippingAddress record component.
    Returns the value of the payload record component.
    int
    Returns the value of the photoHeight record component.
    int
    Returns the value of the photoSize record component.
    @Nullable String
    Returns the value of the photoUrl record component.
    int
    Returns the value of the photoWidth record component.
    Returns the value of the prices record component.
    @Nullable String
    Returns the value of the providerData record component.
    @Nullable String
    Returns the value of the providerToken record component.
    boolean
    Returns the value of the sendEmailToProvider record component.
    boolean
    Returns the value of the sendPhoneNumberToProvider record component.
    @Nullable List<Integer>
    Returns the value of the suggestedTipAmounts record component.
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InputInvoiceMessageContent

      public InputInvoiceMessageContent(String title, String description, String payload, @Nullable @Nullable String providerToken, String currency, List<LabeledPrice> prices, int maxTipAmount, @Nullable @Nullable List<Integer> suggestedTipAmounts, @Nullable @Nullable String providerData, @Nullable @Nullable String photoUrl, int photoSize, int photoWidth, int photoHeight, boolean needName, boolean needPhoneNumber, boolean needEmail, boolean needShippingAddress, boolean sendPhoneNumberToProvider, boolean sendEmailToProvider, boolean isFlexible)
      Creates an instance of a InputInvoiceMessageContent record class.
      Parameters:
      title - the value for the title record component
      description - the value for the description record component
      payload - the value for the payload record component
      providerToken - the value for the providerToken record component
      currency - the value for the currency record component
      prices - the value for the prices record component
      maxTipAmount - the value for the maxTipAmount record component
      suggestedTipAmounts - the value for the suggestedTipAmounts record component
      providerData - the value for the providerData record component
      photoUrl - the value for the photoUrl record component
      photoSize - the value for the photoSize record component
      photoWidth - the value for the photoWidth record component
      photoHeight - the value for the photoHeight record component
      needName - the value for the needName record component
      needPhoneNumber - the value for the needPhoneNumber record component
      needEmail - the value for the needEmail record component
      needShippingAddress - the value for the needShippingAddress record component
      sendPhoneNumberToProvider - the value for the sendPhoneNumberToProvider record component
      sendEmailToProvider - the value for the sendEmailToProvider record component
      isFlexible - the value for the isFlexible record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • payload

      public String payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component
    • providerToken

      @Nullable public @Nullable String providerToken()
      Returns the value of the providerToken record component.
      Returns:
      the value of the providerToken record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • prices

      public List<LabeledPrice> prices()
      Returns the value of the prices record component.
      Returns:
      the value of the prices record component
    • maxTipAmount

      public int maxTipAmount()
      Returns the value of the maxTipAmount record component.
      Returns:
      the value of the maxTipAmount record component
    • suggestedTipAmounts

      @Nullable public @Nullable List<Integer> suggestedTipAmounts()
      Returns the value of the suggestedTipAmounts record component.
      Returns:
      the value of the suggestedTipAmounts record component
    • providerData

      @Nullable public @Nullable String providerData()
      Returns the value of the providerData record component.
      Returns:
      the value of the providerData record component
    • photoUrl

      @Nullable public @Nullable String photoUrl()
      Returns the value of the photoUrl record component.
      Returns:
      the value of the photoUrl record component
    • photoSize

      public int photoSize()
      Returns the value of the photoSize record component.
      Returns:
      the value of the photoSize record component
    • photoWidth

      public int photoWidth()
      Returns the value of the photoWidth record component.
      Returns:
      the value of the photoWidth record component
    • photoHeight

      public int photoHeight()
      Returns the value of the photoHeight record component.
      Returns:
      the value of the photoHeight record component
    • needName

      public boolean needName()
      Returns the value of the needName record component.
      Returns:
      the value of the needName record component
    • needPhoneNumber

      public boolean needPhoneNumber()
      Returns the value of the needPhoneNumber record component.
      Returns:
      the value of the needPhoneNumber record component
    • needEmail

      public boolean needEmail()
      Returns the value of the needEmail record component.
      Returns:
      the value of the needEmail record component
    • needShippingAddress

      public boolean needShippingAddress()
      Returns the value of the needShippingAddress record component.
      Returns:
      the value of the needShippingAddress record component
    • sendPhoneNumberToProvider

      public boolean sendPhoneNumberToProvider()
      Returns the value of the sendPhoneNumberToProvider record component.
      Returns:
      the value of the sendPhoneNumberToProvider record component
    • sendEmailToProvider

      public boolean sendEmailToProvider()
      Returns the value of the sendEmailToProvider record component.
      Returns:
      the value of the sendEmailToProvider record component
    • isFlexible

      public boolean isFlexible()
      Returns the value of the isFlexible record component.
      Returns:
      the value of the isFlexible record component