FINERACT-1724: Swagger fix for loan transaction API

This commit is contained in:
Arnold Galovics
2022-11-18 17:10:34 +01:00
committed by Arnold Gálovics
parent 4e3e078d7f
commit fe12ed3635
4 changed files with 36 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
- name: Start the stack
run: docker-compose up -d
- name: Wait for stack to come up
run: sleep 60
run: sleep 120
- name: Check health
run: curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/health
- name: Check info
@@ -22,7 +22,7 @@ jobs:
- name: Start the stack
run: docker-compose -f docker-compose-postgresql.yml up -d
- name: Wait for stack to come up
run: sleep 60
run: sleep 120
- name: Check health
run: curl -f -k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 https://localhost:8443/fineract-provider/actuator/health
- name: Check info
@@ -185,6 +185,38 @@ final class LoanTransactionsApiResourceSwagger {
@Schema(example = "[2012, 5, 18]")
public LocalDate possibleNextRepaymentDate;
public Set<GetLoanTransactionRelation> transactionRelations;
public PaymentDetailData paymentDetailData;
static final class PaymentDetailData {
private PaymentDetailData() {}
@Schema(example = "62")
public Long id;
public PaymentType paymentType;
@Schema(example = "acc123")
public String accountNumber;
@Schema(example = "che123")
public String checkNumber;
@Schema(example = "rou123")
public String routingCode;
@Schema(example = "rec123")
public String receiptNumber;
@Schema(example = "ban123")
public String bankNumber;
}
static final class PaymentType {
private PaymentType() {}
@Schema(example = "11")
public Long id;
@Schema(example = "DOWN_PAYMENT")
public String name;
@Schema(example = "true")
public Boolean isSystemDefined;
}
}
@Schema(description = "PostLoansLoanIdTransactionsRequest")
@@ -569,7 +569,7 @@ final class LoansApiResourceSwagger {
private GetLoansLoanIdPaymentType() {}
@Schema(example = "11")
public Integer id;
public Long id;
@Schema(example = "Cash")
public String name;
@Schema(example = "Cash Payment")
@@ -644,7 +644,7 @@ final class LoansApiResourceSwagger {
private GetLoansLoanIdPaymentDetailData() {}
@Schema(example = "62")
public Integer id;
public Long id;
public GetLoansLoanIdPaymentType paymentType;
@Schema(example = "acc123")
public String accountNumber;