Skip to content

SystemCallingPartyCategoryGetRequest

Bases: OCIRequest

Get an existing Calling Party Category in system. The response is either a SystemCallingPartyCategoryGetResponse or an ErrorResponse.

Attributes:

category (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCallingPartyCategoryGetRequest(OCIRequest):
    """Get an existing Calling Party Category in system.
        The response is either a SystemCallingPartyCategoryGetResponse or an ErrorResponse.

    Attributes:

        category (str):

    """

    category: str = field(metadata={"alias": "category"})

Responses

Bases: OCIDataResponse

Response to SystemCallingPartyCategoryGetRequest. Contains information of a Calling Party Category defined in system.

Attributes:

cpc_value (Optional[str]):

isup_oli_value (Optional[int]):

gtd_oli_value (Optional[str]):

user_category (bool):

pay_phone (bool):

operator (bool):

default (bool):

collect_call (bool):

web_display_key (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCallingPartyCategoryGetResponse(OCIDataResponse):
    """Response to SystemCallingPartyCategoryGetRequest.
        Contains information of a Calling Party Category defined in system.

    Attributes:

        cpc_value (Optional[str]):

        isup_oli_value (Optional[int]):

        gtd_oli_value (Optional[str]):

        user_category (bool):

        pay_phone (bool):

        operator (bool):

        default (bool):

        collect_call (bool):

        web_display_key (Optional[str]):

    """

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

    isup_oli_value: Optional[int] = field(
        default=None, metadata={"alias": "isupOliValue"}
    )

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

    user_category: bool = field(metadata={"alias": "userCategory"})

    pay_phone: bool = field(metadata={"alias": "payPhone"})

    operator: bool = field(metadata={"alias": "operator"})

    default: bool = field(metadata={"alias": "default"})

    collect_call: bool = field(metadata={"alias": "collectCall"})

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

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 SystemCallingPartyCategoryGetRequest

client = Client()

command = SystemCallingPartyCategoryGetRequest(
    category=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemCallingPartyCategoryGetRequest",
    category=...,
)

print(response)