Class: TD::Types::MessageContent::PaymentSuccessful

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

Overview

A payment has been completed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#currencyTD::Types::String

Currency for the price of the product.

Returns:

  • (TD::Types::String)

    the current value of currency



9
10
11
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 9

def currency
  @currency
end

#invoice_chat_idInteger

Identifier of the chat, containing the corresponding invoice message; 0 if unknown.

Returns:

  • (Integer)

    the current value of invoice_chat_id



9
10
11
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 9

def invoice_chat_id
  @invoice_chat_id
end

#invoice_message_idInteger

Identifier of the message with the corresponding invoice; can be an identifier of a deleted message.

Returns:

  • (Integer)

    the current value of invoice_message_id



9
10
11
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 9

def invoice_message_id
  @invoice_message_id
end

#total_amountInteger

Total price for the product, in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of total_amount



9
10
11
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 9

def total_amount
  @total_amount
end