package com.example.expenses.model;

import lombok.*;
import java.time.LocalDate;
import java.util.Collection;

// An expense
@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Expense {
  // The unique identifier of the expense
  private String id;
  // The date of the expense
  private LocalDate date;
  // The amount of the expense
  private Float amount;
  // The currency of the expense
  private String currency;
  // The description of the expense
  private String description;
  // The user who created the expense
  private String userId;
  // The cost center of the expense
  private String costCenter;
  private ExpenseStatus status;
  // The journal of the expense
  private Collection<ExpenseJournal> journal;
}


