For All Intents And Purposes Part 4 - Timing Matters β°
π Hi there! The description you are currently reading is just 4th part of the problem set. It is highly recommended to read ALL THE 4 PARTS before coding as parts may build on top of each other π³
Last month, we received the new Payment Intent system you built π, and merchants have been LOVING how simple it makes accepting payments. Congratulations π!
However, numerous merchants have requested that we augment our refund functionality by letting merchants specify a refund timeout policy: the amount of time after a payment succeeds that refunds are permitted. For example, one merchant, LlmaCorp, only wants to accept refunds within 15 days of a payment succeeding. Being able to return a llama afte 15 days would be absurd after all.
Let's add this functionality to our system, which means we will need to change the format of our commands to handle timing πͺ.
Timestamps
Merchant Refund Timeout Limit
π <timestamp> INIT <merchant_id> <starting_balance> <refund_time_out_limit>
π·ΰΌΒ·ΛCredit to Rachelα₯«α‘.
1Example 1
Constraints
Limits and guarantees your solution can rely on.
π«Ά