Sha256: f76c85aca57949fb3017289bc28154a1e551ca177e5fbba8f9c822c068f579ea

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

module TD::Types
  # A message with an invoice from a bot.
  #
  # @attr title [String] Product title.
  # @attr description [String] Product description.
  # @attr photo [TD::Types::Photo, nil] Product photo; may be null.
  # @attr currency [String] Currency for the product price.
  # @attr total_amount [Integer] Product total price in the smallest units of the currency.
  # @attr start_parameter [String] Unique invoice bot start_parameter.
  #   To share an invoice use the URL https://t.me/{bot_username}?start={start_parameter}.
  # @attr is_test [Boolean] True, if the invoice is a test invoice.
  # @attr need_shipping_address [Boolean] True, if the shipping address should be specified.
  # @attr receipt_message_id [Integer] The identifier of the message with the receipt, after the product has been
  #   purchased.
  class MessageContent::Invoice < MessageContent
    attribute :title, TD::Types::String
    attribute :description, TD::Types::String
    attribute :photo, TD::Types::Photo.optional.default(nil)
    attribute :currency, TD::Types::String
    attribute :total_amount, TD::Types::Integer
    attribute :start_parameter, TD::Types::String
    attribute :is_test, TD::Types::Bool
    attribute :need_shipping_address, TD::Types::Bool
    attribute :receipt_message_id, TD::Types::Integer
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.1 lib/tdlib/types/message_content/invoice.rb