ElasticEmail 4.0.28 → 4.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +1 -1
  3. data/README.md +13 -9
  4. data/VERSION +1 -1
  5. data/docs/CampaignsApi.md +73 -0
  6. data/docs/DKIMRecord.md +26 -0
  7. data/docs/DomainData.md +7 -1
  8. data/docs/DomainDetail.md +7 -1
  9. data/docs/SecurityApi.md +4 -4
  10. data/docs/SubAccountsApi.md +73 -1
  11. data/lib/ElasticEmail/api/campaigns_api.rb +69 -1
  12. data/lib/ElasticEmail/api/contacts_api.rb +1 -1
  13. data/lib/ElasticEmail/api/domains_api.rb +1 -1
  14. data/lib/ElasticEmail/api/emails_api.rb +1 -1
  15. data/lib/ElasticEmail/api/events_api.rb +1 -1
  16. data/lib/ElasticEmail/api/files_api.rb +1 -1
  17. data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
  18. data/lib/ElasticEmail/api/lists_api.rb +1 -1
  19. data/lib/ElasticEmail/api/security_api.rb +5 -5
  20. data/lib/ElasticEmail/api/segments_api.rb +1 -1
  21. data/lib/ElasticEmail/api/statistics_api.rb +1 -1
  22. data/lib/ElasticEmail/api/sub_accounts_api.rb +66 -3
  23. data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
  24. data/lib/ElasticEmail/api/templates_api.rb +1 -1
  25. data/lib/ElasticEmail/api/verifications_api.rb +1 -1
  26. data/lib/ElasticEmail/api/webhook_api.rb +1 -1
  27. data/lib/ElasticEmail/api_client.rb +8 -9
  28. data/lib/ElasticEmail/api_error.rb +1 -1
  29. data/lib/ElasticEmail/configuration.rb +1 -1
  30. data/lib/ElasticEmail/models/access_level.rb +1 -1
  31. data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
  32. data/lib/ElasticEmail/models/api_key.rb +10 -4
  33. data/lib/ElasticEmail/models/api_key_payload.rb +30 -4
  34. data/lib/ElasticEmail/models/body_content_type.rb +1 -1
  35. data/lib/ElasticEmail/models/body_part.rb +20 -4
  36. data/lib/ElasticEmail/models/campaign.rb +30 -4
  37. data/lib/ElasticEmail/models/campaign_options.rb +10 -4
  38. data/lib/ElasticEmail/models/campaign_recipient.rb +10 -4
  39. data/lib/ElasticEmail/models/campaign_status.rb +1 -1
  40. data/lib/ElasticEmail/models/campaign_template.rb +20 -4
  41. data/lib/ElasticEmail/models/certificate_validation_status.rb +3 -2
  42. data/lib/ElasticEmail/models/channel_log_status_summary.rb +10 -4
  43. data/lib/ElasticEmail/models/compression_format.rb +1 -1
  44. data/lib/ElasticEmail/models/consent_data.rb +10 -4
  45. data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
  46. data/lib/ElasticEmail/models/contact.rb +10 -4
  47. data/lib/ElasticEmail/models/contact_activity.rb +10 -4
  48. data/lib/ElasticEmail/models/contact_payload.rb +20 -4
  49. data/lib/ElasticEmail/models/contact_source.rb +1 -1
  50. data/lib/ElasticEmail/models/contact_status.rb +1 -1
  51. data/lib/ElasticEmail/models/contact_update_payload.rb +10 -4
  52. data/lib/ElasticEmail/models/contacts_list.rb +10 -4
  53. data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
  54. data/lib/ElasticEmail/models/dkim_record.rb +258 -0
  55. data/lib/ElasticEmail/models/domain_data.rb +42 -8
  56. data/lib/ElasticEmail/models/domain_detail.rb +42 -8
  57. data/lib/ElasticEmail/models/domain_owner.rb +1 -1
  58. data/lib/ElasticEmail/models/domain_payload.rb +10 -4
  59. data/lib/ElasticEmail/models/domain_update_payload.rb +10 -4
  60. data/lib/ElasticEmail/models/email_content.rb +20 -4
  61. data/lib/ElasticEmail/models/email_data.rb +10 -4
  62. data/lib/ElasticEmail/models/email_job_failed_status.rb +10 -4
  63. data/lib/ElasticEmail/models/email_job_status.rb +10 -4
  64. data/lib/ElasticEmail/models/email_message_data.rb +30 -4
  65. data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
  66. data/lib/ElasticEmail/models/email_recipient.rb +20 -4
  67. data/lib/ElasticEmail/models/email_send.rb +10 -4
  68. data/lib/ElasticEmail/models/email_status.rb +10 -4
  69. data/lib/ElasticEmail/models/email_transactional_message_data.rb +30 -4
  70. data/lib/ElasticEmail/models/email_validation_result.rb +10 -4
  71. data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
  72. data/lib/ElasticEmail/models/email_view.rb +10 -4
  73. data/lib/ElasticEmail/models/emails_payload.rb +10 -4
  74. data/lib/ElasticEmail/models/encoding_type.rb +1 -1
  75. data/lib/ElasticEmail/models/event_type.rb +6 -3
  76. data/lib/ElasticEmail/models/events_order_by.rb +1 -1
  77. data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
  78. data/lib/ElasticEmail/models/export_link.rb +10 -4
  79. data/lib/ElasticEmail/models/export_status.rb +1 -1
  80. data/lib/ElasticEmail/models/file_info.rb +10 -4
  81. data/lib/ElasticEmail/models/file_payload.rb +20 -4
  82. data/lib/ElasticEmail/models/file_upload_result.rb +10 -4
  83. data/lib/ElasticEmail/models/inbound_payload.rb +50 -4
  84. data/lib/ElasticEmail/models/inbound_route.rb +10 -4
  85. data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
  86. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
  87. data/lib/ElasticEmail/models/list_payload.rb +20 -4
  88. data/lib/ElasticEmail/models/list_update_payload.rb +10 -4
  89. data/lib/ElasticEmail/models/log_job_status.rb +1 -1
  90. data/lib/ElasticEmail/models/log_status_summary.rb +10 -4
  91. data/lib/ElasticEmail/models/merge_email_payload.rb +30 -4
  92. data/lib/ElasticEmail/models/message_attachment.rb +30 -4
  93. data/lib/ElasticEmail/models/message_category.rb +1 -1
  94. data/lib/ElasticEmail/models/message_category_enum.rb +1 -1
  95. data/lib/ElasticEmail/models/new_api_key.rb +10 -4
  96. data/lib/ElasticEmail/models/new_smtp_credentials.rb +10 -4
  97. data/lib/ElasticEmail/models/options.rb +10 -4
  98. data/lib/ElasticEmail/models/recipient_event.rb +10 -4
  99. data/lib/ElasticEmail/models/segment.rb +10 -4
  100. data/lib/ElasticEmail/models/segment_payload.rb +30 -4
  101. data/lib/ElasticEmail/models/smtp_credentials.rb +10 -4
  102. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +20 -4
  103. data/lib/ElasticEmail/models/sort_order_item.rb +30 -4
  104. data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
  105. data/lib/ElasticEmail/models/split_options.rb +10 -4
  106. data/lib/ElasticEmail/models/sub_account_info.rb +10 -4
  107. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +20 -4
  108. data/lib/ElasticEmail/models/subaccount_email_settings.rb +10 -4
  109. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +10 -4
  110. data/lib/ElasticEmail/models/subaccount_payload.rb +30 -4
  111. data/lib/ElasticEmail/models/subaccount_settings_info.rb +10 -4
  112. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +10 -4
  113. data/lib/ElasticEmail/models/suppression.rb +10 -4
  114. data/lib/ElasticEmail/models/template.rb +10 -4
  115. data/lib/ElasticEmail/models/template_payload.rb +20 -4
  116. data/lib/ElasticEmail/models/template_scope.rb +1 -1
  117. data/lib/ElasticEmail/models/template_type.rb +1 -1
  118. data/lib/ElasticEmail/models/tracking_type.rb +1 -1
  119. data/lib/ElasticEmail/models/tracking_validation_status.rb +1 -1
  120. data/lib/ElasticEmail/models/transactional_recipient.rb +20 -4
  121. data/lib/ElasticEmail/models/utm.rb +10 -4
  122. data/lib/ElasticEmail/models/verification_file_result.rb +10 -4
  123. data/lib/ElasticEmail/models/verification_file_result_details.rb +10 -4
  124. data/lib/ElasticEmail/models/verification_status.rb +1 -1
  125. data/lib/ElasticEmail/models/webhook.rb +10 -4
  126. data/lib/ElasticEmail/models/webhook_create_payload.rb +30 -4
  127. data/lib/ElasticEmail/models/webhook_update_payload.rb +10 -4
  128. data/lib/ElasticEmail/version.rb +2 -2
  129. data/lib/ElasticEmail.rb +2 -1
  130. data/spec/api/campaigns_api_spec.rb +14 -1
  131. data/spec/api/contacts_api_spec.rb +1 -1
  132. data/spec/api/domains_api_spec.rb +1 -1
  133. data/spec/api/emails_api_spec.rb +1 -1
  134. data/spec/api/events_api_spec.rb +1 -1
  135. data/spec/api/files_api_spec.rb +1 -1
  136. data/spec/api/inbound_route_api_spec.rb +1 -1
  137. data/spec/api/lists_api_spec.rb +1 -1
  138. data/spec/api/security_api_spec.rb +3 -3
  139. data/spec/api/segments_api_spec.rb +1 -1
  140. data/spec/api/statistics_api_spec.rb +1 -1
  141. data/spec/api/sub_accounts_api_spec.rb +14 -2
  142. data/spec/api/suppressions_api_spec.rb +1 -1
  143. data/spec/api/templates_api_spec.rb +1 -1
  144. data/spec/api/verifications_api_spec.rb +1 -1
  145. data/spec/api/webhook_api_spec.rb +1 -1
  146. data/spec/models/access_level_spec.rb +1 -1
  147. data/spec/models/account_status_enum_spec.rb +1 -1
  148. data/spec/models/api_key_payload_spec.rb +1 -1
  149. data/spec/models/api_key_spec.rb +1 -1
  150. data/spec/models/body_content_type_spec.rb +1 -1
  151. data/spec/models/body_part_spec.rb +1 -1
  152. data/spec/models/campaign_options_spec.rb +1 -1
  153. data/spec/models/campaign_recipient_spec.rb +1 -1
  154. data/spec/models/campaign_spec.rb +1 -1
  155. data/spec/models/campaign_status_spec.rb +1 -1
  156. data/spec/models/campaign_template_spec.rb +1 -1
  157. data/spec/models/certificate_validation_status_spec.rb +1 -1
  158. data/spec/models/channel_log_status_summary_spec.rb +1 -1
  159. data/spec/models/compression_format_spec.rb +1 -1
  160. data/spec/models/consent_data_spec.rb +1 -1
  161. data/spec/models/consent_tracking_spec.rb +1 -1
  162. data/spec/models/contact_activity_spec.rb +1 -1
  163. data/spec/models/contact_payload_spec.rb +1 -1
  164. data/spec/models/contact_source_spec.rb +1 -1
  165. data/spec/models/contact_spec.rb +1 -1
  166. data/spec/models/contact_status_spec.rb +1 -1
  167. data/spec/models/contact_update_payload_spec.rb +1 -1
  168. data/spec/models/contacts_list_spec.rb +1 -1
  169. data/spec/models/delivery_optimization_type_spec.rb +1 -1
  170. data/spec/models/dkim_record_spec.rb +60 -0
  171. data/spec/models/domain_data_spec.rb +19 -1
  172. data/spec/models/domain_detail_spec.rb +19 -1
  173. data/spec/models/domain_owner_spec.rb +1 -1
  174. data/spec/models/domain_payload_spec.rb +1 -1
  175. data/spec/models/domain_update_payload_spec.rb +1 -1
  176. data/spec/models/email_content_spec.rb +1 -1
  177. data/spec/models/email_data_spec.rb +1 -1
  178. data/spec/models/email_job_failed_status_spec.rb +1 -1
  179. data/spec/models/email_job_status_spec.rb +1 -1
  180. data/spec/models/email_message_data_spec.rb +1 -1
  181. data/spec/models/email_predicted_validation_status_spec.rb +1 -1
  182. data/spec/models/email_recipient_spec.rb +1 -1
  183. data/spec/models/email_send_spec.rb +1 -1
  184. data/spec/models/email_status_spec.rb +1 -1
  185. data/spec/models/email_transactional_message_data_spec.rb +1 -1
  186. data/spec/models/email_validation_result_spec.rb +1 -1
  187. data/spec/models/email_validation_status_spec.rb +1 -1
  188. data/spec/models/email_view_spec.rb +1 -1
  189. data/spec/models/emails_payload_spec.rb +1 -1
  190. data/spec/models/encoding_type_spec.rb +1 -1
  191. data/spec/models/event_type_spec.rb +1 -1
  192. data/spec/models/events_order_by_spec.rb +1 -1
  193. data/spec/models/export_file_formats_spec.rb +1 -1
  194. data/spec/models/export_link_spec.rb +1 -1
  195. data/spec/models/export_status_spec.rb +1 -1
  196. data/spec/models/file_info_spec.rb +1 -1
  197. data/spec/models/file_payload_spec.rb +1 -1
  198. data/spec/models/file_upload_result_spec.rb +1 -1
  199. data/spec/models/inbound_payload_spec.rb +1 -1
  200. data/spec/models/inbound_route_action_type_spec.rb +1 -1
  201. data/spec/models/inbound_route_filter_type_spec.rb +1 -1
  202. data/spec/models/inbound_route_spec.rb +1 -1
  203. data/spec/models/list_payload_spec.rb +1 -1
  204. data/spec/models/list_update_payload_spec.rb +1 -1
  205. data/spec/models/log_job_status_spec.rb +1 -1
  206. data/spec/models/log_status_summary_spec.rb +1 -1
  207. data/spec/models/merge_email_payload_spec.rb +1 -1
  208. data/spec/models/message_attachment_spec.rb +1 -1
  209. data/spec/models/message_category_enum_spec.rb +1 -1
  210. data/spec/models/message_category_spec.rb +1 -1
  211. data/spec/models/new_api_key_spec.rb +1 -1
  212. data/spec/models/new_smtp_credentials_spec.rb +1 -1
  213. data/spec/models/options_spec.rb +1 -1
  214. data/spec/models/recipient_event_spec.rb +1 -1
  215. data/spec/models/segment_payload_spec.rb +1 -1
  216. data/spec/models/segment_spec.rb +1 -1
  217. data/spec/models/smtp_credentials_payload_spec.rb +1 -1
  218. data/spec/models/smtp_credentials_spec.rb +1 -1
  219. data/spec/models/sort_order_item_spec.rb +1 -1
  220. data/spec/models/split_optimization_type_spec.rb +1 -1
  221. data/spec/models/split_options_spec.rb +1 -1
  222. data/spec/models/sub_account_info_spec.rb +1 -1
  223. data/spec/models/subaccount_email_credits_payload_spec.rb +1 -1
  224. data/spec/models/subaccount_email_settings_payload_spec.rb +1 -1
  225. data/spec/models/subaccount_email_settings_spec.rb +1 -1
  226. data/spec/models/subaccount_payload_spec.rb +1 -1
  227. data/spec/models/subaccount_settings_info_payload_spec.rb +1 -1
  228. data/spec/models/subaccount_settings_info_spec.rb +1 -1
  229. data/spec/models/suppression_spec.rb +1 -1
  230. data/spec/models/template_payload_spec.rb +1 -1
  231. data/spec/models/template_scope_spec.rb +1 -1
  232. data/spec/models/template_spec.rb +1 -1
  233. data/spec/models/template_type_spec.rb +1 -1
  234. data/spec/models/tracking_type_spec.rb +1 -1
  235. data/spec/models/tracking_validation_status_spec.rb +1 -1
  236. data/spec/models/transactional_recipient_spec.rb +1 -1
  237. data/spec/models/utm_spec.rb +1 -1
  238. data/spec/models/verification_file_result_details_spec.rb +1 -1
  239. data/spec/models/verification_file_result_spec.rb +1 -1
  240. data/spec/models/verification_status_spec.rb +1 -1
  241. data/spec/models/webhook_create_payload_spec.rb +1 -1
  242. data/spec/models/webhook_spec.rb +1 -1
  243. data/spec/models/webhook_update_payload_spec.rb +1 -1
  244. data/spec/spec_helper.rb +1 -1
  245. metadata +95 -91
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -38,9 +38,14 @@ module ElasticEmail
38
38
  }
39
39
  end
40
40
 
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
41
46
  # Returns all the JSON keys this model knows about
42
47
  def self.acceptable_attributes
43
- attribute_map.values
48
+ acceptable_attribute_map.values
44
49
  end
45
50
 
46
51
  # Attribute type mapping.
@@ -68,9 +73,10 @@ module ElasticEmail
68
73
  end
69
74
 
70
75
  # check to see if the attribute exists and convert string to symbol for hash key
76
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
77
  attributes = attributes.each_with_object({}) { |(k, v), h|
72
- if (!self.class.attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SmtpCredentialsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
+ if (!acceptable_attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SmtpCredentialsPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
80
  end
75
81
  h[k.to_sym] = v
76
82
  }
@@ -116,6 +122,16 @@ module ElasticEmail
116
122
  true
117
123
  end
118
124
 
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] name Value to be assigned
127
+ def name=(name)
128
+ if name.nil?
129
+ fail ArgumentError, 'name cannot be nil'
130
+ end
131
+
132
+ @name = name
133
+ end
134
+
119
135
  # Checks equality by comparing each attribute.
120
136
  # @param [Object] Object to be compared
121
137
  def ==(o)
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -30,9 +30,14 @@ module ElasticEmail
30
30
  }
31
31
  end
32
32
 
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
33
38
  # Returns all the JSON keys this model knows about
34
39
  def self.acceptable_attributes
35
- attribute_map.values
40
+ acceptable_attribute_map.values
36
41
  end
37
42
 
38
43
  # Attribute type mapping.
@@ -57,9 +62,10 @@ module ElasticEmail
57
62
  end
58
63
 
59
64
  # check to see if the attribute exists and convert string to symbol for hash key
65
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!self.class.attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SortOrderItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ if (!acceptable_attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SortOrderItem`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
69
  end
64
70
  h[k.to_sym] = v
65
71
  }
@@ -102,6 +108,26 @@ module ElasticEmail
102
108
  true
103
109
  end
104
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] public_inbound_id Value to be assigned
113
+ def public_inbound_id=(public_inbound_id)
114
+ if public_inbound_id.nil?
115
+ fail ArgumentError, 'public_inbound_id cannot be nil'
116
+ end
117
+
118
+ @public_inbound_id = public_inbound_id
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] sort_order Value to be assigned
123
+ def sort_order=(sort_order)
124
+ if sort_order.nil?
125
+ fail ArgumentError, 'sort_order cannot be nil'
126
+ end
127
+
128
+ @sort_order = sort_order
129
+ end
130
+
105
131
  # Checks equality by comparing each attribute.
106
132
  # @param [Object] Object to be compared
107
133
  def ==(o)
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -51,9 +51,14 @@ module ElasticEmail
51
51
  }
52
52
  end
53
53
 
54
+ # Returns attribute mapping this model knows about
55
+ def self.acceptable_attribute_map
56
+ attribute_map
57
+ end
58
+
54
59
  # Returns all the JSON keys this model knows about
55
60
  def self.acceptable_attributes
56
- attribute_map.values
61
+ acceptable_attribute_map.values
57
62
  end
58
63
 
59
64
  # Attribute type mapping.
@@ -78,9 +83,10 @@ module ElasticEmail
78
83
  end
79
84
 
80
85
  # check to see if the attribute exists and convert string to symbol for hash key
86
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
87
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
- if (!self.class.attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SplitOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ if (!acceptable_attribute_map.key?(k.to_sym))
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SplitOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
90
  end
85
91
  h[k.to_sym] = v
86
92
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -78,9 +78,14 @@ module ElasticEmail
78
78
  }
79
79
  end
80
80
 
81
+ # Returns attribute mapping this model knows about
82
+ def self.acceptable_attribute_map
83
+ attribute_map
84
+ end
85
+
81
86
  # Returns all the JSON keys this model knows about
82
87
  def self.acceptable_attributes
83
- attribute_map.values
88
+ acceptable_attribute_map.values
84
89
  end
85
90
 
86
91
  # Attribute type mapping.
@@ -112,9 +117,10 @@ module ElasticEmail
112
117
  end
113
118
 
114
119
  # check to see if the attribute exists and convert string to symbol for hash key
120
+ acceptable_attribute_map = self.class.acceptable_attribute_map
115
121
  attributes = attributes.each_with_object({}) { |(k, v), h|
116
- if (!self.class.attribute_map.key?(k.to_sym))
117
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubAccountInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
122
+ if (!acceptable_attribute_map.key?(k.to_sym))
123
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubAccountInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
118
124
  end
119
125
  h[k.to_sym] = v
120
126
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -30,9 +30,14 @@ module ElasticEmail
30
30
  }
31
31
  end
32
32
 
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
33
38
  # Returns all the JSON keys this model knows about
34
39
  def self.acceptable_attributes
35
- attribute_map.values
40
+ acceptable_attribute_map.values
36
41
  end
37
42
 
38
43
  # Attribute type mapping.
@@ -57,9 +62,10 @@ module ElasticEmail
57
62
  end
58
63
 
59
64
  # check to see if the attribute exists and convert string to symbol for hash key
65
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!self.class.attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailCreditsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ if (!acceptable_attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailCreditsPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
69
  end
64
70
  h[k.to_sym] = v
65
71
  }
@@ -95,6 +101,16 @@ module ElasticEmail
95
101
  true
96
102
  end
97
103
 
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] credits Value to be assigned
106
+ def credits=(credits)
107
+ if credits.nil?
108
+ fail ArgumentError, 'credits cannot be nil'
109
+ end
110
+
111
+ @credits = credits
112
+ end
113
+
98
114
  # Checks equality by comparing each attribute.
99
115
  # @param [Object] Object to be compared
100
116
  def ==(o)
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -53,9 +53,14 @@ module ElasticEmail
53
53
  }
54
54
  end
55
55
 
56
+ # Returns attribute mapping this model knows about
57
+ def self.acceptable_attribute_map
58
+ attribute_map
59
+ end
60
+
56
61
  # Returns all the JSON keys this model knows about
57
62
  def self.acceptable_attributes
58
- attribute_map.values
63
+ acceptable_attribute_map.values
59
64
  end
60
65
 
61
66
  # Attribute type mapping.
@@ -87,9 +92,10 @@ module ElasticEmail
87
92
  end
88
93
 
89
94
  # check to see if the attribute exists and convert string to symbol for hash key
95
+ acceptable_attribute_map = self.class.acceptable_attribute_map
90
96
  attributes = attributes.each_with_object({}) { |(k, v), h|
91
- if (!self.class.attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
+ if (!acceptable_attribute_map.key?(k.to_sym))
98
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
99
  end
94
100
  h[k.to_sym] = v
95
101
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -49,9 +49,14 @@ module ElasticEmail
49
49
  }
50
50
  end
51
51
 
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
52
57
  # Returns all the JSON keys this model knows about
53
58
  def self.acceptable_attributes
54
- attribute_map.values
59
+ acceptable_attribute_map.values
55
60
  end
56
61
 
57
62
  # Attribute type mapping.
@@ -82,9 +87,10 @@ module ElasticEmail
82
87
  end
83
88
 
84
89
  # check to see if the attribute exists and convert string to symbol for hash key
90
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
91
  attributes = attributes.each_with_object({}) { |(k, v), h|
86
- if (!self.class.attribute_map.key?(k.to_sym))
87
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettingsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ if (!acceptable_attribute_map.key?(k.to_sym))
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettingsPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
94
  end
89
95
  h[k.to_sym] = v
90
96
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -37,9 +37,14 @@ module ElasticEmail
37
37
  }
38
38
  end
39
39
 
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
40
45
  # Returns all the JSON keys this model knows about
41
46
  def self.acceptable_attributes
42
- attribute_map.values
47
+ acceptable_attribute_map.values
43
48
  end
44
49
 
45
50
  # Attribute type mapping.
@@ -66,9 +71,10 @@ module ElasticEmail
66
71
  end
67
72
 
68
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
78
  end
73
79
  h[k.to_sym] = v
74
80
  }
@@ -119,6 +125,26 @@ module ElasticEmail
119
125
  true
120
126
  end
121
127
 
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] email Value to be assigned
130
+ def email=(email)
131
+ if email.nil?
132
+ fail ArgumentError, 'email cannot be nil'
133
+ end
134
+
135
+ @email = email
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] password Value to be assigned
140
+ def password=(password)
141
+ if password.nil?
142
+ fail ArgumentError, 'password cannot be nil'
143
+ end
144
+
145
+ @password = password
146
+ end
147
+
122
148
  # Checks equality by comparing each attribute.
123
149
  # @param [Object] Object to be compared
124
150
  def ==(o)
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -25,9 +25,14 @@ module ElasticEmail
25
25
  }
26
26
  end
27
27
 
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
28
33
  # Returns all the JSON keys this model knows about
29
34
  def self.acceptable_attributes
30
- attribute_map.values
35
+ acceptable_attribute_map.values
31
36
  end
32
37
 
33
38
  # Attribute type mapping.
@@ -51,9 +56,10 @@ module ElasticEmail
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
54
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
57
63
  end
58
64
  h[k.to_sym] = v
59
65
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -25,9 +25,14 @@ module ElasticEmail
25
25
  }
26
26
  end
27
27
 
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
28
33
  # Returns all the JSON keys this model knows about
29
34
  def self.acceptable_attributes
30
- attribute_map.values
35
+ acceptable_attribute_map.values
31
36
  end
32
37
 
33
38
  # Attribute type mapping.
@@ -51,9 +56,10 @@ module ElasticEmail
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
54
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfoPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfoPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
57
63
  end
58
64
  h[k.to_sym] = v
59
65
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -38,9 +38,14 @@ module ElasticEmail
38
38
  }
39
39
  end
40
40
 
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
41
46
  # Returns all the JSON keys this model knows about
42
47
  def self.acceptable_attributes
43
- attribute_map.values
48
+ acceptable_attribute_map.values
44
49
  end
45
50
 
46
51
  # Attribute type mapping.
@@ -69,9 +74,10 @@ module ElasticEmail
69
74
  end
70
75
 
71
76
  # check to see if the attribute exists and convert string to symbol for hash key
77
+ acceptable_attribute_map = self.class.acceptable_attribute_map
72
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
73
- if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Suppression`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
+ if (!acceptable_attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Suppression`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
81
  end
76
82
  h[k.to_sym] = v
77
83
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -66,9 +66,14 @@ module ElasticEmail
66
66
  }
67
67
  end
68
68
 
69
+ # Returns attribute mapping this model knows about
70
+ def self.acceptable_attribute_map
71
+ attribute_map
72
+ end
73
+
69
74
  # Returns all the JSON keys this model knows about
70
75
  def self.acceptable_attributes
71
- attribute_map.values
76
+ acceptable_attribute_map.values
72
77
  end
73
78
 
74
79
  # Attribute type mapping.
@@ -97,9 +102,10 @@ module ElasticEmail
97
102
  end
98
103
 
99
104
  # check to see if the attribute exists and convert string to symbol for hash key
105
+ acceptable_attribute_map = self.class.acceptable_attribute_map
100
106
  attributes = attributes.each_with_object({}) { |(k, v), h|
101
- if (!self.class.attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Template`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
107
+ if (!acceptable_attribute_map.key?(k.to_sym))
108
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Template`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
109
  end
104
110
  h[k.to_sym] = v
105
111
  }
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -59,9 +59,14 @@ module ElasticEmail
59
59
  }
60
60
  end
61
61
 
62
+ # Returns attribute mapping this model knows about
63
+ def self.acceptable_attribute_map
64
+ attribute_map
65
+ end
66
+
62
67
  # Returns all the JSON keys this model knows about
63
68
  def self.acceptable_attributes
64
- attribute_map.values
69
+ acceptable_attribute_map.values
65
70
  end
66
71
 
67
72
  # Attribute type mapping.
@@ -88,9 +93,10 @@ module ElasticEmail
88
93
  end
89
94
 
90
95
  # check to see if the attribute exists and convert string to symbol for hash key
96
+ acceptable_attribute_map = self.class.acceptable_attribute_map
91
97
  attributes = attributes.each_with_object({}) { |(k, v), h|
92
- if (!self.class.attribute_map.key?(k.to_sym))
93
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::TemplatePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
+ if (!acceptable_attribute_map.key?(k.to_sym))
99
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::TemplatePayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
94
100
  end
95
101
  h[k.to_sym] = v
96
102
  }
@@ -138,6 +144,16 @@ module ElasticEmail
138
144
  true
139
145
  end
140
146
 
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] name Value to be assigned
149
+ def name=(name)
150
+ if name.nil?
151
+ fail ArgumentError, 'name cannot be nil'
152
+ end
153
+
154
+ @name = name
155
+ end
156
+
141
157
  # Checks equality by comparing each attribute.
142
158
  # @param [Object] Object to be compared
143
159
  def ==(o)
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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
- Generator version: 7.11.0
9
+ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12