haskell-tdlib-2.1.31.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.GiftOnChainPurchaseOfferState

Synopsis

Documentation

data GiftOnChainPurchaseOfferState Source #

Describes state of an on-chain gift purchase offer

Constructors

GiftOnChainPurchaseOfferStatePending

The offer is waiting for a response from the owner of the gift

GiftOnChainPurchaseOfferStateSettled

The offer was accepted and executed on the TON blockchain; the gift is being transferred to the buyer

GiftOnChainPurchaseOfferStateAccepted

The offer was accepted and the gift was transferred to the TON wallet of the buyer

GiftOnChainPurchaseOfferStateCanceling

The offer is being canceled and the buyer is being refunded

GiftOnChainPurchaseOfferStateDeclined

The offer was declined

Fields

  • refund_amount :: Maybe Int

    The amount returned to the buyer, in the smallest units of TON Grams; -1 if unknown

GiftOnChainPurchaseOfferStateCanceled

The offer was canceled

Fields

  • refund_amount :: Maybe Int

    The amount returned to the buyer, in the smallest units of TON Grams; -1 if unknown

  • fine_amount :: Maybe Int

    The fine for the cancellation of the offer, in the smallest units of TON Grams; -1 if unknown

GiftOnChainPurchaseOfferStateExpired

The offer has expired and the buyer was refunded

Fields

  • refund_amount :: Maybe Int

    The amount returned to the buyer, in the smallest units of TON Grams; -1 if unknown