Skip to content

UserMWIDeliveryToMobileEndpointModifyRequest

Bases: OCIRequest

Request to modify the user level data associated with MWI Delivery to Mobile Endpoint service. The response is either a SuccessResponse or an ErrorResponse.

The following element is only used in AS data mode:
   sendMissedCallAlert

Attributes:

user_id (str):

is_active (Optional[bool]):

mobile_phone_number (Optional[Nillable[str]]):

send_missed_call_alert (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserMWIDeliveryToMobileEndpointModifyRequest(OCIRequest):
    """Request to modify the user level data associated with MWI Delivery to Mobile Endpoint service.
        The response is either a SuccessResponse or an ErrorResponse.

        The following element is only used in AS data mode:
           sendMissedCallAlert

    Attributes:

        user_id (str):

        is_active (Optional[bool]):

        mobile_phone_number (Optional[Nillable[str]]):

        send_missed_call_alert (Optional[bool]):

    """

    user_id: str = field(metadata={"alias": "userId"})

    is_active: Optional[bool] = field(default=None, metadata={"alias": "isActive"})

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

    send_missed_call_alert: Optional[bool] = field(
        default=None, metadata={"alias": "sendMissedCallAlert"}
    )

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

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 UserMWIDeliveryToMobileEndpointModifyRequest

client = Client()

command = UserMWIDeliveryToMobileEndpointModifyRequest(
    user_id=...,
    is_active=...,
    mobile_phone_number=...,
    send_missed_call_alert=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserMWIDeliveryToMobileEndpointModifyRequest",
    user_id=...,
    is_active=...,
    mobile_phone_number=...,
    send_missed_call_alert=...,
)

print(response)