CorvoNfse.Types.Certificate (Corvo NFS-e v0.1.1)

Copy Markdown View Source

Wire shape of an A1 (.p12) certificate stored for a company.

Summary

Types

t()

@type t() :: %CorvoNfse.Types.Certificate{
  companyId: String.t(),
  createdAt: String.t(),
  fingerprint: String.t(),
  id: String.t(),
  issuer: String.t(),
  serialNumber: String.t(),
  status: String.t(),
  subject: String.t(),
  validFrom: String.t(),
  validUntil: String.t()
}

upload_source()

@type upload_source() :: {:file, Path.t()} | {:binary, binary()}

A .p12 file plus password for CorvoNfse.Resources.Certificates.upload/4:

  • {:file, path} - reads the file from disk.
  • {:binary, bytes} - in-memory bytes; pass file_name: in the options.