Customer
by Valera Popov
1. Trip 1
1.1. Card token
1.2. Invoice 1
1.2.1. Tax
1.2.2. Item 1
1.2.2.1. Name
1.2.2.2. Price
1.2.3. Item 2
1.2.4. Item 3
1.2.5. Characteristics
1.2.5.1. +
1.2.5.2. –
1.2.6. Statuses (need to log each transition)
1.2.6.1. Success
1.2.6.2. In process
1.2.6.3. Not yet processed
1.2.6.4. Failed
1.2.6.5. Cancelled
1.2.7. Actions
1.2.7.1. Success (end state)
1.2.7.2. In process
1.2.7.3. Not yet processed
1.2.7.3.1. Pay
1.2.7.3.2. Pay with cash
1.2.7.3.3. Cancel
1.2.7.4. Failed
1.2.7.4.1. Process (retry)
1.2.7.4.2. Cancel
1.2.7.5. Cancelled (end state)