Assignment
Problem Statement
As a user of UPI feature of One Banc Application, one must have the functionality of viewing the
transaction history of all transactions processed on the application as well as view the details of each
transaction by clicking on the tile of each such transaction
You need to create the following screen –
• Transaction History Screen – The transaction history screen lists all the transactions of a user
on UPI ecosystem done via OneBanc application. The list of transactions is populated like a chat
screen (bottom to top) with the most recent transaction appearing at the bottom. Transactions
should be grouped by the dates of transaction as displayed in the reference wireframe (Figure –
1) There could be the following transaction states and transaction types in the history screen –
Transaction Type Display Buttons Transaction Direction Alignment
Pay NA Sent Right
Pay NA Received Left
Collect Pay and Reject Received Left
Collect Cancel Sent Right
Wireframe
Following is the wireframe for reference for implementation of the screen –
© OneBanc Technologies Pvt. Ltd
Confidential - Do not duplicate or distribute without permission
Figure 1 – Transaction History Screen
API Structure
Following is the API structure for executing the above functionality –
Transaction History
URL https://dev.onebanc.ai/assignment.asmx/
Endpoint GetTransactionHistory
Method GET
© OneBanc Technologies Pvt. Ltd
Confidential - Do not duplicate or distribute without permission
Request
Parameter Name Type IsMandatory Description Sample Value
userId Int M ID of the user 1
recipientId Int M ID of the recipient 2
Response
Parameter Name Type IsMandatory Description Sample Value
userId Int M ID of the user 1
transactions JsonArray M Array of Transactions NA
transaction JsonObject M Transaction Object NA
transactionId Int M Transaction ID 1
transactionDate Date M Date of the transaction 20-Feb-2021
18:00
expiryDate Date M Expiry Date of the 21-Feb-2021
transaction 18:00
amount Float M Amount of Transaction 1000.0
description String O Description of the Rent
Transaction
status Enum M Status of the Transaction 1 – Pending
2 – Confirmed
3 – Expired
4 – Reject
5 – Cancel
type Enum M Transaction Type 1 – Pay
2 – Collect
direction Enum M Transaction Direction 1 – Sent
2 – Received
customerUpi JsonObject M UPI Object of Customer NA
customerVpayId Int M UPI ID of Customer 1
customerVpay String M UPI Address of Customer abc@okhdfc
partnerUpi JsonObject M UPI Object of Customer NA
partnerVpayId Int M UPI ID of Customer 2
partnerVpay String M UPI Address of Customer def@ybl
© OneBanc Technologies Pvt. Ltd
Confidential - Do not duplicate or distribute without permission