class Hamilton::Types::PreCheckoutQuery

Overview

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

Included Modules

Defined in:

types/pre_checkout_query.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def currency : String #

Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.


def currency=(currency : String) #

Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.


User who sent the query.


def from=(from : Hamilton::Types::User) #

User who sent the query.


def id : String #

Unique query identifier.


def id=(id : String) #

Unique query identifier.


def invoice_payload : String #

Bot-specified invoice payload.


def invoice_payload=(invoice_payload : String) #

Bot-specified invoice payload.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def order_info : Hamilton::Types::OrderInfo | Nil #

Order information provided by the user.


def order_info=(order_info : Hamilton::Types::OrderInfo | Nil) #

Order information provided by the user.


def shipping_option_id : String | Nil #

Identifier of the shipping option chosen by the user.


def shipping_option_id=(shipping_option_id : String | Nil) #

Identifier of the shipping option chosen by the user.


def total_amount : Int32 #

Total price in the smallest units of the currency (integer, not float/double).


def total_amount=(total_amount : Int32) #

Total price in the smallest units of the currency (integer, not float/double).