ElasticEmail 4.0.11 → 4.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +3 -3
  3. data/README.md +12 -9
  4. data/VERSION +1 -1
  5. data/docs/ApiKeyPayload.md +2 -2
  6. data/docs/BodyPart.md +1 -1
  7. data/docs/Campaign.md +4 -4
  8. data/docs/CampaignOptions.md +2 -2
  9. data/docs/CampaignTemplate.md +2 -2
  10. data/docs/CampaignsApi.md +2 -2
  11. data/docs/ConsentData.md +1 -1
  12. data/docs/Contact.md +3 -3
  13. data/docs/ContactHistory.md +1 -1
  14. data/docs/ContactPayload.md +2 -2
  15. data/docs/ContactsApi.md +3 -3
  16. data/docs/EmailContent.md +2 -2
  17. data/docs/EmailData.md +2 -2
  18. data/docs/EmailMessageData.md +3 -3
  19. data/docs/EmailRecipient.md +1 -1
  20. data/docs/EmailStatus.md +1 -1
  21. data/docs/EmailTransactionalMessageData.md +3 -3
  22. data/docs/EmailsApi.md +3 -3
  23. data/docs/EmailsPayload.md +2 -2
  24. data/docs/EventsApi.md +7 -7
  25. data/docs/FilePayload.md +1 -1
  26. data/docs/FilesApi.md +1 -1
  27. data/docs/InboundPayload.md +4 -4
  28. data/docs/InboundRoute.md +2 -2
  29. data/docs/InboundRouteApi.md +3 -3
  30. data/docs/ListPayload.md +2 -2
  31. data/docs/ListsApi.md +1 -1
  32. data/docs/MergeEmailPayload.md +3 -3
  33. data/docs/MessageAttachment.md +4 -4
  34. data/docs/NewSmtpCredentials.md +1 -1
  35. data/docs/Options.md +1 -1
  36. data/docs/RecipientEvent.md +2 -2
  37. data/docs/SecurityApi.md +4 -4
  38. data/docs/SegmentPayload.md +2 -2
  39. data/docs/SegmentsApi.md +2 -2
  40. data/docs/SmtpCredentials.md +1 -1
  41. data/docs/SmtpCredentialsPayload.md +1 -1
  42. data/docs/SortOrderItem.md +2 -2
  43. data/docs/SplitOptions.md +1 -1
  44. data/docs/SubAccountInfo.md +2 -2
  45. data/docs/SubAccountsApi.md +2 -2
  46. data/docs/SubaccountEmailCreditsPayload.md +1 -1
  47. data/docs/SubaccountEmailSettings.md +3 -1
  48. data/docs/SubaccountEmailSettingsPayload.md +3 -1
  49. data/docs/SubaccountPayload.md +3 -3
  50. data/docs/SubaccountSettingsInfo.md +1 -1
  51. data/docs/SubaccountSettingsInfoPayload.md +1 -1
  52. data/docs/Template.md +2 -2
  53. data/docs/TemplatePayload.md +2 -2
  54. data/docs/TemplatesApi.md +2 -2
  55. data/docs/TransactionalRecipient.md +1 -1
  56. data/docs/VerificationFileResult.md +2 -2
  57. data/docs/VerificationFileResultDetails.md +2 -2
  58. data/docs/VerificationsApi.md +80 -9
  59. data/lib/ElasticEmail/api/campaigns_api.rb +10 -4
  60. data/lib/ElasticEmail/api/contacts_api.rb +20 -8
  61. data/lib/ElasticEmail/api/emails_api.rb +14 -5
  62. data/lib/ElasticEmail/api/events_api.rb +9 -9
  63. data/lib/ElasticEmail/api/files_api.rb +6 -3
  64. data/lib/ElasticEmail/api/inbound_route_api.rb +14 -5
  65. data/lib/ElasticEmail/api/lists_api.rb +18 -6
  66. data/lib/ElasticEmail/api/security_api.rb +18 -6
  67. data/lib/ElasticEmail/api/segments_api.rb +10 -4
  68. data/lib/ElasticEmail/api/statistics_api.rb +2 -2
  69. data/lib/ElasticEmail/api/sub_accounts_api.rb +14 -5
  70. data/lib/ElasticEmail/api/suppressions_api.rb +26 -8
  71. data/lib/ElasticEmail/api/templates_api.rb +10 -4
  72. data/lib/ElasticEmail/api/verifications_api.rb +73 -9
  73. data/lib/ElasticEmail/api_client.rb +5 -5
  74. data/lib/ElasticEmail/api_error.rb +2 -2
  75. data/lib/ElasticEmail/configuration.rb +4 -3
  76. data/lib/ElasticEmail/models/access_level.rb +3 -2
  77. data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
  78. data/lib/ElasticEmail/models/api_key.rb +2 -2
  79. data/lib/ElasticEmail/models/api_key_payload.rb +12 -2
  80. data/lib/ElasticEmail/models/body_content_type.rb +2 -2
  81. data/lib/ElasticEmail/models/body_part.rb +9 -3
  82. data/lib/ElasticEmail/models/campaign.rb +14 -5
  83. data/lib/ElasticEmail/models/campaign_options.rb +4 -4
  84. data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
  85. data/lib/ElasticEmail/models/campaign_status.rb +2 -2
  86. data/lib/ElasticEmail/models/campaign_template.rb +2 -3
  87. data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
  88. data/lib/ElasticEmail/models/compression_format.rb +2 -2
  89. data/lib/ElasticEmail/models/consent_data.rb +4 -3
  90. data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
  91. data/lib/ElasticEmail/models/contact.rb +6 -5
  92. data/lib/ElasticEmail/models/contact_activity.rb +2 -2
  93. data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
  94. data/lib/ElasticEmail/models/contact_history.rb +4 -3
  95. data/lib/ElasticEmail/models/contact_payload.rb +9 -3
  96. data/lib/ElasticEmail/models/contact_source.rb +2 -2
  97. data/lib/ElasticEmail/models/contact_status.rb +2 -2
  98. data/lib/ElasticEmail/models/contact_update_payload.rb +2 -2
  99. data/lib/ElasticEmail/models/contacts_list.rb +2 -2
  100. data/lib/ElasticEmail/models/delivery_optimization_type.rb +2 -2
  101. data/lib/ElasticEmail/models/email_content.rb +2 -3
  102. data/lib/ElasticEmail/models/email_data.rb +2 -4
  103. data/lib/ElasticEmail/models/email_message_data.rb +8 -5
  104. data/lib/ElasticEmail/models/email_recipient.rb +8 -3
  105. data/lib/ElasticEmail/models/email_send.rb +2 -2
  106. data/lib/ElasticEmail/models/email_status.rb +4 -3
  107. data/lib/ElasticEmail/models/email_transactional_message_data.rb +7 -5
  108. data/lib/ElasticEmail/models/email_validation_result.rb +2 -2
  109. data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
  110. data/lib/ElasticEmail/models/email_view.rb +2 -2
  111. data/lib/ElasticEmail/models/emails_payload.rb +3 -3
  112. data/lib/ElasticEmail/models/encoding_type.rb +2 -2
  113. data/lib/ElasticEmail/models/event_type.rb +2 -2
  114. data/lib/ElasticEmail/models/events_order_by.rb +2 -2
  115. data/lib/ElasticEmail/models/export_file_formats.rb +2 -2
  116. data/lib/ElasticEmail/models/export_link.rb +2 -2
  117. data/lib/ElasticEmail/models/export_status.rb +2 -2
  118. data/lib/ElasticEmail/models/file_info.rb +2 -2
  119. data/lib/ElasticEmail/models/file_payload.rb +7 -2
  120. data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
  121. data/lib/ElasticEmail/models/inbound_payload.rb +26 -4
  122. data/lib/ElasticEmail/models/inbound_route.rb +6 -4
  123. data/lib/ElasticEmail/models/inbound_route_action_type.rb +2 -2
  124. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +2 -2
  125. data/lib/ElasticEmail/models/list_payload.rb +8 -3
  126. data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
  127. data/lib/ElasticEmail/models/log_job_status.rb +2 -2
  128. data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
  129. data/lib/ElasticEmail/models/merge_email_payload.rb +7 -5
  130. data/lib/ElasticEmail/models/message_attachment.rb +10 -3
  131. data/lib/ElasticEmail/models/message_category.rb +2 -2
  132. data/lib/ElasticEmail/models/new_api_key.rb +2 -2
  133. data/lib/ElasticEmail/models/new_smtp_credentials.rb +4 -3
  134. data/lib/ElasticEmail/models/options.rb +4 -3
  135. data/lib/ElasticEmail/models/recipient_event.rb +6 -4
  136. data/lib/ElasticEmail/models/segment.rb +2 -2
  137. data/lib/ElasticEmail/models/segment_payload.rb +12 -2
  138. data/lib/ElasticEmail/models/smtp_credentials.rb +4 -3
  139. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +7 -2
  140. data/lib/ElasticEmail/models/sort_order_item.rb +13 -2
  141. data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
  142. data/lib/ElasticEmail/models/split_options.rb +4 -3
  143. data/lib/ElasticEmail/models/sub_account_info.rb +4 -4
  144. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +7 -2
  145. data/lib/ElasticEmail/models/subaccount_email_settings.rb +16 -6
  146. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +16 -6
  147. data/lib/ElasticEmail/models/subaccount_payload.rb +12 -3
  148. data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -3
  149. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -3
  150. data/lib/ElasticEmail/models/suppression.rb +2 -2
  151. data/lib/ElasticEmail/models/template.rb +6 -4
  152. data/lib/ElasticEmail/models/template_payload.rb +9 -3
  153. data/lib/ElasticEmail/models/template_scope.rb +2 -2
  154. data/lib/ElasticEmail/models/template_type.rb +2 -2
  155. data/lib/ElasticEmail/models/transactional_recipient.rb +7 -2
  156. data/lib/ElasticEmail/models/utm.rb +2 -2
  157. data/lib/ElasticEmail/models/verification_file_result.rb +4 -4
  158. data/lib/ElasticEmail/models/verification_file_result_details.rb +4 -4
  159. data/lib/ElasticEmail/models/verification_status.rb +2 -2
  160. data/lib/ElasticEmail/version.rb +3 -3
  161. data/lib/ElasticEmail.rb +2 -2
  162. data/spec/api_client_spec.rb +4 -4
  163. data/spec/configuration_spec.rb +2 -2
  164. data/spec/spec_helper.rb +2 -2
  165. metadata +10 -9
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,6 @@ module ElasticEmail
19
19
  # Unique token to be used in the system
20
20
  attr_accessor :token
21
21
 
22
- # Access level of this Smtp Credential.
23
22
  attr_accessor :access_level
24
23
 
25
24
  # Name of the key.
@@ -97,6 +96,8 @@ module ElasticEmail
97
96
 
98
97
  if attributes.key?(:'access_level')
99
98
  self.access_level = attributes[:'access_level']
99
+ else
100
+ self.access_level = 'None'
100
101
  end
101
102
 
102
103
  if attributes.key?(:'name')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -25,7 +25,6 @@ module ElasticEmail
25
25
  # Name of selected channel.
26
26
  attr_accessor :channel_name
27
27
 
28
- # 0 for None, 1 for Raw7Bit, 2 for Raw8Bit, 3 for QuotedPrintable, 4 for Base64 (Default), 5 for Uue note that you can also provide the text version such as \"Raw7Bit\" for value 1. NOTE: Base64 or QuotedPrintable is recommended if you are validating your domain(s) with DKIM.
29
28
  attr_accessor :encoding
30
29
 
31
30
  # Should the opens be tracked? If no value has been provided, Account's default setting will be used.
@@ -99,6 +98,8 @@ module ElasticEmail
99
98
 
100
99
  if attributes.key?(:'encoding')
101
100
  self.encoding = attributes[:'encoding']
101
+ else
102
+ self.encoding = 'UserProvided'
102
103
  end
103
104
 
104
105
  if attributes.key?(:'track_opens')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -31,7 +31,6 @@ module ElasticEmail
31
31
  # Default subject of email.
32
32
  attr_accessor :subject
33
33
 
34
- # Type of an Event
35
34
  attr_accessor :event_type
36
35
 
37
36
  # Creation date
@@ -40,7 +39,6 @@ module ElasticEmail
40
39
  # Name of selected channel.
41
40
  attr_accessor :channel_name
42
41
 
43
- # Message category
44
42
  attr_accessor :message_category
45
43
 
46
44
  # Date of next try
@@ -142,6 +140,8 @@ module ElasticEmail
142
140
 
143
141
  if attributes.key?(:'event_type')
144
142
  self.event_type = attributes[:'event_type']
143
+ else
144
+ self.event_type = 'Submission'
145
145
  end
146
146
 
147
147
  if attributes.key?(:'event_date')
@@ -154,6 +154,8 @@ module ElasticEmail
154
154
 
155
155
  if attributes.key?(:'message_category')
156
156
  self.message_category = attributes[:'message_category']
157
+ else
158
+ self.message_category = 'Unknown'
157
159
  end
158
160
 
159
161
  if attributes.key?(:'next_try_on')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -76,12 +76,22 @@ module ElasticEmail
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
+ if @name.nil?
80
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
81
+ end
82
+
83
+ if @rule.nil?
84
+ invalid_properties.push('invalid value for "rule", rule cannot be nil.')
85
+ end
86
+
79
87
  invalid_properties
80
88
  end
81
89
 
82
90
  # Check to see if the all the properties in the model are valid
83
91
  # @return true if the model is valid
84
92
  def valid?
93
+ return false if @name.nil?
94
+ return false if @rule.nil?
85
95
  true
86
96
  end
87
97
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -16,7 +16,6 @@ require 'time'
16
16
  module ElasticEmail
17
17
  # SMTP Credentials info
18
18
  class SmtpCredentials
19
- # Access level of this Smtp Credential.
20
19
  attr_accessor :access_level
21
20
 
22
21
  # Name of the key.
@@ -88,6 +87,8 @@ module ElasticEmail
88
87
 
89
88
  if attributes.key?(:'access_level')
90
89
  self.access_level = attributes[:'access_level']
90
+ else
91
+ self.access_level = 'None'
91
92
  end
92
93
 
93
94
  if attributes.key?(:'name')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -98,12 +98,17 @@ module ElasticEmail
98
98
  # @return Array for valid properties with the reasons
99
99
  def list_invalid_properties
100
100
  invalid_properties = Array.new
101
+ if @name.nil?
102
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
103
+ end
104
+
101
105
  invalid_properties
102
106
  end
103
107
 
104
108
  # Check to see if the all the properties in the model are valid
105
109
  # @return true if the model is valid
106
110
  def valid?
111
+ return false if @name.nil?
107
112
  true
108
113
  end
109
114
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -16,6 +16,7 @@ require 'time'
16
16
  module ElasticEmail
17
17
  # Change the ordering of this inbound route for when matching the inbound
18
18
  class SortOrderItem
19
+ # ID of the route to change the order of
19
20
  attr_accessor :public_inbound_id
20
21
 
21
22
  # 1 - route will be used first
@@ -76,12 +77,22 @@ module ElasticEmail
76
77
  # @return Array for valid properties with the reasons
77
78
  def list_invalid_properties
78
79
  invalid_properties = Array.new
80
+ if @public_inbound_id.nil?
81
+ invalid_properties.push('invalid value for "public_inbound_id", public_inbound_id cannot be nil.')
82
+ end
83
+
84
+ if @sort_order.nil?
85
+ invalid_properties.push('invalid value for "sort_order", sort_order cannot be nil.')
86
+ end
87
+
79
88
  invalid_properties
80
89
  end
81
90
 
82
91
  # Check to see if the all the properties in the model are valid
83
92
  # @return true if the model is valid
84
93
  def valid?
94
+ return false if @public_inbound_id.nil?
95
+ return false if @sort_order.nil?
85
96
  true
86
97
  end
87
98
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -16,7 +16,6 @@ require 'time'
16
16
  module ElasticEmail
17
17
  # Optional A/X split campaign options
18
18
  class SplitOptions
19
- # Type of results by which to determine the winner template (content)
20
19
  attr_accessor :optimize_for
21
20
 
22
21
  # For how long should the results be measured until determining the winner template (content)
@@ -66,6 +65,8 @@ module ElasticEmail
66
65
 
67
66
  if attributes.key?(:'optimize_for')
68
67
  self.optimize_for = attributes[:'optimize_for']
68
+ else
69
+ self.optimize_for = 'Opens'
69
70
  end
70
71
 
71
72
  if attributes.key?(:'optimize_period_minutes')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -22,7 +22,6 @@ module ElasticEmail
22
22
  # Proper email address.
23
23
  attr_accessor :email
24
24
 
25
- # SubAccount settings
26
25
  attr_accessor :settings
27
26
 
28
27
  # Date of last activity on Account
@@ -37,7 +36,6 @@ module ElasticEmail
37
36
  # Numeric reputation
38
37
  attr_accessor :reputation
39
38
 
40
- # Account's current status.
41
39
  attr_accessor :status
42
40
 
43
41
  # How many contacts this SubAccount has stored
@@ -129,6 +127,8 @@ module ElasticEmail
129
127
 
130
128
  if attributes.key?(:'status')
131
129
  self.status = attributes[:'status']
130
+ else
131
+ self.status = 'Disabled'
132
132
  end
133
133
 
134
134
  if attributes.key?(:'contacts_count')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -77,12 +77,17 @@ module ElasticEmail
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
79
  invalid_properties = Array.new
80
+ if @credits.nil?
81
+ invalid_properties.push('invalid value for "credits", credits cannot be nil.')
82
+ end
83
+
80
84
  invalid_properties
81
85
  end
82
86
 
83
87
  # Check to see if the all the properties in the model are valid
84
88
  # @return true if the model is valid
85
89
  def valid?
90
+ return false if @credits.nil?
86
91
  true
87
92
  end
88
93
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -37,6 +37,8 @@ module ElasticEmail
37
37
  # Name of your custom IP Pool to be used in the sending process
38
38
  attr_accessor :pool_name
39
39
 
40
+ attr_accessor :valid_sender_domain_only
41
+
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
41
43
  def self.attribute_map
42
44
  {
@@ -46,7 +48,8 @@ module ElasticEmail
46
48
  :'daily_send_limit' => :'DailySendLimit',
47
49
  :'max_contacts' => :'MaxContacts',
48
50
  :'enable_private_ip_purchase' => :'EnablePrivateIPPurchase',
49
- :'pool_name' => :'PoolName'
51
+ :'pool_name' => :'PoolName',
52
+ :'valid_sender_domain_only' => :'ValidSenderDomainOnly'
50
53
  }
51
54
  end
52
55
 
@@ -64,13 +67,15 @@ module ElasticEmail
64
67
  :'daily_send_limit' => :'Integer',
65
68
  :'max_contacts' => :'Integer',
66
69
  :'enable_private_ip_purchase' => :'Boolean',
67
- :'pool_name' => :'String'
70
+ :'pool_name' => :'String',
71
+ :'valid_sender_domain_only' => :'Boolean'
68
72
  }
69
73
  end
70
74
 
71
75
  # List of attributes with nullable: true
72
76
  def self.openapi_nullable
73
77
  Set.new([
78
+ :'valid_sender_domain_only'
74
79
  ])
75
80
  end
76
81
 
@@ -116,6 +121,10 @@ module ElasticEmail
116
121
  if attributes.key?(:'pool_name')
117
122
  self.pool_name = attributes[:'pool_name']
118
123
  end
124
+
125
+ if attributes.key?(:'valid_sender_domain_only')
126
+ self.valid_sender_domain_only = attributes[:'valid_sender_domain_only']
127
+ end
119
128
  end
120
129
 
121
130
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -142,7 +151,8 @@ module ElasticEmail
142
151
  daily_send_limit == o.daily_send_limit &&
143
152
  max_contacts == o.max_contacts &&
144
153
  enable_private_ip_purchase == o.enable_private_ip_purchase &&
145
- pool_name == o.pool_name
154
+ pool_name == o.pool_name &&
155
+ valid_sender_domain_only == o.valid_sender_domain_only
146
156
  end
147
157
 
148
158
  # @see the `==` method
@@ -154,7 +164,7 @@ module ElasticEmail
154
164
  # Calculates hash code according to all attributes.
155
165
  # @return [Integer] Hash code
156
166
  def hash
157
- [monthly_refill_credits, requires_email_credits, email_size_limit, daily_send_limit, max_contacts, enable_private_ip_purchase, pool_name].hash
167
+ [monthly_refill_credits, requires_email_credits, email_size_limit, daily_send_limit, max_contacts, enable_private_ip_purchase, pool_name, valid_sender_domain_only].hash
158
168
  end
159
169
 
160
170
  # Builds the object from hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.4.0
10
10
 
11
11
  =end
12
12
 
@@ -34,6 +34,8 @@ module ElasticEmail
34
34
  # Name of your custom IP Pool to be used in the sending process
35
35
  attr_accessor :pool_name
36
36
 
37
+ attr_accessor :valid_sender_domain_only
38
+
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
@@ -42,7 +44,8 @@ module ElasticEmail
42
44
  :'daily_send_limit' => :'DailySendLimit',
43
45
  :'max_contacts' => :'MaxContacts',
44
46
  :'enable_private_ip_purchase' => :'EnablePrivateIPPurchase',
45
- :'pool_name' => :'PoolName'
47
+ :'pool_name' => :'PoolName',
48
+ :'valid_sender_domain_only' => :'ValidSenderDomainOnly'
46
49
  }
47
50
  end
48
51
 
@@ -59,13 +62,15 @@ module ElasticEmail
59
62
  :'daily_send_limit' => :'Integer',
60
63
  :'max_contacts' => :'Integer',
61
64
  :'enable_private_ip_purchase' => :'Boolean',
62
- :'pool_name' => :'String'
65
+ :'pool_name' => :'String',
66
+ :'valid_sender_domain_only' => :'Boolean'
63
67
  }
64
68
  end
65
69
 
66
70
  # List of attributes with nullable: true
67
71
  def self.openapi_nullable
68
72
  Set.new([
73
+ :'valid_sender_domain_only'
69
74
  ])
70
75
  end
71
76
 
@@ -107,6 +112,10 @@ module ElasticEmail
107
112
  if attributes.key?(:'pool_name')
108
113
  self.pool_name = attributes[:'pool_name']
109
114
  end
115
+
116
+ if attributes.key?(:'valid_sender_domain_only')
117
+ self.valid_sender_domain_only = attributes[:'valid_sender_domain_only']
118
+ end
110
119
  end
111
120
 
112
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -132,7 +141,8 @@ module ElasticEmail
132
141
  daily_send_limit == o.daily_send_limit &&
133
142
  max_contacts == o.max_contacts &&
134
143
  enable_private_ip_purchase == o.enable_private_ip_purchase &&
135
- pool_name == o.pool_name
144
+ pool_name == o.pool_name &&
145
+ valid_sender_domain_only == o.valid_sender_domain_only
136
146
  end
137
147
 
138
148
  # @see the `==` method
@@ -144,7 +154,7 @@ module ElasticEmail
144
154
  # Calculates hash code according to all attributes.
145
155
  # @return [Integer] Hash code
146
156
  def hash
147
- [requires_email_credits, email_size_limit, daily_send_limit, max_contacts, enable_private_ip_purchase, pool_name].hash
157
+ [requires_email_credits, email_size_limit, daily_send_limit, max_contacts, enable_private_ip_purchase, pool_name, valid_sender_domain_only].hash
148
158
  end
149
159
 
150
160
  # Builds the object from hash