Class: TD::Types::MessageContent::PaymentRefunded

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

Overview

A payment has been refunded.

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



10
11
12
# File 'lib/tdlib/types/message_content/payment_refunded.rb', line 10

def currency
  @currency
end

#invoice_payloadString

Invoice payload; only for bots.

Returns:

  • (String)

    the current value of invoice_payload



10
11
12
# File 'lib/tdlib/types/message_content/payment_refunded.rb', line 10

def invoice_payload
  @invoice_payload
end

#owner_idTD::Types::MessageSender

Identifier of the previous owner of the Telegram Stars that refunds them.

Returns:



10
11
12
# File 'lib/tdlib/types/message_content/payment_refunded.rb', line 10

def owner_id
  @owner_id
end

#provider_payment_charge_idTD::Types::String

Provider payment identifier.

Returns:

  • (TD::Types::String)

    the current value of provider_payment_charge_id



10
11
12
# File 'lib/tdlib/types/message_content/payment_refunded.rb', line 10

def provider_payment_charge_id
  @provider_payment_charge_id
end

#telegram_payment_charge_idTD::Types::String

Telegram payment identifier.

Returns:

  • (TD::Types::String)

    the current value of telegram_payment_charge_id



10
11
12
# File 'lib/tdlib/types/message_content/payment_refunded.rb', line 10

def telegram_payment_charge_id
  @telegram_payment_charge_id
end

#total_amountInteger

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

Returns:

  • (Integer)

    the current value of total_amount



10
11
12
# File 'lib/tdlib/types/message_content/payment_refunded.rb', line 10

def total_amount
  @total_amount
end