Service - Business Account

From Izara Wiki
Revision as of 14:35, 23 January 2026 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Business Accounts such as bank accounts. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas == businessAccount == <syntaxhighlight lang="JavaScript"> { objectType: "businessAccount", canDelete: false, belongTo: { serviceTag: "Business", objectType: "business" }, addOnDataStructure: [], storageResources: { myGraph: { storageType: "graph", graphServerTag: "GraphHandler" } }, fieldNames: {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Business Accounts such as bank accounts.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

businessAccount

{
	objectType: "businessAccount",
	canDelete: false,
	belongTo: {
		serviceTag: "Business",
		objectType: "business"
	},
	addOnDataStructure: [],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		}
    },
    fieldNames: {
		businessAccountId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "businessAccountId"
		}
    ]
}

accountTransfer

{
	objectType: "accountTransfer",
	canDelete: false,
	belongTo: {
		serviceTag: "Business",
		objectType: "business"
	},
	addOnDataStructure: [],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		}
    },
    fieldNames: {
		accountTransferId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
		amount: {
			type: "numeric",
			storageResourceTags: ['myGraph']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "accountTransferId"
		}
    ]
}

RelationshipSchemas

hasPayment

{
	hasPayment: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "BusinessAccount",
						objectType: "businessAccount"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "CustomerPayment",
						objectType: "customerPayment"
					},
					linkType: "many"
				}
			},
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "BusinessAccount",
						objectType: "businessAccount"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "VendorPayment",
						objectType: "vendorPayment"
					},
					linkType: "many"
				}
			}
		]
	}
}

hasTransferIn

{
	hasTransferIn: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "BusinessAccount",
						objectType: "businessAccount"
					},
					linkType: "one",
				},
				to: {
					objType: {
						serviceTag: "BusinessAccount",
						objectType: "accountTransfer"
					},
					linkType: "many"
				}
			},
		]
	}
}

hasTransferOut

{
	hasTransferOut: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "BusinessAccount",
						objectType: "businessAccount"
					},
					linkType: "one",
				},
				to: {
					objType: {
						serviceTag: "BusinessAccount",
						objectType: "accountTransfer"
					},
					linkType: "many"
				}
			},
		]
	}
}

Working documents

Business Account