Class: TD::Types::MessageContent::Invoice
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::Invoice
- Defined in:
- lib/tdlib/types/message_content/invoice.rb
Overview
A message with an invoice from a bot.
Instance Attribute Summary collapse
-
#currency ⇒ TD::Types::String
Currency for the product price.
-
#description ⇒ TD::Types::String
Product description.
-
#is_test ⇒ Boolean
True, if the invoice is a test invoice.
-
#need_shipping_address ⇒ Boolean
True, if the shipping address should be specified.
-
#photo ⇒ TD::Types::Photo?
Product photo; may be null.
-
#receipt_message_id ⇒ Integer
The identifier of the message with the receipt, after the product has been purchased.
-
#start_parameter ⇒ TD::Types::String
Unique invoice bot start_parameter.
-
#title ⇒ TD::Types::String
Product title.
-
#total_amount ⇒ Integer
Product total price in the smallest units of the currency.
Method Summary
Methods inherited from Base
Instance Attribute Details
#currency ⇒ TD::Types::String
Currency for the product price.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def currency @currency end |
#description ⇒ TD::Types::String
Product description.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def description @description end |
#is_test ⇒ Boolean
True, if the invoice is a test invoice.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def is_test @is_test end |
#need_shipping_address ⇒ Boolean
True, if the shipping address should be specified.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def need_shipping_address @need_shipping_address end |
#photo ⇒ TD::Types::Photo?
Product photo; may be null.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def photo @photo end |
#receipt_message_id ⇒ Integer
The identifier of the message with the receipt, after the product has been purchased.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def @receipt_message_id end |
#start_parameter ⇒ TD::Types::String
Unique invoice bot start_parameter. To share an invoice use the URL t.me/bot_username?start=#start_parameter.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def start_parameter @start_parameter end |
#title ⇒ TD::Types::String
Product title.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def title @title end |
#total_amount ⇒ Integer
Product total price in the smallest units of the currency.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def total_amount @total_amount end |