Reserve Inventory
by Jared Huber
1. Success
1.1. Auth Payment
1.1.1. Success
1.1.1.1. Commit Reservation
1.1.1.1.1. Success
1.1.1.1.2. Failure 2267
1.1.2. Failure
1.1.2.1. System error
1.1.2.1.1. Renew Reservation
1.1.2.1.2. Retry Payment auth - N times? - 2278
1.1.2.2. Insufficient Funds / Declined 2279
1.1.2.2.1. Expire Inventory Reservation
1.1.2.2.2. Redeem waitline token with status false
1.1.2.3. Can't reach payment
1.1.2.3.1. back-off strategy??
2. Failure
2.1. no inventory
2.1.1. bubble 'no inventory' back to waitline service
2.2. unable to reach Inventory service
2.2.1. return failure code to waitline
2.2.2. back-off strategy??
2.3. 500 error
2.3.1. return to waitline
2.4. reservation not found
2.4.1. 2268