Class: Telegram::Bot::Types::PreCheckoutQuery
- Defined in:
- sig/telegram/bot/types/pre_checkout_query.rbs
Instance Attribute Summary collapse
-
#currency ⇒ String
readonly
Returns the value of attribute currency.
-
#from ⇒ User
readonly
Returns the value of attribute from.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#invoice_payload ⇒ String
readonly
Returns the value of attribute invoice_payload.
-
#order_info ⇒ OrderInfo?
readonly
Returns the value of attribute order_info.
-
#shipping_option_id ⇒ String?
readonly
Returns the value of attribute shipping_option_id.
-
#total_amount ⇒ Integer
readonly
Returns the value of attribute total_amount.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#currency ⇒ String (readonly)
Returns the value of attribute currency.
10 11 12 |
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 10 def currency @currency end |
#from ⇒ User (readonly)
Returns the value of attribute from.
9 10 11 |
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 9 def from @from end |
#id ⇒ String (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 8 def id @id end |
#invoice_payload ⇒ String (readonly)
Returns the value of attribute invoice_payload.
12 13 14 |
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 12 def invoice_payload @invoice_payload end |
#order_info ⇒ OrderInfo? (readonly)
Returns the value of attribute order_info.
14 15 16 |
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 14 def order_info @order_info end |
#shipping_option_id ⇒ String? (readonly)
Returns the value of attribute shipping_option_id.
13 14 15 |
# File 'sig/telegram/bot/types/pre_checkout_query.rbs', line 13 def shipping_option_id @shipping_option_id end |
#total_amount ⇒ Integer (readonly)
Returns the value of attribute total_amount.
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
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
|