obtasks/archive/bridge-885/stuff
2019-04-29 14:49:56 +01:00

112 lines
4.7 KiB
Plaintext

"allOf": [
{"$ref": "#/definitions/atp-list-base-item"},
{
"type": "object",
"properties": {
"payeeInstrument": {
"$ref": "#/definitions/payee-instrument-extended"
},
"payerDetails": {
"type": "object",
"properties": {
"payer": {"$ref": "#/definitions/payer"},
"payerInstrument": {
"$ref": "#/definitions/payer-instrument-extended"
}
}
},
"amount": { "$ref": "#/definitions/amount-value-currency-params" },
"transactionDetails": { "$ref": "#/definitions/transaction-details-params" },
"resultDetails": {
"type": "object",
"properties": {
"errorDetails" : {
"$ref": "#/definitions/ErrorDetails"
},
"processorResponse": {
"$ref" : "#/definitions/processor-response"
}
}
}
},
"required": ["PayeeInstrument"]
}
]
}
"rtp-get-item": {
"type" : "object",
"allOf": [
{"$ref": "#/definitions/baseRTP"},
{
"type": "object",
"properties": {
"lastUpdate": {"$ref": "#/definitions/iso-date"},
"lastVersion": {"$ref": "#/definitions/rtp-last-version"},
"payeeInstrument": {"$ref": "#/definitions/instrument-id-and-description"},
"status" : {"$ref": "#/definitions/rtpStatus"},
"requestToPayID": {"$ref": "#/definitions/object-id"}
},
"required": ["lastUpdate", "lastVersion", "payeeInstrument", "status", "requestToPayID"]
}
],
"required": ["amount", "counterparty", "transactionDetails"]
},
"atpList": {
"type": "object",
"description": "Successful list",
"properties" : {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/atp-get-item"
}
}
}
}
,
"atp-get-item": {
"type" : "object",
"allOf": [
{"$ref": "#/definitions/atp-list-base-item"},
{
"type": "object",
"properties": {
"payeeInstrument": {
"$ref": "#/definitions/payee-instrument-extended"
},
"payerDetails": {
"type": "object",
"properties": {
"payer": {"$ref": "#/definitions/payer"},
"payerInstrument": {
"$ref": "#/definitions/payer-instrument-extended"
}
}
},
"amount": { "$ref": "#/definitions/amount-value-currency-params" },
"transactionDetails": { "$ref": "#/definitions/transaction-details-params" },
"resultDetails": {
"type": "object",
"properties": {
"errorDetails" : {
"$ref": "#/definitions/ErrorDetails"
},
"processorResponse": {
"$ref" : "#/definitions/processor-response"
}
}
}
},
"required": ["PayeeInstrument"]
}
]
}
}