Skip to content

EnterpriseCallCenterCurrentAndPastDNISGetListRequest

Bases: OCIRequest

Request to get all the past and current DNIS for the Call Center for the enterprise. The response is either EnterpriseCallCenterCurrentAndPastDNISGetListResponse or ErrorResponse.

Attributes:

service_provider_id (str):

service_user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseCallCenterCurrentAndPastDNISGetListRequest(OCIRequest):
    """Request to get all the past and current DNIS for the Call Center for the enterprise.
        The response is either EnterpriseCallCenterCurrentAndPastDNISGetListResponse or ErrorResponse.

    Attributes:

        service_provider_id (str):

        service_user_id (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    service_user_id: str = field(metadata={"alias": "serviceUserId"})

Responses

Bases: OCIDataResponse

Response to the EnterpriseCallCenterCurrentAndPastDNISGetListRequest.

Attributes:

name (Optional[List[str]]):

deleted_name (Optional[List[str]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class EnterpriseCallCenterCurrentAndPastDNISGetListResponse(OCIDataResponse):
    """Response to the EnterpriseCallCenterCurrentAndPastDNISGetListRequest.

    Attributes:

        name (Optional[List[str]]):

        deleted_name (Optional[List[str]]):

    """

    name: Optional[List[str]] = field(default=None, metadata={"alias": "name"})

    deleted_name: Optional[List[str]] = field(
        default=None, metadata={"alias": "deletedName"}
    )

Bases: OCIResponse

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

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import EnterpriseCallCenterCurrentAndPastDNISGetListRequest

client = Client()

command = EnterpriseCallCenterCurrentAndPastDNISGetListRequest(
    service_provider_id=...,
    service_user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("EnterpriseCallCenterCurrentAndPastDNISGetListRequest",
    service_provider_id=...,
    service_user_id=...,
)

print(response)