GatewayConfiguration
A gateway configuration of CNA Pay - which subaccount, at which payment vendor, serves a recipient in a capture channel, with the payment methods it takes. Aggregate root of the GatewayConfiguration Kafka topic.
The aggregate root, key, version and fields of GatewayConfigurationActivated are provisional until cna-pay-docs decides how the events of cna-pay reach this catalog (cna-br/cna-pay#343). See [[channel|kafka.GatewayConfiguration]].
Overview
A GatewayConfiguration says which subaccount, at which payment vendor, serves a RecipientRecipientEntityv1.0.0A recipient (recebedor) of CNA Pay - every CPF or CNPJ enabled to receive money on the platform - a school, the franchis...Ownercna-platformView docs in a capture channel (RN-RCB-070), with the payment methods it takes. It is created with configureGateway: in this delivery the One configures a school and the back office of the platform the franchisor, only in the ONLINE channel, with Pix and boleto. It is born IN_VALIDATION while the vendor creates the subaccount, and ACTIVE once the vendor returned it, even blocked: an active configuration is not eligibility, which stays in the eligibility of the recipient.
The events on GatewayConfiguration (Kafka topic)GatewayConfiguration (Kafka topic)Channelv1.0.0Kafka topic for the GatewayConfiguration aggregate of CNA Pay - which subaccount at which payment vendor serves a recipi...Ownercna-platformView docs carry the properties below, after the eventId of the event and the objectVersion of the configuration, a version of its own, apart from the version of the recipient. The payment methods, the creation instant and the state of the subaccount are part of the configuration but not of the fact yet (cna-br/cna-pay#343).
The topic is keyed by id, the configuration’s own identifier, so identifier and x-routing-key are the same field.
| Name | Type | Required | Description | Reference |
|---|---|---|---|---|
id | string | Required | Id (UUID) of the gateway configuration in cna-pay. Kafka message key of the GatewayConfiguration topic. | |
recipientId | string | Required | Id of the recipient the configuration belongs to, the id of the Recipient topic. | RecipientIdentifier or first property |
captureChannel | stringEnum:
| Required | Capture channel the configuration serves, ONLINE (remote charge) or TERMINAL (payment terminal, not configured in this delivery). A recipient has at most one ACTIVE configuration per channel (RN-RCB-080). | |
vendor | string | Required | Stable name of the payment vendor of the subaccount the configuration points to, lowercase (pagarme, the only vendor today). | |
state | stringEnum:
| Required | IN_VALIDATION while the vendor creates the subaccount, ACTIVE once it returned it, CLOSED (final) once a cutover deactivated it, which is not in this delivery. | |
activatedAt | string | Optional | When the configuration became ACTIVE, in ISO 8601, UTC with milliseconds. Not set while IN_VALIDATION; always set in GatewayConfigurationActivated. |
Custom properties
| Property | Value |
|---|---|
| Kafka Topicx-kafka-topic | GatewayConfiguration |
| Routing Keyx-routing-key | id |