Class: TD::Types::MessageContent::Invoice

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/invoice.rb

Overview

A message with an invoice from a bot.

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



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def currency
  @currency
end

#descriptionTD::Types::String

Product description.

Returns:

  • (TD::Types::String)

    the current value of description



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def description
  @description
end

#is_testBoolean

True, if the invoice is a test invoice.

Returns:

  • (Boolean)

    the current value of is_test



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def is_test
  @is_test
end

#need_shipping_addressBoolean

True, if the shipping address should be specified.

Returns:

  • (Boolean)

    the current value of need_shipping_address



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def need_shipping_address
  @need_shipping_address
end

#photoTD::Types::Photo?

Product photo; may be null.

Returns:



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def photo
  @photo
end

#receipt_message_idInteger

The identifier of the message with the receipt, after the product has been purchased.

Returns:

  • (Integer)

    the current value of receipt_message_id



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def receipt_message_id
  @receipt_message_id
end

#start_parameterTD::Types::String

Unique invoice bot start_parameter. To share an invoice use the URL t.me/bot_username?start=#start_parameter.

Returns:

  • (TD::Types::String)

    the current value of start_parameter



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def start_parameter
  @start_parameter
end

#titleTD::Types::String

Product title.

Returns:

  • (TD::Types::String)

    the current value of title



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def title
  @title
end

#total_amountInteger

Product total price in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of total_amount



15
16
17
# File 'lib/tdlib/types/message_content/invoice.rb', line 15

def total_amount
  @total_amount
end