-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add persistance entities for findings, seller, highlights
- Loading branch information
1 parent
db9e2dd
commit 49e530f
Showing
44 changed files
with
670 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
hawk/src/main/java/io/irw/hawk/HawkApplicationReadyEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
hawk/src/main/java/io/irw/hawk/dto/ebay/EbayFindingDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.irw.hawk.dto.ebay; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.Instant; | ||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
/** | ||
* DTO for {@link io.irw.hawk.entity.EbayFinding} | ||
*/ | ||
@Value | ||
@Builder | ||
public class EbayFindingDto { | ||
|
||
Long id; | ||
String ebayIdStr; | ||
String legacyEbayIdStr; | ||
String itemTitle; | ||
String itemDescription; | ||
BigDecimal currentAuctionPriceUsd; | ||
BigDecimal finalPriceUsd; | ||
BigDecimal minShippingUsd; | ||
BigDecimal buyItNowPriceUsd; | ||
int bidCount; | ||
Instant capturedAt; | ||
Instant endsOn; | ||
EbayListingTypeEnum listingType; | ||
EbayListingStatusEnum listingStatusEnum; | ||
EbaySellerDto seller; | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
hawk/src/main/java/io/irw/hawk/dto/ebay/EbayListingStatusEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.irw.hawk.dto.ebay; | ||
|
||
public enum EbayListingStatusEnum { | ||
|
||
ACTIVE, | ||
BOUGHT_THROUGH_AUCTION, | ||
BOUGHT_THROUGH_BUY_IT_NOW, | ||
CANCELLED, | ||
|
||
|
||
} |
8 changes: 8 additions & 0 deletions
8
hawk/src/main/java/io/irw/hawk/dto/ebay/EbayListingTypeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.irw.hawk.dto.ebay; | ||
|
||
public enum EbayListingTypeEnum { | ||
|
||
AUCTION, | ||
BUY_IT_NOW | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
hawk/src/main/java/io/irw/hawk/dto/ebay/EbaySellerDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.irw.hawk.dto.ebay; | ||
|
||
import java.io.Serializable; | ||
import java.time.Instant; | ||
import java.util.Date; | ||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
/** | ||
* DTO for {@link io.irw.hawk.entity.EbayFinding} | ||
*/ | ||
@Value | ||
@Builder | ||
public class EbaySellerDto implements Serializable { | ||
|
||
Long id; | ||
String ebayIdStr; | ||
Instant registeredOn; | ||
float reputationPercentage; | ||
int feedbackScore; | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
hawk/src/main/java/io/irw/hawk/dto/merchandise/ItemDto.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.