Package com.pengrad.telegrambot.request
Class SendInvoice
java.lang.Object
com.pengrad.telegrambot.request.BaseRequest<T,SendResponse>
com.pengrad.telegrambot.request.AbstractSendRequest<SendInvoice>
com.pengrad.telegrambot.request.SendInvoice
public class SendInvoice extends AbstractSendRequest<SendInvoice>
Stas Parshin
24 May 2017
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SendInvoice(java.lang.Long chatId, java.lang.String title, java.lang.String description, java.lang.String payload, java.lang.String currency, LabeledPrice... prices) -
Method Summary
Modifier and Type Method Description SendInvoiceisFlexible(boolean isFlexible)SendInvoicemaxTipAmount(int maxTipAmount)SendInvoiceneedEmail(boolean needEmail)SendInvoiceneedName(boolean needName)SendInvoiceneedPhoneNumber(boolean needPhoneNumber)SendInvoiceneedShippingAddress(boolean needShippingAddress)SendInvoicephotoHeight(java.lang.Integer photoHeight)SendInvoicephotoSize(java.lang.Integer photoSize)SendInvoicephotoUrl(java.lang.String photoUrl)SendInvoicephotoWidth(java.lang.Integer photoWidth)SendInvoiceproviderData(java.lang.String providerData)SendInvoiceproviderToken(java.lang.String providerToken)SendInvoicesendEmailToProvider(boolean sendEmailToProvider)SendInvoicesendPhoneNumberToProvider(boolean sendPhoneNumberToProvider)SendInvoicestartParameter(java.lang.String startParameter)SendInvoicesuggestedTipAmounts(java.lang.Integer[] suggestedTipAmounts)Methods inherited from class com.pengrad.telegrambot.request.AbstractSendRequest
allowPaidBroadcast, businessConnectionId, disableNotification, messageEffectId, messageThreadId, protectContent, replyMarkup, replyParametersMethods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getContentType, getFileName, getMethod, getParameters, getResponseType, getTimeoutSeconds, isMultipart, toWebhookResponse
-
Constructor Details
-
SendInvoice
public SendInvoice(java.lang.Long chatId, java.lang.String title, java.lang.String description, java.lang.String payload, java.lang.String currency, LabeledPrice... prices)
-
-
Method Details
-
providerData
-
photoUrl
-
photoSize
-
photoWidth
-
photoHeight
-
needName
-
needPhoneNumber
-
needEmail
-
needShippingAddress
-
isFlexible
-
startParameter
-
providerToken
-
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.
-
sendEmailToProvider
-
sendPhoneNumberToProvider
-