SystemAutomaticCollectCallPrefixDigitsGetListRequest
Bases: OCIRequest
Get the system automatic collect call prefix digits lists. The response is either SystemAutomaticCollectCallPrefixDigitsGetListResponse or ErrorResponse.
Attributes:
country_code (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemAutomaticCollectCallPrefixDigitsGetListRequest(OCIRequest):
"""Get the system automatic collect call prefix digits lists.
The response is either SystemAutomaticCollectCallPrefixDigitsGetListResponse or ErrorResponse.
Attributes:
country_code (Optional[str]):
"""
country_code: Optional[str] = field(default=None, metadata={"alias": "countryCode"})
|
Responses
Bases: OCIDataResponse
Response to the SystemAutomaticCollectCallPrefixDigitsGetListRequest. Contains a table with column headings: "Country Code", "Prefix".
Attributes:
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemAutomaticCollectCallPrefixDigitsGetListResponse(OCIDataResponse):
"""Response to the SystemAutomaticCollectCallPrefixDigitsGetListRequest.
Contains a table with column headings: \"Country Code\", \"Prefix\".
Attributes:
prefix_table (OCITable):
"""
prefix_table: OCITable = field(metadata={"alias": "prefixTable"})
|
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 SystemAutomaticCollectCallPrefixDigitsGetListRequest
client = Client()
command = SystemAutomaticCollectCallPrefixDigitsGetListRequest(
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("SystemAutomaticCollectCallPrefixDigitsGetListRequest",
country_code=...,
)
print(response)