Skip to content

SystemCountryCodeGetListRequest

Bases: OCIRequest

Request data for all country codes. The response is either a SystemCountryCodeGetListResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCountryCodeGetListRequest(OCIRequest):
    """Request data for all country codes.
        The response is either a SystemCountryCodeGetListResponse or an
        ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to a SystemCountryCodeGetListRequest. Contains the default country code and a table with one row per country code. The table columns are "Country Code", "Country Name", "Off Hook Warning Seconds", "Ring Period Milliseconds", "National Prefix", "Use Prefix", "Maximum Call Waiting Tones", "Time Between Call Waiting Tones Milliseconds" and "Disable National Prefix for OffNet Calls".

The following columns are only returned in AS data mode:
  "Disable National Prefix for OffNet Calls"

Attributes:

default_country_code (str):

country_code_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCountryCodeGetListResponse(OCIDataResponse):
    """Response to a SystemCountryCodeGetListRequest. Contains the default country code
        and a table with one row per country code.  The table columns are
        \"Country Code\", \"Country Name\", \"Off Hook Warning Seconds\",
        \"Ring Period Milliseconds\", \"National Prefix\", \"Use Prefix\",
        \"Maximum Call Waiting Tones\", \"Time Between Call Waiting Tones Milliseconds\"
        and \"Disable National Prefix for OffNet Calls\".

        The following columns are only returned in AS data mode:
          \"Disable National Prefix for OffNet Calls\"

    Attributes:

        default_country_code (str):

        country_code_table (OCITable):

    """

    default_country_code: str = field(metadata={"alias": "defaultCountryCode"})

    country_code_table: OCITable = field(metadata={"alias": "countryCodeTable"})

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 SystemCountryCodeGetListRequest

client = Client()

command = SystemCountryCodeGetListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemCountryCodeGetListRequest")

print(response)