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/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/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: OCIResponseSource 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 SystemOutgoingCallingPlanCallTypeGetMappingListRequest
client = Client()
command = SystemOutgoingCallingPlanCallTypeGetMappingListRequest(
country_code=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemOutgoingCallingPlanCallTypeGetMappingListRequest",
country_code=...,
)
print(response)