Class: TD::Types::Invoice
- Defined in:
- lib/tdlib/types/invoice.rb
Overview
Product invoice.
Instance Attribute Summary collapse
-
#currency ⇒ String
ISO 4217 currency code.
-
#is_flexible ⇒ Boolean
True, if the total price depends on the shipping method.
-
#is_test ⇒ Boolean
True, if the payment is a test payment.
-
#need_email_address ⇒ Boolean
True, if the user's email address is needed for payment.
-
#need_name ⇒ Boolean
True, if the user's name is needed for payment.
-
#need_phone_number ⇒ Boolean
True, if the user's phone number is needed for payment.
-
#need_shipping_address ⇒ Boolean
True, if the user's shipping address is needed for payment.
-
#price_parts ⇒ Array<TD::Types::LabeledPricePart>
A list of objects used to calculate the total price of the product.
-
#send_email_address_to_provider ⇒ Boolean
True, if the user's email address will be sent to the provider.
-
#send_phone_number_to_provider ⇒ Boolean
True, if the user's phone number will be sent to the provider.
Method Summary
Methods inherited from Base
Instance Attribute Details
#currency ⇒ String
ISO 4217 currency code.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def currency @currency end |
#is_flexible ⇒ Boolean
True, if the total price depends on the shipping method.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def is_flexible @is_flexible end |
#is_test ⇒ Boolean
True, if the payment is a test payment.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def is_test @is_test end |
#need_email_address ⇒ Boolean
True, if the user's email address is needed for payment.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def need_email_address @need_email_address end |
#need_name ⇒ Boolean
True, if the user's name is needed for payment.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def need_name @need_name end |
#need_phone_number ⇒ Boolean
True, if the user's phone number is needed for payment.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def need_phone_number @need_phone_number end |
#need_shipping_address ⇒ Boolean
True, if the user's shipping address is needed for payment.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def need_shipping_address @need_shipping_address end |
#price_parts ⇒ Array<TD::Types::LabeledPricePart>
A list of objects used to calculate the total price of the product.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def price_parts @price_parts end |
#send_email_address_to_provider ⇒ Boolean
True, if the user's email address will be sent to the 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_provider ⇒ Boolean
True, if the user's phone number will be sent to the provider.
15 16 17 |
# File 'lib/tdlib/types/invoice.rb', line 15 def send_phone_number_to_provider @send_phone_number_to_provider end |