Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-23891

(2023R2) Signal Integration -> Transfers -> Expose API ( Get Transfers for a store with a date range)

    Details

    • 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

      Description

      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

      1. Confirm that the API Endpoint takes a store number, startdate, and enddate parameters.
      2. Confirm that all the transfers are returned for the entity and given date range. 
      3. Confirm that the API results to match with the Transfer History page for a given date range.
      4. 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
      5. Confirm if it is an Open Transfer, only the TransferredBy is displayed in the API response 
      6. Confirm if the Transfer has been received, the TransferredBy, ReceivedBy, ReceiveDate parameters are displayed in the API response 
      7. Confirm if the Transfer has been fully declined, the TransferredBy and CancelledBy parameters are displayed in the API response 
      8. 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)
      9. Confirm if the Receive 

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                caner.saritac Caner Saritac
                Reporter:
                caner.saritac Caner Saritac
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 20h Original Estimate - 20h
                  20h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 21h 31m
                  21h 31m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.