2022-08-17 18:20:52 -04:00
|
|
|
{
|
2022-10-03 12:42:47 -04:00
|
|
|
"definitions": {
|
|
|
|
"currencyEnum": {
|
|
|
|
"type": "string",
|
|
|
|
"anyOf": [{
|
|
|
|
"type": "string",
|
|
|
|
"title": "Australian Dollar (AUD)",
|
|
|
|
"enum": [
|
|
|
|
"AUD"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"title": "Canadian Dollar (CAD)",
|
|
|
|
"enum": [
|
|
|
|
"CAD"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"title": "Swiss Franc (CHF)",
|
|
|
|
"enum": [
|
|
|
|
"CHF"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"title": "Euro (EUR)",
|
|
|
|
"enum": [
|
|
|
|
"EUR"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"title": "Pound sterling (GBP)",
|
|
|
|
"enum": [
|
|
|
|
"GBP"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"title": "Singapore Dollar (SGD)",
|
|
|
|
"enum": [
|
|
|
|
"SGD"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"title": "US Dollar (USD)",
|
|
|
|
"enum": [
|
|
|
|
"USD"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2022-09-07 21:26:22 -04:00
|
|
|
"title": "Submit Invoice",
|
|
|
|
"description": "Information for submitting an invoice.",
|
2022-08-17 18:20:52 -04:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2022-10-03 12:42:47 -04:00
|
|
|
"invoice.contributorName",
|
|
|
|
"invoice.contributorId",
|
|
|
|
"invoice.invoiceId",
|
|
|
|
"invoice.invoiceAmount",
|
|
|
|
"invoice.invoiceCurrency",
|
|
|
|
"invoice.dueDate"
|
2022-08-17 18:20:52 -04:00
|
|
|
],
|
|
|
|
"properties": {
|
2022-10-03 12:42:47 -04:00
|
|
|
"invoice.contributorName": {
|
2022-08-17 18:20:52 -04:00
|
|
|
"type": "string",
|
2022-09-07 21:26:22 -04:00
|
|
|
"title": "Contributor Name"
|
2022-08-17 18:20:52 -04:00
|
|
|
},
|
2022-10-03 12:42:47 -04:00
|
|
|
"invoice.contributorId": {
|
2022-09-07 21:26:22 -04:00
|
|
|
"type": "integer",
|
|
|
|
"title": "Contributor Id",
|
2022-10-03 12:42:47 -04:00
|
|
|
"minLength": 2
|
2022-09-07 21:26:22 -04:00
|
|
|
},
|
2022-10-03 12:42:47 -04:00
|
|
|
"invoice.invoiceId": {
|
2022-09-07 21:26:22 -04:00
|
|
|
"type": "integer",
|
|
|
|
"title": "Invoice Id",
|
|
|
|
"minLength": 4
|
|
|
|
},
|
2022-10-03 12:42:47 -04:00
|
|
|
"invoice.invoiceAmount": {
|
2022-09-07 21:26:22 -04:00
|
|
|
"type": "number",
|
|
|
|
"title": "Invoice Amount"
|
2022-08-17 18:20:52 -04:00
|
|
|
},
|
2022-10-03 12:42:47 -04:00
|
|
|
"invoice.invoiceCurrency": {
|
|
|
|
"$ref": "#/definitions/currencyEnum",
|
|
|
|
"title": "Select Currency"
|
|
|
|
},
|
|
|
|
"invoice.dueDate": {
|
2022-08-17 18:20:52 -04:00
|
|
|
"type": "string",
|
2022-09-07 21:26:22 -04:00
|
|
|
"title": "Due Date"
|
2022-08-17 18:20:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|