{
    "walletOrder": {
        "properties": ["orderNumber","trackingNumber","senderDomain"],
        "relationship_types": {
            "hasDate" : "dateRelationshipType",
            "hasMerchant": "entityOrganizationRelationshipType",
            "hasPayment": "orderPaymentRelationshipType",
            "hasTransaction": "orderTransactionRelationshipType",
            "identifier": "identifierRelationshipType"
       },
        "collections": [ "hasTransaction", "identifier"],
        "topLevelEntity": "true"
    },
    "identifierRelationshipType" : {
        "properties" : ["identifierId", "identifierType"]
    },
    "organization": {
       "properties": ["name", "teamIdentifier","url"]
    },
    "payment":{
        "properties": ["name","paymentMethodIsApplePay"],
        "relationship_types": {
            "totalAmount" : "quantityRelationshipType"
        }
    },
    "transaction":{
        "properties":["identifierId","description","accountInstitution","accountLastFourDigits","transactionSource","accountType","transactionStatus","transactionType"],
        "relationship_types": {
            "amount" : "quantityRelationshipType",
            "hasDate" : "dateRelationshipType"
        }
    },
    "orderTransactionRelationshipType": {
        "entities": {
            "transactionIdentifier": "transaction"
        }
    },
    "orderPaymentRelationshipType": {
        "entities": {
            "paymentIdentifier": "payment"
        }
    },
    "quantityRelationshipType": {
        "properties": ["quantity","unit"]
    },
    "dateRelationshipType": {
        "properties": ["identifierType","startTime", "imputedStartTime", "endTime", "imputedEndTime", "occurrenceDate", "imputedOccurrenceDate"]
    },
    "entityOrganizationRelationshipType": {
        "entities": {
            "organizationIdentifier": "organization"
        }
    }
}
