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
ConstructorsConstructorDescriptionInputInvoiceMessageContent(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 aInputInvoiceMessageContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncurrency()Returns the value of thecurrencyrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.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.payload()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.prices()Returns the value of thepricesrecord component.@Nullable StringReturns the value of theproviderDatarecord component.@Nullable StringReturns the value of theproviderTokenrecord component.booleanReturns the value of thesendEmailToProviderrecord component.booleanReturns the value of thesendPhoneNumberToProviderrecord component.Returns the value of thesuggestedTipAmountsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aInputInvoiceMessageContentrecord class.- Parameters:
title- 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 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
-
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 '=='. -
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
-
maxTipAmount
public int maxTipAmount()Returns the value of themaxTipAmountrecord component.- Returns:
- the value of the
maxTipAmountrecord component
-
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
-