module TD.Query.GetStarPaymentOptions
  (GetStarPaymentOptions(..)
  ) where

import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I

-- | Returns available options for Telegram Stars purchase. Returns 'TD.Data.StarPaymentOptions.StarPaymentOptions'
data GetStarPaymentOptions
  = GetStarPaymentOptions
  deriving (GetStarPaymentOptions -> GetStarPaymentOptions -> Bool
(GetStarPaymentOptions -> GetStarPaymentOptions -> Bool)
-> (GetStarPaymentOptions -> GetStarPaymentOptions -> Bool)
-> Eq GetStarPaymentOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetStarPaymentOptions -> GetStarPaymentOptions -> Bool
== :: GetStarPaymentOptions -> GetStarPaymentOptions -> Bool
$c/= :: GetStarPaymentOptions -> GetStarPaymentOptions -> Bool
/= :: GetStarPaymentOptions -> GetStarPaymentOptions -> Bool
Eq, Int -> GetStarPaymentOptions -> ShowS
[GetStarPaymentOptions] -> ShowS
GetStarPaymentOptions -> String
(Int -> GetStarPaymentOptions -> ShowS)
-> (GetStarPaymentOptions -> String)
-> ([GetStarPaymentOptions] -> ShowS)
-> Show GetStarPaymentOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetStarPaymentOptions -> ShowS
showsPrec :: Int -> GetStarPaymentOptions -> ShowS
$cshow :: GetStarPaymentOptions -> String
show :: GetStarPaymentOptions -> String
$cshowList :: [GetStarPaymentOptions] -> ShowS
showList :: [GetStarPaymentOptions] -> ShowS
Show)

instance I.ShortShow GetStarPaymentOptions where
  shortShow :: GetStarPaymentOptions -> String
shortShow
    GetStarPaymentOptions
GetStarPaymentOptions
        = String
"GetStarPaymentOptions"

instance AT.ToJSON GetStarPaymentOptions where
  toJSON :: GetStarPaymentOptions -> Value
toJSON
    GetStarPaymentOptions
GetStarPaymentOptions
        = [Pair] -> Value
A.object
          [ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"getStarPaymentOptions"
          ]