Class: HubSpotSDK::Models::Settings::BatchResponseExchangeRateWithErrors

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb

Defined Under Namespace

Modules: Status

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

#initialize(completed_at:, results:, started_at:, status:, errors: nil, links: nil, num_errors: nil, requested_at: nil) ⇒ Object

Parameters:



# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 53

Instance Attribute Details

#completed_atTime

The datetime the response was completed

Returns:

  • (Time)


11
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 11

required :completed_at, Time, api_name: :completedAt

#errorsArray<HubSpotSDK::Models::StandardError>?

Returns:



33
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 33

optional :errors, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::StandardError] }

The link to the next page with exchange rates.

Returns:

  • (Hash{Symbol=>String}, nil)


39
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 39

optional :links, HubSpotSDK::Internal::Type::HashOf[String]

#num_errorsInteger?

The number of errors associated to the request.

Returns:

  • (Integer, nil)


45
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 45

optional :num_errors, Integer, api_name: :numErrors

#requested_atTime?

The datetime the of the request.

Returns:

  • (Time, nil)


51
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 51

optional :requested_at, Time, api_name: :requestedAt

#resultsArray<HubSpotSDK::Models::Settings::ExchangeRate>



16
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 16

required :results, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Settings::ExchangeRate] }

#started_atTime

The datetime the of the request.

Returns:

  • (Time)


22
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 22

required :started_at, Time, api_name: :startedAt

#statusSymbol, HubSpotSDK::Models::Settings::BatchResponseExchangeRateWithErrors::Status

The current status of the response (e.g. COMPLETED)



28
# File 'lib/hubspot_sdk/models/settings/batch_response_exchange_rate_with_errors.rb', line 28

required :status, enum: -> { HubSpotSDK::Settings::BatchResponseExchangeRateWithErrors::Status }