Package com.pengrad.telegrambot.request
Class CreateInvoiceLink
java.lang.Object
com.pengrad.telegrambot.request.BaseRequest<CreateInvoiceLink,StringResponse>
com.pengrad.telegrambot.request.CreateInvoiceLink
public class CreateInvoiceLink extends BaseRequest<CreateInvoiceLink,StringResponse>
Mirco Ianese
21 Jun 2022
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CreateInvoiceLink(java.lang.String title, java.lang.String description, java.lang.String payload, java.lang.String providerToken, java.lang.String currency, LabeledPrice... prices)
-
Method Summary
Modifier and Type Method Description CreateInvoiceLink
isFlexible(boolean isFlexible)
CreateInvoiceLink
maxTipAmount(int maxTipAmount)
CreateInvoiceLink
needEmail(boolean needEmail)
CreateInvoiceLink
needName(boolean needName)
CreateInvoiceLink
needPhoneNumber(boolean needPhoneNumber)
CreateInvoiceLink
needShippingAddress(boolean needShippingAddress)
CreateInvoiceLink
photoHeight(java.lang.Integer photoHeight)
CreateInvoiceLink
photoSize(java.lang.Integer photoSize)
CreateInvoiceLink
photoUrl(java.lang.String photoUrl)
CreateInvoiceLink
photoWidth(java.lang.Integer photoWidth)
CreateInvoiceLink
providerData(java.lang.String providerData)
CreateInvoiceLink
sendEmailToProvider(boolean sendEmailToProvider)
CreateInvoiceLink
sendPhoneNumberToProvider(boolean sendPhoneNumberToProvider)
CreateInvoiceLink
suggestedTipAmounts(java.lang.Integer[] suggestedTipAmounts)
Methods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getContentType, getFileName, getMethod, getParameters, getResponseType, getTimeoutSeconds, isMultipart, toWebhookResponse
-
Constructor Details
-
CreateInvoiceLink
public CreateInvoiceLink(java.lang.String title, java.lang.String description, java.lang.String payload, java.lang.String providerToken, java.lang.String currency, LabeledPrice... prices)
-
-
Method Details
-
maxTipAmount
- Parameters:
maxTipAmount
- The maximum accepted amount for tips in the smallest units of the currency
-
suggestedTipAmounts
- Parameters:
suggestedTipAmounts
- An array of suggested amounts of tip in the smallest units of the currency. At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
-
providerData
-
photoUrl
-
photoSize
-
photoWidth
-
photoHeight
-
needName
-
needPhoneNumber
-
needEmail
-
needShippingAddress
-
sendEmailToProvider
-
sendPhoneNumberToProvider
-
isFlexible
-