done with liencheck
This commit is contained in:
@@ -240,3 +240,19 @@ def penal_charge():
|
||||
}
|
||||
|
||||
return jsonify(response), 200
|
||||
|
||||
|
||||
@loan_bp.route("/lien-check", methods=["POST"])
|
||||
def lien_check():
|
||||
data = request.json
|
||||
api_url = f"{current_app.config['API_BASE_URL']}/LienCheck"
|
||||
|
||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||
# return jsonify(response.json()), response.status_code
|
||||
response = {
|
||||
"lienAmount": 20000,
|
||||
"resultCode": "00",
|
||||
"resultDescription": "Successful",
|
||||
}
|
||||
|
||||
return jsonify(response), 200
|
||||
|
||||
+22
@@ -430,3 +430,25 @@ paths:
|
||||
responses:
|
||||
200:
|
||||
description: A successful response
|
||||
/loans/lien-check:
|
||||
post:
|
||||
summary: Perform a lien check
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
transactionId:
|
||||
type: string
|
||||
example: "SMB1234567"
|
||||
customerId:
|
||||
type: string
|
||||
example: "123456"
|
||||
accountId:
|
||||
type: string
|
||||
example: "E9F77222920BAAB1C5ACF2253C6D6113"
|
||||
responses:
|
||||
200:
|
||||
description: A successful response
|
||||
|
||||
Reference in New Issue
Block a user