{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/jesyko/143/1.0.0"}],"info":{"description":"Additional methods for ManaPay","version":"1.0.0","title":"Additional methods for ManaPay"},"tags":[{"name":"users","description":"Operations for external users of payment gate"}],"paths":{"/transactionList":{"get":{"tags":["users"],"summary":"get a list of transactions that meet the conditions","operationId":"transactionList","parameters":[{"in":"query","name":"userId","schema":{"type":"string"},"required":true,"description":"id of payer","example":"TestUser123"},{"in":"query","name":"sign","schema":{"type":"string"},"required":true,"description":"request confirmation signature","example":"a6482cd927fe791a3840e"},{"in":"query","name":"filter","schema":{"type":"string"},"required":true,"description":"substring that contains in supplier contract name","example":"Alex"},{"in":"query","name":"dateTimeFrom","schema":{"type":"string"},"required":false,"description":"lower bound of timestamp for transactions creations","example":"2023-03-03"},{"in":"query","name":"dateTimeTo","schema":{"type":"string"},"required":false,"description":"upper bound of timestamp for transactions creations","example":"2023-04-04"},{"in":"query","name":"amountFrom","schema":{"type":"integer"},"required":false,"description":"lower bound for total price of transaction in pennies","example":25000},{"in":"query","name":"amountTo","schema":{"type":"integer"},"required":false,"description":"upper bound for total price of transaction in pennies","example":30000},{"in":"query","name":"status","schema":{"type":"string","enum":["SUCCESS","FAILED","TIMEOUT"]},"required":false,"description":"transaction status","example":"SUCCESS"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transactionListResponse"}}}},"400":{"description":"Bad request. Invalid request data or missing some required parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"description":"Invalid request data"}}}},"405":{"description":"Method not allowed. Invalid request method","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"description":"Invalid request method"}}}},"500":{"description":"Internal server error. Error on service side","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"description":"Cannot marhsal response"}}}}}}},"/transaction":{"get":{"tags":["users"],"summary":"get detailed information about transaction","parameters":[{"in":"query","name":"userId","schema":{"type":"string"},"required":true,"description":"id of payer","example":"TestUser123"},{"in":"query","name":"sign","schema":{"type":"string"},"required":true,"description":"request confirmation signature","example":"a6482cd927fe791a3840e"},{"in":"query","name":"transactionId","schema":{"type":"integer"},"required":true,"description":"id of transaction","example":1234321}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/transactionResponse"}}}},"400":{"description":"Bad request. Invalid request data or missing some required parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"description":"Invalid request data"}}}},"405":{"description":"Method not allowed. Invalid request method","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"description":"Invalid request method"}}}},"500":{"description":"Internal server error. Error on service side","content":{"application/json":{"schema":{"$ref":"#/components/schemas/errorResponse"},"example":{"description":"Cannot encode TransactionHistoryResponse"}}}}}}}},"components":{"schemas":{"errorResponse":{"type":"object","required":["description"],"properties":{"description":{"type":"string","description":"descripttion of error","example":"Invalid request data"}}},"transactionListResponse":{"type":"object","required":["transactions"],"properties":{"transactions":{"type":"array","items":{"type":"object","required":["transactionId","status","transType","transDate","amount","commission","currency","supplierInfo","paymentMethod"],"properties":{"transactionId":{"type":"integer","description":"id of transaction","example":1232314},"status":{"type":"string","enum":["SUCCESS","FAILED","TIMEOUT"],"description":"transaction status","example":"SUCCESS"},"transType":{"type":"string","enum":["P","RF"],"description":"transaction type (refund or payment)","example":"P"},"transDate":{"type":"string","description":"transaction creation date","example":"2023-03-03 09:30:00.520000"},"amount":{"type":"integer","description":"transaction total price in pennies","example":150000},"commission":{"type":"integer","description":"transaction commision for total price in pennies","example":1000},"currency":{"type":"string","enum":["PENNIES"],"description":"currency of total price","example":"PENNIES"},"supplierInfo":{"type":"object","required":["logoLink","shortName"],"properties":{"logoLink":{"type":"string","description":"link to supplier logo image","example":"http://amazing-logo.png"},"shortName":{"type":"string","description":"supplier name at back office","example":"Ivan"}}},"paymentMethod":{"type":"string","description":"name of acquirer, that used for transaction","example":"PSBBank"}}}}}},"transactionResponse":{"type":"object","required":["transactionId","status","transType","transDate","amount","commission","currency","supplierInfo","paymentMethod","staff"],"properties":{"transactionId":{"type":"integer","description":"id of transaction","example":1234321},"status":{"type":"string","enum":["SUCCESS","FAILED","TIMEOUT"],"description":"transaction status","example":"SUCCESS"},"transType":{"type":"string","enum":["P","RF"],"description":"transaction type (refund or payment)","example":"P"},"transDate":{"type":"string","description":"transaction creation date","example":"2023-03-03 09:30:00.150300"},"amount":{"type":"integer","description":"transaction total price in pennies","example":20000},"commission":{"type":"integer","description":"transaction commision for total price in pennies","example":1000},"currency":{"type":"string","enum":["PENNIES"],"description":"currency of total price","example":"PENNIES"},"supplierInfo":{"type":"object","required":["shortName","fullName","inn","recipientAccount"],"properties":{"shortName":{"type":"string","description":"supplier name at back office","example":"Ivan"},"fullName":{"type":"string","description":"supplier contract name","example":"OOO Ivan group"},"inn":{"type":"string","description":"supplier inn","example":"123456789012"},"recipientAccount":{"type":"string","description":"supplier recipient account","example":"12345678"}}},"paymentMethod":{"type":"string","description":"name of acquirer, that used for transaction","example":"PSBBank"},"ofdChequeFormatter":{"type":"string","description":"formatted cheque fiscal sign","example":"ФП=124325429"},"staff":{"type":"string","description":"staff from transaction","example":"Milk 1l"}}}}}}