Skip to content

class Tourmaline::PreCheckoutQuery
inherits Reference #

This object contains information about an incoming pre-checkout query.

Included modules

JSON::Serializable

Constructors#

.new(id, from, currency, total_amount, invoice_payload, shipping_option_id : String? = nil, order_info : Tourmaline::OrderInfo? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#currency : String #

Three-letter ISO 4217 currency code

View source

#currency=(currency : String) #

Three-letter ISO 4217 currency code

View source

#from : Tourmaline::User #

User who sent the query

View source

#from=(from : Tourmaline::User) #

User who sent the query

View source

#id : String #

Unique query identifier

View source

#id=(id : String) #

Unique query identifier

View source

#invoice_payload : String #

Bot specified invoice payload

View source

#invoice_payload=(invoice_payload : String) #

Bot specified invoice payload

View source

#order_info : Tourmaline::OrderInfo? #

Optional. Order information provided by the user

View source

#order_info=(order_info : Tourmaline::OrderInfo?) #

Optional. Order information provided by the user

View source

#shipping_option_id : String? #

Optional. Identifier of the shipping option chosen by the user

View source

#shipping_option_id=(shipping_option_id : String?) #

Optional. Identifier of the shipping option chosen by the user

View source

#total_amount : Int32 | Int64 #

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

View source

#total_amount=(total_amount : Int32 | Int64) #

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

View source