-
Type: Story
-
Status: Closed (View Workflow)
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Sprint:2023.R2 Signal Int. Sprint 5
-
SCRUM Team:Globogym Purple Cobras
-
Story Points:2
-
Work Type Classification:Sustaining
Story
As an admin, I would like to expose an API Endpoint to return transfers for a store and given date range.
Description
the below method shall be used. (this is the method is used in Transfer History Page)
It may be a good idea to limit the past date ( 90 days )
The start and end date range should not be more than 90 days
public IEnumerable<TransferHeaderResponse> GetTransfersForEntityByCreateDate(Int64 entityId, DateTime startTime, DateTime endTime)
{
IEnumerable<TransferHeaderResponse> results;
using (_unitOfWorkManager.CreateUnitOfWork(UnitOfWorkCommit.Never))
{ var transfers = _transferRepository.GetTransfersForEntityByCreateDate(entityId, startTime, endTime); results = _mapper.Map<IEnumerable<TransferHeaderResponse>>(transfers); }return results;
}
AC
- Confirm that the API Endpoint takes a store number, startdate, and enddate parameters.
- Confirm that all the transfers are returned for the entity and given date range.
- Confirm that the API results to match with the Transfer History page for a given date range.
- Confirm if the Transfer has been successfully created, the API Endpoint will display TransferredBy, ReceivedBy, ReceiveDate, and CancelledBy in the API response if value is not NULL
- Confirm if it is an Open Transfer, only the TransferredBy is displayed in the API response
- Confirm if the Transfer has been received, the TransferredBy, ReceivedBy, ReceiveDate parameters are displayed in the API response
- Confirm if the Transfer has been fully declined, the TransferredBy and CancelledBy parameters are displayed in the API response
- Confirm if transfer has been partially declined, the Transfer is cloned to display the accepted items (TransferredBy, ReceivedBy, ReceiveDate)and the canceled items (TransferredBy, CancelledBy)
- Confirm if the Receive
- implements
-
CFAMX-22630 Signal Integration - Transfers
- Open
- is blocked by
-
CFAMX-24394 Signal - GET /api/transfer/gettransfersbetweendates Error Mapping Received
- Done
1.
|
Create Test Scripts | Done | Tristan Strong |
|
||||||||
2.
|
Review Test Scripts | Done | Unassigned |
|
||||||||
3.
|
Deploy | Done | Tristan Strong |
|
||||||||
4.
|
Execute Test Cases | Done | Tristan Strong |
|
||||||||
5.
|
Functional Review with QA | Done | Adrian Brink |
|
||||||||
6.
|
DIT | Done | Adrian Brink |
|
||||||||
7.
|
Design Review | Done | Adrian Brink |
|
||||||||
8.
|
Story Documentation | Done | Adrian Brink |
|
||||||||
9.
|
Implement Api endpoint | Done | Adrian Brink |
|
||||||||
10.
|
Dev Testing | Done | Adrian Brink |
|