Extension Field Mapping

This section provides a sample extension data mapping, where you can map their extension data to the product fields.

The format of extension specification is schemaname_EntityNameExtn.json (For example, PAYMENT_ORDEREvent_PaymentOrderExtn.json). This file exists in the folder pointed in the environment variable.

Column name

Data type

paymentOrderId

String

debitAccount

String

creditAccount

String

payeeDetails

PayeeDetails(User defined Type)

extensionData

Map<String,String>

exchangeRates

List<ExchangeRate>(MultiRec field)

PayeeDetails User Type

id

string

extensionData

Map<String,String>

ExchangeRate User Type

id

string

extensionData

Map<String, String>

The sample output of Input Payload is given below.

In correspondence with extension data fields, the extension data can have any fields and values, so you can map as shown in above sample transformation.

You can use arrayKey in extensionData while it is being used inside an MultiRec field. The arrayKey field is used to identity to which product ID the extension data should be mapped to. Multirec is list of data and the arrayKey should be used to differentiate between the data .

NOTE: ArrayKey can have multipe keys and it is not limited to one.

Copyright © 2020- Temenos Headquarters SA

Published on :
Wednesday, October 12, 2022 6:49:24 PM IST

Feedback
x