class
Hamilton::Types::TransactionPartnerUser
- Hamilton::Types::TransactionPartnerUser
- Reference
- Object
Overview
Describes a transaction with a user.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/transaction_partner.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#affiliate : Hamilton::Types::AffiliateInfo | Nil
Information about the affiliate that received a commission via this transaction.
-
#affiliate=(affiliate : Hamilton::Types::AffiliateInfo | Nil)
Information about the affiliate that received a commission via this transaction.
-
#gift : Hamilton::Types::Gift | Nil
The gift sent to the user by the bot; for “gift_purchase” transactions only.
-
#gift=(gift : Hamilton::Types::Gift | Nil)
The gift sent to the user by the bot; for “gift_purchase” transactions only.
-
#invoice_payload : String | Nil
Bot-specified invoice payload.
-
#invoice_payload=(invoice_payload : String | Nil)
Bot-specified invoice payload.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#paid_media : Array(Hamilton::Types::PaidMedia) | Nil
Information about the paid media bought by the user; for “paid_media_payment” transactions only.
-
#paid_media=(paid_media : Array(Hamilton::Types::PaidMedia) | Nil)
Information about the paid media bought by the user; for “paid_media_payment” transactions only.
-
#paid_media_payload : String | Nil
Bot-specified paid media payload.
-
#paid_media_payload=(paid_media_payload : String | Nil)
Bot-specified paid media payload.
-
#premium_subscription_duration : Int32 | Nil
Number of months the gifted Telegram Premium subscription will be active for; for “premium_purchase” transactions only.
-
#premium_subscription_duration=(premium_subscription_duration : Int32 | Nil)
Number of months the gifted Telegram Premium subscription will be active for; for “premium_purchase” transactions only.
-
#subscription_period : Int32 | Nil
The duration of the paid subscription.
-
#subscription_period=(subscription_period : Int32 | Nil)
The duration of the paid subscription.
-
#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 : Hamilton::Types::User
Information about the user.
-
#user=(user : Hamilton::Types::User)
Information about the user.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Information about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions.
Information about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions.
The gift sent to the user by the bot; for “gift_purchase” transactions only.
The gift sent to the user by the bot; for “gift_purchase” transactions only.
Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
Bot-specified invoice payload. Can be available only for “invoice_payment” transactions.
Information about the paid media bought by the user; for “paid_media_payment” transactions only.
Information about the paid media bought by the user; for “paid_media_payment” transactions only.
Bot-specified paid media payload. Can be available only for “paid_media_payment” transactions.
Bot-specified paid media payload. Can be available only for “paid_media_payment” transactions.
The duration of the paid subscription. Can be available only for “invoice_payment” transactions.
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.