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

