mojaloop / project

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

Settlement Model Creation Functionality #3839

Open zinzinnyohlaing-tw opened 3 months ago

zinzinnyohlaing-tw commented 3 months ago

As a hub operator, I want to be able to create a settlement model so that transactions can be processed and stored within their respective selected settlement models.

Acceptance Criteria:

  1. Provide the Settlement Model Name

    • The hub operator is required to enter a Settlement Model Name in the designated textbox.
  2. Time Interval for creating batches

    • The hub operator must specify the time interval for creating settlement batches.
    • The settlement batches must be automatically created according to the configured time interval. The transactions should be stored in batches, and no new transactions should be added after the specified interval has elapsed. If new transactions occur, new batches should be created accordingly.
    • The state of the settlement batches should remain displayed as "OPEN" in the Settlement Batches.
  3. Settlement Batches Configurations

    Option to Enable Automatic Batch Closure

    • If the Close Batch Automatically option is enabled, the hub operator must be able to configure the settlement time in UTC.
    • Upon reaching the configured UTC time for settlement, all created settlement batches should transition to the "CLOSED" state in the Settlement Batches.
    • After the settlement batches are updated to “CLOSED”, a new batch should be automatically created with OPEN state if new transactions occur in the Settlement Batches.
    • When the settlement time and interval for creating settlement batches are configured, the hub operators can initiate the settlement process more efficiently. They can select the "CLOSED" batch state at the settlement batches and proceed to create the matrix. Additionally, the hub operators do not need to consider batches beyond the configured settlement time.
  4. Add Fields to the Settlement Model

    • The hub operators should be able to select from a dropdown list containing all available fields names of Currency, Transaction Type, and Hub ID.
    • The values dropdown should allow for selecting single or multiple options.
    • The created field names and their corresponding values should be visible in a list format.
    • As part of the final settlement model, the new settlement model name, created field names and values, and settlement batch configurations should be displayed in the preview section of the screen.
  5. On the Settlement Model list screen, the hub operators should be able to view the list of created settlement models.

  6. Each created settlement model should have options for Preview, Edit, or Disable/Enable.

  7. Selecting the Preview option should allow the hub operator to view the details of the created settlement model.

  8. Choosing Edit should redirect the hub operator to the created Settlement Model screen to modify the settlement values.

  9. If "Disable/Enable" is selected, the hub operator should be able to enable or disable the corresponding settlement model by clicking the associated button.

  10. If a settlement model is enabled, it should be displayed in the Model dropdown at the settlement Batches.

  11. If a settlement model is disabled, it should not be displayed in the Model dropdown at the settlement Batches.

  12. [Figma Prototype Design File]

smthitsaworks commented 2 months ago

need to discuss with Zin and Ei for the requirement