-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
mod-audit-server/src/test/java/org/folio/builder/service/FeeFineUtil.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,30 @@ | ||
package org.folio.builder.service; | ||
|
||
public enum FeeFineUtil { | ||
|
||
MANUAL("payloads/fee_fine_billed.json","manual"), | ||
AUTOMATED("payloads/fee_fine_billed_automated.json","automated"); | ||
private String fileName; | ||
private String type; | ||
|
||
FeeFineUtil(String fileName, String type) { | ||
this.fileName = fileName; | ||
this.type = type; | ||
} | ||
|
||
public String getFileName() { | ||
return fileName; | ||
} | ||
|
||
public void setFileName(String fileName) { | ||
this.fileName = fileName; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
mod-audit-server/src/test/resources/payloads/fee_fine_billed_automated.json
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,20 @@ | ||
{ | ||
"logEventType":"FEE_FINE", | ||
"payload": { | ||
"userId":"6f36265e-722a-490a-b436-806e63af2ea7", | ||
"userBarcode":"693787594998493", | ||
"itemBarcode":"90000", | ||
"itemId":"100d10bf-2f06-4aa0-be15-0b95b2d9f9e3", | ||
"action":"Billed", | ||
"comments": "Comments from Staff", | ||
"date":"2020-10-15T12:17:38.627Z", | ||
"servicePointId":"7c5abc9f-f3d7-4856-b8d7-6712462ca007", | ||
"source":"ADMINISTRATOR, DIKU", | ||
"feeFineId":"7ad9dfa0-6ee9-43ba-8db5-7a034ce05838", | ||
"feeFineOwner":"sample owner", | ||
"loanId":"0", | ||
"automated":true, | ||
"type":"manual charge", | ||
"amount":10.0 | ||
} | ||
} |