Sha256: 0fe017ae64bf8001718ea747513a4ce9e26b9b455ef18ab2c9ddabcaaf3fbeb5

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

module TD::Types
  # A payment has been completed; for bots only.
  #
  # @attr currency [TD::Types::String] Currency for price of the product.
  # @attr total_amount [Integer] Total price for the product, in the smallest units of the currency.
  # @attr invoice_payload [String] Invoice payload.
  # @attr shipping_option_id [TD::Types::String, nil] Identifier of the shipping option chosen by the user; may be
  #   empty if not applicable.
  # @attr order_info [TD::Types::OrderInfo, nil] Information about the order; may be null.
  # @attr telegram_payment_charge_id [TD::Types::String] Telegram payment identifier.
  # @attr provider_payment_charge_id [TD::Types::String] Provider payment identifier.
  class MessageContent::PaymentSuccessfulBot < MessageContent
    attribute :currency, TD::Types::String
    attribute :total_amount, TD::Types::Coercible::Integer
    attribute :invoice_payload, TD::Types::Coercible::String
    attribute :shipping_option_id, TD::Types::String.optional.default(nil)
    attribute :order_info, TD::Types::OrderInfo.optional.default(nil)
    attribute :telegram_payment_charge_id, TD::Types::String
    attribute :provider_payment_charge_id, TD::Types::String
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/message_content/payment_successful_bot.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/message_content/payment_successful_bot.rb