Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.StorePaymentPurpose
Synopsis
- data StorePaymentPurpose
- = StorePaymentPurposePremiumSubscription {
- is_restore :: Maybe Bool
- is_upgrade :: Maybe Bool
- | StorePaymentPurposePremiumGift { }
- | StorePaymentPurposePremiumGiftCodes { }
- | StorePaymentPurposePremiumGiveaway { }
- | StorePaymentPurposeStarGiveaway { }
- | StorePaymentPurposeStars { }
- | StorePaymentPurposeGiftedStars { }
- = StorePaymentPurposePremiumSubscription {
Documentation
data StorePaymentPurpose Source #
Describes a purpose of an in-store payment
Constructors
StorePaymentPurposePremiumSubscription | The user subscribing to Telegram Premium |
Fields
| |
StorePaymentPurposePremiumGift | The user gifting Telegram Premium to another user |
Fields
| |
StorePaymentPurposePremiumGiftCodes | The user boosting a chat by creating Telegram Premium gift codes for other users |
Fields
| |
StorePaymentPurposePremiumGiveaway | The user creating a Telegram Premium giveaway |
Fields
| |
StorePaymentPurposeStarGiveaway | The user creating a Telegram Star giveaway |
Fields
| |
StorePaymentPurposeStars | The user buying Telegram Stars |
StorePaymentPurposeGiftedStars | The user buying Telegram Stars for other users |
Fields
|
Instances
FromJSON StorePaymentPurpose Source # | |
Defined in TD.Data.StorePaymentPurpose Methods parseJSON :: Value -> Parser StorePaymentPurpose # parseJSONList :: Value -> Parser [StorePaymentPurpose] # | |
ToJSON StorePaymentPurpose Source # | |
Defined in TD.Data.StorePaymentPurpose Methods toJSON :: StorePaymentPurpose -> Value # toEncoding :: StorePaymentPurpose -> Encoding # toJSONList :: [StorePaymentPurpose] -> Value # toEncodingList :: [StorePaymentPurpose] -> Encoding # | |
Show StorePaymentPurpose Source # | |
Defined in TD.Data.StorePaymentPurpose Methods showsPrec :: Int -> StorePaymentPurpose -> ShowS # show :: StorePaymentPurpose -> String # showList :: [StorePaymentPurpose] -> ShowS # | |
Eq StorePaymentPurpose Source # | |
Defined in TD.Data.StorePaymentPurpose Methods (==) :: StorePaymentPurpose -> StorePaymentPurpose -> Bool # (/=) :: StorePaymentPurpose -> StorePaymentPurpose -> Bool # | |
ShortShow StorePaymentPurpose Source # | |
Defined in TD.Data.StorePaymentPurpose Methods |