Class SuccessfulPayment
java.lang.Object
io.micronaut.chatbots.telegram.api.SuccessfulPayment
This object contains basic information about a successful payment.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
@Nullable OrderInfo
@NonNull String
@Nullable String
@NonNull String
@NonNull Integer
void
setCurrency
(@NonNull String currency) void
setInvoicePayload
(@NonNull String invoicePayload) void
setOrderInfo
(@Nullable OrderInfo orderInfo) void
setProviderPaymentChargeId
(@NonNull String providerPaymentChargeId) void
setShippingOptionId
(@Nullable String shippingOptionId) void
setTelegramPaymentChargeId
(@NonNull String telegramPaymentChargeId) void
setTotalAmount
(@NonNull Integer totalAmount) toString()
-
Constructor Details
-
SuccessfulPayment
public SuccessfulPayment()
-
-
Method Details
-
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).
-
getInvoicePayload
- Returns:
- Bot specified invoice payload.
-
setInvoicePayload
- Parameters:
invoicePayload
- Bot specified invoice payload.
-
getShippingOptionId
- Returns:
- Identifier of the shipping option chosen by the user.
-
setShippingOptionId
- Parameters:
shippingOptionId
- Identifier of the shipping option chosen by the user.
-
getOrderInfo
- Returns:
- Order info provided by the user.
-
setOrderInfo
- Parameters:
orderInfo
- Order info provided by the user.
-
getTelegramPaymentChargeId
- Returns:
- Telegram payment identifier.
-
setTelegramPaymentChargeId
- Parameters:
telegramPaymentChargeId
- Telegram payment identifier.
-
getProviderPaymentChargeId
- Returns:
- Provider payment identifier.
-
setProviderPaymentChargeId
- Parameters:
providerPaymentChargeId
- Provider payment identifier.
-
toString
-