Class AbstractNotificationsEvents<B extends es.kukenan.smartfi.events.common.AbstractEventBody>
java.lang.Object
es.kukenan.smartfi.events.common.AbstractEvent<B>
es.kukenan.smartfi.microservice.contracts.events.AbstractNotificationsEvents<B>
- Type Parameters:
B- the event body type.
- All Implemented Interfaces:
es.kukenan.smartfi.events.common.Event
- Direct Known Subclasses:
NotificationCreatedEvent,NotificationEcommerceEvent
public abstract class AbstractNotificationsEvents<B extends es.kukenan.smartfi.events.common.AbstractEventBody>
extends es.kukenan.smartfi.events.common.AbstractEvent<B>
Class that describes the contract of the events generated by the Notifications micro-service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant value for the context field, unique for cards micro-service context.Fields inherited from class es.kukenan.smartfi.events.common.AbstractEvent
UTC -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNotificationsEvents(String typeId, String version) Minimal constructor.AbstractNotificationsEvents(String requestId, String companyId, String origin, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body) State constructor. -
Method Summary
Methods inherited from class es.kukenan.smartfi.events.common.AbstractEvent
canEqual, equals, getBody, getChannel, getCompanyId, getContext, getCreationDate, getCreationTs, getManager, getMessageId, getOperationType, getOrigin, getRequestId, getSession, getTypeId, getUserAgent, getUserId, getUserIp, getVersion, hashCode, setBody, setChannel, setCompanyId, setCreationDate, setCreationTs, setManager, setMessageId, setOperationType, setOrigin, setRequestId, setSession, setUserAgent, setUserId, setUserIp, setVersion, toString
-
Field Details
-
CONTEXT
Constant value for the context field, unique for cards micro-service context.- See Also:
-
-
Constructor Details
-
AbstractNotificationsEvents
Minimal constructor.- Parameters:
typeId- event type (the pair origin-typeId is the unique identifier of the event type in the platform).version- event version.
-
AbstractNotificationsEvents
public AbstractNotificationsEvents(String requestId, String companyId, String origin, String typeId, String operationType, String messageId, String version, Long creationTs, String channel, String session, String manager, String userId, B body) State constructor.- Parameters:
requestId- the request identifier (transaction).companyId- company/bank identifier (multi-tenant context, BC/BF).origin- service that have produced this event.typeId- event type (the pair origin-typeId is the unique identifier of the event type in the platform).operationType- operation type (some kind of event sub-type).messageId- arbitrary application-specific identifier for the message/event.version- event version.creationTs- event creation timestamp (milliseconds from EPOCH).channel- event channel.session- session identifier.manager- manager that generate event.userId- user identifier.body- event body.
-