Class: Telegram::Bot::Types::PreCheckoutQuery

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/pre_checkout_query.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

#currencyString (readonly)

Returns the value of attribute currency.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 10

def currency
  @currency
end

#fromUser (readonly)

Returns the value of attribute from.

Returns:



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

def from
  @from
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#invoice_payloadString (readonly)

Returns the value of attribute invoice_payload.

Returns:

  • (String)


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

def invoice_payload
  @invoice_payload
end

#order_infoOrderInfo? (readonly)

Returns the value of attribute order_info.

Returns:



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

def order_info
  @order_info
end

#shipping_option_idString? (readonly)

Returns the value of attribute shipping_option_id.

Returns:

  • (String, nil)


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

def shipping_option_id
  @shipping_option_id
end

#total_amountInteger (readonly)

Returns the value of attribute total_amount.

Returns:

  • (Integer)


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

def total_amount
  @total_amount
end

Class Method Details

.new(id:, from:, currency:, total_amount:, invoice_payload:, shipping_option_id:, order_info:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, from:, currency:, total_amount:, invoice_payload:, shipping_option_id:, order_info:) ⇒ instance

    Parameters:

    • id: (String)
    • from: (User)
    • currency: (String)
    • total_amount: (Integer)
    • invoice_payload: (String)
    • shipping_option_id: (String)
    • order_info: (OrderInfo)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 6

def self.new: (id: String, from: User, currency: String, total_amount: Integer, invoice_payload: String, ?shipping_option_id: String, ?order_info: OrderInfo) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance