in src/main/scala/com/gu/invoicing/refundErroneousPayment/Lambda.scala [44:58]
def handleRequest(input: APIGatewayProxyRequestEvent, context: Context): APIGatewayProxyResponseEvent = {
{
input.getBody
.pipe { read[RefundInput](_) }
.tap { info[RefundInput] }
.pipe { program }
.tap { info[RefundOutput] }
.pipe { refundOut =>
val response = new APIGatewayProxyResponseEvent
response.setStatusCode(200)
response.setBody(write(refundOut))
response
}
}
}