Skip to content

SystemOutgoingCallingPlanCallTypeAddMappingRequest

Bases: OCIRequest

Add a system outgoing calling plan call type mapping. The response is either SuccessResponse or ErrorResponse.

Attributes:

country_code (str):

digit_map (str):

call_type (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemOutgoingCallingPlanCallTypeAddMappingRequest(OCIRequest):
    """Add a system outgoing calling plan call type mapping.
        The response is either SuccessResponse or ErrorResponse.

    Attributes:

        country_code (str):

        digit_map (str):

        call_type (str):

    """

    country_code: str = field(metadata={"alias": "countryCode"})

    digit_map: str = field(metadata={"alias": "digitMap"})

    call_type: str = field(metadata={"alias": "callType"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 SystemOutgoingCallingPlanCallTypeAddMappingRequest

client = Client()

command = SystemOutgoingCallingPlanCallTypeAddMappingRequest(
    country_code=...,
    digit_map=...,
    call_type=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemOutgoingCallingPlanCallTypeAddMappingRequest",
    country_code=...,
    digit_map=...,
    call_type=...,
)

print(response)