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

#currencyString

Currency for the price of the product.

Returns:

  • (String)

    the current value of currency



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

def currency
  @currency
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



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

def invoice_message_id
  @invoice_message_id
end

#total_amountInteger

Total price for the product, in the minimal quantity of the currency.

Returns:

  • (Integer)

    the current value of total_amount



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

def total_amount
  @total_amount
end