Class: TD::Types::Update::NewPreCheckoutQuery

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/new_pre_checkout_query.rb

Overview

A new incoming pre-checkout query; for bots only. Contains full information about a checkout.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#currencyTD::Types::String

Currency for the product price.

Returns:

  • (TD::Types::String)

    the current value of currency



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def currency
  @currency
end

#idInteger

Unique query identifier.

Returns:

  • (Integer)

    the current value of id



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def id
  @id
end

#invoice_payloadString

Invoice payload.

Returns:

  • (String)

    the current value of invoice_payload



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def invoice_payload
  @invoice_payload
end

#order_infoTD::Types::OrderInfo?

Information about the order; may be null.

Returns:



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def order_info
  @order_info
end

#sender_user_idInteger

Identifier of the user who sent the query.

Returns:

  • (Integer)

    the current value of sender_user_id



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def sender_user_id
  @sender_user_id
end

#shipping_option_idTD::Types::String?

Identifier of a shipping option chosen by the user; may be empty if not applicable.

Returns:

  • (TD::Types::String, nil)

    the current value of shipping_option_id



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def shipping_option_id
  @shipping_option_id
end

#total_amountInteger

Total price for the product, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of total_amount



13
14
15
# File 'lib/tdlib/types/update/new_pre_checkout_query.rb', line 13

def total_amount
  @total_amount
end