Service - Vendor Payment

From Izara Wiki
Jump to navigation Jump to search

Overview

A single vendor payment.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

vendorPayment

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

RelationshipSchemas

paymentToVendor

{
	paymentToVendor: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "VendorPayment",
						objectType: "vendorPayment"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "Vendor",
						objectType: "vendor"
					},
					linkType: "one"
				}
			},
		]
	}
}

Working documents

Vendor Payment