Class TransactionalSendParams
-
- All Implemented Interfaces:
-
so.prelude.sdk.core.Params
public final class TransactionalSendParams implements Params
Send a transactional message to your user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TransactionalSendParams.Body
public final class
TransactionalSendParams.Builder
A builder for TransactionalSendParams.
public final class
TransactionalSendParams.Variables
The variables to be replaced in the template.
-
Method Summary
Modifier and Type Method Description final String
templateId()
The template identifier. final String
to()
The recipient's phone number. final Optional<String>
callbackUrl()
The callback URL. final Optional<String>
correlationId()
A unique, user-defined identifier that will be included in webhook events. final Optional<String>
expiresAt()
The message expiration date. final Optional<String>
from()
The Sender ID. final Optional<String>
locale()
A BCP-47 formatted locale string with the language the text message will be sent to. final Optional<TransactionalSendParams.Variables>
variables()
The variables to be replaced in the template. final JsonField<String>
_templateId()
The template identifier. final JsonField<String>
_to()
The recipient's phone number. final JsonField<String>
_callbackUrl()
The callback URL. final JsonField<String>
_correlationId()
A unique, user-defined identifier that will be included in webhook events. final JsonField<String>
_expiresAt()
The message expiration date. final JsonField<String>
_from()
The Sender ID. final JsonField<String>
_locale()
A BCP-47 formatted locale string with the language the text message will be sent to. final JsonField<TransactionalSendParams.Variables>
_variables()
The variables to be replaced in the template. final Map<String, JsonValue>
_additionalBodyProperties()
final Headers
_additionalHeaders()
final QueryParams
_additionalQueryParams()
Headers
_headers()
The full set of headers in the parameters, including both fixed and additional headers. QueryParams
_queryParams()
The full set of query params in the parameters, including both fixed and additional query params. final TransactionalSendParams.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TransactionalSendParams.Builder
builder()
Returns a mutable builder for constructing an instance of TransactionalSendParams. -
-
Method Detail
-
templateId
final String templateId()
The template identifier.
-
callbackUrl
final Optional<String> callbackUrl()
The callback URL.
-
correlationId
final Optional<String> correlationId()
A unique, user-defined identifier that will be included in webhook events.
-
locale
final Optional<String> locale()
A BCP-47 formatted locale string with the language the text message will be sent to. If there's no locale set, the language will be determined by the country code of the phone number. If the language specified doesn't exist, the default set on the template will be used.
-
variables
final Optional<TransactionalSendParams.Variables> variables()
The variables to be replaced in the template.
-
_templateId
final JsonField<String> _templateId()
The template identifier.
-
_callbackUrl
final JsonField<String> _callbackUrl()
The callback URL.
-
_correlationId
final JsonField<String> _correlationId()
A unique, user-defined identifier that will be included in webhook events.
-
_expiresAt
final JsonField<String> _expiresAt()
The message expiration date.
-
_locale
final JsonField<String> _locale()
A BCP-47 formatted locale string with the language the text message will be sent to. If there's no locale set, the language will be determined by the country code of the phone number. If the language specified doesn't exist, the default set on the template will be used.
-
_variables
final JsonField<TransactionalSendParams.Variables> _variables()
The variables to be replaced in the template.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
toBuilder
final TransactionalSendParams.Builder toBuilder()
-
builder
final static TransactionalSendParams.Builder builder()
Returns a mutable builder for constructing an instance of TransactionalSendParams.
The following fields are required:
.templateId() .to()
-
-
-
-