
eedm.buyers.v10.0.buyers.json Maven / Gradle / Ivy
{
"title" : "Buyers",
"description" : "Purchasing agents for an institution.",
"type" : "object",
"properties" : {
"metadata" : {
"$ref" : "resource:/eedm/metadata.json"
},
"id" : {
"title" : "ID",
"description" : "The global identifier of the buyer.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
},
"code" : {
"title" : "Code",
"description" : "A code that may be used to identify the buyer.",
"type" : "string"
},
"buyer" : {
"title" : "Buyer",
"description" : "The name or detail information of the buyer.",
"oneOf" : [ {
"title" : "name",
"description" : "The name of the buyer.",
"type" : "object",
"properties" : {
"name" : {
"title" : "Name",
"description" : "The name of the buyer.",
"type" : "string",
"minLength" : 1
}
},
"additionalProperties" : false,
"required" : [ "name" ]
}, {
"title" : "person",
"description" : "The individual who is the buyer.",
"type" : "object",
"properties" : {
"person" : {
"title" : "Person",
"description" : "The individual who is the buyer.",
"type" : "object",
"properties" : {
"id" : {
"title" : "ID",
"description" : "The global identifier for the Person.",
"type" : "string",
"format" : "guid",
"pattern" : "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
}
},
"links" : [ {
"rel" : "self",
"href" : "/persons/{id}",
"targetSchema" : {
"$ref" : "persons.json#"
}
} ],
"additionalProperties" : false,
"required" : [ "id" ]
}
},
"additionalProperties" : false,
"required" : [ "person" ]
} ]
},
"startOn" : {
"title" : "Start On",
"description" : "The earliest date when the buyer is active.",
"oneOf" : [ {
"type" : "string",
"format" : "date",
"pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])$"
}, {
"type" : "string",
"maxLength" : 0
} ]
},
"endOn" : {
"title" : "End On",
"description" : "The last date when the buyer was active.",
"oneOf" : [ {
"type" : "string",
"format" : "date",
"pattern" : "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])$"
}, {
"type" : "string",
"maxLength" : 0
} ]
},
"phone" : {
"title" : "Phone",
"description" : "The phone number of the buyer.",
"oneOf" : [ {
"type" : "object",
"properties" : {
"number" : {
"title" : "Number",
"description" : "The number assigned to the phone.",
"type" : "string",
"minLength" : 1
},
"extension" : {
"title" : "Extension",
"description" : "The extension used to connect to the phone when multiple phones share the same primary number.",
"type" : "string"
}
},
"additionalProperties" : false,
"required" : [ "number" ]
}, {
"type" : "object",
"maxProperties" : 0
} ]
},
"purchasingLimit" : {
"title" : "Purchasing Limit",
"description" : "The maximum amount of a purchase order to which a buyer may be assigned (i.e. LVPO - low value purchase order).",
"oneOf" : [ {
"type" : "object",
"format" : "currency",
"properties" : {
"value" : {
"title" : "Value",
"description" : "The monetary value",
"type" : "number"
},
"currency" : {
"title" : "Currency",
"description" : "The ISO 4217 currency code",
"enum" : [ "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEF", "VND", "VUV", "WST", "XAF", "XCD", "XOF", "XPF", "YER", "ZAR", "ZMW", "ZWL" ],
"type" : "string"
}
},
"additionalProperties" : false,
"required" : [ "value", "currency" ]
}, {
"type" : "object",
"maxProperties" : 0
} ]
},
"status" : {
"title" : "Status",
"description" : "An indication of the buyer's status.",
"oneOf" : [ {
"type" : "string",
"enum" : [ "active", "inactive" ]
}, {
"type" : "string",
"maxLength" : 0
} ]
}
},
"required" : [ "id", "buyer" ],
"additionalProperties" : false
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy