telegram-bot-api-7.3.1: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.Invoice

Contents

Synopsis

Invoice

data Invoice Source #

This object contains basic information about an invoice.

Constructors

Invoice 

Fields

  • invoiceTitle :: Text

    Product name.

  • invoiceDescription :: Text

    Product description.

  • invoiceStartParameter :: Text

    Unique bot deep-linking parameter that can be used to generate this invoice.

  • invoiceCurrency :: Text

    Three-letter ISO 4217 currency code.

  • invoiceTotalAmount :: Int

    Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Instances

Instances details
FromJSON Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Invoice

ToJSON Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Invoice

Generic Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Invoice

Associated Types

type Rep Invoice :: Type -> Type #

Methods

from :: Invoice -> Rep Invoice x #

to :: Rep Invoice x -> Invoice #

Show Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Invoice

type Rep Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Invoice

type Rep Invoice = D1 ('MetaData "Invoice" "Telegram.Bot.API.Types.Invoice" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'False) (C1 ('MetaCons "Invoice" 'PrefixI 'True) ((S1 ('MetaSel ('Just "invoiceTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "invoiceDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "invoiceStartParameter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "invoiceCurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "invoiceTotalAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))