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



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def currency
  @currency
end

#invoice_chat_idInteger

Identifier of the chat, containing the corresponding invoice message.

Returns:

  • (Integer)

    the current value of invoice_chat_id



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def invoice_chat_id
  @invoice_chat_id
end

#invoice_message_idInteger

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

Returns:

  • (Integer)

    the current value of invoice_message_id



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def invoice_message_id
  @invoice_message_id
end

#invoice_nameTD::Types::String?

Name of the invoice; may be empty if unknown.

Returns:

  • (TD::Types::String, nil)

    the current value of invoice_name



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def invoice_name
  @invoice_name
end

#is_first_recurringBoolean

True, if this is the first recurring payment.

Returns:

  • (Boolean)

    the current value of is_first_recurring



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def is_first_recurring
  @is_first_recurring
end

#is_recurringBoolean

True, if this is a recurring payment.

Returns:

  • (Boolean)

    the current value of is_recurring



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def is_recurring
  @is_recurring
end

#total_amountInteger

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

Returns:

  • (Integer)

    the current value of total_amount



12
13
14
# File 'lib/tdlib/types/message_content/payment_successful.rb', line 12

def total_amount
  @total_amount
end