Skip to content

SystemCallReturnGetRequest

Bases: OCIRequest

Request the system level data associated with Call Return. The response is either a SystemCallReturnGetResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallReturnGetRequest(OCIRequest):
    """Request the system level data associated with Call Return.
        The response is either a SystemCallReturnGetResponse or an
        ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemCallReturnGetRequest.

Attributes:

two_level_activation (bool):

provide_date (bool):

last_unanswered_call_only (bool):

confirmation_key (Optional[str]):

allow_restricted_number (bool):

delete_number_after_answered_call_return (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallReturnGetResponse(OCIDataResponse):
    """Response to SystemCallReturnGetRequest.

    Attributes:

        two_level_activation (bool):

        provide_date (bool):

        last_unanswered_call_only (bool):

        confirmation_key (Optional[str]):

        allow_restricted_number (bool):

        delete_number_after_answered_call_return (bool):

    """

    two_level_activation: bool = field(metadata={"alias": "twoLevelActivation"})

    provide_date: bool = field(metadata={"alias": "provideDate"})

    last_unanswered_call_only: bool = field(
        metadata={"alias": "lastUnansweredCallOnly"}
    )

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

    allow_restricted_number: bool = field(metadata={"alias": "allowRestrictedNumber"})

    delete_number_after_answered_call_return: bool = field(
        metadata={"alias": "deleteNumberAfterAnsweredCallReturn"}
    )

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 SystemCallReturnGetRequest

client = Client()

command = SystemCallReturnGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemCallReturnGetRequest")

print(response)