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



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

def currency
  @currency
end

#invoice_payloadString

Invoice payload.

Returns:

  • (String)

    the current value of invoice_payload



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

def invoice_payload
  @invoice_payload
end

#is_first_recurringBoolean

True, if this is the first recurring payment.

Returns:

  • (Boolean)

    the current value of is_first_recurring



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

def is_recurring
  @is_recurring
end

#order_infoTD::Types::OrderInfo?

Information about the order; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

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



14
15
16
# File 'lib/tdlib/types/message_content/payment_successful_bot.rb', line 14

def total_amount
  @total_amount
end