Skip to content

SystemCallReturnModifyRequest

Bases: OCIRequest

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

Attributes:

two_level_activation (Optional[bool]):

provide_date (Optional[bool]):

last_unanswered_call_only (Optional[bool]):

confirmation_key (Optional[Nillable[str]]):

allow_restricted_number (Optional[bool]):

delete_number_after_answered_call_return (Optional[bool]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCallReturnModifyRequest(OCIRequest):
    """Modify the system level data associated with Call Return.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        two_level_activation (Optional[bool]):

        provide_date (Optional[bool]):

        last_unanswered_call_only (Optional[bool]):

        confirmation_key (Optional[Nillable[str]]):

        allow_restricted_number (Optional[bool]):

        delete_number_after_answered_call_return (Optional[bool]):

    """

    two_level_activation: Optional[bool] = field(
        default=None, metadata={"alias": "twoLevelActivation"}
    )

    provide_date: Optional[bool] = field(
        default=None, metadata={"alias": "provideDate"}
    )

    last_unanswered_call_only: Optional[bool] = field(
        default=None, metadata={"alias": "lastUnansweredCallOnly"}
    )

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

    allow_restricted_number: Optional[bool] = field(
        default=None, metadata={"alias": "allowRestrictedNumber"}
    )

    delete_number_after_answered_call_return: Optional[bool] = field(
        default=None, metadata={"alias": "deleteNumberAfterAnsweredCallReturn"}
    )

    def __post_init__(self):
        nillable_fields = ["confirmation_key"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 SystemCallReturnModifyRequest

client = Client()

command = SystemCallReturnModifyRequest(
    two_level_activation=...,
    provide_date=...,
    last_unanswered_call_only=...,
    confirmation_key=...,
    allow_restricted_number=...,
    delete_number_after_answered_call_return=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemCallReturnModifyRequest",
    two_level_activation=...,
    provide_date=...,
    last_unanswered_call_only=...,
    confirmation_key=...,
    allow_restricted_number=...,
    delete_number_after_answered_call_return=...,
)

print(response)