Class LabeledPrice
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.payments.LabeledPrice
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable
public class LabeledPrice extends Object implements InputBotApiObject, Validable
- Version:
- 1.0 This object represents a portion of goods price.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LabeledPrice()Builds an empty LabeledPriceLabeledPrice(String label, Integer amount)Builds a LabeledPrice with mandatory parameters
-
-
-
Method Detail
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getAmount
public Integer getAmount()
-
setAmount
public void setAmount(Integer amount)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-