Skip to content

SystemOutgoingCallingPlanCallTypeGetMappingListRequest

Bases: OCIRequest

Get a list of system outgoing calling plan call type mappings. The response is either SystemOutgoingCallingPlanCallTypeGetMappingListResponse or ErrorResponse.

Attributes:

country_code (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemOutgoingCallingPlanCallTypeGetMappingListRequest(OCIRequest):
    """Get a list of system outgoing calling plan call type mappings.
        The response is either SystemOutgoingCallingPlanCallTypeGetMappingListResponse or ErrorResponse.

    Attributes:

        country_code (Optional[str]):

    """

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

Responses

Bases: OCIDataResponse

Response to SystemOutgoingCallingPlanCallTypeGetMappingListRequest. The table columns are: "Country Code", "Digit Map" and "Call Type".

Attributes:

call_type_mapping (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemOutgoingCallingPlanCallTypeGetMappingListResponse(OCIDataResponse):
    """Response to SystemOutgoingCallingPlanCallTypeGetMappingListRequest. The table columns are:
        \"Country Code\", \"Digit Map\" and \"Call Type\".

    Attributes:

        call_type_mapping (OCITable):

    """

    call_type_mapping: OCITable = field(metadata={"alias": "callTypeMapping"})

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import SystemOutgoingCallingPlanCallTypeGetMappingListRequest

client = Client()

command = SystemOutgoingCallingPlanCallTypeGetMappingListRequest(
    country_code=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemOutgoingCallingPlanCallTypeGetMappingListRequest",
    country_code=...,
)

print(response)