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
ConstructorsConstructorDescriptionCreateInvoiceLink(@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 aCreateInvoiceLinkrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thebusinessConnectionIdrecord component.@NotNull Stringcurrency()Returns the value of thecurrencyrecord component.@NotNull StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringReturns the endpoint URL for the Telegram Bot API method.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisFlexiblerecord component.intReturns the value of themaxTipAmountrecord component.booleanReturns the value of theneedEmailrecord component.booleanneedName()Returns the value of theneedNamerecord component.booleanReturns the value of theneedPhoneNumberrecord component.booleanReturns the value of theneedShippingAddressrecord component.static @NotNull lombok.Builder@NotNull Stringpayload()Returns the value of thepayloadrecord component.intReturns the value of thephotoHeightrecord component.intReturns the value of thephotoSizerecord component.@Nullable StringphotoUrl()Returns the value of thephotoUrlrecord component.intReturns the value of thephotoWidthrecord component.@NotNull LabeledPrice[]prices()Returns the value of thepricesrecord component.@Nullable StringReturns the value of theproviderDatarecord component.@NotNull StringReturns the value of theproviderTokenrecord component.booleanReturns the value of thesendEmailToProviderrecord component.booleanReturns the value of thesendPhoneNumberToProviderrecord component.intReturns the value of thesubscriptionPeriodrecord component.int[]Returns the value of thesuggestedTipAmountsrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teleight.teleightbots.api.ApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializableMethods 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 aCreateInvoiceLinkrecord class.- Parameters:
businessConnectionId- the value for thebusinessConnectionIdrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentpayload- the value for thepayloadrecord componentproviderToken- the value for theproviderTokenrecord componentcurrency- the value for thecurrencyrecord componentprices- the value for thepricesrecord componentsubscriptionPeriod- the value for thesubscriptionPeriodrecord componentmaxTipAmount- the value for themaxTipAmountrecord componentsuggestedTipAmounts- the value for thesuggestedTipAmountsrecord componentproviderData- the value for theproviderDatarecord componentphotoUrl- the value for thephotoUrlrecord componentphotoSize- the value for thephotoSizerecord componentphotoWidth- the value for thephotoWidthrecord componentphotoHeight- the value for thephotoHeightrecord componentneedName- the value for theneedNamerecord componentneedPhoneNumber- the value for theneedPhoneNumberrecord componentneedEmail- the value for theneedEmailrecord componentneedShippingAddress- the value for theneedShippingAddressrecord componentsendPhoneNumberToProvider- the value for thesendPhoneNumberToProviderrecord componentsendEmailToProvider- the value for thesendEmailToProviderrecord componentisFlexible- the value for theisFlexiblerecord component
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull lombok.Builder ofBuilder(String title, String description, String payload, String currency, LabeledPrice[] prices) -
getEndpointURL
Description copied from interface:ApiMethodReturns the endpoint URL for the Telegram Bot API method.- Specified by:
getEndpointURLin interfaceApiMethod<Boolean>- Returns:
- the endpoint URL
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
businessConnectionId
Returns the value of thebusinessConnectionIdrecord component.- Returns:
- the value of the
businessConnectionIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
providerToken
Returns the value of theproviderTokenrecord component.- Returns:
- the value of the
providerTokenrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
prices
Returns the value of thepricesrecord component.- Returns:
- the value of the
pricesrecord component
-
subscriptionPeriod
public int subscriptionPeriod()Returns the value of thesubscriptionPeriodrecord component.- Returns:
- the value of the
subscriptionPeriodrecord component
-
maxTipAmount
public int maxTipAmount()Returns the value of themaxTipAmountrecord component.- Returns:
- the value of the
maxTipAmountrecord component
-
suggestedTipAmounts
public int[] suggestedTipAmounts()Returns the value of thesuggestedTipAmountsrecord component.- Returns:
- the value of the
suggestedTipAmountsrecord component
-
providerData
Returns the value of theproviderDatarecord component.- Returns:
- the value of the
providerDatarecord component
-
photoUrl
Returns the value of thephotoUrlrecord component.- Returns:
- the value of the
photoUrlrecord component
-
photoSize
public int photoSize()Returns the value of thephotoSizerecord component.- Returns:
- the value of the
photoSizerecord component
-
photoWidth
public int photoWidth()Returns the value of thephotoWidthrecord component.- Returns:
- the value of the
photoWidthrecord component
-
photoHeight
public int photoHeight()Returns the value of thephotoHeightrecord component.- Returns:
- the value of the
photoHeightrecord component
-
needName
public boolean needName()Returns the value of theneedNamerecord component.- Returns:
- the value of the
needNamerecord component
-
needPhoneNumber
public boolean needPhoneNumber()Returns the value of theneedPhoneNumberrecord component.- Returns:
- the value of the
needPhoneNumberrecord component
-
needEmail
public boolean needEmail()Returns the value of theneedEmailrecord component.- Returns:
- the value of the
needEmailrecord component
-
needShippingAddress
public boolean needShippingAddress()Returns the value of theneedShippingAddressrecord component.- Returns:
- the value of the
needShippingAddressrecord component
-
sendPhoneNumberToProvider
public boolean sendPhoneNumberToProvider()Returns the value of thesendPhoneNumberToProviderrecord component.- Returns:
- the value of the
sendPhoneNumberToProviderrecord component
-
sendEmailToProvider
public boolean sendEmailToProvider()Returns the value of thesendEmailToProviderrecord component.- Returns:
- the value of the
sendEmailToProviderrecord component
-
isFlexible
public boolean isFlexible()Returns the value of theisFlexiblerecord component.- Returns:
- the value of the
isFlexiblerecord component
-