Skip to content

Commit 3769cd6

Browse files
authored
Merge pull request #492 from cardano-foundation/release/1.2.0
Release/1.2.0
2 parents a5ebe5d + 57537c3 commit 3769cd6

File tree

252 files changed

+10311
-2263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+10311
-2263
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM openjdk:21-jdk-slim AS build
1+
FROM eclipse-temurin:21 AS build
22
WORKDIR /app
33
COPY . /app
44
RUN ./gradlew clean build
55

6-
FROM openjdk:21-jdk-slim AS follower-app
6+
FROM eclipse-temurin:21-jre AS follower-app
77
COPY --from=build /app/build/libs/*-all.jar /app.jar
88
ENTRYPOINT ["java", "--enable-preview", "-jar", "/app.jar"]

accounting_reporting_core/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
val openCsvVersion: String by project
2+
13
dependencies {
24
implementation("org.jmolecules:jmolecules-events")
35
implementation("org.jmolecules:jmolecules-ddd")
@@ -8,6 +10,7 @@ dependencies {
810
implementation(project(":organisation"))
911
implementation(project(":support"))
1012

13+
implementation("com.opencsv:opencsv:$openCsvVersion")
1114
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa")
1215
testImplementation("org.springframework.boot:spring-boot-starter-validation")
1316
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.cardanofoundation.lob.app.accounting_reporting_core.domain.core;
2+
3+
4+
public enum FilterOptions {
5+
USERS,
6+
DOCUMENT_NUMBERS,
7+
TRANSACTION_NUMBERS,
8+
TRANSACTION_TYPES,
9+
COUNTER_PARTY_NAMES,
10+
COUNTER_PARTY_TYPE,
11+
COUNTER_PARTY,
12+
RECONCILIATION_REJECTION_CODES,
13+
RECONCILIATION_SOURCES
14+
}

accounting_reporting_core/src/main/java/org/cardanofoundation/lob/app/accounting_reporting_core/domain/core/LedgerDispatchStatus.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ public enum LedgerDispatchStatus {
1212

1313
COMPLETED, // tx hash is ready and provided and in addition we have decent finality score to consider it completed
1414

15-
FINALIZED; // finalised on blockchain(s) - tx hash (12 hours)
15+
FINALIZED, // finalised on blockchain(s) - tx hash (12 hours)
16+
17+
RETRYING,
18+
19+
FAILED;
1620

1721
public static Set<LedgerDispatchStatus> allDispatchedStatuses() {
18-
return Set.of(MARK_DISPATCH, DISPATCHED, COMPLETED, FINALIZED);
22+
return Set.of(MARK_DISPATCH, DISPATCHED, COMPLETED, FINALIZED, RETRYING, FAILED);
1923
}
2024

2125
/**

accounting_reporting_core/src/main/java/org/cardanofoundation/lob/app/accounting_reporting_core/domain/core/ReportStatusUpdate.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public class ReportStatusUpdate {
1717

1818
private LedgerDispatchStatus status;
1919

20+
private String ledgerDispatchStatusErrorReason;
21+
2022
private Set<BlockchainReceipt> blockchainReceipts = Set.of();
2123

2224
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.cardanofoundation.lob.app.accounting_reporting_core.domain.core;
2+
3+
import org.cardanofoundation.lob.app.accounting_reporting_core.domain.entity.TransactionEntity;
4+
import org.cardanofoundation.lob.app.accounting_reporting_core.domain.entity.reconcilation.ReconcilationViolation;
5+
6+
public record TransactionWithViolationDto(
7+
TransactionEntity tx,
8+
ReconcilationViolation violation) {
9+
}

accounting_reporting_core/src/main/java/org/cardanofoundation/lob/app/accounting_reporting_core/domain/core/TxStatusUpdate.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public class TxStatusUpdate {
1717

1818
private LedgerDispatchStatus status;
1919

20+
private String ledgerDispatchStatusErrorReason;
21+
2022
private Set<BlockchainReceipt> blockchainReceipts = Set.of();
2123

2224
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package org.cardanofoundation.lob.app.accounting_reporting_core.domain.core.report;
2+
3+
import jakarta.validation.constraints.NotNull;
4+
5+
import lombok.AllArgsConstructor;
6+
import lombok.Getter;
7+
import lombok.NoArgsConstructor;
8+
import lombok.Setter;
9+
10+
import com.opencsv.bean.CsvBindByName;
11+
12+
@Getter
13+
@Setter
14+
@AllArgsConstructor
15+
@NoArgsConstructor
16+
public class ReportCsvLine {
17+
18+
@CsvBindByName(column = "Report")
19+
@NotNull(message = "Report is required")
20+
private String report;
21+
@CsvBindByName(column = "Period")
22+
@NotNull(message = "Period is required")
23+
private String period;
24+
@CsvBindByName(column = "Year")
25+
@NotNull(message = "Year is required")
26+
private Short year;
27+
@CsvBindByName(column = "Interval Type")
28+
@NotNull(message = "Interval Type is required")
29+
private String intervalType;
30+
@CsvBindByName(column = "Field")
31+
@NotNull(message = "Field is required")
32+
private String field;
33+
@CsvBindByName(column = "Amount")
34+
@NotNull(message = "Amount is required")
35+
private Double amount;
36+
}

accounting_reporting_core/src/main/java/org/cardanofoundation/lob/app/accounting_reporting_core/domain/entity/Details.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
@AllArgsConstructor
1616
@Builder(toBuilder = true)
1717
@Getter
18+
@Setter
1819
@EqualsAndHashCode
1920
@Audited
2021
public class Details {

0 commit comments

Comments
 (0)