Class: EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/e_invoice_api/models/lookup_retrieve_response.rb

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(dns_records:, sml_hostname:, status:, error: nil, lookup_method: nil, smp_hostname: nil) ⇒ Object

Information about the DNS lookup performed

Parameters:

  • dns_records (Array<EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord>)

    List of DNS records found for the Peppol participant

  • sml_hostname (String)

    Hostname of the SML used for the query

  • status (String)

    Status of the DNS lookup: ‘success’, ‘error’, or ‘pending’

  • error (String, nil) (defaults to: nil)

    Error message if the DNS lookup failed

  • lookup_method (String, nil) (defaults to: nil)

    DNS lookup method used: ‘naptr’ (new spec) or ‘busdox’ (legacy)

  • smp_hostname (String, nil) (defaults to: nil)

    Hostname of the SMP (Service Metadata Publisher) discovered via DNS



222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/e_invoice_api/models/lookup_retrieve_response.rb', line 222

class DNSRecord < EInvoiceAPI::Internal::Type::BaseModel
  # @!attribute ip
  #   IP address found in the DNS record
  #
  #   @return [String]
  required :ip, String

  # @!method initialize(ip:)
  #   DNS record information for a Peppol participant.
  #
  #   @param ip [String] IP address found in the DNS record
end

Instance Attribute Details

#ipString

IP address found in the DNS record

Returns:

  • (String)


227
# File 'lib/e_invoice_api/models/lookup_retrieve_response.rb', line 227

required :ip, String