Org Web Adapter

pages/mmpy_255_allow_compliance_holds_to_be_created_via_api.org

ID
de19eb35-e3e7-44e5-8e87-fb6be93114ad

MMPY-255 Allow compliance holds to be created via API

- source :: https://multimediallc.atlassian.net/browse/MMPY-252

- epic :: MMPY-198 Compliance Holds, Fraud Holds, and Banned Payees

- tags :: Falcon Nest Project Story Falcon Nest Project

- status :: Status - Complete

- pull :: https://github.com/multimediallc/mm-pay-internal/pull/333

Description

In order to support an integration between payouts and the compliance tool, allow holds to be created via API.

Requirements

DONE Add tests for hold create via API

holdsapimmpy255workfeaturemultimediallc
ID
ff809ed0-3bf1-cba3-410e-05884e2ef3b4

DONE Rebase PR on main and clean up PR review comments

holdsapimmpy255mmpy198workfeaturemultimediallc
ID
00d7b907-9ffb-025f-32c0-edcd76b8847b

- Note taken on

Today's work is mostly making sure the application_user_id is used in the endpoint, not the application_user.id, which is different.

DONE Add creation of user if a valid ID is sent but no user found

holdsapimmpy255mmpy198workfeaturemultimediallc
ID
6d4abfb5-3ba6-bdf2-62ac-806073275065

TODO

DONE Clean up merge with main branch

holdsapimmpy255mmpy198workfeaturemultimediallcmerge
ID
38877a97-7027-ea38-feca-a18ec82718e3

TODO

DONE Address PR issues

holdsapimmpy255mmpy198workfeaturemultimediallc
ID
0a5dc4da-285c-05b2-17a0-bba2152eeb75

DONE Fix tests

holdsapimmpy255mmpy198workfeaturemultimediallc
ID
01c055e1-fc84-801a-7697-8dc96df06ce7

GIVEN

An admin scoped API request

WHEN

A compliance hold is GET is submitted for a specific user ID

THEN

Return the following:

- Created by - username

- Created at

- The user the hold is for - ID

- The description

- Removed by

Removed at

Any notes