class
Tourmaline::TransactionPartnerUser
- Tourmaline::TransactionPartnerUser
- Reference
- Object
Overview
Describes a transaction with a user.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(type : String, transaction_type : String, user : Tourmaline::User, affiliate : Tourmaline::AffiliateInfo | Nil = nil, invoice_payload : String | Nil = nil, subscription_period : Int32 | Int64 | Nil = nil, paid_media : Array(Tourmaline::PaidMedia) = [] of Tourmaline::PaidMedia, paid_media_payload : String | Nil = nil, gift : Tourmaline::Gift | Nil = nil, premium_subscription_duration : Int32 | Int64 | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#affiliate : Tourmaline::AffiliateInfo | Nil
Optional.
-
#affiliate=(affiliate : Tourmaline::AffiliateInfo | Nil)
Optional.
-
#gift : Tourmaline::Gift | Nil
Optional.
-
#gift=(gift : Tourmaline::Gift | Nil)
Optional.
-
#invoice_payload : String | Nil
Optional.
-
#invoice_payload=(invoice_payload : String | Nil)
Optional.
-
#paid_media : Array(Tourmaline::PaidMedia)
Optional.
-
#paid_media=(paid_media : Array(Tourmaline::PaidMedia))
Optional.
-
#paid_media_payload : String | Nil
Optional.
-
#paid_media_payload=(paid_media_payload : String | Nil)
Optional.
-
#premium_subscription_duration : Int32 | Int64 | Nil
Optional.
-
#premium_subscription_duration=(premium_subscription_duration : Int32 | Int64 | Nil)
Optional.
-
#subscription_period : Int32 | Int64 | Nil
Optional.
-
#subscription_period=(subscription_period : Int32 | Int64 | Nil)
Optional.
-
#transaction_type : String
Type of the transaction, currently one of "invoice_payment" for payments via invoices, "paid_media_payment" for payments for paid media, "gift_purchase" for gifts sent by the bot, "premium_purchase" for Telegram Premium subscriptions gifted by the bot, "business_account_transfer" for direct transfers from managed business accounts
-
#transaction_type=(transaction_type : String)
Type of the transaction, currently one of "invoice_payment" for payments via invoices, "paid_media_payment" for payments for paid media, "gift_purchase" for gifts sent by the bot, "premium_purchase" for Telegram Premium subscriptions gifted by the bot, "business_account_transfer" for direct transfers from managed business accounts
-
#type : String
Type of the transaction partner, always "user"
-
#type=(type : String)
Type of the transaction partner, always "user"
-
#user : Tourmaline::User
Information about the user
-
#user=(user : Tourmaline::User)
Information about the user
Constructor Detail
Instance Method Detail
Optional. Information about the affiliate that received a commission via this transaction. Can be available only for "invoice_payment" and "paid_media_payment" transactions.
Optional. Information about the affiliate that received a commission via this transaction. Can be available only for "invoice_payment" and "paid_media_payment" transactions.
Optional. The gift sent to the user by the bot; for "gift_purchase" transactions only
Optional. The gift sent to the user by the bot; for "gift_purchase" transactions only
Optional. Bot-specified invoice payload. Can be available only for "invoice_payment" transactions.
Optional. Bot-specified invoice payload. Can be available only for "invoice_payment" transactions.
Optional. Information about the paid media bought by the user; for "paid_media_payment" transactions only
Optional. Information about the paid media bought by the user; for "paid_media_payment" transactions only
Optional. Bot-specified paid media payload. Can be available only for "paid_media_payment" transactions.
Optional. Bot-specified paid media payload. Can be available only for "paid_media_payment" transactions.
Optional. The duration of the paid subscription. Can be available only for "invoice_payment" transactions.
Optional. The duration of the paid subscription. Can be available only for "invoice_payment" transactions.
Type of the transaction, currently one of "invoice_payment" for payments via invoices, "paid_media_payment" for payments for paid media, "gift_purchase" for gifts sent by the bot, "premium_purchase" for Telegram Premium subscriptions gifted by the bot, "business_account_transfer" for direct transfers from managed business accounts
Type of the transaction, currently one of "invoice_payment" for payments via invoices, "paid_media_payment" for payments for paid media, "gift_purchase" for gifts sent by the bot, "premium_purchase" for Telegram Premium subscriptions gifted by the bot, "business_account_transfer" for direct transfers from managed business accounts