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.
-
#recurring_payment_terms_of_service_url ⇒ TD::Types::String
An HTTP URL with terms of service for recurring payments.
-
#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.
-
#terms_of_service_url ⇒ TD::Types::String
An HTTP URL with terms of service for non-recurring payments.
Method Summary
Methods inherited from Base
Instance Attribute Details
#currency ⇒ TD::Types::String
ISO 4217 currency code.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def currency @currency end |
#is_flexible ⇒ Boolean
True, if the total price depends on the shipping method.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def is_flexible @is_flexible end |
#is_test ⇒ Boolean
True, if the payment is a test payment.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def is_test @is_test end |
#max_tip_amount ⇒ Integer
The maximum allowed amount of tip in the smallest units of the currency.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def max_tip_amount @max_tip_amount end |
#need_email_address ⇒ Boolean
True, if the user’s email address is needed for payment.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def need_email_address @need_email_address end |
#need_name ⇒ Boolean
True, if the user’s name is needed for payment.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def need_name @need_name end |
#need_phone_number ⇒ Boolean
True, if the user’s phone number is needed for payment.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def need_phone_number @need_phone_number end |
#need_shipping_address ⇒ Boolean
True, if the user’s shipping address is needed for payment.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 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.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def price_parts @price_parts end |
#recurring_payment_terms_of_service_url ⇒ TD::Types::String
An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def recurring_payment_terms_of_service_url @recurring_payment_terms_of_service_url end |
#send_email_address_to_provider ⇒ Boolean
True, if the user’s email address will be sent to the provider.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 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.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 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.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def suggested_tip_amounts @suggested_tip_amounts end |
#terms_of_service_url ⇒ TD::Types::String
An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay.
23 24 25 |
# File 'lib/tdlib/types/invoice.rb', line 23 def terms_of_service_url @terms_of_service_url end |