Class: TD::Types::MessageContent::PaymentSuccessful
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::PaymentSuccessful
- Defined in:
- lib/tdlib/types/message_content/payment_successful.rb
Overview
A payment has been completed.
Instance Attribute Summary collapse
-
#currency ⇒ TD::Types::String
Currency for the price of the product.
-
#invoice_chat_id ⇒ Integer
Identifier of the chat, containing the corresponding invoice message.
-
#invoice_message_id ⇒ Integer
Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.
-
#invoice_name ⇒ TD::Types::String?
Name of the invoice; may be empty if unknown.
-
#is_first_recurring ⇒ Boolean
True, if this is the first recurring payment.
-
#is_recurring ⇒ Boolean
True, if this is a recurring payment.
-
#total_amount ⇒ Integer
Total price for the product, in the smallest units of the currency.
Method Summary
Methods inherited from Base
Instance Attribute Details
#currency ⇒ TD::Types::String
Currency for the price of the product.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def currency @currency end |
#invoice_chat_id ⇒ Integer
Identifier of the chat, containing the corresponding invoice message.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def invoice_chat_id @invoice_chat_id end |
#invoice_message_id ⇒ Integer
Identifier of the message with the corresponding invoice; can be 0 or an identifier of a deleted message.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def @invoice_message_id end |
#invoice_name ⇒ TD::Types::String?
Name of the invoice; may be empty if unknown.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def invoice_name @invoice_name end |
#is_first_recurring ⇒ Boolean
True, if this is the first recurring payment.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def is_first_recurring @is_first_recurring end |
#is_recurring ⇒ Boolean
True, if this is a recurring payment.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def is_recurring @is_recurring end |
#total_amount ⇒ Integer
Total price for the product, in the smallest units of the currency.
12 13 14 |
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12 def total_amount @total_amount end |