Skip to content

SystemServicePhoneNumberLookupRequest

Bases: OCIRequest

Lookup if the given number is defined in the specified service in the system. The response is SystemServicePhoneNumberLookupResponse.

Attributes:

service_type (str):

phone_number (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemServicePhoneNumberLookupRequest(OCIRequest):
    """Lookup if the given number is defined in the specified service in the system.
        The response is SystemServicePhoneNumberLookupResponse.

    Attributes:

        service_type (str):

        phone_number (str):

    """

    service_type: str = field(metadata={"alias": "serviceType"})

    phone_number: str = field(metadata={"alias": "phoneNumber"})

Responses

Bases: OCIDataResponse

Response to the SystemServicePhoneNumberLookupRequest. The column headings for the userTable are: "Service Provider Id", "Is Enterprise", "Group Id", "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "Phone Number" and "Extension".

Attributes:

user_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemServicePhoneNumberLookupResponse(OCIDataResponse):
    """Response to the SystemServicePhoneNumberLookupRequest.
        The column headings for the userTable are: \"Service Provider Id\", \"Is Enterprise\", \"Group Id\", \"User Id\",
        \"Last Name\", \"First Name\", \"Hiragana Last Name\", \"Hiragana First Name\", \"Phone Number\" and \"Extension\".

    Attributes:

        user_table (OCITable):

    """

    user_table: OCITable = field(metadata={"alias": "userTable"})

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemServicePhoneNumberLookupRequest

client = Client()

command = SystemServicePhoneNumberLookupRequest(
    service_type=...,
    phone_number=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemServicePhoneNumberLookupRequest",
    service_type=...,
    phone_number=...,
)

print(response)