Pairing Exercise - Martin Cigorraga
Never
## Goal To extend the Authorizer exercise with a new business rule. #### Extension Create a new business rule: `first-transaction-amount-exceeded`. This validation consists in blocking the very first transaction if the transaction's amount surpasses 90% of the available limit. The new violation will happen if both of the following conditions are true: 1. It's the very first account's transaction 2. Transaction's amount surpasses 90% of the `available-limit` #### Examples: For the following operations: ``` { "account": { "active-card": true, "available-limit": 100 } } { "transaction": { "merchant": "A", "amount": 91, "time": "2019-02-13T10:00:00.000Z" } } ``` The output should be: ``` { "violations": [], "account": { "available-limit": 100, "active-card": true } } { "violations": ["first-transaction-amount-exceeded"], "account": { "available-limit": 100, "active-card": true } }
Raw Text
-
Sex In Overdrive Maddy Black, Jennifer Mendez / Brazzers
18 min ago
-
Adult Telegram Channels
18 min ago
-
dsfdsfdsf sdf fdsdfs dfsffdsfds sdfffsd
19 min ago
-
ddfs fdsf sdfdsf sdfdfsdfsdsfdfs
46 min ago
-
Goth alternative hottie gets exactly what they need
49 min ago
-
gb fvfbvtgb
1 hour ago
-
sdfsdfdsfdssfd
1 hour ago
-
NEW🔥💯 UPDATED🔗 CP😈😏 FOLDERS 📁 500 VIDEOS
1 hour ago
-
Alex Coal Fucks With Stepmom Carmen Valentina In Threesome
1 hour ago
-
Adult Telegram Channels
1 hour ago