Class SuccessfulPayment

java.lang.Object
io.micronaut.chatbots.telegram.api.SuccessfulPayment

public class SuccessfulPayment extends Object
This object contains basic information about a successful payment.
See Also:
  • Constructor Details

    • SuccessfulPayment

      public SuccessfulPayment()
  • Method Details

    • getCurrency

      @NonNull public @NonNull String getCurrency()
      Returns:
      Three-letter ISO 4217 currency code.
    • setCurrency

      public void setCurrency(@NonNull @NonNull String currency)
      Parameters:
      currency - Three-letter ISO 4217 currency code.
    • getTotalAmount

      @NonNull public @NonNull Integer getTotalAmount()
      Returns:
      Total price in the smallest units of the currency (integer, not float/double).
    • setTotalAmount

      public void setTotalAmount(@NonNull @NonNull Integer totalAmount)
      Parameters:
      totalAmount - Total price in the smallest units of the currency (integer, not float/double).
    • getInvoicePayload

      @NonNull public @NonNull String getInvoicePayload()
      Returns:
      Bot specified invoice payload.
    • setInvoicePayload

      public void setInvoicePayload(@NonNull @NonNull String invoicePayload)
      Parameters:
      invoicePayload - Bot specified invoice payload.
    • getShippingOptionId

      @Nullable public @Nullable String getShippingOptionId()
      Returns:
      Identifier of the shipping option chosen by the user.
    • setShippingOptionId

      public void setShippingOptionId(@Nullable @Nullable String shippingOptionId)
      Parameters:
      shippingOptionId - Identifier of the shipping option chosen by the user.
    • getOrderInfo

      @Nullable public @Nullable OrderInfo getOrderInfo()
      Returns:
      Order info provided by the user.
    • setOrderInfo

      public void setOrderInfo(@Nullable @Nullable OrderInfo orderInfo)
      Parameters:
      orderInfo - Order info provided by the user.
    • getTelegramPaymentChargeId

      @NonNull public @NonNull String getTelegramPaymentChargeId()
      Returns:
      Telegram payment identifier.
    • setTelegramPaymentChargeId

      public void setTelegramPaymentChargeId(@NonNull @NonNull String telegramPaymentChargeId)
      Parameters:
      telegramPaymentChargeId - Telegram payment identifier.
    • getProviderPaymentChargeId

      @NonNull public @NonNull String getProviderPaymentChargeId()
      Returns:
      Provider payment identifier.
    • setProviderPaymentChargeId

      public void setProviderPaymentChargeId(@NonNull @NonNull String providerPaymentChargeId)
      Parameters:
      providerPaymentChargeId - Provider payment identifier.
    • toString

      public String toString()
      Overrides:
      toString in class Object