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 CreateInvoiceLinkisFlexible(boolean isFlexible)CreateInvoiceLinkmaxTipAmount(int maxTipAmount)CreateInvoiceLinkneedEmail(boolean needEmail)CreateInvoiceLinkneedName(boolean needName)CreateInvoiceLinkneedPhoneNumber(boolean needPhoneNumber)CreateInvoiceLinkneedShippingAddress(boolean needShippingAddress)CreateInvoiceLinkphotoHeight(java.lang.Integer photoHeight)CreateInvoiceLinkphotoSize(java.lang.Integer photoSize)CreateInvoiceLinkphotoUrl(java.lang.String photoUrl)CreateInvoiceLinkphotoWidth(java.lang.Integer photoWidth)CreateInvoiceLinkproviderData(java.lang.String providerData)CreateInvoiceLinksendEmailToProvider(boolean sendEmailToProvider)CreateInvoiceLinksendPhoneNumberToProvider(boolean sendPhoneNumberToProvider)CreateInvoiceLinksuggestedTipAmounts(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
-