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. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
Instance Attribute Summary collapse
-
#currency ⇒ TD::Types::String
Currency for the product price.
-
#is_test ⇒ Boolean
True, if the invoice is a test invoice.
-
#need_shipping_address ⇒ Boolean
True, if the shipping address must be specified.
-
#paid_media ⇒ TD::Types::PaidMedia?
Extended media attached to the invoice; may be null if none.
-
#paid_media_caption ⇒ TD::Types::FormattedText?
Extended media caption; may be null if none.
-
#product_info ⇒ TD::Types::ProductInfo
Information about the product.
-
#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 to be passed to getInternalLink.
-
#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 |
#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 must be specified.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def need_shipping_address @need_shipping_address end |
#paid_media ⇒ TD::Types::PaidMedia?
Extended media attached to the invoice; may be null if none.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def paid_media @paid_media end |
#paid_media_caption ⇒ TD::Types::FormattedText?
Extended media caption; may be null if none.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def @paid_media_caption end |
#product_info ⇒ TD::Types::ProductInfo
Information about the product.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def product_info @product_info 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 be passed to getInternalLink.
15 16 17 |
# File 'lib/tdlib/types/message_content/invoice.rb', line 15 def start_parameter @start_parameter 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 |