Skip to content

Commit

Permalink
Merge pull request #463 from Backbase/hotfix/plan-manager-api-update
Browse files Browse the repository at this point in the history
update plan manager
  • Loading branch information
dhananjay12 authored Sep 24, 2024
2 parents c5151ca + 8b29bd7 commit 774e8f2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 16 deletions.
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.

## [5.11.1](https://github.com/Backbase/stream-services/compare/5.11.0...5.11.1)
### Changed
- Updated plan-manager service api from 0.5.0 to 0.9.0

## [5.11.0](https://github.com/Backbase/stream-services/compare/5.10.0...5.11.0)
### Changed
- feature - improved payment ingestion to allow for joint owner accounts to be shared.
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 @@ -456,7 +456,7 @@
<phase>generate-sources</phase>
<configuration>
<openapiNormalizer>REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true</openapiNormalizer>
<inputSpec>${project.basedir}/src/main/openapi/plan-manager-service-api-v0.5.0.yaml</inputSpec>
<inputSpec>${project.basedir}/src/main/openapi/plan-manager-service-api-v0.9.0.yaml</inputSpec>
<apiPackage>com.backbase.tailoredvalue.planmanager.service.api.v0</apiPackage>
<modelPackage>com.backbase.tailoredvalue.planmanager.service.api.v0.model</modelPackage>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Plan Manager Service
version: 0.5.0
version: 0.9.0
description: Manage plans and user plans
x-icon: manage_accounts
x-deprecated: false
Expand Down Expand Up @@ -51,7 +51,7 @@ paths:
dataGroupType: ARRANGEMENTS
description: The adult data entitlements on their own deposit account
'404':
description: If entitlement permissions not found for the plan
description: If plan not found
content:
application/json:
schema:
Expand All @@ -66,20 +66,13 @@ paths:
description: Retrieve the default plan
operationId: getDefaultPlan
parameters:
- name: serviceAgreementType
- name: context
in: query
description: The service agreement type
description: The user context which drives tailored value proposition
example: Family
required: true
schema:
type: string
- name: role
in: query
description: The role in service agreement type
example: Guardian
required: false
schema:
type: string
responses:
'200':
description: Returns the default plan
Expand All @@ -91,7 +84,7 @@ paths:
id: 6d23eb83-ae2c-4c7a-b8f2-2941d67e3be6
name: Individual Context - Adult User Plan
description: The plan of the adult in the context of individual
serviceAgreementType: Individual
context: Individual
segment:
id: be6fac90-26f5-453e-9ff1-706ade2d5d17
externalId: retail_customers_segment
Expand Down Expand Up @@ -176,7 +169,7 @@ paths:
- id: 6d23eb83-ae2c-4c7a-b8f2-2941d67e3be6
name: Individual Context - Adult User Plan
description: The plan of the adult in the context of individual
serviceAgreementType: Individual
context: Individual
segment:
id: be6fac90-26f5-453e-9ff1-706ade2d5d17
externalId: retail_customers_segment
Expand All @@ -188,6 +181,42 @@ paths:
name: Young Professionals Bundle
description: Designed for recent graduates and young adults starting their careers.
'/service-api/v0/users/{internalUserId}/plans':
get:
tags:
- user-plans
summary: Query the user plan
description: Query the user plan
operationId: queryUserPlan
parameters:
- name: internalUserId
in: path
description: The internal user identifier
example: 6d23eb83-ae2c-4c7a-b8f2-2941d67e3be6
required: true
schema:
type: string
minLength: 32
maxLength: 36
pattern: '^[0-9a-f]{32}$|^[0-9a-f-]{36}$'
- name: serviceAgreementId
in: query
description: The internal service agreement identifier
example: 6d23eb83-ae2c-4c7a-b8f2-2941d67e3be6
required: false
schema:
type: string
minLength: 32
maxLength: 36
pattern: '^[0-9a-f]{32}$|^[0-9a-f-]{36}$'
responses:
'200':
description: Returns the user plan
content:
application/json:
schema:
$ref: '#/components/schemas/QueryUserPlanGetResponseBody'
example:
$ref: '#/paths/~1service-api~1v0~1plans/get/responses/200/content/application~1json/example'
put:
tags:
- user-plans
Expand Down Expand Up @@ -337,6 +366,15 @@ components:
UserPlanUpdateResponseBody:
allOf:
- $ref: '#/components/schemas/Plan'
QueryUserPlanGetResponseBody:
type: object
additionalProperties: false
properties:
plans:
type: array
description: The collection of plans
items:
$ref: '#/components/schemas/Plan'
Plan:
type: object
additionalProperties: false
Expand All @@ -358,9 +396,9 @@ components:
description: The description of the plan
minLength: 1
maxLength: 256
serviceAgreementType:
context:
type: string
description: The service agreement type
description: The user context which drives tailored value proposition
minLength: 1
maxLength: 64
segment:
Expand All @@ -375,6 +413,7 @@ components:
required:
- id
- name
- context
Segment:
type: object
additionalProperties: false
Expand Down Expand Up @@ -403,6 +442,7 @@ components:
type: string
required:
- id
- externalId
- name
Bundle:
type: object
Expand Down Expand Up @@ -432,6 +472,7 @@ components:
type: string
required:
- id
- externalId
- name
Entitlement:
type: object
Expand Down

0 comments on commit 774e8f2

Please sign in to comment.