Record Class CreateInvoiceLink

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.methods.CreateInvoiceLink
All Implemented Interfaces:
ApiMethod<Boolean>, ApiMethodBoolean

public record CreateInvoiceLink(@Nullable String businessConnectionId, @NotNull String title, @NotNull String description, @NotNull String payload, @NotNull String providerToken, @NotNull String currency, @NotNull LabeledPrice[] prices, int subscriptionPeriod, int maxTipAmount, int[] 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 ApiMethodBoolean
  • Field Summary

    Fields inherited from interface org.teleight.teleightbots.api.ApiMethod

    OBJECT_MAPPER
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateInvoiceLink(@Nullable String businessConnectionId, @NotNull String title, @NotNull String description, @NotNull String payload, @NotNull String providerToken, @NotNull String currency, @NotNull LabeledPrice[] prices, int subscriptionPeriod, int maxTipAmount, int[] 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 CreateInvoiceLink record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Returns the value of the businessConnectionId record component.
    @NotNull String
    Returns the value of the currency record component.
    @NotNull String
    Returns the value of the description record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull String
    Returns the endpoint URL for the Telegram Bot API method.
    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.
    static @NotNull lombok.Builder
    ofBuilder(String title, String description, String payload, String currency, LabeledPrice[] prices)
     
    @NotNull String
    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.
    @NotNull LabeledPrice[]
    Returns the value of the prices record component.
    @Nullable String
    Returns the value of the providerData record component.
    @NotNull 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.
    int
    Returns the value of the subscriptionPeriod record component.
    int[]
    Returns the value of the suggestedTipAmounts record component.
    @NotNull String
    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

    Methods inherited from interface org.teleight.teleightbots.api.ApiMethod

    deserializeResponse, deserializeResponseArray, deserializeResponseSerializable

    Methods inherited from interface org.teleight.teleightbots.api.ApiMethodBoolean

    deserializeResponse
  • Constructor Details

    • CreateInvoiceLink

      public CreateInvoiceLink(@Nullable @Nullable String businessConnectionId, @NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull String payload, @NotNull @NotNull String providerToken, @NotNull @NotNull String currency, @NotNull @NotNull LabeledPrice[] prices, int subscriptionPeriod, int maxTipAmount, int[] 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 CreateInvoiceLink record class.
      Parameters:
      businessConnectionId - the value for the businessConnectionId 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
      subscriptionPeriod - the value for the subscriptionPeriod 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

    • ofBuilder

      @NotNull public static @NotNull lombok.Builder ofBuilder(String title, String description, String payload, String currency, LabeledPrice[] prices)
    • getEndpointURL

      @NotNull public @NotNull String getEndpointURL()
      Description copied from interface: ApiMethod
      Returns the endpoint URL for the Telegram Bot API method.
      Specified by:
      getEndpointURL in interface ApiMethod<Boolean>
      Returns:
      the endpoint URL
    • 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.
    • businessConnectionId

      @Nullable public @Nullable String businessConnectionId()
      Returns the value of the businessConnectionId record component.
      Returns:
      the value of the businessConnectionId record component
    • title

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

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

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

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

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

      @NotNull public @NotNull LabeledPrice[] prices()
      Returns the value of the prices record component.
      Returns:
      the value of the prices record component
    • subscriptionPeriod

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

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

      public int[] 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