Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [9.14.0]
### Changed
- Remove custom workaround to connect with Investment service

## [9.13.0]
### Changed
- Update SSDK 20.1.0 and BBOM 2026.03 LTS, boat-maven-plugin unified 0.17.66
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
* Fine-grained configuration properties for {@code InvestmentPortfolioService}.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.backbase.stream.configuration;

import com.backbase.investment.api.service.ApiClient;
import com.backbase.investment.api.service.v1.AllocationsApi;
import com.backbase.investment.api.service.v1.AssetUniverseApi;
import com.backbase.investment.api.service.v1.AsyncBulkGroupsApi;
Expand All @@ -18,7 +17,6 @@
import com.backbase.stream.investment.saga.InvestmentContentSaga;
import com.backbase.stream.investment.saga.InvestmentSaga;
import com.backbase.stream.investment.service.AsyncTaskService;
import com.backbase.stream.investment.service.CustomIntegrationApiService;
import com.backbase.stream.investment.service.InvestmentAssetPriceService;
import com.backbase.stream.investment.service.InvestmentAssetUniverseService;
import com.backbase.stream.investment.service.InvestmentClientService;
Expand Down Expand Up @@ -57,11 +55,6 @@ public InvestmentClientService investmentClientService(ClientApi clientApi) {
return new InvestmentClientService(clientApi);
}

@Bean
public CustomIntegrationApiService customIntegrationApiService(ApiClient apiClient) {
return new CustomIntegrationApiService(apiClient);
}

@Bean
public InvestmentPortfolioService investmentPortfolioService(PortfolioApi portfolioApi,
InvestmentProductsApi investmentProductsApi, PaymentsApi paymentsApi,
Expand All @@ -83,9 +76,8 @@ public AsyncTaskService asyncTaskService(AsyncBulkGroupsApi asyncBulkGroupsApi)
}

@Bean
public InvestmentModelPortfolioService investmentModelPortfolioService(FinancialAdviceApi financialAdviceApi,
CustomIntegrationApiService customIntegrationApiService) {
return new InvestmentModelPortfolioService(financialAdviceApi, customIntegrationApiService);
public InvestmentModelPortfolioService investmentModelPortfolioService(FinancialAdviceApi financialAdviceApi) {
return new InvestmentModelPortfolioService(financialAdviceApi);
}

@Bean
Expand All @@ -101,9 +93,9 @@ public InvestmentIntradayAssetPriceService investmentIntradayAssetPriceService(A
@Bean
public InvestmentPortfolioAllocationService investmentPortfolioAllocationService(AllocationsApi allocationsApi,
AssetUniverseApi assetUniverseApi, InvestmentApi investmentApi,
CustomIntegrationApiService customIntegrationApiService, IngestConfigProperties portfolioProperties) {
IngestConfigProperties portfolioProperties) {
return new InvestmentPortfolioAllocationService(allocationsApi, assetUniverseApi, investmentApi,
customIntegrationApiService, portfolioProperties);
portfolioProperties);
}

@Bean
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
public class InvestmentModelPortfolioService {

private final FinancialAdviceApi financialAdviceApi;
private final CustomIntegrationApiService customIntegrationApiService;

public Flux<OASModelPortfolioResponse> upsertModels(InvestmentData investmentData) {
return Flux.fromIterable(Objects.requireNonNullElse(investmentData.getModelPortfolios(), List.of()))
Expand Down Expand Up @@ -153,7 +152,7 @@ private Mono<OASModelPortfolioResponse> createNewModelPortfolio(

log.info("Creating new model portfolio: name={}, riskLevel={}",
modelPortfolio.getName(), modelPortfolio.getRiskLevel());
return customIntegrationApiService.createModelPortfolioRequestCreation(null, null, null,
return financialAdviceApi.createModelPortfolio(null, null, null,
modelPortfolio, null)
.doOnSuccess(created -> log.info(
"Successfully created model portfolio: uuid={}, name={}, riskLevel={}",
Expand All @@ -168,7 +167,7 @@ private Mono<OASModelPortfolioResponse> patchModelPortfolio(UUID uuid,
log.info("Patch model portfolio: name={}, riskLevel={}",
modelPortfolio.getName(), modelPortfolio.getRiskLevel());
log.debug("Patch model portfolio: uuid={}, object={}", uuid, modelPortfolio);
return customIntegrationApiService.patchModelPortfolioRequestCreation(uuid.toString(),
return financialAdviceApi.patchModelPortfolio(uuid.toString(),
null, null, null, modelPortfolio, null)
.doOnSuccess(created -> log.info(
"Successfully patched model portfolio: uuid={}, name={}, riskLevel={}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public class InvestmentPortfolioAllocationService {
private final AllocationsApi allocationsApi;
private final AssetUniverseApi assetUniverseApi;
private final InvestmentApi investmentApi;
private final CustomIntegrationApiService customIntegrationApiService;
private final IngestConfigProperties ingestProperties;

public Mono<Void> removeAllocations(PortfolioList portfolio) {
Expand Down Expand Up @@ -156,7 +155,7 @@ private Mono<List<OASAllocationCreateRequest>> generateAllocations(
private Mono<List<OASPortfolioAllocation>> upsertAllocations(String portfolioId,
List<OASAllocationCreateRequest> allocations) {
return Flux.fromIterable(allocations)
.flatMap(a -> customIntegrationApiService.createPortfolioAllocation(portfolioId, a, null, null, null),
.flatMap(a -> allocationsApi.createPortfolioAllocation(portfolioId, a, null, null, null),
ingestProperties.getAllocation().getAllocationConcurrency())

.collectList().doOnSuccess(
Expand Down
Loading
Loading