Class: ContextDev::Models::BrandRetrieveParams::Body::ByDirectURL

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/brand_retrieve_params.rb,
sig/context_dev/models/brand_retrieve_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeObject



1264
# File 'sig/context_dev/models/brand_retrieve_params.rbs', line 1264

def initialize: (

Instance Attribute Details

#direct_urlString

Full http(s) URL to fetch brand data from (e.g., 'https://stripe.com/enterprise'). Only this URL is fetched — not the entire internet.

Parameters:

  • value (String)

Returns:

  • (String)


837
# File 'lib/context_dev/models/brand_retrieve_params.rb', line 837

required :direct_url, String

#timeout_msInteger?

Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes).

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


851
# File 'lib/context_dev/models/brand_retrieve_params.rb', line 851

optional :timeout_ms, Integer, api_name: :timeoutMS

#typeSymbol, :by_direct_url

Discriminator for direct-URL-based brand retrieval.

Parameters:

  • value (:by_direct_url)

Returns:

  • (Symbol, :by_direct_url)


843
# File 'lib/context_dev/models/brand_retrieve_params.rb', line 843

required :type, const: :by_direct_url

Instance Method Details

#to_hash{

Returns:

  • ({)


1270
# File 'sig/context_dev/models/brand_retrieve_params.rbs', line 1270

def to_hash: -> {