sib-api-v3-sdk 5.4.0 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -37
- data/docs/AbTestCampaignResult.md +2 -0
- data/docs/AbTestCampaignResultClickedLinks.md +9 -0
- data/docs/AbTestCampaignResultStatistics.md +13 -0
- data/docs/AbTestVersionClicks.md +7 -0
- data/docs/AbTestVersionClicksInner.md +10 -0
- data/docs/AbTestVersionStats.md +9 -0
- data/docs/AddContactToList.md +2 -1
- data/docs/ContactsApi.md +29 -29
- data/docs/CreateChild.md +1 -0
- data/docs/CreateDoiContact.md +2 -2
- data/docs/CreateReseller.md +1 -0
- data/docs/CreateSender.md +1 -1
- data/docs/CreateSmsCampaign.md +1 -1
- data/docs/CreateWebhook.md +1 -1
- data/docs/EmailExportRecipients.md +1 -1
- data/docs/GetAggregatedReport.md +13 -13
- data/docs/GetCampaignStats.md +1 -0
- data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +1 -1
- data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +1 -1
- data/docs/GetSmtpTemplateOverview.md +1 -0
- data/docs/ListsApi.md +4 -4
- data/docs/PostContactInfoContacts.md +1 -0
- data/docs/RemoveContactFromList.md +2 -1
- data/docs/RequestContactExport.md +1 -1
- data/docs/RequestContactImport.md +1 -1
- data/docs/RequestSMSRecipientExport.md +1 -1
- data/docs/ResellerApi.md +82 -82
- data/docs/SendReportEmail.md +1 -5
- data/docs/SendSmtpEmail.md +1 -1
- data/docs/SendSmtpEmailSender.md +1 -0
- data/docs/SendTransacSms.md +1 -1
- data/docs/{SMTPApi.md → TransactionalEmailsApi.md} +52 -52
- data/docs/TransactionalSMSApi.md +3 -3
- data/docs/UpdateChildAccountStatus.md +1 -0
- data/docs/UpdateSmsCampaign.md +1 -1
- data/docs/UpdateWebhook.md +1 -1
- data/lib/sib-api-v3-sdk.rb +6 -1
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +44 -44
- data/lib/sib-api-v3-sdk/api/lists_api.rb +4 -4
- data/lib/sib-api-v3-sdk/api/reseller_api.rb +138 -138
- data/lib/sib-api-v3-sdk/api/{smtp_api.rb → transactional_emails_api.rb} +52 -52
- data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +2 -2
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +22 -4
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb +202 -0
- data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb +258 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb +175 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb +219 -0
- data/lib/sib-api-v3-sdk/models/ab_test_version_stats.rb +205 -0
- data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +17 -5
- data/lib/sib-api-v3-sdk/models/create_child.rb +48 -4
- data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +7 -2
- data/lib/sib-api-v3-sdk/models/create_reseller.rb +14 -4
- data/lib/sib-api-v3-sdk/models/create_sender.rb +1 -1
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +6 -6
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +1 -1
- data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +0 -65
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +14 -4
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +14 -4
- data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +14 -4
- data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +14 -2
- data/lib/sib-api-v3-sdk/models/request_contact_export.rb +1 -1
- data/lib/sib-api-v3-sdk/models/request_contact_import.rb +1 -1
- data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +1 -1
- data/lib/sib-api-v3-sdk/models/send_report_email.rb +3 -88
- data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +1 -1
- data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +15 -5
- data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +6 -6
- data/lib/sib-api-v3-sdk/models/update_child_account_status.rb +14 -4
- data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +6 -6
- data/lib/sib-api-v3-sdk/models/update_webhook.rb +1 -1
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +8 -8
- data/spec/api/lists_api_spec.rb +2 -2
- data/spec/api/reseller_api_spec.rb +20 -20
- data/spec/api/{smtp_api_spec.rb → transactional_emails_api_spec.rb} +6 -6
- data/spec/api/transactional_sms_api_spec.rb +1 -1
- data/spec/models/ab_test_campaign_result_clicked_links_spec.rb +47 -0
- data/spec/models/ab_test_campaign_result_spec.rb +12 -0
- data/spec/models/ab_test_campaign_result_statistics_spec.rb +71 -0
- data/spec/models/ab_test_version_clicks_inner_spec.rb +53 -0
- data/spec/models/ab_test_version_clicks_spec.rb +35 -0
- data/spec/models/ab_test_version_stats_spec.rb +47 -0
- data/spec/models/add_contact_to_list_spec.rb +6 -0
- data/spec/models/create_child_spec.rb +10 -0
- data/spec/models/create_reseller_spec.rb +6 -0
- data/spec/models/create_webhook_spec.rb +1 -1
- data/spec/models/get_campaign_stats_spec.rb +6 -0
- data/spec/models/get_smtp_template_overview_spec.rb +6 -0
- data/spec/models/post_contact_info_contacts_spec.rb +6 -0
- data/spec/models/remove_contact_from_list_spec.rb +6 -0
- data/spec/models/send_report_email_spec.rb +0 -28
- data/spec/models/send_smtp_email_sender_spec.rb +6 -0
- data/spec/models/update_child_account_status_spec.rb +6 -0
- metadata +30 -10
@@ -61,10 +61,6 @@ module SibApiV3Sdk
|
|
61
61
|
invalid_properties.push('invalid value for "event_time", event_time cannot be nil.')
|
62
62
|
end
|
63
63
|
|
64
|
-
if @ip.nil?
|
65
|
-
invalid_properties.push('invalid value for "ip", ip cannot be nil.')
|
66
|
-
end
|
67
|
-
|
68
64
|
invalid_properties
|
69
65
|
end
|
70
66
|
|
@@ -72,7 +68,6 @@ module SibApiV3Sdk
|
|
72
68
|
# @return true if the model is valid
|
73
69
|
def valid?
|
74
70
|
return false if @event_time.nil?
|
75
|
-
return false if @ip.nil?
|
76
71
|
true
|
77
72
|
end
|
78
73
|
|
@@ -74,10 +74,6 @@ module SibApiV3Sdk
|
|
74
74
|
invalid_properties.push('invalid value for "event_time", event_time cannot be nil.')
|
75
75
|
end
|
76
76
|
|
77
|
-
if @ip.nil?
|
78
|
-
invalid_properties.push('invalid value for "ip", ip cannot be nil.')
|
79
|
-
end
|
80
|
-
|
81
77
|
invalid_properties
|
82
78
|
end
|
83
79
|
|
@@ -86,7 +82,6 @@ module SibApiV3Sdk
|
|
86
82
|
def valid?
|
87
83
|
return false if @campaign_id.nil?
|
88
84
|
return false if @event_time.nil?
|
89
|
-
return false if @ip.nil?
|
90
85
|
true
|
91
86
|
end
|
92
87
|
|
@@ -49,6 +49,9 @@ module SibApiV3Sdk
|
|
49
49
|
# Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
50
50
|
attr_accessor :modified_at
|
51
51
|
|
52
|
+
# It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call.
|
53
|
+
attr_accessor :doi_template
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
{
|
@@ -63,7 +66,8 @@ module SibApiV3Sdk
|
|
63
66
|
:'tag' => :'tag',
|
64
67
|
:'html_content' => :'htmlContent',
|
65
68
|
:'created_at' => :'createdAt',
|
66
|
-
:'modified_at' => :'modifiedAt'
|
69
|
+
:'modified_at' => :'modifiedAt',
|
70
|
+
:'doi_template' => :'doiTemplate'
|
67
71
|
}
|
68
72
|
end
|
69
73
|
|
@@ -81,7 +85,8 @@ module SibApiV3Sdk
|
|
81
85
|
:'tag' => :'String',
|
82
86
|
:'html_content' => :'String',
|
83
87
|
:'created_at' => :'DateTime',
|
84
|
-
:'modified_at' => :'DateTime'
|
88
|
+
:'modified_at' => :'DateTime',
|
89
|
+
:'doi_template' => :'BOOLEAN'
|
85
90
|
}
|
86
91
|
end
|
87
92
|
|
@@ -140,6 +145,10 @@ module SibApiV3Sdk
|
|
140
145
|
if attributes.has_key?(:'modifiedAt')
|
141
146
|
self.modified_at = attributes[:'modifiedAt']
|
142
147
|
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'doiTemplate')
|
150
|
+
self.doi_template = attributes[:'doiTemplate']
|
151
|
+
end
|
143
152
|
end
|
144
153
|
|
145
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -231,7 +240,8 @@ module SibApiV3Sdk
|
|
231
240
|
tag == o.tag &&
|
232
241
|
html_content == o.html_content &&
|
233
242
|
created_at == o.created_at &&
|
234
|
-
modified_at == o.modified_at
|
243
|
+
modified_at == o.modified_at &&
|
244
|
+
doi_template == o.doi_template
|
235
245
|
end
|
236
246
|
|
237
247
|
# @see the `==` method
|
@@ -243,7 +253,7 @@ module SibApiV3Sdk
|
|
243
253
|
# Calculates hash code according to all attributes.
|
244
254
|
# @return [Fixnum] Hash code
|
245
255
|
def hash
|
246
|
-
[id, name, subject, is_active, test_sent, sender, reply_to, to_field, tag, html_content, created_at, modified_at].hash
|
256
|
+
[id, name, subject, is_active, test_sent, sender, reply_to, to_field, tag, html_content, created_at, modified_at, doi_template].hash
|
247
257
|
end
|
248
258
|
|
249
259
|
# Builds the object from hash
|
@@ -21,12 +21,16 @@ module SibApiV3Sdk
|
|
21
21
|
# Displays the count of total number of contacts removed from list when user opts for \"all\" option.
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
+
# Id of the process created to remove contacts from list when user opts for \"all\" option.
|
25
|
+
attr_accessor :process_id
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'success' => :'success',
|
28
31
|
:'failure' => :'failure',
|
29
|
-
:'total' => :'total'
|
32
|
+
:'total' => :'total',
|
33
|
+
:'process_id' => :'processId'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -35,7 +39,8 @@ module SibApiV3Sdk
|
|
35
39
|
{
|
36
40
|
:'success' => :'Array<String>',
|
37
41
|
:'failure' => :'Array<String>',
|
38
|
-
:'total' => :'Integer'
|
42
|
+
:'total' => :'Integer',
|
43
|
+
:'process_id' => :'Integer'
|
39
44
|
}
|
40
45
|
end
|
41
46
|
|
@@ -62,6 +67,10 @@ module SibApiV3Sdk
|
|
62
67
|
if attributes.has_key?(:'total')
|
63
68
|
self.total = attributes[:'total']
|
64
69
|
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'processId')
|
72
|
+
self.process_id = attributes[:'processId']
|
73
|
+
end
|
65
74
|
end
|
66
75
|
|
67
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -84,7 +93,8 @@ module SibApiV3Sdk
|
|
84
93
|
self.class == o.class &&
|
85
94
|
success == o.success &&
|
86
95
|
failure == o.failure &&
|
87
|
-
total == o.total
|
96
|
+
total == o.total &&
|
97
|
+
process_id == o.process_id
|
88
98
|
end
|
89
99
|
|
90
100
|
# @see the `==` method
|
@@ -96,7 +106,7 @@ module SibApiV3Sdk
|
|
96
106
|
# Calculates hash code according to all attributes.
|
97
107
|
# @return [Fixnum] Hash code
|
98
108
|
def hash
|
99
|
-
[success, failure, total].hash
|
109
|
+
[success, failure, total, process_id].hash
|
100
110
|
end
|
101
111
|
|
102
112
|
# Builds the object from hash
|
@@ -17,13 +17,17 @@ module SibApiV3Sdk
|
|
17
17
|
# Required if 'all' is false. Emails to remove from a list. You can pass a maximum of 150 emails for removal in one request.
|
18
18
|
attr_accessor :emails
|
19
19
|
|
20
|
-
#
|
20
|
+
# Mandatory if Emails are not passed, ignored otherwise. Emails to add to a list. You can pass a maximum of 150 emails for addition in one request. If you need to add the emails in bulk, please prefer /contacts/import api.
|
21
|
+
attr_accessor :ids
|
22
|
+
|
23
|
+
# Required if none of 'emails' or 'ids' are passed. Remove all existing contacts from a list. A process will be created in this scenario. You can fetch the process details to know about the progress
|
21
24
|
attr_accessor :all
|
22
25
|
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'emails' => :'emails',
|
30
|
+
:'ids' => :'ids',
|
27
31
|
:'all' => :'all'
|
28
32
|
}
|
29
33
|
end
|
@@ -32,6 +36,7 @@ module SibApiV3Sdk
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'emails' => :'Array<String>',
|
39
|
+
:'ids' => :'Array<Integer>',
|
35
40
|
:'all' => :'BOOLEAN'
|
36
41
|
}
|
37
42
|
end
|
@@ -50,6 +55,12 @@ module SibApiV3Sdk
|
|
50
55
|
end
|
51
56
|
end
|
52
57
|
|
58
|
+
if attributes.has_key?(:'ids')
|
59
|
+
if (value = attributes[:'ids']).is_a?(Array)
|
60
|
+
self.ids = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
53
64
|
if attributes.has_key?(:'all')
|
54
65
|
self.all = attributes[:'all']
|
55
66
|
end
|
@@ -74,6 +85,7 @@ module SibApiV3Sdk
|
|
74
85
|
return true if self.equal?(o)
|
75
86
|
self.class == o.class &&
|
76
87
|
emails == o.emails &&
|
88
|
+
ids == o.ids &&
|
77
89
|
all == o.all
|
78
90
|
end
|
79
91
|
|
@@ -86,7 +98,7 @@ module SibApiV3Sdk
|
|
86
98
|
# Calculates hash code according to all attributes.
|
87
99
|
# @return [Fixnum] Hash code
|
88
100
|
def hash
|
89
|
-
[emails, all].hash
|
101
|
+
[emails, ids, all].hash
|
90
102
|
end
|
91
103
|
|
92
104
|
# Builds the object from hash
|
@@ -22,7 +22,7 @@ module SibApiV3Sdk
|
|
22
22
|
|
23
23
|
attr_accessor :custom_contact_filter
|
24
24
|
|
25
|
-
# Webhook that will be called once the export process is finished
|
25
|
+
# Webhook that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
26
26
|
attr_accessor :notify_url
|
27
27
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -23,7 +23,7 @@ module SibApiV3Sdk
|
|
23
23
|
# Mandatory if newList is not defined. Ids of the lists in which the contacts shall be imported. For example, [2, 4, 7].
|
24
24
|
attr_accessor :list_ids
|
25
25
|
|
26
|
-
# URL that will be called once the
|
26
|
+
# URL that will be called once the import process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
27
27
|
attr_accessor :notify_url
|
28
28
|
|
29
29
|
attr_accessor :new_list
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
class RequestSmsRecipientExport
|
17
|
-
# URL that will be called once the export process is finished
|
17
|
+
# URL that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479
|
18
18
|
attr_accessor :notify_url
|
19
19
|
|
20
20
|
# Filter the recipients based on how they interacted with the campaign
|
@@ -13,56 +13,18 @@ Swagger Codegen version: 2.4.12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
|
-
#
|
16
|
+
# Custom attributes for the report email.
|
17
17
|
class SendReportEmail
|
18
|
-
# Subject of the email message
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
18
|
# Email addresses of the recipients
|
22
19
|
attr_accessor :to
|
23
20
|
|
24
|
-
#
|
25
|
-
attr_accessor :content_type
|
26
|
-
|
27
|
-
# Email addresses of the recipients in bcc
|
28
|
-
attr_accessor :bcc
|
29
|
-
|
30
|
-
# Email addresses of the recipients in cc
|
31
|
-
attr_accessor :cc
|
32
|
-
|
33
|
-
# Body of the email message
|
21
|
+
# Custom text message to be presented in the report email.
|
34
22
|
attr_accessor :body
|
35
23
|
|
36
|
-
class EnumAttributeValidator
|
37
|
-
attr_reader :datatype
|
38
|
-
attr_reader :allowable_values
|
39
|
-
|
40
|
-
def initialize(datatype, allowable_values)
|
41
|
-
@allowable_values = allowable_values.map do |value|
|
42
|
-
case datatype.to_s
|
43
|
-
when /Integer/i
|
44
|
-
value.to_i
|
45
|
-
when /Float/i
|
46
|
-
value.to_f
|
47
|
-
else
|
48
|
-
value
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def valid?(value)
|
54
|
-
!value || allowable_values.include?(value)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
25
|
def self.attribute_map
|
60
26
|
{
|
61
|
-
:'subject' => :'subject',
|
62
27
|
:'to' => :'to',
|
63
|
-
:'content_type' => :'contentType',
|
64
|
-
:'bcc' => :'bcc',
|
65
|
-
:'cc' => :'cc',
|
66
28
|
:'body' => :'body'
|
67
29
|
}
|
68
30
|
end
|
@@ -70,11 +32,7 @@ module SibApiV3Sdk
|
|
70
32
|
# Attribute type mapping.
|
71
33
|
def self.swagger_types
|
72
34
|
{
|
73
|
-
:'subject' => :'String',
|
74
35
|
:'to' => :'Array<String>',
|
75
|
-
:'content_type' => :'String',
|
76
|
-
:'bcc' => :'Array<String>',
|
77
|
-
:'cc' => :'Array<String>',
|
78
36
|
:'body' => :'String'
|
79
37
|
}
|
80
38
|
end
|
@@ -87,34 +45,12 @@ module SibApiV3Sdk
|
|
87
45
|
# convert string to symbol for hash key
|
88
46
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
89
47
|
|
90
|
-
if attributes.has_key?(:'subject')
|
91
|
-
self.subject = attributes[:'subject']
|
92
|
-
end
|
93
|
-
|
94
48
|
if attributes.has_key?(:'to')
|
95
49
|
if (value = attributes[:'to']).is_a?(Array)
|
96
50
|
self.to = value
|
97
51
|
end
|
98
52
|
end
|
99
53
|
|
100
|
-
if attributes.has_key?(:'contentType')
|
101
|
-
self.content_type = attributes[:'contentType']
|
102
|
-
else
|
103
|
-
self.content_type = 'html'
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.has_key?(:'bcc')
|
107
|
-
if (value = attributes[:'bcc']).is_a?(Array)
|
108
|
-
self.bcc = value
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.has_key?(:'cc')
|
113
|
-
if (value = attributes[:'cc']).is_a?(Array)
|
114
|
-
self.cc = value
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
54
|
if attributes.has_key?(:'body')
|
119
55
|
self.body = attributes[:'body']
|
120
56
|
end
|
@@ -124,10 +60,6 @@ module SibApiV3Sdk
|
|
124
60
|
# @return Array for valid properties with the reasons
|
125
61
|
def list_invalid_properties
|
126
62
|
invalid_properties = Array.new
|
127
|
-
if @subject.nil?
|
128
|
-
invalid_properties.push('invalid value for "subject", subject cannot be nil.')
|
129
|
-
end
|
130
|
-
|
131
63
|
if @to.nil?
|
132
64
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
133
65
|
end
|
@@ -142,34 +74,17 @@ module SibApiV3Sdk
|
|
142
74
|
# Check to see if the all the properties in the model are valid
|
143
75
|
# @return true if the model is valid
|
144
76
|
def valid?
|
145
|
-
return false if @subject.nil?
|
146
77
|
return false if @to.nil?
|
147
|
-
content_type_validator = EnumAttributeValidator.new('String', ['text', 'html'])
|
148
|
-
return false unless content_type_validator.valid?(@content_type)
|
149
78
|
return false if @body.nil?
|
150
79
|
true
|
151
80
|
end
|
152
81
|
|
153
|
-
# Custom attribute writer method checking allowed values (enum).
|
154
|
-
# @param [Object] content_type Object to be assigned
|
155
|
-
def content_type=(content_type)
|
156
|
-
validator = EnumAttributeValidator.new('String', ['text', 'html'])
|
157
|
-
unless validator.valid?(content_type)
|
158
|
-
fail ArgumentError, 'invalid value for "content_type", must be one of #{validator.allowable_values}.'
|
159
|
-
end
|
160
|
-
@content_type = content_type
|
161
|
-
end
|
162
|
-
|
163
82
|
# Checks equality by comparing each attribute.
|
164
83
|
# @param [Object] Object to be compared
|
165
84
|
def ==(o)
|
166
85
|
return true if self.equal?(o)
|
167
86
|
self.class == o.class &&
|
168
|
-
subject == o.subject &&
|
169
87
|
to == o.to &&
|
170
|
-
content_type == o.content_type &&
|
171
|
-
bcc == o.bcc &&
|
172
|
-
cc == o.cc &&
|
173
88
|
body == o.body
|
174
89
|
end
|
175
90
|
|
@@ -182,7 +97,7 @@ module SibApiV3Sdk
|
|
182
97
|
# Calculates hash code according to all attributes.
|
183
98
|
# @return [Fixnum] Hash code
|
184
99
|
def hash
|
185
|
-
[
|
100
|
+
[to, body].hash
|
186
101
|
end
|
187
102
|
|
188
103
|
# Builds the object from hash
|
@@ -36,7 +36,7 @@ module SibApiV3Sdk
|
|
36
36
|
|
37
37
|
attr_accessor :reply_to
|
38
38
|
|
39
|
-
# Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"
|
39
|
+
# Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: 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, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored )
|
40
40
|
attr_accessor :attachment
|
41
41
|
|
42
42
|
# Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`.
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
|
-
# Mandatory if
|
16
|
+
# Mandatory if `templateId` is not passed. Pass name (optional) and email or id of sender from which emails will be sent. `name` will be ignored if passed along with sender `id`. For example, {\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"} or {\"id\":2}
|
17
17
|
class SendSmtpEmailSender
|
18
18
|
# Name of the sender from which the emails will be sent. Maximum allowed characters are 70.
|
19
19
|
attr_accessor :name
|
@@ -21,11 +21,15 @@ module SibApiV3Sdk
|
|
21
21
|
# Email of the sender from which the emails will be sent
|
22
22
|
attr_accessor :email
|
23
23
|
|
24
|
+
# Id of the sender from which the emails will be sent
|
25
|
+
attr_accessor :id
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'name' => :'name',
|
28
|
-
:'email' => :'email'
|
31
|
+
:'email' => :'email',
|
32
|
+
:'id' => :'id'
|
29
33
|
}
|
30
34
|
end
|
31
35
|
|
@@ -33,7 +37,8 @@ module SibApiV3Sdk
|
|
33
37
|
def self.swagger_types
|
34
38
|
{
|
35
39
|
:'name' => :'String',
|
36
|
-
:'email' => :'String'
|
40
|
+
:'email' => :'String',
|
41
|
+
:'id' => :'Integer'
|
37
42
|
}
|
38
43
|
end
|
39
44
|
|
@@ -52,6 +57,10 @@ module SibApiV3Sdk
|
|
52
57
|
if attributes.has_key?(:'email')
|
53
58
|
self.email = attributes[:'email']
|
54
59
|
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'id')
|
62
|
+
self.id = attributes[:'id']
|
63
|
+
end
|
55
64
|
end
|
56
65
|
|
57
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,7 +87,8 @@ module SibApiV3Sdk
|
|
78
87
|
return true if self.equal?(o)
|
79
88
|
self.class == o.class &&
|
80
89
|
name == o.name &&
|
81
|
-
email == o.email
|
90
|
+
email == o.email &&
|
91
|
+
id == o.id
|
82
92
|
end
|
83
93
|
|
84
94
|
# @see the `==` method
|
@@ -90,7 +100,7 @@ module SibApiV3Sdk
|
|
90
100
|
# Calculates hash code according to all attributes.
|
91
101
|
# @return [Fixnum] Hash code
|
92
102
|
def hash
|
93
|
-
[name, email].hash
|
103
|
+
[name, email, id].hash
|
94
104
|
end
|
95
105
|
|
96
106
|
# Builds the object from hash
|