Service - Purchase Line Item Inventory

From Izara Wiki
Revision as of 13:40, 19 January 2026 by Sven the Barbarian (talk | contribs)
Jump to navigation Jump to search

Overview

Handler service for inventory purchase line items.

Repository

...

Schemas

ObjectSchemas

purchaseLineItemInventory

{
  "objectType": "purchaseLineItemInventory",
  "extendObjType": {
    "serviceTag": "PurchaseLineItemManager",
    "objectType": "purchaseLineItem"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
    "dynamo": {
      "storageType": "dynamoDB",
      "tableName": "purchaseLineItemInventory",
    }    
  },
  "addOnDataStructure": [],
  "fieldNames": {
    // from purchaseLineItem objType
  },
  "generatedBy": "userGenerated"
}

Object Relationships

isInventory

{
	isInventory: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "PurchaseLineItemInventory",
						objectType: "purchaseLineItemInventory"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "InventoryManager",
						objectType: "inventory"
					},
					linkType: "one"
				}
			}
		]
	}
}

includesInventoryUnit

{
	includesInventoryUnit: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "PurchaseLineItemInventory",
						objectType: "purchaseLineItemInventory"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "InventoryManager",
						objectType: "inventoryUnit"
					},
					linkType: "one"
				}
			}
		]
	}
}

Working documents

Purchase Line Item Inventory