Copyright | (c) 2016 GetShopTV |
---|---|
License | BSD3 |
Maintainer | nickolay@getshoptv.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This module defines types used in SMSAero API.
- data SMSAeroAuth = SMSAeroAuth {
- authUser :: Text
- authPassword :: Text
- newtype Signature = Signature {
- getSignature :: Text
- newtype MessageId = MessageId Int64
- newtype MessageBody = MessageBody Text
- newtype Group = Group Text
- newtype Phone = Phone {}
- newtype SMSAeroDate = SMSAeroDate {}
- data SendType
- data DigitalChannel = DigitalChannel
- newtype Name = Name Text
- newtype BirthDate = BirthDate Day
- type ChannelName = Text
Documentation
data SMSAeroAuth Source #
SMSAero authentication data.
SMSAeroAuth | |
|
SMSAero sender's signature. This is used for the "from" field.
SMSAero sent message id.
newtype MessageBody Source #
SMSAero message body.
SMSAero group name.
Phone number.
newtype SMSAeroDate Source #
Date. Textually SMSAeroDate
is represented as a number of seconds since 01 Jan 1970.
Send type. This is used to describe send channel, equals to FreeSignatureExceptMTC
by default.
Textually SendType
is represented as a number from 1 to 6, excluding 5.
PaidSignature | Paid literal signature for all operators. |
FreeSignatureExceptMTC | Free literal signature for all operators except MTS. |
FreeSignature | Free literal signature for all operators. |
InfoSignature | Infosignature for all operators. |
International | International delivery (for RU and KZ operators). |
data DigitalChannel Source #
Digital send channel. Textually represented as '1' if the parameter is present.
Subscriber's name.
Subscriber's birth date. Textually represented in %Y-%m-%d format.
type ChannelName = Text Source #
SMSAero channel name.