Skip to content

UserCallCenterGetAvailableCallCenterListRequest

Bases: OCIRequest

This request gets a list of all call centers which the user can be assigned to as an agent. Some of the call centers may already have the user as an agent. It is the clients responsibility to discard the call centers that the user is already an agent of. The response is either a UserCallCenterGetAvailableCallCenterListResponse or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserCallCenterGetAvailableCallCenterListRequest(OCIRequest):
    """This request gets a list of all call centers which the user can be assigned to as an agent.
        Some of the call centers may already have the user as an agent.  It is the clients
        responsibility to discard the call centers that the user is already an agent of.
        The response is either a UserCallCenterGetAvailableCallCenterListResponse or an ErrorResponse.

    Attributes:

        user_id (str):

    """

    user_id: str = field(metadata={"alias": "userId"})

Responses

Bases: OCIDataResponse

Response to the UserCallCenterGetAvailableCallCenterListRequest. Contains a table with column heading: "Service User Id".

Attributes:

call_center_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserCallCenterGetAvailableCallCenterListResponse(OCIDataResponse):
    """Response to the UserCallCenterGetAvailableCallCenterListRequest.
        Contains a table with column heading: \"Service User Id\".

    Attributes:

        call_center_table (OCITable):

    """

    call_center_table: OCITable = field(metadata={"alias": "callCenterTable"})

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import UserCallCenterGetAvailableCallCenterListRequest

client = Client()

command = UserCallCenterGetAvailableCallCenterListRequest(
    user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserCallCenterGetAvailableCallCenterListRequest",
    user_id=...,
)

print(response)