Open corymcdonald opened 4 years ago
capture request id, message, provider id, amount
This might be a good opportunity to create a more fully-fledged settlement service that uses a database to keep track of the payments and their status.
We could potentially use the Antifraud / BSG Redshift as the database since we already have the payout.payments table (which the payout report JSON file is derived from), and we could attach the status to those records, eliminating the trip to S3.
When we're planning on rewriting the settlement tools to track who gets paid out we should ensure that we know who specifically did not get paid and why.