Skip to content

SystemHPBXAlternateCarrierSelectionGetCarrierListRequest

Bases: OCIRequest

Request the list of alternate carriers available for CbC and Preselection. The response is either a SystemHPBXAlternateCarrierSelectionGetCarrierListResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemHPBXAlternateCarrierSelectionGetCarrierListRequest(OCIRequest):
    """Request the list of alternate carriers available for CbC and Preselection.
        The response is either a SystemHPBXAlternateCarrierSelectionGetCarrierListResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemHPBXAlternateCarrierSelectionGetCarrierListRequest. Contains a table with column headings: "Carrier Name", "Carrier Prefix", "Carrier Domain", "Carrier Type" The possible values for Carrier Type are "Local And Distant" and "Distant".

Attributes:

hpbx_alternate_carriers_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemHPBXAlternateCarrierSelectionGetCarrierListResponse(OCIDataResponse):
    """Response to the SystemHPBXAlternateCarrierSelectionGetCarrierListRequest.
        Contains a table with column headings:
         \"Carrier Name\", \"Carrier Prefix\", \"Carrier Domain\", \"Carrier Type\"
        The possible values for Carrier Type are \"Local And Distant\" and \"Distant\".

    Attributes:

        hpbx_alternate_carriers_table (OCITable):

    """

    hpbx_alternate_carriers_table: OCITable = field(
        metadata={"alias": "HPBXAlternateCarriersTable"}
    )

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 SystemHPBXAlternateCarrierSelectionGetCarrierListRequest

client = Client()

command = SystemHPBXAlternateCarrierSelectionGetCarrierListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemHPBXAlternateCarrierSelectionGetCarrierListRequest")

print(response)