Sha256: 7d8f536cfcb147fa39cfd36ac879bd26ee5fe8f07118be1fc9abcf161c9b5b75

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

module TD::Types
  # Contains information about an invoice payment form.
  #
  # @attr invoice [TD::Types::Invoice] Full information of the invoice.
  # @attr url [String] Payment form URL.
  # @attr payments_provider [TD::Types::PaymentsProviderStripe, nil] Contains information about the payment provider,
  #   if available, to support it natively without the need for opening the URL; may be null.
  # @attr saved_order_info [TD::Types::OrderInfo, nil] Saved server-side order information; may be null.
  # @attr saved_credentials [TD::Types::SavedCredentials, nil] Contains information about saved card credentials; may
  #   be null.
  # @attr can_save_credentials [Boolean] True, if the user can choose to save credentials.
  # @attr need_password [Boolean] True, if the user will be able to save credentials protected by a password they set
  #   up.
  class PaymentForm < Base
    attribute :invoice, TD::Types::Invoice
    attribute :url, TD::Types::String
    attribute :payments_provider, TD::Types::PaymentsProviderStripe.optional.default(nil)
    attribute :saved_order_info, TD::Types::OrderInfo.optional.default(nil)
    attribute :saved_credentials, TD::Types::SavedCredentials.optional.default(nil)
    attribute :can_save_credentials, TD::Types::Bool
    attribute :need_password, TD::Types::Bool
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/payment_form.rb
tdlib-ruby-2.1.0 lib/tdlib/types/payment_form.rb
tdlib-ruby-2.0.0 lib/tdlib/types/payment_form.rb