Class: EInvoiceAPI::Models::Certificate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/e_invoice_api/models/certificate.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(status: , details: nil, error: nil) ⇒ Object

Certificate information for a Peppol endpoint.

Parameters:

  • status (String) (defaults to: )

    Status of the certificate validation: ‘success’, ‘error’, or ‘pending’

  • details (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Details about the certificate including subject, issuer, validity dates, etc.

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

    Error message if certificate validation failed



# File 'lib/e_invoice_api/models/certificate.rb', line 24

Instance Attribute Details

#detailsHash{Symbol=>Object}?

Details about the certificate including subject, issuer, validity dates, etc.

Returns:

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


16
# File 'lib/e_invoice_api/models/certificate.rb', line 16

optional :details, EInvoiceAPI::Internal::Type::HashOf[EInvoiceAPI::Internal::Type::Unknown], nil?: true

#errorString?

Error message if certificate validation failed

Returns:

  • (String, nil)


22
# File 'lib/e_invoice_api/models/certificate.rb', line 22

optional :error, String, nil?: true

#statusString

Status of the certificate validation: ‘success’, ‘error’, or ‘pending’

Returns:

  • (String)


10
# File 'lib/e_invoice_api/models/certificate.rb', line 10

required :status, String