Package dev.tobee.telegram.request.body
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 Summary
ConstructorsConstructorDescriptionSendInvoiceBody(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 aSendInvoiceBodyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowSendingWithoutReplyrecord component.longchatId()Returns the value of thechatIdrecord component.currency()Returns the value of thecurrencyrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedisableNotificationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theisFlexiblerecord component.Returns the value of themaxTipAmountrecord component.Returns the value of theneedEmailrecord component.needName()Returns the value of theneedNamerecord component.Returns the value of theneedShippingAddressrecord component.payload()Returns the value of thepayloadrecord component.Returns the value of thephotoHeightrecord component.Returns the value of thephotoSizerecord component.photoUrl()Returns the value of thephotoUrlrecord component.Returns the value of thephotoWidthrecord component.prices()Returns the value of thepricesrecord component.Returns the value of theprotectContentrecord component.Returns the value of theproviderDatarecord component.Returns the value of theproviderTokenrecord component.Returns the value of thereplyMarkuprecord component.Returns the value of thereplyToMessageIdrecord component.Returns the value of thesendEmailToProviderrecord component.Returns the value of thesendPhoneNumberToProviderrecord component.Returns the value of thestartParameterrecord 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
-
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 aSendInvoiceBodyrecord class.- Parameters:
chatId- the value for thechatIdrecord 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 componentmaxTipAmount- the value for themaxTipAmountrecord componentsuggestedTipAmounts- the value for thesuggestedTipAmountsrecord componentstartParameter- the value for thestartParameterrecord 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 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 componentdisableNotification- the value for thedisableNotificationrecord componentprotectContent- the value for theprotectContentrecord componentreplyToMessageId- the value for thereplyToMessageIdrecord componentallowSendingWithoutReply- the value for theallowSendingWithoutReplyrecord componentreplyMarkup- the value for thereplyMarkuprecord 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 '=='. -
chatId
public long chatId()Returns the value of thechatIdrecord component.- Returns:
- the value of the
chatIdrecord 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
-
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
-
startParameter
Returns the value of thestartParameterrecord component.- Returns:
- the value of the
startParameterrecord 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
Returns the value of thephotoSizerecord component.- Returns:
- the value of the
photoSizerecord component
-
photoWidth
Returns the value of thephotoWidthrecord component.- Returns:
- the value of the
photoWidthrecord component
-
photoHeight
Returns the value of thephotoHeightrecord component.- Returns:
- the value of the
photoHeightrecord component
-
needName
Returns the value of theneedNamerecord component.- Returns:
- the value of the
needNamerecord component
-
needEmail
Returns the value of theneedEmailrecord component.- Returns:
- the value of the
needEmailrecord component
-
needShippingAddress
Returns the value of theneedShippingAddressrecord component.- Returns:
- the value of the
needShippingAddressrecord component
-
sendPhoneNumberToProvider
Returns the value of thesendPhoneNumberToProviderrecord component.- Returns:
- the value of the
sendPhoneNumberToProviderrecord component
-
sendEmailToProvider
Returns the value of thesendEmailToProviderrecord component.- Returns:
- the value of the
sendEmailToProviderrecord component
-
isFlexible
Returns the value of theisFlexiblerecord component.- Returns:
- the value of the
isFlexiblerecord component
-
disableNotification
Returns the value of thedisableNotificationrecord component.- Returns:
- the value of the
disableNotificationrecord component
-
protectContent
Returns the value of theprotectContentrecord component.- Returns:
- the value of the
protectContentrecord component
-
replyToMessageId
Returns the value of thereplyToMessageIdrecord component.- Returns:
- the value of the
replyToMessageIdrecord component
-
allowSendingWithoutReply
Returns the value of theallowSendingWithoutReplyrecord component.- Returns:
- the value of the
allowSendingWithoutReplyrecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-