Skip to content

Commit

Permalink
PRSUM-10639: Adding insuredStatus support for deposit insurance status
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Chiuratto Seabra committed Feb 19, 2025
1 parent c385694 commit c9be748
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [6.14.0](https://github.com/Backbase/stream-services/compare/6.13.0...6.14.0)
### Added
- Insurance status, and legal entity relation and additions support

## [6.13.0](https://github.com/Backbase/stream-services/compare/6.12.0...6.13.0)
### Added
- add subscriptions for products when it's specified
Expand Down
9 changes: 9 additions & 0 deletions api/stream-product-catalog/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ components:
type: array
items:
$ref: '#/components/schemas/TranslationItem'
insuredStatus:
type: string
description: |
Indicate whether the arrangement is covered by deposit insurance
Possible values: 'yes', 'no', or 'n/a' (not applicable)
enum:
- "yes"
- "no"
- "n/a"
additions:
type: object
additionalProperties:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.backbase.stream</groupId>
<artifactId>stream-services</artifactId>
<version>6.13.0</version>
<version>6.14.0-SNAPSHOT</version>

<packaging>pom</packaging>
<name>Stream :: Services</name>
Expand Down Expand Up @@ -40,7 +40,7 @@
<properties>
<java.version>21</java.version>
<ssdk.version>18.1.0</ssdk.version>
<backbase-bom.version>2024.10</backbase-bom.version>
<backbase-bom.version>2025.03-LTS-rc.7</backbase-bom.version>
<boat-maven-plugin.version>0.17.26</boat-maven-plugin.version>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
<openapi-generator-maven-plugin.language>spring</openapi-generator-maven-plugin.language>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Flux<LegalEntity> getSubEntities(String legalEntityExternalId, Pageable p
.flux()
.flatMap(legalEntity ->
legalEntitiesApi.getSubEntities(legalEntity.getInternalId(),
Math.toIntExact(pageable.getOffset()), pageable.getPageSize(), null)
Math.toIntExact(pageable.getOffset()), pageable.getPageSize(), null, null)
.map(mapper::toStream));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ eureka:

bootstrap:
enabled: true
# This is just na example. Replace it with data corresponding to your project
product-catalog:

# This is just an example. Replace it with data corresponding to your project
product-catalog:
productTypes:
- productTypeName: Certificate of Deposit
typeName: Certificate of Deposit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ bootstrap:
externalId: Money Market
externalTypeId: Money Market
typeName: Money Market
insuredStatus: yes
- externalProductId: Checking
externalProductKindId: kind1
productKindName: Checking
Expand All @@ -87,6 +88,7 @@ bootstrap:
externalId: Checking
externalTypeId: Checking
typeName: Checking
insuredStatus: no
- externalProductId: Savings
externalProductKindId: kind2
productKindName: Savings
Expand All @@ -95,6 +97,7 @@ bootstrap:
externalId: Savings
externalTypeId: Savings
typeName: Savings
insuredStatus: n/a
- externalProductId: Savings
externalProductKindId: kind2
productKindName: Savings
Expand All @@ -103,6 +106,7 @@ bootstrap:
externalId: Savings
externalTypeId: Savings
typeName: Savings
insuredStatus: yes

logging:
level:
Expand Down
2 changes: 1 addition & 1 deletion stream-dbs-clients/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
<phase>generate-sources</phase>
<configuration>
<openapiNormalizer>REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true</openapiNormalizer>
<inputSpec>${project.build.directory}/yaml/transaction-manager/transaction-manager-service-api-v*.yaml</inputSpec>
<inputSpec>${project.build.directory}/yaml/transaction-manager/transaction-manager-service-api-v2*.yaml</inputSpec>
<apiPackage>com.backbase.dbs.transaction.api.service.v2</apiPackage>
<modelPackage>com.backbase.dbs.transaction.api.service.v2.model</modelPackage>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.mapstruct.factory.Mappers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,9 @@ public Mono<String> deleteArrangementByExternalId(String arrangementExternalId)
* @param legalEntitiesExternalIds list of Legal Entities external identifiers.
* @return Mono<Void>
*/
public Mono<Void> addLegalEntitiesForArrangement(String arrangementExternalId,
List<String> legalEntitiesExternalIds) {
public Mono<Void> addLegalEntitiesForArrangement(String arrangementExternalId, List<String> legalEntitiesExternalIds) {
log.debug("Attaching Arrangement {} to Legal Entities: {}", arrangementExternalId, legalEntitiesExternalIds);
return arrangementsIntegrationApi.postArrangementLegalEntities(arrangementExternalId, new ExternalLegalEntityIds()
.ids(new HashSet<>(legalEntitiesExternalIds)));
return arrangementsIntegrationApi.postArrangementLegalEntities(arrangementExternalId, new ExternalLegalEntityIds().ids(new HashSet<>(legalEntitiesExternalIds)));
}

/**
Expand Down

0 comments on commit c9be748

Please sign in to comment.