Class: TD::Types::PaymentForm

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

Overview

Contains information about an invoice payment form.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_save_credentialsBoolean

True, if the user can choose to save credentials.

Returns:

  • (Boolean)

    the current value of can_save_credentials



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

def can_save_credentials
  @can_save_credentials
end

#idInteger

The payment form identifier.

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#invoiceTD::Types::Invoice

Full information of the invoice.

Returns:



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

def invoice
  @invoice
end

#need_passwordBoolean

True, if the user will be able to save credentials protected by a password they set up.

Returns:

  • (Boolean)

    the current value of need_password



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

def need_password
  @need_password
end

#payments_providerTD::Types::PaymentsProviderStripe?

Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null.

Returns:



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

def payments_provider
  @payments_provider
end

#payments_provider_user_idInteger

User identifier of the payment provider bot.

Returns:

  • (Integer)

    the current value of payments_provider_user_id



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

def payments_provider_user_id
  @payments_provider_user_id
end

#saved_credentialsTD::Types::SavedCredentials?

Contains information about saved card credentials; may be null.

Returns:



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

def saved_credentials
  @saved_credentials
end

#saved_order_infoTD::Types::OrderInfo?

Saved server-side order information; may be null.

Returns:



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

def saved_order_info
  @saved_order_info
end

#seller_bot_user_idInteger

User identifier of the seller bot.

Returns:

  • (Integer)

    the current value of seller_bot_user_id



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

def seller_bot_user_id
  @seller_bot_user_id
end

#urlTD::Types::String

Payment form URL.

Returns:

  • (TD::Types::String)

    the current value of url



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

def url
  @url
end