SendParameters

data class SendParameters(val organizationId: String, val memberId: String, val mfaPhoneNumber: String? = null, val locale: String? = null)

A data class wrapping the parameters needed to send an SMS OTP

Constructors

Link copied to clipboard
constructor(organizationId: String, memberId: String, mfaPhoneNumber: String? = null, locale: String? = null)

Properties

Link copied to clipboard
val locale: String? = null

The locale is used to determine which language to use in the email. Parameter is a []IETF BCP 47 language tag](https://www.w3.org/International/articles/language-tags/), e.g. "en". Currently supported languages are English ("en"), Spanish ("es"), and Brazilian Portuguese ("pt-br"); if no value is provided, the copy defaults to English.

Link copied to clipboard

The ID of the member to send the OTP to

Link copied to clipboard
val mfaPhoneNumber: String? = null

The phone number to send the OTP to. If the member already has a phone number, this argument is not needed. If the member does not have a phone number and this argument is not provided, an error will be thrown.

Link copied to clipboard

The ID of the organization the member belongs to