Skip to content

Lunchtime stab at adding temporary halts on payments#6

Draft
the-frey wants to merge 1 commit into
ben2x4:mainfrom
envoylabs:main
Draft

Lunchtime stab at adding temporary halts on payments#6
the-frey wants to merge 1 commit into
ben2x4:mainfrom
envoylabs:main

Conversation

@the-frey
Copy link
Copy Markdown

@the-frey the-frey commented Jan 4, 2022

Had a spare half hour. Initially went the route of removing payments but that approach would result in dodgy behaviour (I think!) when the following scenario occurs:

  • Halt a payment because of non delivery before payment date
  • Resolve dispute before payment date
  • Wish to reinstate payment before payment date

Therefore the non-destructive approach with filtering seemed to make more sense.

Hence putting it in a separate piece of state.

TODO:

  • Needs some unit tests
  • Versions are out-of-date so need to bump & fix

Relates to #5

@vernonjohnson
Copy link
Copy Markdown

I like this approach. Only question is whether or not the halting should be a bit more granular. You could halt individual payments, rather than all payments to a recipient. And if you wanted to halt all payments to a specific recipient, you can pass in multiple payment ids to do so, which gives you feature parity with this draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants