Class: Telegram::Bot::Types::TransactionPartnerUser
- Defined in:
- sig/telegram/bot/types/transaction_partner_user.rbs
Instance Attribute Summary collapse
-
#affiliate ⇒ AffiliateInfo?
readonly
Returns the value of attribute affiliate.
-
#gift ⇒ Gift?
readonly
Returns the value of attribute gift.
-
#invoice_payload ⇒ String?
readonly
Returns the value of attribute invoice_payload.
-
#paid_media ⇒ Array[paid_media]?
readonly
Returns the value of attribute paid_media.
-
#paid_media_payload ⇒ String?
readonly
Returns the value of attribute paid_media_payload.
-
#premium_subscription_duration ⇒ Integer?
readonly
Returns the value of attribute premium_subscription_duration.
-
#subscription_period ⇒ Integer?
readonly
Returns the value of attribute subscription_period.
-
#transaction_type ⇒ String
readonly
Returns the value of attribute transaction_type.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#user ⇒ User
readonly
Returns the value of attribute user.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#affiliate ⇒ AffiliateInfo? (readonly)
Returns the value of attribute affiliate.
11 12 13 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 11 def affiliate @affiliate end |
#gift ⇒ Gift? (readonly)
Returns the value of attribute gift.
16 17 18 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 16 def gift @gift end |
#invoice_payload ⇒ String? (readonly)
Returns the value of attribute invoice_payload.
12 13 14 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 12 def invoice_payload @invoice_payload end |
#paid_media ⇒ Array[paid_media]? (readonly)
Returns the value of attribute paid_media.
14 15 16 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 14 def paid_media @paid_media end |
#paid_media_payload ⇒ String? (readonly)
Returns the value of attribute paid_media_payload.
15 16 17 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 15 def paid_media_payload @paid_media_payload end |
#premium_subscription_duration ⇒ Integer? (readonly)
Returns the value of attribute premium_subscription_duration.
17 18 19 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 17 def premium_subscription_duration @premium_subscription_duration end |
#subscription_period ⇒ Integer? (readonly)
Returns the value of attribute subscription_period.
13 14 15 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 13 def subscription_period @subscription_period end |
#transaction_type ⇒ String (readonly)
Returns the value of attribute transaction_type.
9 10 11 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 9 def transaction_type @transaction_type end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 8 def type @type end |
#user ⇒ User (readonly)
Returns the value of attribute user.
10 11 12 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 10 def user @user end |
Class Method Details
.new(type:, transaction_type:, user:, affiliate:, invoice_payload:, subscription_period:, paid_media:, paid_media_payload:, gift:, premium_subscription_duration:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 6
def self.new: (?type: String, transaction_type: String, user: User, ?affiliate: AffiliateInfo, ?invoice_payload: String, ?subscription_period: Integer, ?paid_media: Array[paid_media], ?paid_media_payload: String, ?gift: Gift, ?premium_subscription_duration: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|