Class: TD::Types::InputMessageContent::Invoice

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/invoice.rb

Overview

A message with an invoice; can be used only by bots.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#descriptionTD::Types::String

Product description; 0-255 characters.

Returns:

  • (TD::Types::String)

    the current value of description



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def description
  @description
end

#invoiceTD::Types::Invoice

Invoice.

Returns:



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def invoice
  @invoice
end

#payloadString

The invoice payload.

Returns:

  • (String)

    the current value of payload



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def payload
  @payload
end

#photo_heightInteger

Product photo height.

Returns:

  • (Integer)

    the current value of photo_height



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def photo_height
  @photo_height
end

#photo_sizeInteger

Product photo size.

Returns:

  • (Integer)

    the current value of photo_size



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def photo_size
  @photo_size
end

#photo_urlTD::Types::String?

Product photo URL; optional.

Returns:

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

    the current value of photo_url



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def photo_url
  @photo_url
end

#photo_widthInteger

Product photo width.

Returns:

  • (Integer)

    the current value of photo_width



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def photo_width
  @photo_width
end

#provider_dataTD::Types::String

JSON-encoded data about the invoice, which will be shared with the payment provider.

Returns:

  • (TD::Types::String)

    the current value of provider_data



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def provider_data
  @provider_data
end

#provider_tokenTD::Types::String

Payment provider token.

Returns:

  • (TD::Types::String)

    the current value of provider_token



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def provider_token
  @provider_token
end

#start_parameterTD::Types::String

Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.

Returns:

  • (TD::Types::String)

    the current value of start_parameter



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def start_parameter
  @start_parameter
end

#titleTD::Types::String

Product title; 1-32 characters.

Returns:

  • (TD::Types::String)

    the current value of title



18
19
20
# File 'lib/tdlib/types/input_message_content/invoice.rb', line 18

def title
  @title
end