Accelerator Salesforce Financial Account Event Listener - 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
CommonTools
map-financial-accounts-to-cimThis transformation produces a single canonical FINS Account from a SF Financial Account Platform Event
map-transactions-to-cimThis transformation produces a list of canonical FINS Transactions from a SF Financial Account Transaction Platform Event
map-cards-to-cimThis transformation produces a list of canonical FINS Cards for a SF Financial Account Platfrom Event

CommonTools

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

Functions

fun getFormattedDateTime (toFormat)

Formats the date-time to the type accepted by CIM

fun getFormattedDate (toFormat)

Formats the date-time to the type accepted by CIM

fun sfRecordTypeToFins (sfRecordType)

Function to map Record Type to Account type of Banking Library

param sfRecordType Name of the record type in Salesforce
return string Account type in Banking library

fun sfLoanTypeToFins (sfLoanType)

Function to map Loan type of Salesforce to Loan type of Banking Library

param sfLoanType Name of the Loan type in Salesforce
return string Loan type in Banking library

fun sfDepositTypeToFins (sfDepositType)

Function to map DepositType of Salesforce to Deposit type of Banking Library

param sfDepositType Name of the Deposit type in Salesforce
return string Deposit type in Banking library

fun sfBlockchainTypeToFins (sfBlockchainType)

Function to map Blockchain type of Salesforce to Blockchain type of Banking Library

param sfBlockchainType Name of the Blockchain type in Salesforce
return string Blockchain type in Banking library

fun sfLedgerTypeToFins (sfLedgerType)

Function to map Ledger type of Salesforce to Ledger type of Banking Library

param sfLedgerType Name of the Ledger type in Salesforce
return string Ledger type in Banking library

fun sfAccountStatusToFins (sfAccountStatus)

Function to map Account Status of Salesforce to Account Status of Banking Library

param sfAccountStatus Name of the Account Status in Salesforce
return string Account Status in Banking library

fun sfTransactionTypeToFins (sfTransactionType)

Function to map Transaction type of Salesforce to Transaction type of Banking Library

param sfTransactionType Name of the Transaction type in Salesforce
return string Transaction type in Banking library

fun sfTransactionSubtypeToFins (sfTransactionSubtype)

Function to map TransactionSubtype of Salesforce to TransactionSubtype of Banking Library

param sfTransactionSubtype Name of the Transaction Subtype in Salesforce
return string Transaction Subtype in Banking library

fun sfTransactionStatusToFins (sfTransactionStatus)

Function to map Transaction Status of Salesforce to Transaction Status of Banking Library

param sfTransactionStatus Name of the Transaction Status in Salesforce
return string Transaction Status in Banking library

fun sfTransactionDisputedReasonToFins (sfTransactionDisputedReason)

Function to map Dispute Reason Status of Salesforce to Transaction Dispute Reason of Banking Library

param sfTransactionDisputedReason Name of the Transaction Dispute Reason in Salesforce
return string Transaction Dispute Reason in Banking library

fun sfDepositTypeToFins (sfDepositType)

Function to map Deposit type of Salesforce to Deposit type of Banking Library

param sfDepositType Name of the Deposit type in Salesforce
return string Deposit type in Banking library

(back to top)

map-financial-accounts-to-cim

This transformation produces a single canonical FINS Account from a SF Financial Account Platform Event

Source: ./src/main/resources/dwl/map-financial-accounts-to-cim.dwl

Mapping Tables

Maps a single SF Financial Account Platform Event to a FINS Account

CIMSalesforce Financial Account Platform EventDescription
ididSF internal ID of the Account
externalIds[].externalIdGlobal_Account_Id__cExternal ID of the Account
accountCurrencyCurrencyIsoCodeISO Currency code used by the Account
taxIdentificationNumberFinServ_TaxID__cTax Identification Number of the Account
accountBalanceFinServ_Balance__cBalance of the Account
accountTypeFinServ_FinancialAccountType__c(enum) Type of Account
accountLabelFinServ_Nickname__cPersonalized name of the Account
availableBalanceFinServ_CashBalance__cAvailable balance of the Account
openedDateFinServ_OpenDate__cDate the Account was opened
closedDateFinServ_CloseDate__cDate the Account was closed
accountNumberFinServ_FinancialAccountNumber__cNumber of the Account
accountStatusFinServ_Status__cCurrent status of the Account
nameNameOfficial name of the Account
primaryAccountOwnerFinServ_PrimaryOwner__cCustomer who is the primary owner of the account
interestRateFinServ_InterestRate__cInterest rate for a LoanAccount
loanAmountFinServ_LoanAmount__cOriginal loan amount for a LoanAccount
minimumPaymentFinServ_MinimumPayment__cMinimum payment per pay period for a LoanAccount
principalBalanceFinServ_PrincipalBalance__cRemaining balance for a LoanAccount
minimumPaymentFinServ_MinimumPayment__cMinimum payment per pay period for a LoanAccount
minimumBalanceFinServ_MinimumBalance__cThe minimum amount that must be held in a Money Market account
maximumMonthlyWithdrawalsMaximum_Monthly_Withdrawals__cThe maximum number of withdrawals allowed per month
createdDateCreatedDateDate the Account record was created in the system
createdByCreatedByIdSystem user who created the Account
updatedDateLastModifiedDateDate the Account was last modified by a system user
updatedByLastModifiedByIdSystem user who last modified the Account

(back to top)

map-transactions-to-cim

This transformation produces a list of canonical FINS Transactions from a SF Financial Account Transaction Platform Event

Source: ./src/main/resources/dwl/map-transactions-to-cim.dwl

Mapping Tables

Maps a SF Financial Transaction Platform Event to a FINS Transaction as per CIM

CIMSalesforce Financial Account Transaction Platform EventDescription
idGlobal_Account_Id__cID of the Transaction
externalIds[].externalIdIdExternal ID of the Account
nameNameName of the Transaction
descriptionFinServ_Description__cDescription of the Transaction
amountFinServ_Amount__cTotal amount of the Transaction
transactionDateFinServ_TransactionDate__cDate the Transaction occurred
transactionTypeFinServ_TransactionType__cType of the Transaction
transactionSubTypeFinServ_TransactionSubtype__cSubtype of the Transaction
transactionStatusFinServ_TransactionStatus__cStatus of the Transaction
postedDateFinServ_PostDate__cDate the Transaction was processed and settled
debitAccountIdFinServ_FinancialAccount__cFinancial Account the amount is debited from
creditAccountIdFinServ_FinancialAccount__cFinancial Account the amount is credited to
isDisputedFinServ_IsDisputed__cWhether the Transaction is disputed
disputedReasonFinServ_DisputeReason__cWhy the Transaction is disputed
auditInfo.createdDateCreatedDateDatetime when the Transaction record was internally created
auditInfo.createdByCreatedByIdUser which created the Transaction
auditInfo.updatedByLastModifiedByIdUser which last modified the Transaction
auditInfo.updatedDateLastModifiedDateDatetime when the Transaction was last modified

(back to top)

map-cards-to-cim

This transformation produces a list of canonical FINS Cards for a SF Financial Account Platfrom Event

Source: ./src/main/resources/dwl/map-cards-to-cim.dwl

Mapping Tables

Maps a SF Financial Card Platform Event to a FINS Card

CIMSalesforce Financial Card Platform EventDescription
idGlobal_Card_Id__cID of the Card
externalIds[].externalIdIdExternal ID of the Card
nameNameName of the Card
accountIdsFinServFinancialAccountcFinancial Account related to the Card
cardTypeDebit CardDefault value of card type
cardOwnerIdFinServAccountHoldercCard Owner Id
cardholderNameNameName of the Card
cardNumberFinServBinNumbercNumber on the Card
cardStatusFinServActivecStatus of Card
expiryMonthFinServValidUntilcMonth of expiry
expiryYearFinServValidUntilcyear of expiry
auditInfo.createdDateCreatedDateDatetime when the Card record was internally created
auditInfo.createdByCreatedByIdUser which created the Card
auditInfo.updatedByLastModifiedByIdUser which last modified the Card
auditInfo.updatedDateLastModifiedDateDatetime when the Card was last modified

(back to top)


Reviews

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

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.3
1.0.1
1.0.0