Sha256: 7ee1249eb8fb93e7715d3333ae0cdd1116176b2a4f2159f87884d80c4ec606aa

Contents?: true

Size: 1.93 KB

Versions: 34

Compression:

Stored size: 1.93 KB

Contents

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module DingSDK
  module Shared
  
    # A successful response to an authentication creation request.
    class CreateAuthenticationResponse < ::DingSDK::Utils::FieldAugmented
      extend T::Sig

      # A unique identifier for the authentication that you can use on the /check and /retry endpoints.
      field :authentication_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('authentication_uuid') } }

      field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
      # The time at which the authentication expires and can no longer be checked or retried.
      field :expires_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('expires_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
      # The status of the authentication. Possible values are:
      #   * `pending` - The OTP code is being sent.
      #   * `rate_limited` - This user is rate-limited and cannot receive another code.
      #   * `spam_detected` - This attempt is flagged as spam. Go to the dashboard for more details.
      # 
      field :status, T.nilable(::DingSDK::Shared::Status), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Status, true) } }


      sig { params(authentication_uuid: T.nilable(::String), created_at: T.nilable(::DateTime), expires_at: T.nilable(::DateTime), status: T.nilable(::DingSDK::Shared::Status)).void }
      def initialize(authentication_uuid: nil, created_at: nil, expires_at: nil, status: nil)
        @authentication_uuid = authentication_uuid
        @created_at = created_at
        @expires_at = expires_at
        @status = status
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
ding_sdk-0.9.18 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.17 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.16 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.15 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.14 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.13 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.12 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.11 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.10 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.9 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.8 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.7 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.6 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.5 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.4 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.3 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.2 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.1 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.9.0 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.27 lib/ding_sdk/models/shared/createauthenticationresponse.rb