Skip to content

GroupMWIDeliveryToMobileEndpointCustomTemplateModifyRequest23

Bases: OCIRequest

Modify a MWI Delivery to Mobile Endpoint Custom Template. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):

language (str):

type (str):

is_enabled (Optional[bool]):

month_abbreviations (Optional[Nillable[str]]):

template_body (Optional[MWIDeliveryToMobileEndpointTemplateBody23]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupMWIDeliveryToMobileEndpointCustomTemplateModifyRequest23(OCIRequest):
    """Modify a MWI Delivery to Mobile Endpoint Custom Template.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

        language (str):

        type (str):

        is_enabled (Optional[bool]):

        month_abbreviations (Optional[Nillable[str]]):

        template_body (Optional[MWIDeliveryToMobileEndpointTemplateBody23]):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

    language: str = field(metadata={"alias": "language"})

    type: str = field(metadata={"alias": "type"})

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

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

    template_body: Optional[MWIDeliveryToMobileEndpointTemplateBody23] = field(
        default=None, metadata={"alias": "templateBody"}
    )

    def __post_init__(self):
        nillable_fields = ["month_abbreviations"]
        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 GroupMWIDeliveryToMobileEndpointCustomTemplateModifyRequest23

client = Client()

command = GroupMWIDeliveryToMobileEndpointCustomTemplateModifyRequest23(
    service_provider_id=...,
    group_id=...,
    language=...,
    type=...,
    is_enabled=...,
    month_abbreviations=...,
    template_body=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupMWIDeliveryToMobileEndpointCustomTemplateModifyRequest23",
    service_provider_id=...,
    group_id=...,
    language=...,
    type=...,
    is_enabled=...,
    month_abbreviations=...,
    template_body=...,
)

print(response)