Accelerator MariaDB Global Financial Account 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
GlobalFinancialToolsCommon functions and variables used for Global Financial System
accounts-get-responseMapping for Query Financial Account from Global Data System
accounts-patch-payloadMapping for Update Financial Account in Global Data System Maps CIM Financial Account to payload which is used as input parameter in the update query of FINANCIAL_ACCOUNT table. The fields in both CIM and Global Data DB are identical. PATCH payload is created by validating the Input Request payload with DB Record Payload.
accounts-post-payloadMapping for Create Financial Account in Global Data System. Maps CIM Financial Account JSON to JSON which is used by stored procedure sp_FinancialAccount_Upsert. The fields in both CIM and Global Data DB are identical.
cards-get-responseMapping for Query Financial Cards from Global Data System
cards-patch-payloadMapping for Update Financial Card in Global Data System Maps CIM Financial Card to payload which is used by stored procedure sp_FinancialCard_Upsert. The fields in both CIM and Global Data are identical. PATCH payload is created by validating the Input Request payload with DB Record Payload.
cards-post-payloadMapping for Create Cards in Global Data System. Maps Global Data Cards JSON to JSON which is used by stored procedure sp_FinancialCard_Upsert.
get-externalids-responseMapping for Query ExternalIds from Global Data System
transactions-get-responseMapping for Get Transactions from Global Data System.
transactions-patch-payloadMapping for Update Transactions in Global Data System Maps CIM Financial Transaction to payload which is used by stored procedure sp_FinancialTransaction_Upsert. The fields in both DB and CIM FinancialTransaction are identical. PATCH payload is created by validating the Input Request payload with DB Record Payload.
transactions-post-payloadMapping for Create Transactions in Global Data System. Maps Global Data Account JSON to JSON which is used by stored procedure sp_FinancialTransaction_Upsert.

GlobalFinancialTools

Common functions and variables used for Global Financial System

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

Functions

fun convertBoolean (item)

Function to convert boolean values to 0 or 1

param item - Takes input to convert fields that holds boolean values as true or false
return - JSON object with values converted for boolean fields as 1 or 0

(back to top)

accounts-get-response

Mapping for Query Financial Account from Global Data System

Source: ./src/main/resources/dwl/accounts-get-response.dwl

Mapping Tables

Maps Global Data DB Fields to CIM Financial Account

Global Data DB FieldCIM Financial AccountDescription
IDidflag to allow customer to return a Product
NAMEnamedescriptive name of the account
ACCOUNT_NUMBERaccountNumberaccount number
ACCOUNT_TYPEaccountTypediscriminator property set to the specific type of account by name (e.g.CheckingAccount)
ACCOUNT_STATUSaccountStatusflag to preorder the Product
ACCOUNT_BALANCEaccountBalancecurrent credit (positive) or debit (negative) balance of the account
AVAILABLE_BALANCEavailableBalanceamount of funds (or credit) available for withdrawal
ACCOUNT_CURRENCYaccountCurrencycustomer-provided nickname for the account
ACCOUNT_LABELaccountLabellabel for the Account
INTEREST_RATEinterestRateinterest rate for the amount
TAX_IDENTIFICATION_NUMBERtaxIdentificationNumberTax Identification Number associated with the account
OPENED_DATEopenedDatedate of opening the account
CLOSED_DATEclosedDatedate of Closing the account
LAST_STATEMENT_DATElastStatementDatedate the last statement was produced for this account
CREDIT_LIMITcreditLimitcredit limit for the Card
LOAN_TYPEloanTypeloan type associated with the account
ORIGINAL_LOAN_AMOUNToriginalLoanAmountloan amount of the account
LOAN_DURATION_MONTHSloanDurationMonthsloan duration for repayment
MINIMUM_PAYMENTminimumPaymentminimum payment to be made to the account
PRINCIPAL_BALANCEprincipalBalanceprincipal balance associated with the loan account
DEPOSIT_ACCOUNT_TYPEdepositAccountTypedeposit account
ROUTING_NUMBERroutingNumberBranch or routing number for the account
OVERDRAFT_LIMIToverdraftLimitIndicates the maximum deficit in an account; a value of 0.0 means no overdraft is allowed
DAILY_WITHDRAWAL_LIMITdailyWithdrawalLimitMaximum amount that can be withdrawn directly from this account per day
LAST_DEPOSIT_DATElastDepositDateDate the last deposit was made on
LAST_WITHDRAWAL_DATElastWithdrawalDateDate the last withdrawal was made on
MAXIMUM_MONTHLY_WITHDRAWALSmaximumMonthlyWithdrawalsMaximum amount that can be withdrawn directly from this account per month
MINIMUM_BALANCEminimumBalanceThe minimum amount that must be held in a Money Market account
MONTHLY_WITHDRAWAL_LIMITmonthlyWithdrawalLimitThe maximum number of withdrawals allowed per month
LAST_TRANSACTION_DATElastTransactionDateDate a transaction was last recorded for this account
LAST_TRANSACTION_TYPElastTransactionTypeReferences the type of transaction last recorded for this account
LAST_TRANSACTION_AMOUNTlastTransactionAmountAmount of the last transaction recorded for this account
LAST_PAYMENT_DATElastPaymentDateDate the last deposit was made on
LAST_PAYMENT_AMOUNTlastPaymentAmountAmount of the last payment made
CUSTOMER_IDprimaryAccountOwnerReferences the primary owner of this account by their global identifier
CUSTOMER_IDsecondaryAccountOwnersReferences additional owner(s) of this account by their global identifiers
CREATED_BYauditInfo.createdByIdentifies the system or user which created the entity
CREATED_DATEauditInfo.createdDateTimestamp of when the entity was created - default as current timestamp
UPDATED_BYauditInfo.updatedByIdentifies the system or user which last updated the entity
UPDATED_DATEauditInfo.updatedDateTimestamp of when the entity was last updated
IS_DELETEDauditInfo.isDeletedIndicates whether or not the entity has been soft-deleted - default as false

(back to top)

accounts-patch-payload

Mapping for Update Financial Account in Global Data System
Maps CIM Financial Account to payload which is used as input parameter in the update query of FINANCIAL_ACCOUNT table.
The fields in both CIM and Global Data DB are identical.
PATCH payload is created by validating the Input Request payload with DB Record Payload.

Source: ./src/main/resources/dwl/accounts-patch-payload.dwl

Variables

var payloadRecordfromDB

payloadRecordfromDB is the existing Financial Account record in Global Data DB

(back to top)

accounts-post-payload

Mapping for Create Financial Account in Global Data System.
Maps CIM Financial Account JSON to JSON which is used by stored procedure sp_FinancialAccount_Upsert.
The fields in both CIM and Global Data DB are identical.

Source: ./src/main/resources/dwl/accounts-post-payload.dwl

Mapping Tables

Maps CIM Financial Account JSON which is used by stored procedure - sp_ContactPointAddress_Create or sp_ContactPointAddress_Update

Field used in stored procedureCIM Financial AccountDescription
ididflag to allow customer to return a Product
namenamedescriptive name of the account
accountNumberaccountNumberaccount number
accountTypeaccountTypediscriminator property set to the specific type of account by name (e.g.CheckingAccount)
accountStatusaccountStatusflag to preorder the Product
accountBalanceaccountBalancecurrent credit (positive) or debit (negative) balance of the account
availableBalanceavailableBalanceamount of funds (or credit) available for withdrawal
accountCurrencyaccountCurrencycustomer-provided nickname for the account
accountLabelaccountLabellabel for the Account
interestRateinterestRateinterest rate for the amount
taxIdentificationNumbertaxIdentificationNumberTax Identification Number assoicated with the account
notesnotesfree-form notes recorded for this account
creditLimitcreditLimitcredit limit for the Card
loanTypeloanTypeloan type associated with the account
originalLoanAmountoriginalLoanAmountloan amount of the account
loanDurationMonthsloanDurationMonthsloan duration for repayment
minimumPaymentminimumPaymentminimum payment to be made to the account
principalBalanceprincipalBalanceprincipal balance associated with the loan account
depositAccountTypedepositAccountTypedeposit account
routingNumberroutingNumberBranch or routing number for the account
overdraftLimitoverdraftLimitIndicates the maximum deficit in an account; a value of 0.0 means no overdraft is allowed
dailyWithdrawalLimitdailyWithdrawalLimitMaximum amount that can be withdrawn directly from this account per day
lastTransactionDatelastTransactionDateDate a transaction was last recorded for this account
lastTransactionTypelastTransactionTypeReferences the type of transaction last recorded for this account
lastTransactionAmountlastTransactionAmountAmount of the last transaction recorded for this account
lastPaymentDatelastPaymentDateDate the last deposit was made on
lastPaymentAmountlastPaymentAmountAmount of the last payment made
primaryAccountOwnerprimaryAccountOwnerReferences the primary owner of this account by their global identifier
secondaryAccountOwnerssecondaryAccountOwnersReferences additional owner(s) of this account by their global identifiers
maximumMonthlyWithdrawalsmaximumMonthlyWithdrawalsMaximum amount that can be withdrawn directly from this account per month
minimumBalanceminimumBalanceThe minimum amount that must be held in a Money Market account
monthlyWithdrawalLimitmonthlyWithdrawalLimitThe maximum number of withdrawals allowed per month
externalIds.idexternalIds.idThe id of the entry in Global Data System
externalIds.externalIdexternalIds.externalIdA unique identifier assigned to the Global Data object in another system
externalIds.createdByexternalIds.createdByIdentifies the system or user which created the entry - picked from properties
externalIds.updatedByexternalIds.updatedByIdentifies the system or user which last updated the entry
externalIds.externalIdTypeexternalIds.externalIdTypeIdentifies the system that owns or otherwise recognizes this unique identifier
externalIds.statusexternalIds.statusIndicates whether this identifier is currently valid or not
externalIds.statusLastChangedDateexternalIds.statusLastChangedDateDate and time of the last change in status
createdByauditInfo.createdByIdentifies the system or user which created the entity
createdDateauditInfo.createdDateTimestamp of when the entity was created - default as current timestamp
updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity
updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated

(back to top)

cards-get-response

Mapping for Query Financial Cards from Global Data System

Source: ./src/main/resources/dwl/cards-get-response.dwl

Mapping Tables

Maps Global Data DB fields to CIM Financial Card

CIM Financial CardGlobal Data DB FieldDescription
idIDcredit card id
nameNAMEname of credit card
cardTypeCARD_TYPEtype of card - creditdebit
cardHolderNameCARD_HOLDER_NAMEname of the person holding the credit card
cardNumberCARD_NUMBER16 digit number displayed on the credit card.
cardPinCARD_PINpin of the debit card
cardStatusCARD_STATUSstatus as activeinactivelocked
cardStatusChangedDateCARD_STATUS_CHANGED_DATEDate and time of the last change in card status
expiryMonthEXPIRY_MONTHexpiry month of the credit card
expiryYearEXPIRY_YEARexpiry year of the credit card
replacedCardIdREPLACED_CARD_IDIdentifier of the card this one replaces
replacedCardReasonREPLACED_CARD_REASONIndicates why this card was issued in place of a previous one
maskedNumberMASKED_NUMBERmasked number on the credit card
cardTokenCARD_TOKENtoken issued for the credit card
numberLastDigitsNUMBER_LAST_DIGITSlast 4 digits on the card
securityCodeSECURITY_CODEsecurity code on the credit card
creditCardTypeCREDIT_CARD_TYPEcredit card type AMEXDISCOVERMASTERCARDVISA
accountIdFINANCIAL_ACCOUNT_IDaccount Id associated with credit card
cardOwnerIdCARD_OWNER_IDIdentifier of the individual this card is owned by
cardOwnershipTypeCARD_OWNERSHIP_TYPEauthorizedotherprimary
cardControlsCARD_CONTROLSList of controls applied to this card (e.g.ATM only)
dailyPurchaseLimitDAILY_PURCHASE_LIMITMaximum amount that can be purchased with this card per day; a value of 0.0 indicates there is no limit
auditInfo.createdDateCREATED_DATETimestamp of when the entity was created - default as current timestamp
auditInfo.createdByCREATED_BYIdentifies the system or user which created the entity
auditInfo.updatedByUPDATED_BYIdentifies the system or user which last updated the entity
auditInfo.updatedDateUPDATED_DATETimestamp of when the entity was last updated
auditInfo.isDeletedIS_DELETEDIndicates whether or not the entity has been soft-deleted - default as false

(back to top)

cards-patch-payload

Mapping for Update Financial Card in Global Data System
Maps CIM Financial Card to payload which is used by stored procedure sp_FinancialCard_Upsert.
The fields in both CIM and Global Data are identical.
PATCH payload is created by validating the Input Request payload with DB Record Payload.

Source: ./src/main/resources/dwl/cards-patch-payload.dwl

Variables

var payloadRecordfromDB

payloadRecordfromDB is the existing Financial Card record in Global Data System

(back to top)

cards-post-payload

Mapping for Create Cards in Global Data System.
Maps Global Data Cards JSON to JSON which is used by stored procedure sp_FinancialCard_Upsert.

Source: ./src/main/resources/dwl/cards-post-payload.dwl

Mapping Tables

Maps CIM Financial Cards to JSON which is used by stored procedure - sp_FinancialCard_Upsert

Field used in stored procedureCIM Financial CardsDescription
ididcredit card id
namenamename of credit card
cardTypecardTypetype of card - creditdebit
cardHolderNamecardHolderNamename of the person holding the credit card
cardNumbercardNumber16 digit number displayed on the credit card.
cardPincardPinpin of the debit card
cardStatuscardStatusstatus as activeinactivelocked
cardStatusChangedDatecardStatusChangedDateDate and time of the last change in card status
expiryMonthexpiryMonthexpiry month of the credit card
expiryYearexpiryYearexpiry year of the credit card
replacedCardIdreplacedCardIdIdentifier of the card this one replaces
replacedCardReasonreplacedCardReasonIndicates why this card was issued in place of a previous one
maskedNumbermaskedNumbermasked number on the credit card
cardTokencardTokentoken issued for the credit card
numberLastDigitsnumberLastDigitslast 4 digits on the card
securityCodesecurityCodesecurity code on the credit card
creditCardTypecreditCardTypecredit card type AMEXDISCOVERMASTERCARDVISA
accountIdaccountIdaccount Id associated with credit card
cardOwnerIdcardOwnerIdIdentifier of the individual this card is owned by
cardOwnershipTypecardOwnershipTypeauthorizedotherprimary
cardControlscardControlsList of controls applied to this card (e.g.ATM only)
dailyPurchaseLimitdailyPurchaseLimitMaximum amount that can be purchased with this card per day; a value of 0.0 indicates there is no limit
externalIds.idexternalIds.idThe id of the entry in Global Data System
externalIds.externalIdexternalIds.externalIdA unique identifier assigned to the Global Data object in another system
externalIds.createdByexternalIds.createdByIdentifies the system or user which created the entry - picked from properties
externalIds.updatedByexternalIds.updatedByIdentifies the system or user which last updated the entry
externalIds.externalIdTypeexternalIds.externalIdTypeIdentifies the system that owns or otherwise recognizes this unique identifier
externalIds.statusexternalIds.statusIndicates whether this identifier is currently valid or not
externalIds.statusLastChangedDateexternalIds.statusLastChangedDateDate and time of the last change in status
createdByauditInfo.createdByIdentifies the system or user which created the entity
createdDateauditInfo.createdDateTimestamp of when the entity was created - default as current timestamp
updatedByauditInfo.updatedByIdentifies the system or user which last updated the entity
updatedDateauditInfo.updatedDateTimestamp of when the entity was last updated

(back to top)

get-externalids-response

Mapping for Query ExternalIds from Global Data System

Source: ./src/main/resources/dwl/get-externalids-response.dwl

Variables

var outputPayload

outputPayload variable is the maps the result of select query on Global Data EXTERNAL_ID table.

(back to top)

transactions-get-response

Mapping for Get Transactions from Global Data System.

Source: ./src/main/resources/dwl/transactions-get-response.dwl

(back to top)

transactions-patch-payload

Mapping for Update Transactions in Global Data System
Maps CIM Financial Transaction to payload which is used by stored procedure sp_FinancialTransaction_Upsert.
The fields in both DB and CIM FinancialTransaction are identical.
PATCH payload is created by validating the Input Request payload with DB Record Payload.

Source: ./src/main/resources/dwl/transactions-patch-payload.dwl

Variables

var payloadRecordfromDB

payloadRecordfromDB is the existing Financial Transaction record in Global Data System

(back to top)

transactions-post-payload

Mapping for Create Transactions in Global Data System.
Maps Global Data Account JSON to JSON which is used by stored procedure sp_FinancialTransaction_Upsert.

Source: ./src/main/resources/dwl/transactions-post-payload.dwl

(back to top)


Reviews

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

Asset versions for 1.1.x

Asset versions
VersionActions
1.1.2
1.1.1
1.1.0