Skip to content

ServiceProviderHPBXAlternateCarrierSelectionGetRequest

Bases: OCIRequest

Request to get the Alternate Carrier Selection parameters. The response is either a ServiceProviderHPBXAlternateCarrierSelectionGetResponse or an ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderHPBXAlternateCarrierSelectionGetRequest(OCIRequest):
    """Request to get the Alternate Carrier Selection parameters.
        The response is either a ServiceProviderHPBXAlternateCarrierSelectionGetResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

Responses

Bases: OCIDataResponse

Response to the ServiceProviderHPBXAlternateCarrierSelectionGetRequest.

Attributes:

process_cbc_carrier_selection (bool):

preselected_local_carrier (Optional[str]):

preselected_distant_carrier (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderHPBXAlternateCarrierSelectionGetResponse(OCIDataResponse):
    """Response to the ServiceProviderHPBXAlternateCarrierSelectionGetRequest.

    Attributes:

        process_cbc_carrier_selection (bool):

        preselected_local_carrier (Optional[str]):

        preselected_distant_carrier (Optional[str]):

    """

    process_cbc_carrier_selection: bool = field(
        metadata={"alias": "processCbcCarrierSelection"}
    )

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

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

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 ServiceProviderHPBXAlternateCarrierSelectionGetRequest

client = Client()

command = ServiceProviderHPBXAlternateCarrierSelectionGetRequest(
    service_provider_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderHPBXAlternateCarrierSelectionGetRequest",
    service_provider_id=...,
)

print(response)