Skip to content

SystemStateOrProvinceGetListRequest

Bases: OCIRequest

Requests the list of state and province names. The response is either SystemStateOrProvinceGetListResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemStateOrProvinceGetListRequest(OCIRequest):
    """Requests the list of state and province names.
        The response is either SystemStateOrProvinceGetListResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Contains a 2 column table with column headings 'Key' and 'Display Name' and a row for each state or province.

Attributes:

state_or_province_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemStateOrProvinceGetListResponse(OCIDataResponse):
    """Contains a 2 column table with column headings 'Key' and 'Display Name' and a row
        for each state or province.

    Attributes:

        state_or_province_table (OCITable):

    """

    state_or_province_table: OCITable = field(
        metadata={"alias": "stateOrProvinceTable"}
    )

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 SystemStateOrProvinceGetListRequest

client = Client()

command = SystemStateOrProvinceGetListRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemStateOrProvinceGetListRequest")

print(response)