Class: FinchAPI::Models::AccessTokenCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/finch_api/models/access_token_create_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(code: , client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {}) ⇒ Object

Parameters:

  • code (String) (defaults to: )

    The authorization code received from the authorization server

  • client_id (String) (defaults to: nil)

    The client ID for your application

  • client_secret (String) (defaults to: nil)

    The client secret for your application

  • redirect_uri (String) (defaults to: nil)

    The redirect URI used in the authorization request (optional)

  • request_options (FinchAPI::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/finch_api/models/access_token_create_params.rb', line 34

Instance Attribute Details

#client_idString?

The client ID for your application

Returns:

  • (String, nil)


20
# File 'lib/finch_api/models/access_token_create_params.rb', line 20

optional :client_id, String

#client_secretString?

The client secret for your application

Returns:

  • (String, nil)


26
# File 'lib/finch_api/models/access_token_create_params.rb', line 26

optional :client_secret, String

#codeString

The authorization code received from the authorization server

Returns:

  • (String)


14
# File 'lib/finch_api/models/access_token_create_params.rb', line 14

required :code, String

#redirect_uriString?

The redirect URI used in the authorization request (optional)

Returns:

  • (String, nil)


32
# File 'lib/finch_api/models/access_token_create_params.rb', line 32

optional :redirect_uri, String