class
Hamilton::Types::PreCheckoutQuery
- Hamilton::Types::PreCheckoutQuery
- Reference
- Object
Overview
This object contains information about an incoming pre-checkout query.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/pre_checkout_query.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#currency : String
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
-
#currency=(currency : String)
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
-
#from : Hamilton::Types::User
User who sent the query.
-
#from=(from : Hamilton::Types::User)
User who sent the query.
-
#id : String
Unique query identifier.
-
#id=(id : String)
Unique query identifier.
-
#invoice_payload : String
Bot-specified invoice payload.
-
#invoice_payload=(invoice_payload : String)
Bot-specified invoice payload.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#order_info : Hamilton::Types::OrderInfo | Nil
Order information provided by the user.
-
#order_info=(order_info : Hamilton::Types::OrderInfo | Nil)
Order information provided by the user.
-
#shipping_option_id : String | Nil
Identifier of the shipping option chosen by the user.
-
#shipping_option_id=(shipping_option_id : String | Nil)
Identifier of the shipping option chosen by the user.
-
#total_amount : Int32
Total price in the smallest units of the currency (integer, not float/double).
-
#total_amount=(total_amount : Int32)
Total price in the smallest units of the currency (integer, not float/double).
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
Order information provided by the user.
Identifier of the shipping option chosen by the user.
Total price in the smallest units of the currency (integer, not float/double).
Total price in the smallest units of the currency (integer, not float/double).