Class SuccessfulPayment
java.lang.Object
io.micronaut.chatbots.telegram.api.SuccessfulPayment
This object contains basic information about a successful payment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull String@NonNull String@Nullable OrderInfo@NonNull String@Nullable String@NonNull String@NonNull IntegervoidsetCurrency(@NonNull String currency) voidsetInvoicePayload(@NonNull String invoicePayload) voidsetOrderInfo(@Nullable OrderInfo orderInfo) voidsetProviderPaymentChargeId(@NonNull String providerPaymentChargeId) voidsetShippingOptionId(@Nullable String shippingOptionId) voidsetTelegramPaymentChargeId(@NonNull String telegramPaymentChargeId) voidsetTotalAmount(@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
-