mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 01:23:43 +03:00
4899f3e08f
closes #217
58 lines
926 B
JSON
58 lines
926 B
JSON
{
|
|
"Payment": {
|
|
"x-extendedDiscriminator": "type",
|
|
"type": "object",
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CashPayment": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Payment"
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"cash"
|
|
]
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"PayPalPayment": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/Payment"
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"paypal"
|
|
]
|
|
},
|
|
"userEmail": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|