diff --git a/README.md b/README.md index 59a3efc..bc58d76 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -**Hello world!!!** +Series M v1 block diff --git a/block.py b/block.py index 3b227f9..a759706 100644 --- a/block.py +++ b/block.py @@ -1,21 +1,4 @@ -@flowx_block -def example_function(request: dict) -> dict: +def __main__(application_id: str,tu_credit_report: str) -> dict: + hd_score_m1 = 1184 - # Processing logic here... - - return { - "meta_info": [ - { - "name": "created_date", - "type": "string", - "value": "2024-11-05" - } - ], - "fields": [ - { - "name": "", - "type": "", - "value": "" - } - ] - } + return {"application_id": application_id,"hd_score_m1": hd_score_m1} diff --git a/request_schema.json b/request_schema.json index 0967ef4..340f1e7 100644 --- a/request_schema.json +++ b/request_schema.json @@ -1 +1,15 @@ -{} +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "application_id": { + "type": ["string", "null"], + "description": "Unique identifier for the application." + }, + "tu_credit_report": { + "type": ["string", "null"], + "description": "User Credit report" + } + }, + "required": [] +} diff --git a/requirements.txt b/requirements.txt index 0967ef4..4c137c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -{} +jmespath == 1.0.1 +regex == 2023.12.25 diff --git a/response_schema.json b/response_schema.json index 0967ef4..e39eea7 100644 --- a/response_schema.json +++ b/response_schema.json @@ -1 +1,14 @@ -{} +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "application_id": { + "type": ["string", "null"], + "description": "Application Key" + }, + "hd_score_m1": { + "type": ["number", "null"], + "description": "HD Fraud Score M1" + } + } +}