Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoeni committed Sep 18, 2024
1 parent 890993d commit 87033a2
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions mortgageAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ servers:
externalDocs:
description: Find out more about SFTI API specifications
url: https://www.common-api.ch

tags:
- name: Full Mortgage Cases
description: Operatios related to full mortgage cases including the application details.
description: Operations related to full mortgage cases including the application details.
- name: Existing Mortgages
description: Operations related with existing mortgages.
- name: Mortgage Products and Conditions
Expand Down Expand Up @@ -645,7 +646,7 @@ paths:
properties:
status:
type: string
example: we need an exmaple
example: we need an example
'400':
$ref: '#/components/responses/standard400'
'401':
Expand Down Expand Up @@ -1570,12 +1571,12 @@ components:
type: string
maxLength: 35
example: Biel
description: you guesssed it, the name of the town.
description: you guessed it, the name of the town.
country:
type: string
maxLength: 2
example: CH
description: a political area, sorrunded by borders, very often a natural border such as a river or a mountain.
description: a political area, surrounded by borders, very often a natural border such as a river or a mountain.

# ---- Country Code ----
Country:
Expand All @@ -1586,7 +1587,7 @@ components:

# ---- Response
CommonResourceCreatedResponse:
title: Recource created response
title: Resource created response
description: Uuid v4 of the created resource.
type: object
required:
Expand All @@ -1595,7 +1596,7 @@ components:
id:
$ref: '#/components/schemas/CommonID'
description: Uuid v4 of the created resource.

CommonErrorResponse:
title: Common Error Response
description: ...
Expand Down Expand Up @@ -1857,7 +1858,7 @@ components:
- other
example: floor
heatProduction:
description: the way heat is generated within the building.
description: the way heat is generated within the building.
type: array
items:
type: string
Expand Down Expand Up @@ -2159,13 +2160,13 @@ components:
$ref: '#/components/schemas/Date'
transferOfOwnershipDate:
$ref: '#/components/schemas/Date'
description: When the property will be fully transfered to the new owner.
description: When the property will be fully transferred to the new owner.
publicNotarization:
$ref: '#/components/schemas/Date'
description: Date of public notarization
remarks:
type: string
description: remark regarding the erstimation.
description: Remark regarding the estimation.
example: We need an example for such a remark
propertyLinks:
description: A list of links to external resources related to the property.
Expand All @@ -2180,11 +2181,11 @@ components:
EGRID:
type: string
example: CH480928387782
description: identifier of land a property is built on.
description: Identifier of land a property is built on.
EGID:
type: string
example: '191092250'
description: identifiert of the property.
description: Identifier of the property.

Mortgage:
description: All relevant information regarding a specific mortgage.
Expand Down Expand Up @@ -2218,7 +2219,7 @@ components:
offerDate:
$ref: '#/components/schemas/Date'
description: >
The date when the offer is made by the FI. Optional field for use cases where no MortageOffer object is used and
The date when the offer is made by the FI. Optional field for use cases where no MortgageOffer object is used and
therefore the offer date needs to be directly in Mortgage object.
example: 2018-04-05
validTo:
Expand Down Expand Up @@ -2247,7 +2248,7 @@ components:
maximum: 25
example: 5
prolongable:
description: tells if a mortgage is prolongable or not.
description: tells if a mortgage is prolongable or not.
type: boolean
example: 0
propertyObjects:
Expand All @@ -2259,7 +2260,7 @@ components:
type: array
description: ..
items:
$ref: '#/components/schemas/Mortgage'
$ref: '#/components/schemas/Mortgage'

Offer:
description: All relevant details describing the FI's offer for a mortgage product.
Expand Down Expand Up @@ -2390,7 +2391,7 @@ components:
$ref: '#/components/schemas/ProductVariation'
interestRateType:
type: string
description: type of interest rate.
description: type of interest rate.
example: libor
enum:
- variable
Expand All @@ -2411,13 +2412,13 @@ components:
- amortization
properties:
conditionId:
description: ID of condition.
description: ID of condition.
type: string
format: uuid
example: ef737eb0-c0a7-4f44-bdeb-32ba9bd99327
productIdRef:
type: string
description: Reference to prodcut ID.
description: Reference to product ID.
format: uuid
example: 0b34cd1b-32a5-4bb7-bcc5-bf81f8f8aaf1
duration:
Expand Down Expand Up @@ -2525,7 +2526,7 @@ components:
description: The institute who has issued the replaced tranche.
example: Credit Suisse
tppAdvisorDetail:
description: personal information if the advisor of the tpp.
description: Personal information if the advisor of the TPP.
type: object
properties:
name:
Expand Down Expand Up @@ -2703,7 +2704,7 @@ components:
$ref: '#/components/schemas/Interest'
interestRateType:
type: string
description: type of intererest rate.
description: type of interest rate.
example: libor
enum:
- variable
Expand Down Expand Up @@ -2779,7 +2780,7 @@ components:
requestOfferType:
description: Ding dong die Hex ist tot.
type: string
example: binding
example: binding
enum:
- binding
- indicative
Expand Down Expand Up @@ -2910,7 +2911,7 @@ components:
description: Gender of the applicant.
financialSituation:
type: object
description: the overall financial situation of a debtor.
description: the overall financial situation of a debtor.
properties:
income:
type: array
Expand Down Expand Up @@ -3075,7 +3076,7 @@ components:
description: The amount of the sum insured in life insurance.
remark:
type: string
description: remark remerk.
description: remark remark.
example: We need an example for such a remark
assetProvider:
$ref: '#/components/schemas/AssetProvider'
Expand Down Expand Up @@ -3225,7 +3226,7 @@ components:
description: Remark/comment which can be added by TPP.

Document:
description: Document containing information for givent document type for given order.
description: Document containing information for given document type for given order.
type: object
required:
- name
Expand Down Expand Up @@ -3286,7 +3287,7 @@ components:

AssetProvider:
description: >
Asset provider for each asset, additional information must be transfered. E.g. in case the applicant owns an addtional security of type
Asset provider for each asset, additional information must be transferred. E.g. in case the applicant owns an additional security of type
insurance, insurance company name is provided
type: object
required:
Expand Down Expand Up @@ -3328,15 +3329,15 @@ components:
type: number
format: double
description: >
Interest reate in decimals. 2.45% would be sent as 0.0245. For flexible interest mortgage this would show
Interest rate in decimals. 2.45% would be sent as 0.0245. For flexible interest mortgage this would show
the margin above interest.
minimum: 0
maximum: 1
example: 0.5
base:
type: number
format: double
description: Base rate uupon margin is applied (e.g. for SARON).
description: Base rate upon margin is applied (e.g. for SARON).
minimum: 0
maximum: 1
example: 0.5
Expand Down Expand Up @@ -3465,14 +3466,14 @@ components:
example: 25
minimum: 1
description: Optional parameter for pagination. Maximum number of entries to be returned.

cursor:
in: query
name: cursor
required: false
schema:
type: string
example: cursorIDxyz
example: cursorIDxyz
description: Optional parameter for pagination. An opaque string value used for pagination.

duration:
Expand Down Expand Up @@ -3506,15 +3507,15 @@ components:
schema:
type: string
description: ID of the client forwarded to the provider.

correlation_in_header:
in: header
name: X-Correlation-ID
required: true
schema:
type: string
description: Unique ID (defined by the caller) which will be reflected back in the response.

agent_in_header:
in: header
name: User-Agent
Expand Down

0 comments on commit 87033a2

Please sign in to comment.