Class: TD::Types::InputMessageContent::Invoice
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::Invoice
- Defined in:
- lib/tdlib/types/input_message_content/invoice.rb
Overview
A message with an invoice; can be used only by bots.
Instance Attribute Summary collapse
-
#description ⇒ TD::Types::String
Product description; 0-255 characters.
-
#invoice ⇒ TD::Types::Invoice
Invoice.
-
#payload ⇒ String
The invoice payload.
-
#photo_height ⇒ Integer
Product photo height.
-
#photo_size ⇒ Integer
Product photo size.
-
#photo_url ⇒ TD::Types::String?
Product photo URL; optional.
-
#photo_width ⇒ Integer
Product photo width.
-
#provider_data ⇒ TD::Types::String
JSON-encoded data about the invoice, which will be shared with the payment provider.
-
#provider_token ⇒ TD::Types::String
Payment provider token.
-
#start_parameter ⇒ TD::Types::String
Unique invoice bot deep link parameter for the generation of this invoice.
-
#title ⇒ TD::Types::String
Product title; 1-32 characters.
Method Summary
Methods inherited from Base
Instance Attribute Details
#description ⇒ TD::Types::String
Product description; 0-255 characters.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def description @description end |
#invoice ⇒ TD::Types::Invoice
Invoice.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def invoice @invoice end |
#payload ⇒ String
The invoice payload.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def payload @payload end |
#photo_height ⇒ Integer
Product photo height.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def photo_height @photo_height end |
#photo_size ⇒ Integer
Product photo size.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def photo_size @photo_size end |
#photo_url ⇒ TD::Types::String?
Product photo URL; optional.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def photo_url @photo_url end |
#photo_width ⇒ Integer
Product photo width.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def photo_width @photo_width end |
#provider_data ⇒ TD::Types::String
JSON-encoded data about the invoice, which will be shared with the payment provider.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def provider_data @provider_data end |
#provider_token ⇒ TD::Types::String
Payment provider token.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def provider_token @provider_token end |
#start_parameter ⇒ TD::Types::String
Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def start_parameter @start_parameter end |
#title ⇒ TD::Types::String
Product title; 1-32 characters.
18 19 20 |
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18 def title @title end |