mirror of
https://github.com/hoshikawa2/compass_backoffice.git
synced 2026-07-09 13:54:20 +00:00
bugfixes
This commit is contained in:
@@ -46,16 +46,25 @@ async def get_access_info_by_msisdn(msisdn: str):
|
||||
}
|
||||
}
|
||||
|
||||
from uuid import uuid4
|
||||
|
||||
@app.post("/customers/v1/backOfficeSRopening")
|
||||
async def backoffice_sr_opening(payload: dict):
|
||||
protocol = f"SR-MOCK-{uuid4().hex[:8].upper()}"
|
||||
message_id = str(uuid4())
|
||||
|
||||
return {
|
||||
"ok": True,
|
||||
"status": "success",
|
||||
"crmProtocol": "SR-MOCK-123456",
|
||||
"crmProtocol": protocol,
|
||||
"messageId": message_id,
|
||||
"fieldsToUpdate": {
|
||||
"status": "Aberto",
|
||||
"reason": "Mock Siebel SR Opening"
|
||||
},
|
||||
"case_response": {
|
||||
"messageId": message_id,
|
||||
"crmProtocol": protocol,
|
||||
"message": "Chamado Siebel aberto com sucesso no mock"
|
||||
},
|
||||
"transitions": []
|
||||
|
||||
Reference in New Issue
Block a user