schema

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailAddress

type MailAddress struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

MailAddress type

func (*MailAddress) Validate

func (r *MailAddress) Validate() error

Validate MailAddress

type ProcessingType

type ProcessingType string

ProcessingType type

const (
	SYNCProcess  ProcessingType = "SYNC"
	ASYNCProcess ProcessingType = "ASYNC"
)

type SendEmailRequest

type SendEmailRequest struct {
	TemplateCode   string                 `json:"templateCode"`
	From           *MailAddress           `json:"from"`
	To             *MailAddress           `json:"to"`
	CC             []*MailAddress         `json:"cc"`
	BCC            []*MailAddress         `json:"bcc"`
	TemplateData   map[string]interface{} `json:"templateData"`
	ProcessingType string                 `json:"processingType"`

	Template *domSchemaET.ETFindByCodeData `json:"-"`
}

SendEmailRequest type

func (*SendEmailRequest) Validate

func (r *SendEmailRequest) Validate() error

Validate SendEmailRequest

type SendEmailResponse

type SendEmailResponse struct {
	TemplateCode string `json:"templateCode"`
	Status       string `json:"status"`
}

SendEmailResponse type

func (*SendEmailResponse) ToJSON

func (r *SendEmailResponse) ToJSON() []byte

ToJSON covert to JSON

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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