Websms.Schema.Read (websms v1.0.0-alpha.1) View Source

TODO

Link to this section Summary

Types

E164 formatted MSISDNs – see Wikipedia https://en.wikipedia.org/wiki/MSISDN

Allowed values are default and voice. When using the message type default, the outgoing message type is determined based on account settings. Using the message type voice triggers a voice call.

Link to this section Types

Specs

address_type() :: String.t()
Link to this type

binary_sms_send_request()

View Source

Specs

binary_sms_send_request() :: %{
  optional(:clientMessageId) => map(),
  optional(:contentCategory) => String.t(),
  optional(:messageContent) => [String.t()],
  optional(:notificationCallbackUrl) => String.t(),
  optional(:priority) => integer(),
  :recipientAddressList => [e164()],
  optional(:sendAsFlashSms) => boolean(),
  optional(:senderAddress) => String.t(),
  optional(:senderAddressType) => String.t(),
  optional(:test) => boolean(),
  optional(:userDataHeaderPresent) => boolean(),
  optional(:validityPeriode) => integer()
}

Specs

content_category() :: String.t()

Specs

e164() :: String.t()

E164 formatted MSISDNs – see Wikipedia https://en.wikipedia.org/wiki/MSISDN

Specs

message_type() :: String.t()

Allowed values are default and voice. When using the message type default, the outgoing message type is determined based on account settings. Using the message type voice triggers a voice call.

Link to this type

receive_message_type()

View Source

Specs

receive_message_type() :: String.t()
Link to this type

receive_sms_binary_request()

View Source

Specs

receive_sms_binary_request() :: %{
  binaryMessageContent: [String.t()],
  messageFlashSms: boolean(),
  recipientAddressType: String.t(),
  senderAddressType: String.t(),
  userDataHeaderPresent: boolean()
}
Link to this type

receive_sms_delivery_report_request()

View Source

Specs

receive_sms_delivery_report_request() :: %{
  optional(:clientMessageId) => String.t(),
  optional(:deliveredAs) => String.t(),
  optional(:deliveredOn) => String.t(),
  :deliveryReportMessageStatus => String.t(),
  optional(:sentOn) => String.t(),
  :transferId => String.t()
}

Specs

receive_sms_request() ::
  %{
    optional(:clientMessageId) => String.t(),
    optional(:deliveredAs) => String.t(),
    optional(:deliveredOn) => String.t(),
    :deliveryReportMessageStatus => String.t(),
    :messageType => String.t(),
    optional(:sentOn) => String.t(),
    :transferId => String.t()
  }
  | %{
      binaryMessageContent: [String.t()],
      messageFlashSms: boolean(),
      messageType: String.t(),
      recipientAddressType: String.t(),
      senderAddressType: String.t(),
      userDataHeaderPresent: boolean()
    }
  | %{
      messageFlashSms: boolean(),
      messageType: String.t(),
      recipientAddressType: String.t(),
      senderAddressType: String.t(),
      textMessageContent: String.t()
    }
Link to this type

receive_sms_response()

View Source

Specs

receive_sms_response() :: %{statusCode: integer(), statusMessage: String.t()}
Link to this type

receive_sms_text_request()

View Source

Specs

receive_sms_text_request() :: %{
  messageFlashSms: boolean(),
  recipientAddressType: String.t(),
  senderAddressType: String.t(),
  textMessageContent: String.t()
}
Link to this type

simple_sms_send_request()

View Source

Specs

simple_sms_send_request() :: %{
  optional(:clientMessageId) => map(),
  optional(:contentCategory) => String.t(),
  optional(:maxSmsPerMessage) => integer(),
  :messageContent => String.t(),
  optional(:messageType) => String.t(),
  optional(:notificationCallbackUrl) => String.t(),
  optional(:priority) => integer(),
  :recipientAddressList => [e164()],
  optional(:sendAsFlashSms) => boolean(),
  optional(:senderAddress) => String.t(),
  optional(:senderAddressType) => String.t(),
  optional(:test) => boolean(),
  optional(:validityPeriode) => integer()
}

Specs

sms_send_response() :: %{
  clientMessageId: String.t(),
  smsCount: integer(),
  statusCode: integer(),
  statusMessage: String.t(),
  transferId: String.t()
}
Link to this type

text_sms_send_request()

View Source

Specs

text_sms_send_request() :: %{
  optional(:clientMessageId) => map(),
  optional(:contentCategory) => String.t(),
  optional(:maxSmsPerMessage) => integer(),
  :messageContent => String.t(),
  optional(:messageType) => String.t(),
  optional(:notificationCallbackUrl) => String.t(),
  optional(:priority) => integer(),
  :recipientAddressList => [e164()],
  optional(:sendAsFlashSms) => boolean(),
  optional(:senderAddress) => String.t(),
  optional(:senderAddressType) => String.t(),
  optional(:test) => boolean(),
  optional(:validityPeriode) => integer()
}