GroupMWIDeliveryToMobileEndpointCustomTemplateAddRequest23
Bases: OCIRequest
Create 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 (bool):
month_abbreviations (Optional[str]):
template_body (MWIDeliveryToMobileEndpointTemplateBody23):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupMWIDeliveryToMobileEndpointCustomTemplateAddRequest23(OCIRequest):
"""Create 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 (bool):
month_abbreviations (Optional[str]):
template_body (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: bool = field(metadata={"alias": "isEnabled"})
month_abbreviations: Optional[str] = field(
default=None, metadata={"alias": "monthAbbreviations"}
)
template_body: MWIDeliveryToMobileEndpointTemplateBody23 = field(
metadata={"alias": "templateBody"}
)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 GroupMWIDeliveryToMobileEndpointCustomTemplateAddRequest23
client = Client()
command = GroupMWIDeliveryToMobileEndpointCustomTemplateAddRequest23(
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("GroupMWIDeliveryToMobileEndpointCustomTemplateAddRequest23",
service_provider_id=...,
group_id=...,
language=...,
type=...,
is_enabled=...,
month_abbreviations=...,
template_body=...,
)
print(response)