Class CreateInvoiceLink
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
org.telegram.telegrambots.meta.api.methods.BotApiMethod<String>
org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink
- All Implemented Interfaces:
Validable
- Version:
- 6.1 Use this method to create a link for an invoice. Retruns the created invoice link as String on success
- Author:
- Ruben Bermudez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.telegram.telegrambots.meta.api.methods.BotApiMethod
METHOD_FIELDFields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
Field Details
-
PATH
- See Also:
-
TITLE_FIELD
- See Also:
-
DESCRIPTION_FIELD
- See Also:
-
PAYLOAD_FIELD
- See Also:
-
PROVIDER_TOKEN_FIELD
- See Also:
-
CURRENCY_FIELD
- See Also:
-
PRICES_FIELD
- See Also:
-
MAXTIPAMOUNT_FIELD
- See Also:
-
SUGGESTEDTIPAMOUNTS_FIELD
- See Also:
-
PROVIDER_DATA_FIELD
- See Also:
-
PHOTO_URL_FIELD
- See Also:
-
PHOTO_SIZE_FIELD
- See Also:
-
PHOTO_WIDTH_FIELD
- See Also:
-
PHOTO_HEIGHT_FIELD
- See Also:
-
NEED_NAME_FIELD
- See Also:
-
NEED_PHONE_NUMBER_FIELD
- See Also:
-
NEED_EMAIL_FIELD
- See Also:
-
NEED_SHIPPING_ADDRESS_FIELD
- See Also:
-
SEND_PHONE_NUMBER_TO_PROVIDER_FIELD
- See Also:
-
SEND_EMAIL_TO_PROVIDER_FIELD
- See Also:
-
IS_FLEXIBLE_FIELD
- See Also:
-
-
Constructor Details
-
CreateInvoiceLink
public CreateInvoiceLink()
-
-
Method Details
-
getMethod
Description copied from class:PartialBotApiMethodGetter for method path (that is the same as method name)- Specified by:
getMethodin classPartialBotApiMethod<String>- Returns:
- Method path
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
deserializeResponse
Description copied from class:PartialBotApiMethodDeserialize a json answer to the response type to a method- Specified by:
deserializeResponsein classPartialBotApiMethod<String>- Parameters:
answer- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-