It looks like the intended workflow is for the client to receive the object you're getting now, use that to pop up a modal that offers to charge the amount described by {payload=>{charge=>$total}}, or not, and then submit the call again with a value for "apply_fines" of either "noapply" (don't charge the total amount) or a truthy value (do apply them).
What I'm unsure of based on inspecting only handle_mark_damaged is whether there is an YAOUS that allows bypassing the interstitial prompt and simply submitting a truthy "apply_fines" argument.
Thanks, Kyle.
It looks like the intended workflow is for the client to receive the object you're getting now, use that to pop up a modal that offers to charge the amount described by {payload= >{charge= >$total} }, or not, and then submit the call again with a value for "apply_fines" of either "noapply" (don't charge the total amount) or a truthy value (do apply them).
What I'm unsure of based on inspecting only handle_mark_damaged is whether there is an YAOUS that allows bypassing the interstitial prompt and simply submitting a truthy "apply_fines" argument.
Does that all make sense?