mojaloop / project

Repo to track product development issues for the Mojaloop project.
Other
24 stars 15 forks source link

Settlement v3 - Create a settlement report #3367

Closed tselit closed 1 year ago

tselit commented 1 year ago

Goal:

As a hub administrator

I want to be able to specify a group of transfers by their characteristics, in order to view their contents

so that I can understand the state of settlement obligations in the scheme.

When creating a settlement report, the output that gets generated is defined in this related ticket: Settlement v3 - View a settlement report

Additional context

Acceptance Criteria: A hub administrator must be able to specify the following criteria, to indicate transfers that must be included in the settlement report:

Complexity: High > Due to the possible number of selection/filter criteria, and the ways in which they could impact one another. Uncertainty: Low > The acceptance criteria are clearly defined and understood.


Dependencies:

Tasks:

Done

Pull Requests:

Follow-up:

Accountability:

koekiebox commented 1 year ago

Example of Settlement batch allocation, lookup and matrix view. All required criteria met.

Transfer deterministically allocated in settlements to a batch:

image image

Settlement Batch allocated to settlement model:

image

Currency associated with the batch. The matrix itself could reference multiple currencies.

image

Test cases:

https://github.com/mojaloop/settlements-bc/blob/7c55c3cc4bc483e9145a5052afe85d2661709fb2/packages/domain-lib/test/unit/index.test.ts#L1015