Sha256: f5c4478486d8305f01ccd0f4d714d96b5c8df1fcf2f505d6e59a37ebb80a9298

Contents?: true

Size: 1.93 KB

Versions: 16

Compression:

Stored size: 1.93 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). 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

16 entries across 16 versions & 1 rubygems

Version Path
ding_sdk-0.8.11 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.7 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.6 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.5 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.4 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.3 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.2 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.1 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.8.0 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.7.5 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.7.4 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.7.3 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.7.2 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.7.1 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.7.0 lib/ding_sdk/models/shared/createauthenticationresponse.rb
ding_sdk-0.6.0 lib/ding_sdk/models/shared/createauthenticationresponse.rb