File size: 3,008 Bytes
aa4f7bc 1724801 aa4f7bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | from enum import Enum
class Difficulty(Enum):
EASY = "easy"
MEDIUM = "medium"
HARD = "hard"
TASKS = {
"task_easy_1": {
"difficulty": Difficulty.EASY.value,
"ticket": {
"ticket_id": "TKT-1001",
"user_id": "USR-A1",
"issue_type": "refund_request",
"subject": "Accidental purchase",
"body": "I clicked buy by mistake on the Premium plan today. Can I get a refund?",
"status": "open"
},
"user_data": {
"user_id": "USR-A1",
"account_tier": "premium",
"join_date": "2023-01-15"
},
"policy": {
"refund_request": "If requested within 7 days of accidental purchase, issue full refund."
}
},
"task_medium_1": {
"difficulty": Difficulty.MEDIUM.value,
"ticket": {
"ticket_id": "TKT-2002",
"user_id": "USR-B2",
"issue_type": "refund_request",
"subject": "Refund for last year",
"body": "I didn't use my account much last year, please refund the annual fee.",
"status": "open"
},
"user_data": {
"user_id": "USR-B2",
"account_tier": "standard",
"join_date": "2021-05-20"
},
"policy": {
"refund_request": "Strictly no refunds for unused time from previous billing cycles. Explain policy and close ticket."
}
},
"task_hard_1": {
"difficulty": Difficulty.HARD.value,
"ticket": {
"ticket_id": "TKT-3003",
"user_id": "USR-C3",
"issue_type": "billing_discrepancy",
"subject": "Double charged again!",
"body": "This is the third month in a row I've been charged twice! Fix this or I'm leaving.",
"status": "open"
},
"user_data": {
"user_id": "USR-C3",
"account_tier": "enterprise",
"join_date": "2019-11-01"
},
"policy": {
"billing_discrepancy": "For enterprise clients with recurring double charges, fetch user data, escalate immediately to billing_tier2, and reply to customer apologizing for the delay."
}
},
"task_fraud_detection": {
"difficulty": Difficulty.HARD.value,
"ticket": {
"ticket_id": "TKT-4004",
"user_id": "USR-C3",
"issue_type": "refund_request",
"subject": "Refund for high-value transaction",
"body": "I was charged $500 for a service I didn’t use. Please refund immediately.",
"status": "open"
},
"user_data": {
"user_id": "USR-C3",
"account_tier": "standard",
"join_date": "2020-11-11",
"chargeback_history": 3
},
"policy": {
"refund_request": "High-value refunds require no history of chargebacks. Reject politely if chargebacks exist."
}
}
}
|