Sha256: 4b3d94ca86bff916aed0c1e476ae929d4f89051d5ffd7dcb94fe557c1d747ba2

Contents?: true

Size: 1.7 KB

Versions: 2

Compression:

Stored size: 1.7 KB

Contents

module TD::Types
  # Contains information about an invoice payment form.
  #
  # @attr id [Integer] The payment form identifier.
  # @attr invoice [TD::Types::Invoice] Full information of the invoice.
  # @attr url [TD::Types::String] Payment form URL.
  # @attr seller_bot_user_id [Integer] User identifier of the seller bot.
  # @attr payments_provider_user_id [Integer] User identifier of the payment provider bot.
  # @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 :id, TD::Types::Coercible::Integer
    attribute :invoice, TD::Types::Invoice
    attribute :url, TD::Types::String
    attribute :seller_bot_user_id, TD::Types::Coercible::Integer
    attribute :payments_provider_user_id, TD::Types::Coercible::Integer
    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

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/payment_form.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/payment_form.rb