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

#currencyString

ISO 4217 currency code.

Returns:

  • (String)

    the current value of currency



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

def currency
  @currency
end

#is_flexibleBoolean

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

Returns:

  • (Boolean)

    the current value of is_flexible



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

def is_flexible
  @is_flexible
end

#is_testBoolean

True, if the payment is a test payment.

Returns:

  • (Boolean)

    the current value of is_test



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

def is_test
  @is_test
end

#need_email_addressBoolean

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

Returns:

  • (Boolean)

    the current value of need_email_address



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

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



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

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



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

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



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

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:



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

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



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

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



15
16
17
# File 'lib/tdlib/types/invoice.rb', line 15

def send_phone_number_to_provider
  @send_phone_number_to_provider
end