Class: TD::Types::MessageContent::PaymentSuccessfulBot

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

Overview

A payment has been completed; for bots only.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#currencyTD::Types::String

Currency for price of the product.

Returns:

  • (TD::Types::String)

    the current value of currency



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

def currency
  @currency
end

#invoice_payloadString

Invoice payload.

Returns:

  • (String)

    the current value of invoice_payload



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

def invoice_payload
  @invoice_payload
end

#order_infoTD::Types::OrderInfo?

Information about the order; may be null.

Returns:



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

def order_info
  @order_info
end

#provider_payment_charge_idTD::Types::String

Provider payment identifier.

Returns:

  • (TD::Types::String)

    the current value of provider_payment_charge_id



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

def provider_payment_charge_id
  @provider_payment_charge_id
end

#shipping_option_idTD::Types::String?

Identifier of the shipping option chosen by the user; may be empty if not applicable.

Returns:

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

    the current value of shipping_option_id



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

def shipping_option_id
  @shipping_option_id
end

#telegram_payment_charge_idTD::Types::String

Telegram payment identifier.

Returns:

  • (TD::Types::String)

    the current value of telegram_payment_charge_id



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

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



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

def total_amount
  @total_amount
end