forked from sendinblue/APIv3-go-library
/
model_create_smtp_template.go
32 lines (31 loc) · 2.45 KB
/
model_create_smtp_template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* SendinBlue API
*
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* API version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package lib
type CreateSmtpTemplate struct {
// Tag of the template
Tag string `json:"tag,omitempty"`
Sender *CreateSmtpTemplateSender `json:"sender"`
// Name of the template
TemplateName string `json:"templateName"`
// Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty
HtmlContent string `json:"htmlContent,omitempty"`
// Url which contents the body of the email message. REQUIRED if htmlContent is empty
HtmlUrl string `json:"htmlUrl,omitempty"`
// Subject of the template
Subject string `json:"subject"`
// Email on which campaign recipients will be able to reply to
ReplyTo string `json:"replyTo,omitempty"`
// To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
ToField string `json:"toField,omitempty"`
// Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps
AttachmentUrl string `json:"attachmentUrl,omitempty"`
// Status of template. isActive = true means template is active and isActive = false means template is inactive
IsActive bool `json:"isActive,omitempty"`
}