Class Invoice
java.lang.Object
io.micronaut.chatbots.telegram.api.Invoice
This object contains basic information about an invoice.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
@NonNull String
@NonNull String
getTitle()
@NonNull Integer
void
setCurrency
(@NonNull String currency) void
setDescription
(@NonNull String description) void
setStartParameter
(@NonNull String startParameter) void
void
setTotalAmount
(@NonNull Integer totalAmount) toString()
-
Constructor Details
-
Invoice
public Invoice()
-
-
Method Details
-
getTitle
- Returns:
- Product name.
-
setTitle
- Parameters:
title
- Product name.
-
getDescription
- Returns:
- Product description.
-
setDescription
- Parameters:
description
- Product description.
-
getStartParameter
- Returns:
- Unique bot deep-linking parameter that can be used to generate this invoice.
-
setStartParameter
- Parameters:
startParameter
- Unique bot deep-linking parameter that can be used to generate this invoice.
-
getCurrency
- Returns:
- Three-letter ISO 4217 currency code.
-
setCurrency
- Parameters:
currency
- Three-letter ISO 4217 currency code.
-
getTotalAmount
- Returns:
- Total price in the smallest units of the currency (integer, not float/double).
-
setTotalAmount
- Parameters:
totalAmount
- Total price in the smallest units of the currency (integer, not float/double).
-
toString
-