public class ShippingOption extends Object implements InputBotApiObject, Validable
| Constructor and Description |
|---|
ShippingOption()
Creates an empty shipping option
|
ShippingOption(String id,
String title,
List<LabeledPrice> prices)
Creates a shipping option with mandatory fields
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
List<LabeledPrice> |
getPrices() |
String |
getTitle() |
ShippingOption |
setId(String id) |
ShippingOption |
setPrices(List<LabeledPrice> prices) |
ShippingOption |
setTitle(String title) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public ShippingOption()
public ShippingOption(String id, String title, List<LabeledPrice> prices)
id - Shipping option identifiertitle - Option titleprices - List of price portionspublic String getId()
public ShippingOption setId(String id)
public String getTitle()
public ShippingOption setTitle(String title)
public List<LabeledPrice> getPrices()
public ShippingOption setPrices(List<LabeledPrice> prices)
public void validate()
throws TelegramApiValidationException
Validablevalidate in interface ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2019. All rights reserved.