Class: Vatsense::Models::ValidateCheckResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/vatsense/models/validate_check_response.rb

Overview

See Also:

Defined Under Namespace

Modules: Company

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(company: nil, consultation_number: nil, valid: nil) ⇒ Object

Some parameter documentations has been truncated, see Vatsense::Models::ValidateCheckResponse::Data for more details.

Parameters:



# File 'lib/vatsense/models/validate_check_response.rb', line 47

Instance Attribute Details

#consultation_numberString?

Official consultation number (only returned when requester_vat_number is provided).

Returns:

  • (String, nil)


39
# File 'lib/vatsense/models/validate_check_response.rb', line 39

optional :consultation_number, String, nil?: true

#validBoolean?

Whether the VAT/EORI number is valid.

Returns:

  • (Boolean, nil)


45
# File 'lib/vatsense/models/validate_check_response.rb', line 45

optional :valid, Vatsense::Internal::Type::Boolean