Pairing session - Victor Vega
Never
## Goal To extend the Authorizer exercise with a new operation. #### Extension Create a new operation: `deny-list`. That operation will set the merchants whose the authorizer should deny transactions from. The account has no deny-list by default, and it can be changed anytime. The `deny-list` operation input is going to be: ```json {"deny-list": ["merchant-A", "merchant-B"]} ``` The output of that operation is going to be the current account state: ```json {"account": {"active-card": true, "available-limit": 100, "deny-list": ["merchant-A", "merchant-B"]}, "violations": []} ``` #### Examples: For the following operations: ``` { "account": { "active-card": true, "available-limit": 1000 } } { "transaction": { "merchant": "merchant-A", "amount": 20, "time": "2019-02-13T10:00:00.000Z" } } { "transaction": { "merchant": "merchant-B", "amount": 30, "time": "2019-02-13T11:00:00.000Z" } } {"deny-list": ["merchant-A", "merchant-B"]} { "transaction": { "merchant": "merchant-A", "amount": 20, "time": "2019-02-13T12:00:00.000Z" } } {"deny-list": ["merchant-A"]} { "transaction": { "merchant": "merchant-B", "amount": 30, "time": "2019-02-13T13:00:00.000Z" } } ``` The output should be: ``` { "violations": [], "account": { "deny-list": [], "available-limit": 1000, "active-card": true } } { "violations": [], "account": { "deny-list": [], "available-limit": 980, "active-card": true } } { "violations": [], "account": { "deny-list": [], "available-limit": 950, "active-card": true } } { "violations": [], "account": { "deny-list": ["merchant-A", "merchant-B"], "available-limit": 950, "active-card": true } } { "violations": ["merchant-denied"], "account": { "deny-list": ["merchant-A", "merchant-B"], "available-limit": 950, "active-card": true } } { "violations": [], "account": { "deny-list": ["merchant-A"], "available-limit": 950, "active-card": true } } { "violations": [], "account": { "deny-list": ["merchant-A"], "available-limit": 920, "active-card": true } } ```
Raw Text
-
Just chill and fuck at home
28 min ago
-
EVILANGEL Sexy Romanian Student Seduces Tutor into Anal Fuck - Alyssa Bounty
58 min ago
-
🌚🌠R@PED😏 SLEEPING💤 LITTLE GIRLS🙈👧🍬✨🌝
1 hour ago
-
Step mom unexpected step son's suck?! He fucks her till cum in mouth 💦
1 hour ago
-
Trailer MilfCandy: GILF Maddie Cross gets her some Dior Boi on MilfCandy
1 hour ago
-
Backpacker Nata Ocean Opens Her Legs For BBC Roommate - HORNY HOSTEL
2 hours ago
-
Lesbian Prison Guard Has Anal Threesome With Inmates
2 hours ago
-
Jodi Taylor Gets Ass Pounded By Mike Adriano's Big Hard Cock
3 hours ago
-
Happy birthday! I'll let you fuck me, but don't cum inside! - AdaKham
3 hours ago
-
My sexy stepsister invite me for great fuck
4 hours ago