Class: Telegram::Bot::Types::TransactionPartnerUser

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/transaction_partner_user.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#affiliateAffiliateInfo? (readonly)

Returns the value of attribute affiliate.

Returns:



11
12
13
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 11

def affiliate
  @affiliate
end

#giftGift? (readonly)

Returns the value of attribute gift.

Returns:



16
17
18
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 16

def gift
  @gift
end

#invoice_payloadString? (readonly)

Returns the value of attribute invoice_payload.

Returns:

  • (String, nil)


12
13
14
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 12

def invoice_payload
  @invoice_payload
end

Returns the value of attribute paid_media.

Returns:



14
15
16
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 14

def paid_media
  @paid_media
end

Returns the value of attribute paid_media_payload.

Returns:

  • (String, nil)


15
16
17
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 15

def paid_media_payload
  @paid_media_payload
end

#premium_subscription_durationInteger? (readonly)

Returns the value of attribute premium_subscription_duration.

Returns:

  • (Integer, nil)


17
18
19
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 17

def premium_subscription_duration
  @premium_subscription_duration
end

#subscription_periodInteger? (readonly)

Returns the value of attribute subscription_period.

Returns:

  • (Integer, nil)


13
14
15
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 13

def subscription_period
  @subscription_period
end

#transaction_typeString (readonly)

Returns the value of attribute transaction_type.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 9

def transaction_type
  @transaction_type
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/transaction_partner_user.rbs', line 8

def type
  @type
end

#userUser (readonly)

Returns the value of attribute user.

Returns:



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

Overloads:

  • .new(type:, transaction_type:, user:, affiliate:, invoice_payload:, subscription_period:, paid_media:, paid_media_payload:, gift:, premium_subscription_duration:) ⇒ instance

    Parameters:

    • 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)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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