{ "documentVersion": "1.3", "jsonSchemaSemanticVersion": "1.0.0", "imports": [ { "corpusPath": "_allImports.cdm.json" } ], "definitions": [ { "entityName": "Currency", "extendsEntity": "CdmEntity", "exhibitsTraits": [ { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Currency" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Currency in which a financial transaction is carried out." ] ] } } ] }, { "traitReference": "is.CDM.entityVersion", "arguments": [ { "name": "versionNumber", "value": "1.3" } ] } ], "hasAttributes": [ { "attributeGroupReference": { "attributeGroupName": "attributesAddedAtThisScope", "members": [ { "name": "statusCode", "purpose": { "purposeReference": "representsCorrelatedStatusWith", "appliedTraits": [ { "traitReference": "is.correlatedWith", "arguments": [ "stateCode" ] } ] }, "dataType": { "dataTypeReference": "listLookupCorrelated", "appliedTraits": [ { "traitReference": "does.haveDefault", "arguments": [ { "entityReference": { "explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}", "entityShape": "listLookupCorrelatedValues", "constantValues": [ [ "en", "Active", "1", "0", "0" ], [ "en", "Inactive", "2", "1", "1" ] ] } } ] } ] }, "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Status Reason" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Reason for the status of the transaction currency." ] ] } } ] } ], "isNullable": true, "sourceName": "statuscode", "sourceOrdering": 1, "displayName": "Status Reason", "description": "Reason for the status of the transaction currency.", "resolutionGuidance": { "addSupportingAttribute": { "explanation": "This attribute 'statusCode_display' is added to the 'Currency' entity to provide the localized display text for the value of the listLookup attribute 'statusCode'", "name": "statusCode_display", "purpose": "hasA", "dataType": "localizedDisplayText", "isReadOnly": true } } }, { "name": "modifiedOn", "purpose": "modifiedOn", "dataType": "dateTime", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Modified On" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Date and time when the transaction currency was last modified." ] ] } } ] } ], "isNullable": true, "sourceName": "modifiedon", "sourceOrdering": 2, "displayName": "Modified On", "description": "Date and time when the transaction currency was last modified." }, { "name": "stateCode", "purpose": "representsStateWith", "dataType": { "dataTypeReference": "listLookup", "appliedTraits": [ { "traitReference": "does.haveDefault", "arguments": [ { "entityReference": { "explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}", "entityShape": "listLookupValues", "constantValues": [ [ "en", "Active", "0", "0" ], [ "en", "Inactive", "1", "1" ] ] } } ] } ] }, "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Status" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Status of the transaction currency." ] ] } } ] } ], "sourceName": "statecode", "sourceOrdering": 3, "displayName": "Status", "description": "Status of the transaction currency.", "resolutionGuidance": { "addSupportingAttribute": { "explanation": "This attribute 'stateCode_display' is added to the 'Currency' entity to provide the localized display text for the value of the listLookup attribute 'stateCode'", "name": "stateCode_display", "purpose": "hasA", "dataType": "localizedDisplayText", "isReadOnly": true } } }, { "name": "versionNumber", "purpose": "hasA", "dataType": "bigInteger", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Version Number" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Version number of the transaction currency." ] ] } } ] } ], "isNullable": true, "sourceName": "versionnumber", "sourceOrdering": 4, "displayName": "Version Number", "description": "Version number of the transaction currency." }, { "entity": { "entityReference": "User", "appliedTraits": [ { "traitReference": "is.identifiedBy", "arguments": [ "User/(resolvedAttributes)/systemUserId" ] } ] }, "name": "User_modifiedBy", "resolutionGuidance": { "renameFormat": "{m}", "entityByReference": { "allowReference": true, "foreignKeyAttribute": { "name": "modifiedBy", "purpose": "hasA", "dataType": "entityId", "appliedTraits": [ { "traitReference": "is.CDS.lookup", "arguments": [ { "name": "style", "value": "single" } ] }, { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Modified By" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the user who last modified the transaction currency." ] ] } } ] }, "is.linkedEntity.identifier" ], "isNullable": true, "sourceName": "modifiedby", "sourceOrdering": 5, "displayName": "Modified By", "description": "Unique identifier of the user who last modified the transaction currency." } } } }, { "name": "importSequenceNumber", "purpose": "hasA", "dataType": "integer", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Import Sequence Number" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the data import or data migration that created this record." ] ] } } ] } ], "isNullable": true, "sourceName": "importsequencenumber", "sourceOrdering": 6, "displayName": "Import Sequence Number", "description": "Unique identifier of the data import or data migration that created this record.", "maximumValue": "2147483647", "minimumValue": "-2147483648" }, { "name": "overriddenCreatedOn", "purpose": "createdOn", "dataType": "dateTime", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Record Created On" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Date and time that the record was migrated." ] ] } } ] } ], "isNullable": true, "sourceName": "overriddencreatedon", "sourceOrdering": 7, "displayName": "Record Created On", "description": "Date and time that the record was migrated." }, { "name": "createdOn", "purpose": "createdOn", "dataType": "dateTime", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Created On" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Date and time when the transaction currency was created." ] ] } } ] } ], "isNullable": true, "sourceName": "createdon", "sourceOrdering": 8, "displayName": "Created On", "description": "Date and time when the transaction currency was created." }, { "name": "transactionCurrencyId", "purpose": "identifiedBy", "dataType": "entityId", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Transaction Currency" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the transaction currency." ] ] } } ] } ], "sourceName": "transactioncurrencyid", "sourceOrdering": 9, "displayName": "Transaction Currency", "description": "Unique identifier of the transaction currency." }, { "name": "exchangeRate", "purpose": "hasA", "dataType": "decimal", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Exchange Rate" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Exchange rate between the transaction currency and the base currency." ] ] } } ] } ], "sourceName": "exchangerate", "sourceOrdering": 10, "displayName": "Exchange Rate", "description": "Exchange rate between the transaction currency and the base currency.", "maximumValue": "100000000000", "minimumValue": "1E-10" }, { "name": "currencySymbol", "purpose": "hasA", "dataType": "string", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Currency Symbol" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Symbol for the transaction currency." ] ] } } ] } ], "sourceName": "currencysymbol", "sourceOrdering": 12, "displayName": "Currency Symbol", "description": "Symbol for the transaction currency.", "maximumLength": 10 }, { "name": "currencyName", "purpose": "hasA", "dataType": "name", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Currency Name" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Name of the transaction currency." ] ] } } ] } ], "sourceName": "currencyname", "sourceOrdering": 14, "displayName": "Currency Name", "description": "Name of the transaction currency.", "maximumLength": 100 }, { "entity": { "entityReference": "User", "appliedTraits": [ { "traitReference": "is.identifiedBy", "arguments": [ "User/(resolvedAttributes)/systemUserId" ] } ] }, "name": "User_createdBy", "resolutionGuidance": { "renameFormat": "{m}", "entityByReference": { "allowReference": true, "foreignKeyAttribute": { "name": "createdBy", "purpose": "hasA", "dataType": "entityId", "appliedTraits": [ { "traitReference": "is.CDS.lookup", "arguments": [ { "name": "style", "value": "single" } ] }, { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Created By" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the user who created the transaction currency." ] ] } } ] }, "is.linkedEntity.identifier" ], "isNullable": true, "sourceName": "createdby", "sourceOrdering": 15, "displayName": "Created By", "description": "Unique identifier of the user who created the transaction currency." } } } }, { "name": "ISOCurrencyCode", "purpose": "hasA", "dataType": "string", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Currency Code" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "ISO currency code for the transaction currency." ] ] } } ] } ], "sourceName": "isocurrencycode", "sourceOrdering": 16, "displayName": "Currency Code", "description": "ISO currency code for the transaction currency.", "maximumLength": 5 }, { "entity": { "entityReference": "Organization", "appliedTraits": [ { "traitReference": "is.identifiedBy", "arguments": [ "Organization/(resolvedAttributes)/organizationId" ] } ] }, "name": "organization", "resolutionGuidance": { "entityByReference": { "allowReference": true, "foreignKeyAttribute": { "name": "id", "purpose": "hasA", "dataType": "entityId", "appliedTraits": [ { "traitReference": "is.CDS.lookup", "arguments": [ { "name": "style", "value": "single" } ] }, { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Organization" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the organization associated with the transaction currency." ] ] } } ] }, "is.linkedEntity.identifier" ], "sourceName": "organizationid", "sourceOrdering": 17, "displayName": "Organization", "description": "Unique identifier of the organization associated with the transaction currency." } } } }, { "name": "currencyPrecision", "purpose": "hasA", "dataType": "integer", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "systemrequired" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Currency Precision" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Number of decimal places that can be used for currency." ] ] } } ] } ], "sourceName": "currencyprecision", "sourceOrdering": 26, "displayName": "Currency Precision", "description": "Number of decimal places that can be used for currency.", "maximumValue": "4", "minimumValue": "0" }, { "entity": { "entityReference": "User", "appliedTraits": [ { "traitReference": "is.identifiedBy", "arguments": [ "User/(resolvedAttributes)/systemUserId" ] } ] }, "name": "User_createdOnBehalfBy", "resolutionGuidance": { "renameFormat": "{m}", "entityByReference": { "allowReference": true, "foreignKeyAttribute": { "name": "createdOnBehalfBy", "purpose": "hasA", "dataType": "entityId", "appliedTraits": [ { "traitReference": "is.CDS.lookup", "arguments": [ { "name": "style", "value": "single" } ] }, { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Created By (Delegate)" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the delegate user who created the transactioncurrency." ] ] } } ] }, "is.linkedEntity.identifier" ], "isNullable": true, "sourceName": "createdonbehalfby", "sourceOrdering": 27, "displayName": "Created By (Delegate)", "description": "Unique identifier of the delegate user who created the transactioncurrency." } } } }, { "entity": { "entityReference": "User", "appliedTraits": [ { "traitReference": "is.identifiedBy", "arguments": [ "User/(resolvedAttributes)/systemUserId" ] } ] }, "name": "User_modifiedOnBehalfBy", "resolutionGuidance": { "renameFormat": "{m}", "entityByReference": { "allowReference": true, "foreignKeyAttribute": { "name": "modifiedOnBehalfBy", "purpose": "hasA", "dataType": "entityId", "appliedTraits": [ { "traitReference": "is.CDS.lookup", "arguments": [ { "name": "style", "value": "single" } ] }, { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Modified By (Delegate)" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Unique identifier of the delegate user who last modified the transactioncurrency." ] ] } } ] }, "is.linkedEntity.identifier" ], "isNullable": true, "sourceName": "modifiedonbehalfby", "sourceOrdering": 31, "displayName": "Modified By (Delegate)", "description": "Unique identifier of the delegate user who last modified the transactioncurrency." } } } }, { "name": "entityImageId", "purpose": "hasA", "dataType": "guid", "appliedTraits": [ { "traitReference": "is.requiredAtLevel", "arguments": [ { "name": "level", "value": "none" } ] }, { "traitReference": "is.localized.displayedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "Entity Image Id" ] ] } } ] }, { "traitReference": "is.localized.describedAs", "arguments": [ { "entityReference": { "entityShape": "localizedTable", "constantValues": [ [ "en", "For internal use only." ] ] } } ] } ], "isNullable": true, "sourceName": "entityimageid", "sourceOrdering": 35, "displayName": "Entity Image Id", "description": "For internal use only." } ], "exhibitsTraits": [ { "traitReference": "is.CDM.attributeGroup", "arguments": [ { "entityReference": { "entityShape": "attributeGroupSet", "constantValues": [ [ "/core/applicationCommon/Currency.cdm.json/Currency/hasAttributes/attributesAddedAtThisScope" ] ] } } ] } ] } } ], "sourceName": "TransactionCurrency", "displayName": "Currency", "description": "Currency in which a financial transaction is carried out." } ] }