model

package
v0.0.0-...-844d4e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel string

Channel can be `email`, `sms`, `whatsapp`, `call`, `sna` or `auto`.

var (
	EMAIL    Channel = "email"
	SMS      Channel = "sms"
	WHATSAPP Channel = "whatsapp"
	CALL     Channel = "call"
)

func ToChannel

func ToChannel(channel string) Channel

type Contact

type Contact struct {
}

type MessageRequest

type MessageRequest struct {
	PhoneNumber string
	Body        string
	From        string
}

MessageRequest is a struct that contains the message information

type MessageResponse

type MessageResponse struct {
	Body   *string
	Status *string
	SentAt *string
}

MessageResponse is a struct that contains the message information

type OTPRequest

type OTPRequest struct {
	To      string
	Channel Channel
}

type SegmentData

type SegmentData struct {
}

SegmentData represents the data to be exchanged between Twilio and Outreach

type ValidateOTPRequest

type ValidateOTPRequest struct {
	To   string
	Code string
}

type VerifyResponse

type VerifyResponse struct {
	Status           *string
	SendCodeAttempts *[]interface{}
	CreatedAt        *time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL