entity

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.

Entity(Aggregate Root)
Provisional topic and key

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.

NameTypeRequiredDescriptionReference
idstringRequiredId (UUID) of the gateway configuration in cna-pay. Kafka message key of the GatewayConfiguration topic.—
recipientIdstringRequiredId of the recipient the configuration belongs to, the id of the Recipient topic.
RecipientIdentifier or first property
captureChannelstring
Enum:
  • ONLINE
  • TERMINAL
RequiredCapture 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).—
vendorstringRequiredStable name of the payment vendor of the subaccount the configuration points to, lowercase (pagarme, the only vendor today).—
statestring
Enum:
  • IN_VALIDATION
  • ACTIVE
  • CLOSED
RequiredIN_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.—
activatedAtstringOptionalWhen the configuration became ACTIVE, in ISO 8601, UTC with milliseconds. Not set while IN_VALIDATION; always set in GatewayConfigurationActivated.—

Custom properties

PropertyValue
Kafka Topicx-kafka-topicGatewayConfiguration
Routing Keyx-routing-keyid