Skip to content

SystemAdviceOfChargeGetRequest25

Bases: OCIRequest

Request to get the list of Advice of Charge system parameters. The response is either SystemAdviceOfChargeGetResponse25 or ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAdviceOfChargeGetRequest25(OCIRequest):
    """Request to get the list of Advice of Charge system parameters.
        The response is either SystemAdviceOfChargeGetResponse25 or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemAdviceOfChargeGetRequest25. Contains a list of system Advice of Charge parameters.

Attributes:

delay_between_notification_seconds (int):

incoming_aoc_handling (str):

use_ocs_enquiry (bool):

ocs_enquiry_type (str):

proxy_ao_c_body (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAdviceOfChargeGetResponse25(OCIDataResponse):
    """Response to SystemAdviceOfChargeGetRequest25.
        Contains a list of system Advice of Charge parameters.

    Attributes:

        delay_between_notification_seconds (int):

        incoming_aoc_handling (str):

        use_ocs_enquiry (bool):

        ocs_enquiry_type (str):

        proxy_ao_c_body (bool):

    """

    delay_between_notification_seconds: int = field(
        metadata={"alias": "delayBetweenNotificationSeconds"}
    )

    incoming_aoc_handling: str = field(metadata={"alias": "incomingAocHandling"})

    use_ocs_enquiry: bool = field(metadata={"alias": "useOCSEnquiry"})

    ocs_enquiry_type: str = field(metadata={"alias": "OCSEnquiryType"})

    proxy_ao_c_body: bool = field(metadata={"alias": "proxyAoCBody"})

Bases: OCIResponse

Source 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 SystemAdviceOfChargeGetRequest25

client = Client()

command = SystemAdviceOfChargeGetRequest25()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemAdviceOfChargeGetRequest25")

print(response)