Class: TD::Types::Invoice
- Defined in:
- lib/tdlib/types/invoice.rb
Overview
Product invoice.
Instance Attribute Summary collapse
-
#currency ⇒ TD::Types::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.
-
#max_tip_amount ⇒ Integer
The maximum allowed amount of tip in the smallest units of the currency.
-
#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.
-
#suggested_tip_amounts ⇒ Array<Integer>
Suggested amounts of tip in the smallest units of the currency.
Method Summary
Methods inherited from Base
Instance Attribute Details
#currency ⇒ TD::Types::String
ISO 4217 currency code.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def currency @currency end |
#is_flexible ⇒ Boolean
True, if the total price depends on the shipping method.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def is_flexible @is_flexible end |
#is_test ⇒ Boolean
True, if the payment is a test payment.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def is_test @is_test end |
#max_tip_amount ⇒ Integer
The maximum allowed amount of tip in the smallest units of the currency.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def max_tip_amount @max_tip_amount end |
#need_email_address ⇒ Boolean
True, if the user’s email address is needed for payment.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def need_email_address @need_email_address end |
#need_name ⇒ Boolean
True, if the user’s name is needed for payment.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def need_name @need_name end |
#need_phone_number ⇒ Boolean
True, if the user’s phone number is needed for payment.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def need_phone_number @need_phone_number end |
#need_shipping_address ⇒ Boolean
True, if the user’s shipping address is needed for payment.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 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.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 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.
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_provider ⇒ Boolean
True, if the user’s phone number will be sent to the 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_amounts ⇒ Array<Integer>
Suggested amounts of tip in the smallest units of the currency.
17 18 19 |
# File 'lib/tdlib/types/invoice.rb', line 17 def suggested_tip_amounts @suggested_tip_amounts end |