FINS Loan Origination System API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
CommonToolsThis module provides utility functions and mappings used by this System API
map-get-customers-responseCustomer Query Mapping for Loan Origination System
map-post-customers-payloadCustomer Create Mapping for Loan Customer of Loan Origination System
map-patch-customers-payloadCustomer Update Mapping for Loan Origination System
map-get-individuals-responseQuery Individual Mapping From MDM DB
map-get-loanapplications-responseLoanApplication - Retrieve Mapping Loan Origination System (LOS)
map-post-loanapplications-payload
map-patch-loanapplications-payloadLoan PATCH request Mapping for Loan Origination System (LOS)
map-get-loandocuments-response
map-post-loandocuments-payload
map-patch-loandocuments-payload

CommonTools

This module provides utility functions and mappings used by this System API

Source: ./src/main/resources/dwl/CommonTools.dwl

Functions

fun getEmailArr (contactPoints)

This function gets the EmailAddress from ContactPoints Array

fun getPrimaryEmailInfo (contactPoints)

This function returns the Primary EmailAddress

(back to top)

map-get-customers-response

Customer Query Mapping for Loan Origination System

Source: ./src/main/resources/dwl/map-get-customers-response.dwl

Mapping Tables

Maps Loan Origination System Customer to CIM Customer format

CIMLoan Origination SystemDescription
idIDThe id of the customer in Loan Origination System Banking System system
churnScoreCHURN_SCOREThe churn score of the customer
customerNumberCUSTOMER_NUMBERThe Customer Number in Loan Origination System
customerStatusCUSTOMER_STATUSThe status of the customer in Loan Origination System
originatingCustomerSourceORIGINATING_CUSTOMER_SOURCEThe originating source of the customer
party[ if(vars.individualRecord != null) (vars.individualRecord) else PARTY_ID ]The id of the individual as party
partyRoleTypePARTY_ROLE_TYPEThe type of party role - default as Customer
externalIdsGLOBAL_CUSTOMER_IDThe externalIds of the customer that are stored in Loan Origination System
auditInfo.createdByCREATED_BYIdentifies the system or user which created the entity
auditInfo.createdDateCREATED_DATETimestamp of when the entity was created - default as current timestamp
auditInfo.updatedByUPDATED_BYIdentifies the system or user which last updated the entity
auditInfo.updatedDateUPDATED_DATETimestamp of when the entity was last updated
auditInfo.isDeletedisDeletedIndicates whether or not the entity has been soft-deleted - default as false

(back to top)

map-post-customers-payload

Customer Create Mapping for Loan Customer of Loan Origination System

Source: ./src/main/resources/dwl/map-post-customers-payload.dwl

Mapping Tables

Maps CIM Customer to JSON which is used by stored procedure - sp_Customers_Upsert

JSON used by the stored procedureCIMDescription
customerNumbercustomerNumberThe Customer Number to be stored in Core Banking System
originatingCustomerSourceoriginatingCustomerSourceThe customer source at origin
customerStatuscustomerStatusThe status of the customer
ididThe id of the customer
globalCustomerIdglobalCustomerIdThe Global Customer Id of the customer
partyIdparty[0]The id of the individual as party
partyRoleTypepartyRoleType"Customer"The type of party role - default as Customer
createdDateauditInfo.createdDateIdentifies the system or user which created the entity - default as current timestamp
createdByauditInfo.createdByTimestamp of when the entity was created - default as current timestamp
updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity - default as property app.name
updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated - default as current timestamp

(back to top)

map-patch-customers-payload

Customer Update Mapping for Loan Origination System

Source: ./src/main/resources/dwl/map-patch-customers-payload.dwl

Variables

var payloadRecordfromDB

payloadRecordfromDB is the existing customer record in Loan Origination System

Mapping Tables

Maps CIM Customer to Loan Origination System Customer PATCH payload is created by validating the Input Request payload with DB Record Payload.

Loan Origination SystemCIMDescription
idvars.customerIdThe id of the customer in Loan Origination System
churnScoreif(CHURN_SCORE?) CHURN_SCORE else payloadRecordfromDB.churnScoreThe churn score of the customer
createdByp('app.name')Identifies the system or user which created the entity - default as property app.name
createdDatenow()Timestamp of when the entity was created - default as current timestamp
customerNumberif(CUSTOMER_NUMBER?) CUSTOMER_NUMBER else payloadRecordfromDB.customerNumberThe Customer Number to be stored in Loan Origination System
customerStatusif(CUSTOMER_STATUS?) CUSTOMER_STATUS else payloadRecordfromDB.customerStatusThe status of the customer
globalCustomerIdGLOBAL_CUSTOMER_IDThe Global Customer Id of the customer
originatingCustomerSourceif(ORIGINATING_CUSTOMER_SOURCE?) ORIGINATING_CUSTOMER_SOURCE else payloadRecordfromDB.originatingCustomerSourceThe originating source of the customer
updatedByp('app.name')Identifies the system or user which last updated the entity - default as property app.name
updatedDatenow()Timestamp of when the entity was last updated - default as current timestamp
partyIdif(party?) party[0] else payloadRecordfromDB.party[0]The id of the individual as party
partyRoleTypeif(PARTY_ROLE_TYPE?) PARTY_ROLE_TYPE else payloadRecordfromDB.partyRoleTypeThe type of party role - default as Customer

(back to top)

map-get-individuals-response

Query Individual Mapping From MDM DB

Source: ./src/main/resources/dwl/map-get-individuals-response.dwl

(back to top)

map-get-loanapplications-response

LoanApplication - Retrieve Mapping Loan Origination System (LOS)

Source: ./src/main/resources/dwl/map-get-loanapplications-response.dwl

(back to top)

map-post-loanapplications-payload

Source: ./src/main/resources/dwl/map-post-loanapplications-payload.dwl

(back to top)

map-patch-loanapplications-payload

Loan PATCH request Mapping for Loan Origination System (LOS)

Source: ./src/main/resources/dwl/map-patch-loanapplications-payload.dwl

(back to top)

map-get-loandocuments-response

Source: ./src/main/resources/dwl/map-get-loandocuments-response.dwl

Mapping Tables

Maps FINSDB Loan Document to BankingSpec Loan Document format

BankingSpecFINSDBDescription
IDidDocument Id of the Application
LOAN_APPLICATIONloanApplicationLoan Application Id
NAMEnameName of the Document
DescriptiondescriptionDescription of the Document
DOCUMENT_STATUSdocumentStatusStatus of the Document
SIGNATURE_STATUSsignatureStatusStatus of Signature on the Document
GLOBAL_DOCUMENT_IDexternalIdsExternal Id of the Document. This will be DOCUSIGN Id
CREATED_DATEcreatedDateCreated Date
CREATED_BYcreatedByCreated by
UPDATED_DATEupdatedDateUpdated date
UPDATED_BYupdatedByUpdated by

(back to top)

map-post-loandocuments-payload

Source: ./src/main/resources/dwl/map-post-loandocuments-payload.dwl

Mapping Tables

Maps BankingSpec Loan Document format to FINSDB Loan Document

BankingSpecFINSDBDescription
idIDLoan Id of the Application
loanApplicationLOAN_APPLICATIONLoan Application Id
nameNAMEName of the Document
descriptionDescriptionDescription of the Document
documentStatusDOCUMENT_STATUSStatus of the Document
signatureStatusSIGNATURE_STATUSStatus of Signature on the Document
externalIdsGLOBAL_DOCUMENT_IDExternal Id of the Document
createdDateCREATED_DATECreated Date
createdByCREATED_BYCreated by
updatedDateUPDATED_DATEUpdated date
updatedByUPDATED_BYUpdated by

(back to top)

map-patch-loandocuments-payload

Source: ./src/main/resources/dwl/map-patch-loandocuments-payload.dwl

Mapping Tables

Maps BankingSpec Loan Document format to FINSDB Loan Document

BankingSpecFINSDBDescription
idIDLoan Id of the Application
loanApplicationLOAN_APPLICATIONLoan Application Id
nameNAMEName of the Document
descriptionDescriptionDescription of the Document
externalIdGLOBAL_DOCUMENT_IDGlobal Document Id as external Id
documentStatusDOCUMENT_STATUSStatus of the Document
signatureStatusSIGNATURE_STATUSStatus of Signature on the Document
externalIdsEXTERNAL_ID.EXTERNAL_IDExternal Id of the Document
createdDateCREATED_DATECreated Date
createdByCREATED_BYCreated by
updatedDateUPDATED_DATEUpdated date
updatedByUPDATED_BYUpdated by

(back to top)


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onNov 8, 2023
Asset overview

Asset versions for 2.1.x

Asset versions
VersionActions
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0