Skip to content

SystemCallingPartyCategoryGetListRequest

Bases: OCIRequest

Get the list of all Calling Party Category in system. The response is either a SystemCallingPartyCategoryGetListResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallingPartyCategoryGetListRequest(OCIRequest):
    """Get the list of all Calling Party Category in system.
        The response is either a SystemCallingPartyCategoryGetListResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemCallingPartyCategoryGetListRequest. Contains a table of Calling Party Category defined in system. The column headings are: "Category Name", "User Category", "Collect Call", "Default" and "Web Display Key".

Attributes:

calling_party_category_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallingPartyCategoryGetListResponse(OCIDataResponse):
    """Response to SystemCallingPartyCategoryGetListRequest.
        Contains a table of Calling Party Category defined in system.
        The column headings are: \"Category Name\", \"User Category\", \"Collect Call\", \"Default\" and \"Web Display Key\".

    Attributes:

        calling_party_category_table (OCITable):

    """

    calling_party_category_table: OCITable = field(
        metadata={"alias": "callingPartyCategoryTable"}
    )

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 SystemCallingPartyCategoryGetListRequest

client = Client()

command = SystemCallingPartyCategoryGetListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemCallingPartyCategoryGetListRequest")

print(response)