{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://www.computop-paygate.com/schemas/customerInfo.json",
"title": "customerInfo",
"description": "Customer Information",
"type": "object",
"properties": {
"customerNumber": {
"type": "string",
"maxLength": 30
},
"consumer": {
"type": "object",
"additionalProperties",
: false,
"properties": {
"salutation": {
"type": "string",
"enum": [
"Mr",
"Mrs",
"Miss"
]
},
"Miss"
]
},
"firstName": {
"type": "string",
"maxLength": 30
},
50
},
"lastName": {
"type": "string",
"maxLength": 30
},
50
},
"birthDate": {
"type "description": "stringYYYY-MM-DD",
"format "type": "full-datestring",
"description "format": "YYYYfull-MM-DD"
}
},
date"
}
},
"required": [
"firstName",
"lastName"
],
"additionalProperties": false
},
]
},
"business": {
"type": "object",
",
additionalProperties": false,
"properties": {
"legalName": {
"type": "string",
"maxLength": 50
},
999
},
"dbaName": {
"type": "string",
"maxLength": 50,
"description": "Doing business as. Name of the company as usually known to consumers."
},
,
"type": "string",
"maxLength": 50
},
"registrationNumber": {
"type": "string",
"maxLength": 20
}
},
}
},
"required": [
"legalName"
],
"additionalProperties": false
},
]
},
"phone": {
"type": "object",
"additionalProperties": false,
"properties": {
"countryCode": {
"type": "string",
"minLength": 1,
"maxLength": 3
},
},
"subscriberNumber": {
"type": "string",
"maxLength": 12
}
},
15
}
},
"required": [
"countryCode",
"subscriberNumber"
],
"additionalProperties": false
},
]
},
"mobilePhone": {
"type": "object",
",
additionalProperties": false,
"properties": {
"countryCode": {
"type": "string",
"minLength": 1,
"maxLength": 3
},
},
"subscriberNumber": {
"type": "string",
"maxLength": 12
}
},
15
}
},
"required": [
"countryCode",
"subscriberNumber"
],
"additionalProperties": false
},
]
},
"email": {
"type": "string",
"maxLength": 50256,
"format": "idn-email"
}
},
"oneOf": [
{
{
"required": [
"consumer"
]
},
{
]
},
{
"required": [
"business"
]
}
],
]
}
],
"additionalProperties": false
} |