public class SendInvoice extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SendInvoice()
Build an empty SendInvoice object
|
SendInvoice(Integer chatId,
String title,
String description,
String payload,
String providerToken,
String startParameter,
String currency,
List<LabeledPrice> prices)
Build a SendInvoice object with empty parameters
|
public static final String PATH
public SendInvoice()
public SendInvoice(Integer chatId, String title, String description, String payload, String providerToken, String startParameter, String currency, List<LabeledPrice> prices)
chatId - Unique identifier for the target private chattitle - Product namedescription - Product descriptionpayload - Bot defined invoice payload, 1-128 bytes.providerToken - Payments provider tokenstartParameter - Unique deep-linking parameter.currency - 3-letter ISO 4217 currency codeprices - Price breakdown, a list of componentspublic Integer getChatId()
public SendInvoice setChatId(Integer chatId)
public String getTitle()
public SendInvoice setTitle(String title)
public String getDescription()
public SendInvoice setDescription(String description)
public String getPayload()
public SendInvoice setPayload(String payload)
public String getProviderToken()
public SendInvoice setProviderToken(String providerToken)
public String getStartParameter()
public SendInvoice setStartParameter(String startParameter)
public String getCurrency()
public SendInvoice setCurrency(String currency)
public List<LabeledPrice> getPrices()
public SendInvoice setPrices(List<LabeledPrice> prices)
public String getPhotoUrl()
public SendInvoice setPhotoUrl(String photoUrl)
public Integer getPhotoSize()
public SendInvoice setPhotoSize(Integer photoSize)
public Integer getPhotoWidth()
public SendInvoice setPhotoWidth(Integer photoWidth)
public Integer getPhotoHeight()
public SendInvoice setPhotoHeight(Integer photoHeight)
public Boolean getNeedName()
public SendInvoice setNeedName(Boolean needName)
public Boolean getNeedPhoneNumber()
public SendInvoice setNeedPhoneNumber(Boolean needPhoneNumber)
public Boolean getNeedEmail()
public SendInvoice setNeedEmail(Boolean needEmail)
public Boolean getNeedShippingAddress()
public SendInvoice setNeedShippingAddress(Boolean needShippingAddress)
public Boolean getFlexible()
public SendInvoice setFlexible(Boolean flexible)
public Boolean getDisableNotification()
public SendInvoice setDisableNotification(Boolean disableNotification)
public Integer getReplyToMessageId()
public SendInvoice setReplyToMessageId(Integer replyToMessageId)
public InlineKeyboardMarkup getReplyMarkup()
public SendInvoice setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Message>public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2017. All rights reserved.