Skip to content

Commit

Permalink
Merge pull request #48 from pagopa/PRDP-293-update-bizEvent-entity
Browse files Browse the repository at this point in the history
[PRDP-293] Update biz event entity
  • Loading branch information
pasqualespica authored Jan 3, 2024
2 parents 442dfbd + 5198711 commit 5d64927
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions integration-test/src/step_definitions/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ function createEvent(id, status, orgCode, iuv) {
"userStatusDescription": "REGISTERED_SPID"
},
"transaction": {
"idTransaction": 123456,
"transactionId": 123456,
"idTransaction": "123456",
"transactionId": "123456",
"grandTotal": 0,
"amount": 0,
"fee": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class Transaction {
private long idTransaction;
private String idTransaction;
private String transactionId;
private long grandTotal;
private long amount;
private long fee;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ public enum UserType {
@Value("F")
F,
@Value("G")
G
G,
@Value("GUEST")
GUEST,
@Value("REGISTERED")
REGISTERED
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BuildTemplateServiceImplTest {
public static final String REMITTANCE_INFORMATION = "TARI 2021";
public static final String IUR = "IUR";
public static final String BRAND = "MASTER";
public static final long ID_TRANSACTION = 1L;
public static final String ID_TRANSACTION = "1";
public static final String RRN = "rrn";
public static final String AUTH_CODE = "authCode";
public static final String DATE_TIME_TIMESTAMP_MILLISECONDS_DST_WINTER = "2023-11-14T19:31:55.484065";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ private BizEvent getBizEvent(Payer payer) {
.transactionDetails(TransactionDetails.builder()
.wallet(WalletItem.builder().info(Info.builder().brand("MASTER").build()).pagoPa(false).favourite(false).build())
.transaction(Transaction.builder()
.idTransaction(1L)
.idTransaction("1")
.grandTotal(0L)
.amount(7000L)
.fee(200L)
Expand Down

0 comments on commit 5d64927

Please sign in to comment.