Skip to main content
Lerian Consignado publishes its business facts as CloudEvents 1.0. Emitted facts enter the transactional outbox before publication.
The payload contracts below describe the CloudEvent data object. A property marked with ? can be absent. null is valid only where a payload contract writes it explicitly.

Application-stream contract

The topic identifies the producing application, not one event. Route by ce-source, ce-resourcetype, and ce-eventtype. Use ce-type as their source-qualified composite. Never infer an event from the topic name.

Emitted-event catalog

Payload notation

The wire uses JSON with snake_case property names. These aliases describe the formats used by the schemas:
originador_ref is the originador whose bid produced the contract. fundo_ref is the fund that received the contract in a cessão. On consignado.contract.registered, fund_ref is the fund that the averbação attributes the contract to.

Payload contracts

The gateway discovers an open loan request in Dataprev.Subject: id_solicitacao
The gateway discovers a live M011 portability offer and records it with its outbox envelope.Subject: id_solicitacao
The gateway reads worker margin from Dataprev.Subject: request_ref
The gateway witnesses the accepted rail proposal against the durable client bid.Subject: proposal_ref
Dataprev confirms averbação.Subject: contract_id
Dataprev rejects averbação.Subject: contract_id
Contract booking reaches its immutable boundary. dados_cadastrais_digest_sha256 is the SHA-256 digest of the cadastro that the gateway stored at averbação.Subject: numero_contrato
The client confirms that the worker received the funds.Subject: numero_contrato
A client supersedes a signed CCB or an already-confirmed payment. The payload points to the corrected resource. Consumers retrieve it over authenticated M2M and verify its SHA-256 digest. The event ce-resourcetype distinguishes the correction kind.Subject: numero_contrato
Dataprev accepts this gateway’s own origin-side portability exclusion. The contract leaves the institution, so downstream servicing can stop. This fact does not report the incoming-institution side and carries no settlement amount.Subject: numero_contrato
Dataprev rejects this gateway’s own origin-side portability exclusion. The contract remains in place.Subject: numero_contrato
Contract exclusion reaches a successful terminal state.Subject: numero_contrato
Contract exclusion reaches a rejected terminal state.Subject: numero_contrato
The gateway normalizes one bookkeeping, repasse, or portal CSV record.Subject: object_ref
The gateway reads an employment suspension or termination record.Subject: record_id
A worker absence or termination alert is reported.Subject: SHA-256(payload)
A tenant’s effective Dataprev throughput changes.Subject: tenant_id
A credit assignment is registered in the gateway domain.Subject: idempotency_key
An expected repasse passes its deadline or has no computable deadline.Subject: object_ref
A movement resolves an overdue repasse.Subject: object_ref
The gateway cannot establish a current rail observation for the expectations.Subject: object_ref
An operational deduction-calendar window is published.Subject: competencia_consulta
A scheduled gateway job meets the Dataprev competência turnover refusal, and the gateway opens a pause for the tenant. Only Lerian Cloud deployments emit this fact. hold_until is the end of the first wait, not the end of the turnover.Subject: tenant/<tenant_id>
The pause for the tenant ends. Only Lerian Cloud deployments emit this fact. episode has the same value as in the pause fact that it closes.Subject: tenant/<tenant_id>

Commands consumed from Lender

These are inbound commands, not events emitted by Consignado. They arrive on lerian.streaming.lender.commands with ce-source: lender and ce-type: studio.lerian.lender.<resource>.<event>. Averbação is not a Lender command. Submit it through the authenticated HTTP operation.

Delivery and compatibility rules

  • Deduplicate by (ce-source, ce-id) and make handlers idempotent.
  • Read ce-schemaversion before decoding. The header carries schema 1.0.0, and the topic never does.
  • Money and rates are decimal strings. Timestamps are UTC, in RFC 3339 format. Date-only values use YYYY-MM-DD, and competências use YYYYMM.
  • Unknown or unsupported inbound command keys land in the Consignado consumer DLQ.
  • A missing required business identifier prevents publication or command execution. Consignado never synthesizes it.