Class: TD::Types::Invoice

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/invoice.rb

Overview

Product invoice.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#currencyTD::Types::String

ISO 4217 currency code.

Returns:

  • (TD::Types::String)

    the current value of currency



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

def currency
  @currency
end

#is_flexibleBoolean

True, if the total price depends on the shipping method.

Returns:

  • (Boolean)

    the current value of is_flexible



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

def is_flexible
  @is_flexible
end

#is_testBoolean

True, if the payment is a test payment.

Returns:

  • (Boolean)

    the current value of is_test



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

def is_test
  @is_test
end

#max_tip_amountInteger

The maximum allowed amount of tip in the smallest units of the currency.

Returns:

  • (Integer)

    the current value of max_tip_amount



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

def max_tip_amount
  @max_tip_amount
end

#need_email_addressBoolean

True, if the user’s email address is needed for payment.

Returns:

  • (Boolean)

    the current value of need_email_address



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

def need_email_address
  @need_email_address
end

#need_nameBoolean

True, if the user’s name is needed for payment.

Returns:

  • (Boolean)

    the current value of need_name



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

def need_name
  @need_name
end

#need_phone_numberBoolean

True, if the user’s phone number is needed for payment.

Returns:

  • (Boolean)

    the current value of need_phone_number



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

def need_phone_number
  @need_phone_number
end

#need_shipping_addressBoolean

True, if the user’s shipping address is needed for payment.

Returns:

  • (Boolean)

    the current value of need_shipping_address



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

def need_shipping_address
  @need_shipping_address
end

#price_partsArray<TD::Types::LabeledPricePart>

A list of objects used to calculate the total price of the product.

Returns:



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

def price_parts
  @price_parts
end

#send_email_address_to_providerBoolean

True, if the user’s email address will be sent to the provider.

Returns:

  • (Boolean)

    the current value of send_email_address_to_provider



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

def send_email_address_to_provider
  @send_email_address_to_provider
end

#send_phone_number_to_providerBoolean

True, if the user’s phone number will be sent to the provider.

Returns:

  • (Boolean)

    the current value of send_phone_number_to_provider



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

def send_phone_number_to_provider
  @send_phone_number_to_provider
end

#suggested_tip_amountsArray<Integer>

Suggested amounts of tip in the smallest units of the currency.

Returns:

  • (Array<Integer>)

    the current value of suggested_tip_amounts



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

def suggested_tip_amounts
  @suggested_tip_amounts
end