Class: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse

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

Overview

Defined Under Namespace

Classes: BusinessCard

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(business_card: , business_card_valid: , dns_valid: , is_valid: , supported_document_types: nil) ⇒ Object

Response for a Peppol ID validation request.

This model represents the validation result of a Peppol ID in the Peppol network, including whether the ID is valid and what document types it supports.

Parameters:

  • business_card (EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil) (defaults to: )

    Business card information for the Peppol ID

  • business_card_valid (Boolean) (defaults to: )

    Whether a business card is set at the SMP

  • dns_valid (Boolean) (defaults to: )

    Whether the DNS resolves to a valid SMP

  • is_valid (Boolean) (defaults to: )

    Whether the Peppol ID is valid and registered in the Peppol network

  • supported_document_types (Array<String>) (defaults to: nil)


# File 'lib/e_invoice_api/models/validate_validate_peppol_id_response.rb', line 38

Instance Attribute Details

#business_cardEInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?

Business card information for the Peppol ID



11
12
13
# File 'lib/e_invoice_api/models/validate_validate_peppol_id_response.rb', line 11

required :business_card,
-> { EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard },
nil?: true

#business_card_validBoolean

Whether a business card is set at the SMP

Returns:

  • (Boolean)


19
# File 'lib/e_invoice_api/models/validate_validate_peppol_id_response.rb', line 19

required :business_card_valid, EInvoiceAPI::Internal::Type::Boolean

#dns_validBoolean

Whether the DNS resolves to a valid SMP

Returns:

  • (Boolean)


25
# File 'lib/e_invoice_api/models/validate_validate_peppol_id_response.rb', line 25

required :dns_valid, EInvoiceAPI::Internal::Type::Boolean

#is_validBoolean

Whether the Peppol ID is valid and registered in the Peppol network

Returns:

  • (Boolean)


31
# File 'lib/e_invoice_api/models/validate_validate_peppol_id_response.rb', line 31

required :is_valid, EInvoiceAPI::Internal::Type::Boolean

#supported_document_typesArray<String>?

Returns:

  • (Array<String>, nil)


36
# File 'lib/e_invoice_api/models/validate_validate_peppol_id_response.rb', line 36

optional :supported_document_types, EInvoiceAPI::Internal::Type::ArrayOf[String]