Record Class SendInvoiceBody

java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.SendInvoiceBody

public record SendInvoiceBody(long chatId, String title, String description, String payload, String providerToken, String currency, List<LabeledPrice> prices, OptionalInt maxTipAmount, List<OptionalInt> suggestedTipAmounts, Optional<String> startParameter, Optional<String> providerData, Optional<String> photoUrl, OptionalInt photoSize, OptionalInt photoWidth, OptionalInt photoHeight, Optional<Boolean> needName, Optional<Boolean> needEmail, Optional<Boolean> needShippingAddress, Optional<Boolean> sendPhoneNumberToProvider, Optional<Boolean> sendEmailToProvider, Optional<Boolean> isFlexible, Optional<Boolean> disableNotification, Optional<Boolean> protectContent, OptionalInt replyToMessageId, Optional<Boolean> allowSendingWithoutReply, Optional<ReplyMarkup> replyMarkup) extends Record
  • Constructor Details

    • SendInvoiceBody

      public SendInvoiceBody(long chatId, String title, String description, String payload, String providerToken, String currency, List<LabeledPrice> prices, OptionalInt maxTipAmount, List<OptionalInt> suggestedTipAmounts, Optional<String> startParameter, Optional<String> providerData, Optional<String> photoUrl, OptionalInt photoSize, OptionalInt photoWidth, OptionalInt photoHeight, Optional<Boolean> needName, Optional<Boolean> needEmail, Optional<Boolean> needShippingAddress, Optional<Boolean> sendPhoneNumberToProvider, Optional<Boolean> sendEmailToProvider, Optional<Boolean> isFlexible, Optional<Boolean> disableNotification, Optional<Boolean> protectContent, OptionalInt replyToMessageId, Optional<Boolean> allowSendingWithoutReply, Optional<ReplyMarkup> replyMarkup)
      Creates an instance of a SendInvoiceBody record class.
      Parameters:
      chatId - the value for the chatId record component
      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
      startParameter - the value for the startParameter 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
      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
      disableNotification - the value for the disableNotification record component
      protectContent - the value for the protectContent record component
      replyToMessageId - the value for the replyToMessageId record component
      allowSendingWithoutReply - the value for the allowSendingWithoutReply record component
      replyMarkup - the value for the replyMarkup 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.
    • chatId

      public long chatId()
      Returns the value of the chatId record component.
      Returns:
      the value of the chatId record component
    • 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

      public 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 OptionalInt maxTipAmount()
      Returns the value of the maxTipAmount record component.
      Returns:
      the value of the maxTipAmount record component
    • suggestedTipAmounts

      public List<OptionalInt> suggestedTipAmounts()
      Returns the value of the suggestedTipAmounts record component.
      Returns:
      the value of the suggestedTipAmounts record component
    • startParameter

      public Optional<String> startParameter()
      Returns the value of the startParameter record component.
      Returns:
      the value of the startParameter record component
    • providerData

      public Optional<String> providerData()
      Returns the value of the providerData record component.
      Returns:
      the value of the providerData record component
    • photoUrl

      public Optional<String> photoUrl()
      Returns the value of the photoUrl record component.
      Returns:
      the value of the photoUrl record component
    • photoSize

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

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

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

      public Optional<Boolean> needName()
      Returns the value of the needName record component.
      Returns:
      the value of the needName record component
    • needEmail

      public Optional<Boolean> needEmail()
      Returns the value of the needEmail record component.
      Returns:
      the value of the needEmail record component
    • needShippingAddress

      public Optional<Boolean> needShippingAddress()
      Returns the value of the needShippingAddress record component.
      Returns:
      the value of the needShippingAddress record component
    • sendPhoneNumberToProvider

      public Optional<Boolean> sendPhoneNumberToProvider()
      Returns the value of the sendPhoneNumberToProvider record component.
      Returns:
      the value of the sendPhoneNumberToProvider record component
    • sendEmailToProvider

      public Optional<Boolean> sendEmailToProvider()
      Returns the value of the sendEmailToProvider record component.
      Returns:
      the value of the sendEmailToProvider record component
    • isFlexible

      public Optional<Boolean> isFlexible()
      Returns the value of the isFlexible record component.
      Returns:
      the value of the isFlexible record component
    • disableNotification

      public Optional<Boolean> disableNotification()
      Returns the value of the disableNotification record component.
      Returns:
      the value of the disableNotification record component
    • protectContent

      public Optional<Boolean> protectContent()
      Returns the value of the protectContent record component.
      Returns:
      the value of the protectContent record component
    • replyToMessageId

      public OptionalInt replyToMessageId()
      Returns the value of the replyToMessageId record component.
      Returns:
      the value of the replyToMessageId record component
    • allowSendingWithoutReply

      public Optional<Boolean> allowSendingWithoutReply()
      Returns the value of the allowSendingWithoutReply record component.
      Returns:
      the value of the allowSendingWithoutReply record component
    • replyMarkup

      public Optional<ReplyMarkup> replyMarkup()
      Returns the value of the replyMarkup record component.
      Returns:
      the value of the replyMarkup record component