Skip to content

ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23

Bases: OCIRequest

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

Attributes:

service_provider_id (str):

language (str):

type (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23(OCIRequest):
    """Request a MWI Delivery to Mobile Endpoint Custom Template.
        The response is either a ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetResponse23 or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        language (str):

        type (str):

    """

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

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

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

Responses

Bases: OCIDataResponse

Response to the ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23.

Attributes:

is_enabled (bool):

month_abbreviations (Optional[str]):

template_body (MWIDeliveryToMobileEndpointTemplateBody23):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetResponse23(
    OCIDataResponse
):
    """Response to the ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23.

    Attributes:

        is_enabled (bool):

        month_abbreviations (Optional[str]):

        template_body (MWIDeliveryToMobileEndpointTemplateBody23):

    """

    is_enabled: bool = field(metadata={"alias": "isEnabled"})

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

    template_body: MWIDeliveryToMobileEndpointTemplateBody23 = field(
        metadata={"alias": "templateBody"}
    )

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 ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23

client = Client()

command = ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23(
    service_provider_id=...,
    language=...,
    type=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ServiceProviderMWIDeliveryToMobileEndpointCustomTemplateGetRequest23",
    service_provider_id=...,
    language=...,
    type=...,
)

print(response)