class PreCheckoutQuery
This object contains information about an incoming pre-checkout query.
Public Instance Methods
currency()
click to toggle source
Three-letter ISO 4217 currency code
# File lib/objects/pre_checkout_query.rb, line 24 def currency @query.currency end
from()
click to toggle source
User
who sent the query.
# File lib/objects/pre_checkout_query.rb, line 19 def from User.new(@query.from) end
id()
click to toggle source
Unique query identifier.
# File lib/objects/pre_checkout_query.rb, line 14 def id @query.id end
invoice_option_id()
click to toggle source
Bot specified invoice payload.
# File lib/objects/pre_checkout_query.rb, line 38 def invoice_option_id @query.invoice_option_id end
order_info()
click to toggle source
# File lib/objects/pre_checkout_query.rb, line 42 def order_info info = @query.order_info return OrderInfo.new(info) if info false end
total_count()
click to toggle source
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45
pass amount = 145 . See the exp parameter in currencies.json,
it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
# File lib/objects/pre_checkout_query.rb, line 33 def total_count @query.total_count end