Skip to content

CommPilotExpressRedirectionModify

Bases: OCIType

CommPilot Express type to transfer to voice Mail or forward to a number used in the context of a modify.

Attributes:

action (Optional[str]):

forwarding_phone_number (Optional[Nillable[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class CommPilotExpressRedirectionModify(OCIType):
    """CommPilot Express type to transfer to voice Mail or forward to a number
        used in the context of a modify.

    Attributes:

        action (Optional[str]):

        forwarding_phone_number (Optional[Nillable[str]]):

    """

    action: Optional[str] = field(default=None, metadata={"alias": "action"})

    forwarding_phone_number: Optional[Nillable[str]] = field(
        default=None, metadata={"alias": "forwardingPhoneNumber"}
    )

    def __post_init__(self):
        nillable_fields = ["forwarding_phone_number"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)