← 返回 doordash 的题目列表Calculate Dasher Payment from Activities
类型:online_judge
Given a list of OrderActivity containing activities like food pickup, successful delivery, and cancelled delivery for Dashers, calculate the payment to be made to the Dasher. Assume this is production code and consider data validation and downstream call. Design the OrderActivity data schema.
Example
Input
[OrderActivity('order1', 'pickup', '2023-08-01T10:00:00'), OrderActivity('order1', 'delivery_success', '2023-08-01T10:30:00')]