This commit is contained in:
2026-06-13 09:53:10 -03:00
parent d468577cb1
commit a3f5e9966f
2 changed files with 32 additions and 1 deletions

View File

@@ -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": []