04tudor / loyalty-campaign-service

Java project Loyalty Campaign Service using Hexagonal Architecture
0 stars 0 forks source link

Create domain model for conditions and effects #8

Closed DemiusAcademius closed 6 months ago

DemiusAcademius commented 6 months ago

create domain entity LoyaltyEventType id: uuid name: string fields: List

domain entity LoyaltyEventField id: uuid name: string fieldType: enum (STRING,DECIMAL,BOOLEAN)

add to Campaign entity field LoyaltyEventType

value type (record) Condition field: LoyaltyEventField operator: enum (EQUALS, GREATER, LOWER, IS (for boolean only)) value: string

create domain entity LoyaltyEffectType id: uuid name: string

value type (record) Effect effectType: LoyaltyEffectType value: string

add conditions and effect to Rule