Connected application components

This commit is contained in:
Marvin Scham
2023-06-27 05:23:43 +02:00
parent b78fb49eb1
commit d01c4d0b1d
31 changed files with 402 additions and 561 deletions

View File

@@ -1,8 +1,5 @@
package de.rwu.easydrop.model;
import java.util.Date;
import lombok.Data;
/**
@@ -10,9 +7,13 @@ import lombok.Data;
*
* @since 0.3.0
*/
@Data
public class Offer {
/**
* ID of the offer, built from identifiers of the source platforms.
*/
private String offerId;
/**
* The product that our software buys.
*/
@@ -21,27 +22,10 @@ public class Offer {
/**
* The product that our software sells.
*/
private Product saleProduct;
private Product targetProduct;
/**
* Date of the creation of the offer.
* NOTE: Use Timestamp? https://docs.oracle.com/javase/8/docs/api/java/sql/Timestamp.html
* Date of last update of the offer.
*/
private Date creationDate;
/**
* Date of last update of the offer on the destination website (API).
*/
private Date upDate;
/**
* Date of last check if offer is still valid.
*/
private Date checkDate;
/**
* ID of the offer.
*/
private String offerId;
private String lastUpdate;
}