FINERACT-1724

- [x] Swagger `Changes` class name collision.
This commit is contained in:
Janos Haber
2022-12-13 17:15:47 +01:00
committed by Arnold Gálovics
parent a987956cbc
commit 9f43ec235a
2 changed files with 8 additions and 8 deletions
@@ -280,9 +280,9 @@ final class LoanTransactionsApiResourceSwagger {
public Long subResourceId;
@Schema(example = "95174ff9-1a75-4d72-a413-6f9b1cb988b7")
public String subResourceExternalId;
public PostLoansLoanIdTransactionsResponse.Changes changes;
public PostLoansLoanIdTransactionsResponse.PostLoansLoanIdTransactionsResponseChanges changes;
static final class Changes {
static final class PostLoansLoanIdTransactionsResponseChanges {
@Schema(example = "en_GB")
public String locale;
@@ -291,7 +291,7 @@ final class LoanTransactionsApiResourceSwagger {
@Schema(example = "28 June 2022")
public String transactionDate;
@Schema(example = "50,000.00")
public Double transactionAmount;
public String transactionAmount;
@Schema(example = "An optional note about why your adjusting or changing the transaction.")
public String note;
@Schema(example = "95174ff9-1a75-4d72-a413-6f9b1cb988b7")
@@ -331,7 +331,7 @@ final class LoanTransactionsApiResourceSwagger {
private PutChargeTransactionChangesResponse() {}
static final class Changes {
static final class PutChargeTransactionChangesResponseChanges {
@Schema(example = "10.0")
public Double amount;
@@ -368,7 +368,7 @@ final class LoanTransactionsApiResourceSwagger {
public Long subResourceId;
@Schema(example = "95174ff9-1a75-4d72-a413-6f9b1cb988b7")
public String subResourceExternalId;
public PutChargeTransactionChangesResponse.Changes changes;
public PutChargeTransactionChangesResponse.PutChargeTransactionChangesResponseChanges changes;
}
@@ -920,7 +920,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
changes.put("transactionAmount", command.stringValueOfParameterNamed("transactionAmount"));
changes.put("locale", command.locale());
changes.put("dateFormat", command.dateFormat());
changes.put("paymentTypeId", command.stringValueOfParameterNamed("paymentTypeId"));
changes.put("paymentTypeId", command.longValueOfParameterNamed("paymentTypeId"));
final String noteText = command.stringValueOfParameterNamed("note");
if (StringUtils.isNotBlank(noteText)) {
@@ -1078,7 +1078,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
changes.put("transactionAmount", command.stringValueOfParameterNamed("transactionAmount"));
changes.put("locale", command.locale());
changes.put("dateFormat", command.dateFormat());
changes.put("paymentTypeId", command.stringValueOfParameterNamed("paymentTypeId"));
changes.put("paymentTypeId", command.longValueOfParameterNamed("paymentTypeId"));
final List<Long> existingTransactionIds = new ArrayList<>();
final List<Long> existingReversedTransactionIds = new ArrayList<>();
@@ -1250,7 +1250,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
changes.put("transactionAmount", command.stringValueOfParameterNamed(LoanApiConstants.TRANSACTION_AMOUNT_PARAMNAME));
changes.put("locale", command.locale());
changes.put("dateFormat", command.dateFormat());
changes.put("paymentTypeId", command.stringValueOfParameterNamed(LoanApiConstants.PAYMENT_TYPE_PARAMNAME));
changes.put("paymentTypeId", command.longValueOfParameterNamed(LoanApiConstants.PAYMENT_TYPE_PARAMNAME));
final Money transactionAmountAsMoney = Money.of(loan.getCurrency(), transactionAmount);
final PaymentDetail paymentDetail = this.paymentDetailWritePlatformService.createPaymentDetail(command, changes);