constant_contact_client 1.0.0

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 (406) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +56 -0
  3. data/Gemfile +9 -0
  4. data/Gemfile.lock +72 -0
  5. data/LICENSE +29 -0
  6. data/README.md +201 -0
  7. data/Rakefile +10 -0
  8. data/constant_contact_client.gemspec +39 -0
  9. data/docs/AccountServicesApi.md +593 -0
  10. data/docs/BulkActivitiesApi.md +1035 -0
  11. data/docs/ContactListsApi.md +461 -0
  12. data/docs/ContactTagsApi.md +382 -0
  13. data/docs/ContactsApi.md +701 -0
  14. data/docs/ContactsCustomFieldsApi.md +375 -0
  15. data/docs/ContactsReportingApi.md +244 -0
  16. data/docs/EmailCampaignsABTestsApi.md +227 -0
  17. data/docs/EmailCampaignsApi.md +826 -0
  18. data/docs/EmailReportingApi.md +925 -0
  19. data/docs/EmailSchedulingApi.md +447 -0
  20. data/docs/LandingPagesReportingApi.md +481 -0
  21. data/docs/SegmentsApi.md +452 -0
  22. data/lib/constant_contact_client/api/account_services_api.rb +546 -0
  23. data/lib/constant_contact_client/api/bulk_activities_api.rb +983 -0
  24. data/lib/constant_contact_client/api/contact_lists_api.rb +449 -0
  25. data/lib/constant_contact_client/api/contact_tags_api.rb +356 -0
  26. data/lib/constant_contact_client/api/contacts_api.rb +676 -0
  27. data/lib/constant_contact_client/api/contacts_custom_fields_api.rb +356 -0
  28. data/lib/constant_contact_client/api/contacts_reporting_api.rb +255 -0
  29. data/lib/constant_contact_client/api/email_campaigns_ab_tests_api.rb +220 -0
  30. data/lib/constant_contact_client/api/email_campaigns_api.rb +766 -0
  31. data/lib/constant_contact_client/api/email_reporting_api.rb +812 -0
  32. data/lib/constant_contact_client/api/email_scheduling_api.rb +418 -0
  33. data/lib/constant_contact_client/api/landing_pages_reporting_api.rb +436 -0
  34. data/lib/constant_contact_client/api/segments_api.rb +425 -0
  35. data/lib/constant_contact_client/api_client.rb +394 -0
  36. data/lib/constant_contact_client/api_error.rb +58 -0
  37. data/lib/constant_contact_client/configuration.rb +305 -0
  38. data/lib/constant_contact_client/models/ab_test_data.rb +256 -0
  39. data/lib/constant_contact_client/models/access_token_response.rb +265 -0
  40. data/lib/constant_contact_client/models/account_cancellation.rb +226 -0
  41. data/lib/constant_contact_client/models/account_email_create_response.rb +273 -0
  42. data/lib/constant_contact_client/models/account_email_input.rb +234 -0
  43. data/lib/constant_contact_client/models/account_physical_address.rb +409 -0
  44. data/lib/constant_contact_client/models/account_suspension.rb +289 -0
  45. data/lib/constant_contact_client/models/activities.rb +226 -0
  46. data/lib/constant_contact_client/models/activity.rb +316 -0
  47. data/lib/constant_contact_client/models/activity_delete_custom_fields.rb +297 -0
  48. data/lib/constant_contact_client/models/activity_delete_list_response.rb +276 -0
  49. data/lib/constant_contact_client/models/activity_delete_lists_response.rb +305 -0
  50. data/lib/constant_contact_client/models/activity_delete_status.rb +306 -0
  51. data/lib/constant_contact_client/models/activity_errors.rb +215 -0
  52. data/lib/constant_contact_client/models/activity_export_status.rb +306 -0
  53. data/lib/constant_contact_client/models/activity_generic.rb +299 -0
  54. data/lib/constant_contact_client/models/activity_generic_status.rb +225 -0
  55. data/lib/constant_contact_client/models/activity_import.rb +316 -0
  56. data/lib/constant_contact_client/models/activity_links.rb +223 -0
  57. data/lib/constant_contact_client/models/activity_lists_membership.rb +305 -0
  58. data/lib/constant_contact_client/models/activity_reference.rb +225 -0
  59. data/lib/constant_contact_client/models/activity_status.rb +275 -0
  60. data/lib/constant_contact_client/models/activity_status_export_link.rb +223 -0
  61. data/lib/constant_contact_client/models/activity_status_link.rb +214 -0
  62. data/lib/constant_contact_client/models/activity_tagging.rb +319 -0
  63. data/lib/constant_contact_client/models/activity_tagging_status.rb +226 -0
  64. data/lib/constant_contact_client/models/add_account_email_address201_response.rb +273 -0
  65. data/lib/constant_contact_client/models/add_account_email_address_request.rb +234 -0
  66. data/lib/constant_contact_client/models/api_error_schema_inner.rb +225 -0
  67. data/lib/constant_contact_client/models/authorization_error_schema.rb +225 -0
  68. data/lib/constant_contact_client/models/bounces_tracking_activities_page.rb +240 -0
  69. data/lib/constant_contact_client/models/bounces_tracking_activity.rb +347 -0
  70. data/lib/constant_contact_client/models/bulk_email_campaign_summaries_page.rb +249 -0
  71. data/lib/constant_contact_client/models/bulk_email_campaign_summaries_percents.rb +255 -0
  72. data/lib/constant_contact_client/models/bulk_email_campaign_summary.rb +272 -0
  73. data/lib/constant_contact_client/models/campaign_activity_stats_query_result_email.rb +229 -0
  74. data/lib/constant_contact_client/models/campaign_activity_stats_result_generic_stats_email_activity.rb +244 -0
  75. data/lib/constant_contact_client/models/campaign_activity_summary.rb +341 -0
  76. data/lib/constant_contact_client/models/campaign_stats_query_result_email.rb +229 -0
  77. data/lib/constant_contact_client/models/campaign_stats_result_generic_stats_email_percents_email.rb +243 -0
  78. data/lib/constant_contact_client/models/clicks_tracking_activities_page.rb +233 -0
  79. data/lib/constant_contact_client/models/clicks_tracking_activity.rb +364 -0
  80. data/lib/constant_contact_client/models/company_logo.rb +235 -0
  81. data/lib/constant_contact_client/models/contact_campaign_activities_summary.rb +250 -0
  82. data/lib/constant_contact_client/models/contact_create_or_update_input.rb +503 -0
  83. data/lib/constant_contact_client/models/contact_create_or_update_response.rb +225 -0
  84. data/lib/constant_contact_client/models/contact_custom_field.rb +259 -0
  85. data/lib/constant_contact_client/models/contact_delete.rb +267 -0
  86. data/lib/constant_contact_client/models/contact_list.rb +301 -0
  87. data/lib/constant_contact_client/models/contact_list_array.rb +235 -0
  88. data/lib/constant_contact_client/models/contact_list_put_post.rb +291 -0
  89. data/lib/constant_contact_client/models/contact_open_and_click_rates.rb +274 -0
  90. data/lib/constant_contact_client/models/contact_post_request.rb +575 -0
  91. data/lib/constant_contact_client/models/contact_put_request.rb +582 -0
  92. data/lib/constant_contact_client/models/contact_resource.rb +635 -0
  93. data/lib/constant_contact_client/models/contact_tracking_activities_page.rb +227 -0
  94. data/lib/constant_contact_client/models/contact_tracking_activity.rb +270 -0
  95. data/lib/constant_contact_client/models/contact_xref.rb +226 -0
  96. data/lib/constant_contact_client/models/contact_xrefs.rb +236 -0
  97. data/lib/constant_contact_client/models/contacts.rb +246 -0
  98. data/lib/constant_contact_client/models/contacts_counts.rb +265 -0
  99. data/lib/constant_contact_client/models/contacts_export.rb +300 -0
  100. data/lib/constant_contact_client/models/contacts_json_import.rb +281 -0
  101. data/lib/constant_contact_client/models/create_contact_request.rb +575 -0
  102. data/lib/constant_contact_client/models/create_contact_request_email_address.rb +252 -0
  103. data/lib/constant_contact_client/models/create_csv_import_activity201_response.rb +316 -0
  104. data/lib/constant_contact_client/models/create_csv_import_activity201_response_links.rb +214 -0
  105. data/lib/constant_contact_client/models/create_csv_import_activity201_response_status.rb +255 -0
  106. data/lib/constant_contact_client/models/create_delete_activity201_response.rb +306 -0
  107. data/lib/constant_contact_client/models/create_delete_activity201_response_links.rb +214 -0
  108. data/lib/constant_contact_client/models/create_delete_activity201_response_links_self.rb +215 -0
  109. data/lib/constant_contact_client/models/create_delete_activity201_response_status.rb +235 -0
  110. data/lib/constant_contact_client/models/create_delete_activity_request.rb +267 -0
  111. data/lib/constant_contact_client/models/create_email_campaign200_response.rb +306 -0
  112. data/lib/constant_contact_client/models/create_email_campaign200_response_campaign_activities_inner.rb +225 -0
  113. data/lib/constant_contact_client/models/create_email_campaign_request.rb +260 -0
  114. data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner.rb +402 -0
  115. data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner_physical_address_in_footer.rb +347 -0
  116. data/lib/constant_contact_client/models/create_export_activity201_response.rb +306 -0
  117. data/lib/constant_contact_client/models/create_export_activity201_response_status.rb +225 -0
  118. data/lib/constant_contact_client/models/create_export_activity_request.rb +300 -0
  119. data/lib/constant_contact_client/models/create_import_json_activity_request.rb +281 -0
  120. data/lib/constant_contact_client/models/create_import_json_activity_request_import_data_inner.rb +1315 -0
  121. data/lib/constant_contact_client/models/create_list_add_activity_request.rb +268 -0
  122. data/lib/constant_contact_client/models/create_list_add_activity_request_exclude.rb +217 -0
  123. data/lib/constant_contact_client/models/create_list_add_activity_request_source.rb +331 -0
  124. data/lib/constant_contact_client/models/create_list_delete_activity201_response.rb +305 -0
  125. data/lib/constant_contact_client/models/create_list_delete_activity201_response_links.rb +214 -0
  126. data/lib/constant_contact_client/models/create_list_delete_activity201_response_links_self.rb +215 -0
  127. data/lib/constant_contact_client/models/create_list_delete_activity201_response_status.rb +215 -0
  128. data/lib/constant_contact_client/models/create_list_delete_activity_request.rb +243 -0
  129. data/lib/constant_contact_client/models/create_list_remove_activity201_response.rb +305 -0
  130. data/lib/constant_contact_client/models/create_list_remove_activity201_response_status.rb +235 -0
  131. data/lib/constant_contact_client/models/create_list_remove_activity_request.rb +268 -0
  132. data/lib/constant_contact_client/models/create_list_remove_activity_request_exclude.rb +217 -0
  133. data/lib/constant_contact_client/models/create_list_remove_activity_request_source.rb +321 -0
  134. data/lib/constant_contact_client/models/create_or_update_contact200_response.rb +225 -0
  135. data/lib/constant_contact_client/models/create_or_update_contact_custom_field.rb +244 -0
  136. data/lib/constant_contact_client/models/create_or_update_contact_request.rb +503 -0
  137. data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb +244 -0
  138. data/lib/constant_contact_client/models/create_or_update_contact_request_street_address.rb +367 -0
  139. data/lib/constant_contact_client/models/create_resend_email_campaign201_response.rb +255 -0
  140. data/lib/constant_contact_client/models/create_resend_email_campaign_request.rb +242 -0
  141. data/lib/constant_contact_client/models/create_segment201_response.rb +274 -0
  142. data/lib/constant_contact_client/models/create_segment_request.rb +258 -0
  143. data/lib/constant_contact_client/models/create_tag_delete_activity_request.rb +243 -0
  144. data/lib/constant_contact_client/models/create_tag_remove_activity201_response.rb +319 -0
  145. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links.rb +223 -0
  146. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_results.rb +215 -0
  147. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_self.rb +214 -0
  148. data/lib/constant_contact_client/models/create_tag_remove_activity201_response_status.rb +226 -0
  149. data/lib/constant_contact_client/models/create_tag_remove_activity_request.rb +268 -0
  150. data/lib/constant_contact_client/models/create_tag_remove_activity_request_exclude.rb +218 -0
  151. data/lib/constant_contact_client/models/create_tag_remove_activity_request_source.rb +319 -0
  152. data/lib/constant_contact_client/models/cross_reference.rb +235 -0
  153. data/lib/constant_contact_client/models/cross_reference_response.rb +217 -0
  154. data/lib/constant_contact_client/models/custom_field_id100.rb +243 -0
  155. data/lib/constant_contact_client/models/custom_field_input.rb +258 -0
  156. data/lib/constant_contact_client/models/custom_field_resource.rb +318 -0
  157. data/lib/constant_contact_client/models/custom_fields.rb +245 -0
  158. data/lib/constant_contact_client/models/customer.rb +352 -0
  159. data/lib/constant_contact_client/models/customer_put.rb +334 -0
  160. data/lib/constant_contact_client/models/delete_list202_response.rb +276 -0
  161. data/lib/constant_contact_client/models/delete_tag202_response.rb +299 -0
  162. data/lib/constant_contact_client/models/delete_tag202_response_activity_errors_inner.rb +215 -0
  163. data/lib/constant_contact_client/models/delete_tag202_response_links.rb +214 -0
  164. data/lib/constant_contact_client/models/delete_tag202_response_links_self.rb +215 -0
  165. data/lib/constant_contact_client/models/delete_tag202_response_status.rb +225 -0
  166. data/lib/constant_contact_client/models/device_flow_response.rb +265 -0
  167. data/lib/constant_contact_client/models/did_not_opens_tracking_activities_page.rb +233 -0
  168. data/lib/constant_contact_client/models/did_not_opens_tracking_activity.rb +320 -0
  169. data/lib/constant_contact_client/models/email_address.rb +351 -0
  170. data/lib/constant_contact_client/models/email_address_post.rb +252 -0
  171. data/lib/constant_contact_client/models/email_address_put.rb +341 -0
  172. data/lib/constant_contact_client/models/email_campaign.rb +306 -0
  173. data/lib/constant_contact_client/models/email_campaign_activity.rb +405 -0
  174. data/lib/constant_contact_client/models/email_campaign_activity_input.rb +402 -0
  175. data/lib/constant_contact_client/models/email_campaign_activity_preview.rb +285 -0
  176. data/lib/constant_contact_client/models/email_campaign_complete.rb +260 -0
  177. data/lib/constant_contact_client/models/email_campaign_name.rb +241 -0
  178. data/lib/constant_contact_client/models/email_campaigns.rb +294 -0
  179. data/lib/constant_contact_client/models/email_link_click_count.rb +265 -0
  180. data/lib/constant_contact_client/models/email_links.rb +227 -0
  181. data/lib/constant_contact_client/models/email_physical_address.rb +346 -0
  182. data/lib/constant_contact_client/models/email_schedule_input.rb +222 -0
  183. data/lib/constant_contact_client/models/email_test_send_input.rb +253 -0
  184. data/lib/constant_contact_client/models/emails_link.rb +214 -0
  185. data/lib/constant_contact_client/models/emails_paging_links.rb +214 -0
  186. data/lib/constant_contact_client/models/file_object.rb +384 -0
  187. data/lib/constant_contact_client/models/file_status_array_inner.rb +235 -0
  188. data/lib/constant_contact_client/models/forwards_tracking_activities_page.rb +233 -0
  189. data/lib/constant_contact_client/models/forwards_tracking_activity.rb +320 -0
  190. data/lib/constant_contact_client/models/get_ab_test_email_campaign200_response.rb +256 -0
  191. data/lib/constant_contact_client/models/get_account_details200_response.rb +352 -0
  192. data/lib/constant_contact_client/models/get_account_details200_response_company_logo.rb +236 -0
  193. data/lib/constant_contact_client/models/get_account_details200_response_physical_address.rb +409 -0
  194. data/lib/constant_contact_client/models/get_activity_by_id200_response.rb +316 -0
  195. data/lib/constant_contact_client/models/get_all_account_email_addresses200_response_inner.rb +317 -0
  196. data/lib/constant_contact_client/models/get_all_activities200_response.rb +226 -0
  197. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner.rb +316 -0
  198. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links.rb +223 -0
  199. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_results.rb +215 -0
  200. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_self.rb +215 -0
  201. data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_status.rb +275 -0
  202. data/lib/constant_contact_client/models/get_all_activities200_response_links.rb +214 -0
  203. data/lib/constant_contact_client/models/get_all_activities200_response_links_next.rb +214 -0
  204. data/lib/constant_contact_client/models/get_all_contacts200_response.rb +246 -0
  205. data/lib/constant_contact_client/models/get_all_custom_fields200_response.rb +245 -0
  206. data/lib/constant_contact_client/models/get_all_email_campaigns200_response.rb +225 -0
  207. data/lib/constant_contact_client/models/get_all_email_campaigns200_response_campaigns_inner.rb +294 -0
  208. data/lib/constant_contact_client/models/get_all_email_campaigns200_response_links.rb +214 -0
  209. data/lib/constant_contact_client/models/get_all_lists200_response.rb +235 -0
  210. data/lib/constant_contact_client/models/get_all_segments200_response.rb +233 -0
  211. data/lib/constant_contact_client/models/get_all_segments200_response_links.rb +222 -0
  212. data/lib/constant_contact_client/models/get_all_segments200_response_links_next.rb +223 -0
  213. data/lib/constant_contact_client/models/get_all_segments200_response_segments_inner.rb +245 -0
  214. data/lib/constant_contact_client/models/get_all_tags200_response.rb +226 -0
  215. data/lib/constant_contact_client/models/get_all_tags200_response_links.rb +215 -0
  216. data/lib/constant_contact_client/models/get_all_tags200_response_links_next.rb +224 -0
  217. data/lib/constant_contact_client/models/get_all_tags200_response_links_next_next.rb +223 -0
  218. data/lib/constant_contact_client/models/get_bounces_report200_response.rb +240 -0
  219. data/lib/constant_contact_client/models/get_bounces_report200_response_links.rb +222 -0
  220. data/lib/constant_contact_client/models/get_bounces_report200_response_tracking_activities_inner.rb +347 -0
  221. data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response.rb +227 -0
  222. data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response_link_click_counts_inner.rb +265 -0
  223. data/lib/constant_contact_client/models/get_clicks_report200_response.rb +233 -0
  224. data/lib/constant_contact_client/models/get_clicks_report200_response_links.rb +222 -0
  225. data/lib/constant_contact_client/models/get_clicks_report200_response_tracking_activities_inner.rb +364 -0
  226. data/lib/constant_contact_client/models/get_contact_adds200_response.rb +240 -0
  227. data/lib/constant_contact_client/models/get_contact_adds200_response_tracking_activities_inner.rb +329 -0
  228. data/lib/constant_contact_client/models/get_contact_by_id200_response.rb +635 -0
  229. data/lib/constant_contact_client/models/get_contact_by_id200_response_custom_fields_inner.rb +259 -0
  230. data/lib/constant_contact_client/models/get_contact_by_id200_response_email_address.rb +351 -0
  231. data/lib/constant_contact_client/models/get_contact_by_id200_response_notes_inner.rb +255 -0
  232. data/lib/constant_contact_client/models/get_contact_by_id200_response_phone_numbers_inner.rb +294 -0
  233. data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel.rb +278 -0
  234. data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel_sms_channel_consents_inner.rb +285 -0
  235. data/lib/constant_contact_client/models/get_contact_by_id200_response_street_addresses_inner.rb +397 -0
  236. data/lib/constant_contact_client/models/get_contact_counts200_response.rb +265 -0
  237. data/lib/constant_contact_client/models/get_contact_id_xrefs200_response.rb +236 -0
  238. data/lib/constant_contact_client/models/get_contact_id_xrefs200_response_xrefs_inner.rb +226 -0
  239. data/lib/constant_contact_client/models/get_contact_open_click_rate_report200_response.rb +274 -0
  240. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response.rb +250 -0
  241. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_campaign_activities_inner.rb +341 -0
  242. data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_links.rb +222 -0
  243. data/lib/constant_contact_client/models/get_contact_tracking_report200_response.rb +227 -0
  244. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links.rb +222 -0
  245. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links_next.rb +223 -0
  246. data/lib/constant_contact_client/models/get_contact_tracking_report200_response_tracking_activities_inner.rb +270 -0
  247. data/lib/constant_contact_client/models/get_custom_field200_response.rb +318 -0
  248. data/lib/constant_contact_client/models/get_did_not_opens_report200_response.rb +233 -0
  249. data/lib/constant_contact_client/models/get_did_not_opens_report200_response_tracking_activities_inner.rb +320 -0
  250. data/lib/constant_contact_client/models/get_email_campaign_activity200_response.rb +405 -0
  251. data/lib/constant_contact_client/models/get_email_campaign_activity200_response_document_properties.rb +520 -0
  252. data/lib/constant_contact_client/models/get_email_campaign_activity200_response_physical_address_in_footer.rb +347 -0
  253. data/lib/constant_contact_client/models/get_email_campaign_activity_preview200_response.rb +285 -0
  254. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response.rb +229 -0
  255. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner.rb +244 -0
  256. data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner_stats.rb +476 -0
  257. data/lib/constant_contact_client/models/get_email_campaign_activity_schedule200_response_inner.rb +215 -0
  258. data/lib/constant_contact_client/models/get_email_campaign_activity_send_history200_response_inner.rb +298 -0
  259. data/lib/constant_contact_client/models/get_email_campaign_report200_response.rb +249 -0
  260. data/lib/constant_contact_client/models/get_email_campaign_report200_response_aggregate_percents.rb +256 -0
  261. data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner.rb +272 -0
  262. data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner_unique_counts.rb +342 -0
  263. data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response.rb +217 -0
  264. data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response_xrefs_inner.rb +235 -0
  265. data/lib/constant_contact_client/models/get_email_opens_report200_response.rb +233 -0
  266. data/lib/constant_contact_client/models/get_email_opens_report200_response_tracking_activities_inner.rb +330 -0
  267. data/lib/constant_contact_client/models/get_email_sends_report200_response.rb +233 -0
  268. data/lib/constant_contact_client/models/get_email_sends_report200_response_links.rb +222 -0
  269. data/lib/constant_contact_client/models/get_email_sends_report200_response_tracking_activities_inner.rb +320 -0
  270. data/lib/constant_contact_client/models/get_email_stats_report200_response.rb +229 -0
  271. data/lib/constant_contact_client/models/get_email_stats_report200_response_errors_inner.rb +225 -0
  272. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner.rb +243 -0
  273. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_percents.rb +296 -0
  274. data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_stats.rb +396 -0
  275. data/lib/constant_contact_client/models/get_forwards_report200_response.rb +233 -0
  276. data/lib/constant_contact_client/models/get_forwards_report200_response_tracking_activities_inner.rb +320 -0
  277. data/lib/constant_contact_client/models/get_list200_response.rb +301 -0
  278. data/lib/constant_contact_client/models/get_list_id_xrefs200_response.rb +236 -0
  279. data/lib/constant_contact_client/models/get_list_id_xrefs200_response_xrefs_inner.rb +226 -0
  280. data/lib/constant_contact_client/models/get_optouts_report200_response.rb +240 -0
  281. data/lib/constant_contact_client/models/get_optouts_report200_response_tracking_activities_inner.rb +330 -0
  282. data/lib/constant_contact_client/models/get_resend_email_campaign200_response_inner.rb +265 -0
  283. data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner.rb +255 -0
  284. data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner_history_details.rb +316 -0
  285. data/lib/constant_contact_client/models/get_tag200_response.rb +265 -0
  286. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response.rb +240 -0
  287. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links.rb +222 -0
  288. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links_next.rb +223 -0
  289. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner.rb +366 -0
  290. data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner_sms_channel.rb +246 -0
  291. data/lib/constant_contact_client/models/get_unique_contact_opens200_response.rb +240 -0
  292. data/lib/constant_contact_client/models/get_unique_contact_opens200_response_tracking_activities_inner.rb +339 -0
  293. data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response.rb +240 -0
  294. data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response_tracking_activities_inner.rb +329 -0
  295. data/lib/constant_contact_client/models/get_unique_contact_updates200_response.rb +240 -0
  296. data/lib/constant_contact_client/models/get_unique_contact_updates200_response_tracking_activities_inner.rb +329 -0
  297. data/lib/constant_contact_client/models/get_user_privileges200_response_inner.rb +225 -0
  298. data/lib/constant_contact_client/models/headers_object.rb +225 -0
  299. data/lib/constant_contact_client/models/history_details.rb +316 -0
  300. data/lib/constant_contact_client/models/json_import_contact.rb +1315 -0
  301. data/lib/constant_contact_client/models/link.rb +214 -0
  302. data/lib/constant_contact_client/models/links.rb +221 -0
  303. data/lib/constant_contact_client/models/list_activity_add_contacts.rb +268 -0
  304. data/lib/constant_contact_client/models/list_activity_remove_contacts.rb +268 -0
  305. data/lib/constant_contact_client/models/list_id_list100.rb +243 -0
  306. data/lib/constant_contact_client/models/list_input.rb +263 -0
  307. data/lib/constant_contact_client/models/list_xref.rb +226 -0
  308. data/lib/constant_contact_client/models/list_xrefs.rb +236 -0
  309. data/lib/constant_contact_client/models/lpreporting_links.rb +221 -0
  310. data/lib/constant_contact_client/models/lpreporting_next.rb +222 -0
  311. data/lib/constant_contact_client/models/model_next.rb +222 -0
  312. data/lib/constant_contact_client/models/my_library_file_collection_inner.rb +384 -0
  313. data/lib/constant_contact_client/models/my_library_file_collection_inner_thumbnail.rb +235 -0
  314. data/lib/constant_contact_client/models/note.rb +255 -0
  315. data/lib/constant_contact_client/models/o_auth_error.rb +223 -0
  316. data/lib/constant_contact_client/models/opens_tracking_activities_page.rb +233 -0
  317. data/lib/constant_contact_client/models/opens_tracking_activity.rb +330 -0
  318. data/lib/constant_contact_client/models/optouts_tracking_activities_page.rb +240 -0
  319. data/lib/constant_contact_client/models/optouts_tracking_activity.rb +330 -0
  320. data/lib/constant_contact_client/models/p_contact_add_tracking_activities_page.rb +240 -0
  321. data/lib/constant_contact_client/models/p_contact_add_tracking_activity.rb +329 -0
  322. data/lib/constant_contact_client/models/p_contact_click_tracking_activities_page.rb +240 -0
  323. data/lib/constant_contact_client/models/p_contact_click_tracking_activity.rb +366 -0
  324. data/lib/constant_contact_client/models/p_contact_open_tracking_activity.rb +339 -0
  325. data/lib/constant_contact_client/models/p_contact_opens_tracking_activities_page.rb +240 -0
  326. data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activities_page.rb +240 -0
  327. data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activity.rb +329 -0
  328. data/lib/constant_contact_client/models/p_contact_update_tracking_activities_page.rb +240 -0
  329. data/lib/constant_contact_client/models/p_contact_update_tracking_activity.rb +329 -0
  330. data/lib/constant_contact_client/models/paged_email_campaign_response.rb +225 -0
  331. data/lib/constant_contact_client/models/pagination_links.rb +214 -0
  332. data/lib/constant_contact_client/models/pagination_links_next.rb +215 -0
  333. data/lib/constant_contact_client/models/paging_links.rb +214 -0
  334. data/lib/constant_contact_client/models/partner_account.rb +233 -0
  335. data/lib/constant_contact_client/models/partner_account_links.rb +215 -0
  336. data/lib/constant_contact_client/models/partner_account_operations_request.rb +286 -0
  337. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_headers_inner.rb +225 -0
  338. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_path_parameters_inner.rb +225 -0
  339. data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_query_parameters_inner.rb +225 -0
  340. data/lib/constant_contact_client/models/partner_account_site_owner_list_inner.rb +265 -0
  341. data/lib/constant_contact_client/models/partners_link.rb +214 -0
  342. data/lib/constant_contact_client/models/patch_email_campaign_name_request.rb +241 -0
  343. data/lib/constant_contact_client/models/path_param_object.rb +225 -0
  344. data/lib/constant_contact_client/models/percents_email.rb +295 -0
  345. data/lib/constant_contact_client/models/phone_number.rb +294 -0
  346. data/lib/constant_contact_client/models/phone_number_put.rb +244 -0
  347. data/lib/constant_contact_client/models/plan_info.rb +236 -0
  348. data/lib/constant_contact_client/models/plan_tiers_object.rb +248 -0
  349. data/lib/constant_contact_client/models/plan_tiers_object_current_tiers_inner.rb +278 -0
  350. data/lib/constant_contact_client/models/post_custom_field_delete201_response.rb +297 -0
  351. data/lib/constant_contact_client/models/post_custom_field_delete_request.rb +243 -0
  352. data/lib/constant_contact_client/models/post_tag_request.rb +260 -0
  353. data/lib/constant_contact_client/models/provision.rb +723 -0
  354. data/lib/constant_contact_client/models/provision_response.rb +225 -0
  355. data/lib/constant_contact_client/models/put_tag_request.rb +250 -0
  356. data/lib/constant_contact_client/models/query_param_object.rb +225 -0
  357. data/lib/constant_contact_client/models/reporting_links.rb +221 -0
  358. data/lib/constant_contact_client/models/reporting_next.rb +222 -0
  359. data/lib/constant_contact_client/models/resend_to_non_openers_input.rb +242 -0
  360. data/lib/constant_contact_client/models/resend_to_non_openers_object.rb +255 -0
  361. data/lib/constant_contact_client/models/schedule_email_campaign_activity_request.rb +222 -0
  362. data/lib/constant_contact_client/models/segment_data.rb +258 -0
  363. data/lib/constant_contact_client/models/segment_detail.rb +274 -0
  364. data/lib/constant_contact_client/models/segment_master.rb +245 -0
  365. data/lib/constant_contact_client/models/segment_name.rb +222 -0
  366. data/lib/constant_contact_client/models/segments_dto.rb +233 -0
  367. data/lib/constant_contact_client/models/sends_tracking_activities_page.rb +233 -0
  368. data/lib/constant_contact_client/models/sends_tracking_activity.rb +320 -0
  369. data/lib/constant_contact_client/models/sms_channel_consent_details.rb +285 -0
  370. data/lib/constant_contact_client/models/sso_user.rb +439 -0
  371. data/lib/constant_contact_client/models/stats_email.rb +395 -0
  372. data/lib/constant_contact_client/models/stats_email_activity.rb +475 -0
  373. data/lib/constant_contact_client/models/stats_error.rb +225 -0
  374. data/lib/constant_contact_client/models/street_address.rb +397 -0
  375. data/lib/constant_contact_client/models/street_address_put.rb +367 -0
  376. data/lib/constant_contact_client/models/tag.rb +265 -0
  377. data/lib/constant_contact_client/models/tag_add_remove_contacts.rb +268 -0
  378. data/lib/constant_contact_client/models/tag_id_list500_limit.rb +243 -0
  379. data/lib/constant_contact_client/models/tag_post.rb +260 -0
  380. data/lib/constant_contact_client/models/tag_put.rb +250 -0
  381. data/lib/constant_contact_client/models/tags.rb +226 -0
  382. data/lib/constant_contact_client/models/tags_activity_links.rb +214 -0
  383. data/lib/constant_contact_client/models/tags_links.rb +223 -0
  384. data/lib/constant_contact_client/models/tags_paging_links.rb +214 -0
  385. data/lib/constant_contact_client/models/test_send_email_campaign_activity_request.rb +253 -0
  386. data/lib/constant_contact_client/models/tier_object.rb +278 -0
  387. data/lib/constant_contact_client/models/tracking_activity_sms_channel_dto.rb +245 -0
  388. data/lib/constant_contact_client/models/unique_email_counts.rb +341 -0
  389. data/lib/constant_contact_client/models/update_account_request.rb +334 -0
  390. data/lib/constant_contact_client/models/update_contact_request.rb +582 -0
  391. data/lib/constant_contact_client/models/update_contact_request_email_address.rb +341 -0
  392. data/lib/constant_contact_client/models/update_contact_request_phone_numbers_inner.rb +244 -0
  393. data/lib/constant_contact_client/models/update_contact_request_street_addresses_inner.rb +367 -0
  394. data/lib/constant_contact_client/models/update_custom_field_request.rb +258 -0
  395. data/lib/constant_contact_client/models/update_list200_response.rb +291 -0
  396. data/lib/constant_contact_client/models/update_list_request.rb +263 -0
  397. data/lib/constant_contact_client/models/update_segment_name_request.rb +222 -0
  398. data/lib/constant_contact_client/models/webhooks_subscription_body.rb +215 -0
  399. data/lib/constant_contact_client/models/webhooks_subscription_collection_inner.rb +245 -0
  400. data/lib/constant_contact_client/models/webhooks_subscription_put_resp.rb +225 -0
  401. data/lib/constant_contact_client/models/webhooks_subscription_response.rb +245 -0
  402. data/lib/constant_contact_client/models/webhooks_test_send.rb +245 -0
  403. data/lib/constant_contact_client/version.rb +15 -0
  404. data/lib/constant_contact_client.rb +417 -0
  405. data/spec/spec_helper.rb +111 -0
  406. metadata +488 -0
@@ -0,0 +1,1315 @@
1
+ =begin
2
+ #Constant Contact API v3
3
+
4
+ #Swagger build version 3.0.2475
5
+
6
+ The version of the OpenAPI document: 1.0.101
7
+ Contact: webservices@constantcontact.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module ConstantContactClient
17
+ class CreateImportJSONActivityRequestImportDataInner
18
+ # The email address of the contact. This method identifies each unique contact using their email address.
19
+ attr_accessor :email
20
+
21
+ # The first name of the contact.
22
+ attr_accessor :first_name
23
+
24
+ # The last name of the contact.
25
+ attr_accessor :last_name
26
+
27
+ # The job title of the contact.
28
+ attr_accessor :job_title
29
+
30
+ # The name of the company where the contact works.
31
+ attr_accessor :company_name
32
+
33
+ # The month value for the contact's birthday. Valid values are from 1 through 12. The <code>birthday_month</code> property is required if you use <code>birthday_day</code>.
34
+ attr_accessor :birthday_month
35
+
36
+ # The day value for the contact's birthday. Valid values are from 1 through 31. The <code>birthday_day</code> property is required if you use <code>birthday_month</code>.
37
+ attr_accessor :birthday_day
38
+
39
+ # The anniversary date for the contact. For example, this value could be the date when the contact first became a customer of an organization in Constant Contact. Valid date formats are MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, YYYY/M/D, YYYY-MM-DD, YYYY-M-D,M-D-YYYY, or M-DD-YYYY.
40
+ attr_accessor :anniversary
41
+
42
+ # The primary phone number for the contact. Use this field to add the default kind of phone number to the imported contact's phone number. Default <code>kind</code> is <code>other</code>.
43
+ attr_accessor :phone
44
+
45
+ # The home phone number for the contact.
46
+ attr_accessor :home_phone
47
+
48
+ # The work phone number for the contact.
49
+ attr_accessor :work_phone
50
+
51
+ # The mobile phone number for the contact.
52
+ attr_accessor :mobile_phone
53
+
54
+ # A phone number for the contact.
55
+ attr_accessor :other_phone
56
+
57
+ # Line one of the primary street address for the contact. Use this field to add the default kind of street to the imported contact's street address. The default <code>kind</code> is <code>home</code>. which maps to the <code>street_addresses</code> array` in the response.
58
+ attr_accessor :street
59
+
60
+ # Line two of the primary street address for the contact. This value is automatically appended to the <code>street</code> value. Use this field to add the default kind for line two of the street address to the imported contact's address. The default <code>kind</code> is <code>other</code>.
61
+ attr_accessor :street2
62
+
63
+ # The name of the primary city for the contact. Use this field to add the default kind of city to the imported contact's home address. The default <code>kind</code> is <code>home</code>.
64
+ attr_accessor :city
65
+
66
+ # The name of the primary state or province for the contact. Use this field to add the default kind of state to the imported contact's home address. The default <code>kind</code> is <code>home</code>.
67
+ attr_accessor :state
68
+
69
+ # The zip or postal code associated with the contact's primary address. Use this field to add the default kind of zip to the imported contact's street address. The default <code>kind</code> is <code>home</code>.
70
+ attr_accessor :zip
71
+
72
+ # The name of the primary country where the contact is located. Use this field to add the default kind of country to the imported contact's street address. The default <code>kind</code> is <code>home</code>.
73
+ attr_accessor :country
74
+
75
+ # Line one of the home street address for the contact.
76
+ attr_accessor :home_street
77
+
78
+ # Line two of the home street address for the contact. This value is automatically appended to the <code>home_street</code> value.
79
+ attr_accessor :home_street2
80
+
81
+ # The name of the city where the contact lives.
82
+ attr_accessor :home_city
83
+
84
+ # The name of the home state or province where the contact lives.
85
+ attr_accessor :home_state
86
+
87
+ # The zip or postal code associated with the contact's home address.
88
+ attr_accessor :home_zip
89
+
90
+ # The name of the country where the contact lives.
91
+ attr_accessor :home_country
92
+
93
+ # Line one of the work street address for the contact.
94
+ attr_accessor :work_street
95
+
96
+ # Line two of the work street address for the contact. This value is automatically appended to the <code>work_street</code> value.
97
+ attr_accessor :work_street2
98
+
99
+ # The name of the city where the contact works.
100
+ attr_accessor :work_city
101
+
102
+ # The name of the state or province where the contact works.
103
+ attr_accessor :work_state
104
+
105
+ # The zip or postal code associated with the contact's work address.
106
+ attr_accessor :work_zip
107
+
108
+ # The name of the country where the contact works.
109
+ attr_accessor :work_country
110
+
111
+ # Line one of the other street address for the contact.
112
+ attr_accessor :other_street
113
+
114
+ # Line two of the other street address for the contact. This value is automatically appended to the <code>other_street</code> value.
115
+ attr_accessor :other_street2
116
+
117
+ # The name of another city where the contact is located.
118
+ attr_accessor :other_city
119
+
120
+ # The name of another state or province where the contact is located.
121
+ attr_accessor :other_state
122
+
123
+ # The zip or postal code associated with the contact's other address.
124
+ attr_accessor :other_zip
125
+
126
+ # The name of another country where the contact is located.
127
+ attr_accessor :other_country
128
+
129
+ # The name of this property is dynamic based on the custom fields you want to import. Use a key-value pair where the key is an existing custom field name prefixed with <code>cf:</code>, and the value is a custom field string value. For example, if you have a custom field named <code>first_name</code> you can use <code>\"cf:first_name\":\"Joe\"</code>. Each contact can contain up to 25 different custom fields.
130
+ attr_accessor :cfcustom_field_name
131
+
132
+ # The US phone number to associate with the contact's SMS-enabled phone. The country code must be valid. Valid formats are <code>1231231234</code> or <code>123-123-1234</code>.
133
+ attr_accessor :sms_number
134
+
135
+ # Required if the SMS permission is set to `explict`. The date that the contact consented to receiving SMS messages. Valid date formats are MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, YYYY/M/D, YYYY-MM-DD, YYYY-M-D,M-D-YYYY, or M-DD-YYYY .
136
+ attr_accessor :sms_consent_date
137
+
138
+ # Attribute mapping from ruby-style variable name to JSON key.
139
+ def self.attribute_map
140
+ {
141
+ :'email' => :'email',
142
+ :'first_name' => :'first_name',
143
+ :'last_name' => :'last_name',
144
+ :'job_title' => :'job_title',
145
+ :'company_name' => :'company_name',
146
+ :'birthday_month' => :'birthday_month',
147
+ :'birthday_day' => :'birthday_day',
148
+ :'anniversary' => :'anniversary',
149
+ :'phone' => :'phone',
150
+ :'home_phone' => :'home_phone',
151
+ :'work_phone' => :'work_phone',
152
+ :'mobile_phone' => :'mobile_phone',
153
+ :'other_phone' => :'other_phone',
154
+ :'street' => :'street',
155
+ :'street2' => :'street2',
156
+ :'city' => :'city',
157
+ :'state' => :'state',
158
+ :'zip' => :'zip',
159
+ :'country' => :'country',
160
+ :'home_street' => :'home_street',
161
+ :'home_street2' => :'home_street2',
162
+ :'home_city' => :'home_city',
163
+ :'home_state' => :'home_state',
164
+ :'home_zip' => :'home_zip',
165
+ :'home_country' => :'home country',
166
+ :'work_street' => :'work_street',
167
+ :'work_street2' => :'work_street2',
168
+ :'work_city' => :'work_city',
169
+ :'work_state' => :'work_state',
170
+ :'work_zip' => :'work_zip',
171
+ :'work_country' => :'work_country',
172
+ :'other_street' => :'other_street',
173
+ :'other_street2' => :'other_street2',
174
+ :'other_city' => :'other_city',
175
+ :'other_state' => :'other_state',
176
+ :'other_zip' => :'other_zip',
177
+ :'other_country' => :'other_country',
178
+ :'cfcustom_field_name' => :'cf:custom_field_name',
179
+ :'sms_number' => :'sms_number',
180
+ :'sms_consent_date' => :'sms_consent_date'
181
+ }
182
+ end
183
+
184
+ # Returns all the JSON keys this model knows about
185
+ def self.acceptable_attributes
186
+ attribute_map.values
187
+ end
188
+
189
+ # Attribute type mapping.
190
+ def self.openapi_types
191
+ {
192
+ :'email' => :'String',
193
+ :'first_name' => :'String',
194
+ :'last_name' => :'String',
195
+ :'job_title' => :'String',
196
+ :'company_name' => :'String',
197
+ :'birthday_month' => :'Integer',
198
+ :'birthday_day' => :'Integer',
199
+ :'anniversary' => :'String',
200
+ :'phone' => :'String',
201
+ :'home_phone' => :'String',
202
+ :'work_phone' => :'String',
203
+ :'mobile_phone' => :'String',
204
+ :'other_phone' => :'String',
205
+ :'street' => :'String',
206
+ :'street2' => :'String',
207
+ :'city' => :'String',
208
+ :'state' => :'String',
209
+ :'zip' => :'String',
210
+ :'country' => :'String',
211
+ :'home_street' => :'String',
212
+ :'home_street2' => :'String',
213
+ :'home_city' => :'String',
214
+ :'home_state' => :'String',
215
+ :'home_zip' => :'String',
216
+ :'home_country' => :'String',
217
+ :'work_street' => :'String',
218
+ :'work_street2' => :'String',
219
+ :'work_city' => :'String',
220
+ :'work_state' => :'String',
221
+ :'work_zip' => :'String',
222
+ :'work_country' => :'String',
223
+ :'other_street' => :'String',
224
+ :'other_street2' => :'String',
225
+ :'other_city' => :'String',
226
+ :'other_state' => :'String',
227
+ :'other_zip' => :'String',
228
+ :'other_country' => :'String',
229
+ :'cfcustom_field_name' => :'String',
230
+ :'sms_number' => :'String',
231
+ :'sms_consent_date' => :'String'
232
+ }
233
+ end
234
+
235
+ # List of attributes with nullable: true
236
+ def self.openapi_nullable
237
+ Set.new([
238
+ ])
239
+ end
240
+
241
+ # Initializes the object
242
+ # @param [Hash] attributes Model attributes in the form of hash
243
+ def initialize(attributes = {})
244
+ if (!attributes.is_a?(Hash))
245
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ConstantContactClient::CreateImportJSONActivityRequestImportDataInner` initialize method"
246
+ end
247
+
248
+ # check to see if the attribute exists and convert string to symbol for hash key
249
+ attributes = attributes.each_with_object({}) { |(k, v), h|
250
+ if (!self.class.attribute_map.key?(k.to_sym))
251
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ConstantContactClient::CreateImportJSONActivityRequestImportDataInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
252
+ end
253
+ h[k.to_sym] = v
254
+ }
255
+
256
+ if attributes.key?(:'email')
257
+ self.email = attributes[:'email']
258
+ else
259
+ self.email = nil
260
+ end
261
+
262
+ if attributes.key?(:'first_name')
263
+ self.first_name = attributes[:'first_name']
264
+ end
265
+
266
+ if attributes.key?(:'last_name')
267
+ self.last_name = attributes[:'last_name']
268
+ end
269
+
270
+ if attributes.key?(:'job_title')
271
+ self.job_title = attributes[:'job_title']
272
+ end
273
+
274
+ if attributes.key?(:'company_name')
275
+ self.company_name = attributes[:'company_name']
276
+ end
277
+
278
+ if attributes.key?(:'birthday_month')
279
+ self.birthday_month = attributes[:'birthday_month']
280
+ end
281
+
282
+ if attributes.key?(:'birthday_day')
283
+ self.birthday_day = attributes[:'birthday_day']
284
+ end
285
+
286
+ if attributes.key?(:'anniversary')
287
+ self.anniversary = attributes[:'anniversary']
288
+ end
289
+
290
+ if attributes.key?(:'phone')
291
+ self.phone = attributes[:'phone']
292
+ end
293
+
294
+ if attributes.key?(:'home_phone')
295
+ self.home_phone = attributes[:'home_phone']
296
+ end
297
+
298
+ if attributes.key?(:'work_phone')
299
+ self.work_phone = attributes[:'work_phone']
300
+ end
301
+
302
+ if attributes.key?(:'mobile_phone')
303
+ self.mobile_phone = attributes[:'mobile_phone']
304
+ end
305
+
306
+ if attributes.key?(:'other_phone')
307
+ self.other_phone = attributes[:'other_phone']
308
+ end
309
+
310
+ if attributes.key?(:'street')
311
+ self.street = attributes[:'street']
312
+ end
313
+
314
+ if attributes.key?(:'street2')
315
+ self.street2 = attributes[:'street2']
316
+ end
317
+
318
+ if attributes.key?(:'city')
319
+ self.city = attributes[:'city']
320
+ end
321
+
322
+ if attributes.key?(:'state')
323
+ self.state = attributes[:'state']
324
+ end
325
+
326
+ if attributes.key?(:'zip')
327
+ self.zip = attributes[:'zip']
328
+ end
329
+
330
+ if attributes.key?(:'country')
331
+ self.country = attributes[:'country']
332
+ end
333
+
334
+ if attributes.key?(:'home_street')
335
+ self.home_street = attributes[:'home_street']
336
+ end
337
+
338
+ if attributes.key?(:'home_street2')
339
+ self.home_street2 = attributes[:'home_street2']
340
+ end
341
+
342
+ if attributes.key?(:'home_city')
343
+ self.home_city = attributes[:'home_city']
344
+ end
345
+
346
+ if attributes.key?(:'home_state')
347
+ self.home_state = attributes[:'home_state']
348
+ end
349
+
350
+ if attributes.key?(:'home_zip')
351
+ self.home_zip = attributes[:'home_zip']
352
+ end
353
+
354
+ if attributes.key?(:'home_country')
355
+ self.home_country = attributes[:'home_country']
356
+ end
357
+
358
+ if attributes.key?(:'work_street')
359
+ self.work_street = attributes[:'work_street']
360
+ end
361
+
362
+ if attributes.key?(:'work_street2')
363
+ self.work_street2 = attributes[:'work_street2']
364
+ end
365
+
366
+ if attributes.key?(:'work_city')
367
+ self.work_city = attributes[:'work_city']
368
+ end
369
+
370
+ if attributes.key?(:'work_state')
371
+ self.work_state = attributes[:'work_state']
372
+ end
373
+
374
+ if attributes.key?(:'work_zip')
375
+ self.work_zip = attributes[:'work_zip']
376
+ end
377
+
378
+ if attributes.key?(:'work_country')
379
+ self.work_country = attributes[:'work_country']
380
+ end
381
+
382
+ if attributes.key?(:'other_street')
383
+ self.other_street = attributes[:'other_street']
384
+ end
385
+
386
+ if attributes.key?(:'other_street2')
387
+ self.other_street2 = attributes[:'other_street2']
388
+ end
389
+
390
+ if attributes.key?(:'other_city')
391
+ self.other_city = attributes[:'other_city']
392
+ end
393
+
394
+ if attributes.key?(:'other_state')
395
+ self.other_state = attributes[:'other_state']
396
+ end
397
+
398
+ if attributes.key?(:'other_zip')
399
+ self.other_zip = attributes[:'other_zip']
400
+ end
401
+
402
+ if attributes.key?(:'other_country')
403
+ self.other_country = attributes[:'other_country']
404
+ end
405
+
406
+ if attributes.key?(:'cfcustom_field_name')
407
+ self.cfcustom_field_name = attributes[:'cfcustom_field_name']
408
+ end
409
+
410
+ if attributes.key?(:'sms_number')
411
+ self.sms_number = attributes[:'sms_number']
412
+ end
413
+
414
+ if attributes.key?(:'sms_consent_date')
415
+ self.sms_consent_date = attributes[:'sms_consent_date']
416
+ end
417
+ end
418
+
419
+ # Show invalid properties with the reasons. Usually used together with valid?
420
+ # @return Array for valid properties with the reasons
421
+ def list_invalid_properties
422
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
423
+ invalid_properties = Array.new
424
+ if @email.nil?
425
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
426
+ end
427
+
428
+ if @email.to_s.length > 50
429
+ invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 50.')
430
+ end
431
+
432
+ if !@first_name.nil? && @first_name.to_s.length > 50
433
+ invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 50.')
434
+ end
435
+
436
+ if !@last_name.nil? && @last_name.to_s.length > 50
437
+ invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 50.')
438
+ end
439
+
440
+ if !@job_title.nil? && @job_title.to_s.length > 50
441
+ invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 50.')
442
+ end
443
+
444
+ if !@company_name.nil? && @company_name.to_s.length > 50
445
+ invalid_properties.push('invalid value for "company_name", the character length must be smaller than or equal to 50.')
446
+ end
447
+
448
+ if !@phone.nil? && @phone.to_s.length > 50
449
+ invalid_properties.push('invalid value for "phone", the character length must be smaller than or equal to 50.')
450
+ end
451
+
452
+ if !@home_phone.nil? && @home_phone.to_s.length > 50
453
+ invalid_properties.push('invalid value for "home_phone", the character length must be smaller than or equal to 50.')
454
+ end
455
+
456
+ if !@work_phone.nil? && @work_phone.to_s.length > 50
457
+ invalid_properties.push('invalid value for "work_phone", the character length must be smaller than or equal to 50.')
458
+ end
459
+
460
+ if !@mobile_phone.nil? && @mobile_phone.to_s.length > 50
461
+ invalid_properties.push('invalid value for "mobile_phone", the character length must be smaller than or equal to 50.')
462
+ end
463
+
464
+ if !@other_phone.nil? && @other_phone.to_s.length > 50
465
+ invalid_properties.push('invalid value for "other_phone", the character length must be smaller than or equal to 50.')
466
+ end
467
+
468
+ if !@street.nil? && @street.to_s.length > 255
469
+ invalid_properties.push('invalid value for "street", the character length must be smaller than or equal to 255.')
470
+ end
471
+
472
+ if !@street2.nil? && @street2.to_s.length > 255
473
+ invalid_properties.push('invalid value for "street2", the character length must be smaller than or equal to 255.')
474
+ end
475
+
476
+ if !@city.nil? && @city.to_s.length > 50
477
+ invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 50.')
478
+ end
479
+
480
+ if !@state.nil? && @state.to_s.length > 50
481
+ invalid_properties.push('invalid value for "state", the character length must be smaller than or equal to 50.')
482
+ end
483
+
484
+ if !@zip.nil? && @zip.to_s.length > 50
485
+ invalid_properties.push('invalid value for "zip", the character length must be smaller than or equal to 50.')
486
+ end
487
+
488
+ if !@country.nil? && @country.to_s.length > 50
489
+ invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 50.')
490
+ end
491
+
492
+ if !@home_street.nil? && @home_street.to_s.length > 255
493
+ invalid_properties.push('invalid value for "home_street", the character length must be smaller than or equal to 255.')
494
+ end
495
+
496
+ if !@home_street2.nil? && @home_street2.to_s.length > 255
497
+ invalid_properties.push('invalid value for "home_street2", the character length must be smaller than or equal to 255.')
498
+ end
499
+
500
+ if !@home_city.nil? && @home_city.to_s.length > 50
501
+ invalid_properties.push('invalid value for "home_city", the character length must be smaller than or equal to 50.')
502
+ end
503
+
504
+ if !@home_state.nil? && @home_state.to_s.length > 50
505
+ invalid_properties.push('invalid value for "home_state", the character length must be smaller than or equal to 50.')
506
+ end
507
+
508
+ if !@home_zip.nil? && @home_zip.to_s.length > 50
509
+ invalid_properties.push('invalid value for "home_zip", the character length must be smaller than or equal to 50.')
510
+ end
511
+
512
+ if !@home_country.nil? && @home_country.to_s.length > 50
513
+ invalid_properties.push('invalid value for "home_country", the character length must be smaller than or equal to 50.')
514
+ end
515
+
516
+ if !@work_street.nil? && @work_street.to_s.length > 255
517
+ invalid_properties.push('invalid value for "work_street", the character length must be smaller than or equal to 255.')
518
+ end
519
+
520
+ if !@work_street2.nil? && @work_street2.to_s.length > 255
521
+ invalid_properties.push('invalid value for "work_street2", the character length must be smaller than or equal to 255.')
522
+ end
523
+
524
+ if !@work_city.nil? && @work_city.to_s.length > 50
525
+ invalid_properties.push('invalid value for "work_city", the character length must be smaller than or equal to 50.')
526
+ end
527
+
528
+ if !@work_state.nil? && @work_state.to_s.length > 50
529
+ invalid_properties.push('invalid value for "work_state", the character length must be smaller than or equal to 50.')
530
+ end
531
+
532
+ if !@work_zip.nil? && @work_zip.to_s.length > 50
533
+ invalid_properties.push('invalid value for "work_zip", the character length must be smaller than or equal to 50.')
534
+ end
535
+
536
+ if !@work_country.nil? && @work_country.to_s.length > 50
537
+ invalid_properties.push('invalid value for "work_country", the character length must be smaller than or equal to 50.')
538
+ end
539
+
540
+ if !@other_street.nil? && @other_street.to_s.length > 255
541
+ invalid_properties.push('invalid value for "other_street", the character length must be smaller than or equal to 255.')
542
+ end
543
+
544
+ if !@other_street2.nil? && @other_street2.to_s.length > 255
545
+ invalid_properties.push('invalid value for "other_street2", the character length must be smaller than or equal to 255.')
546
+ end
547
+
548
+ if !@other_city.nil? && @other_city.to_s.length > 50
549
+ invalid_properties.push('invalid value for "other_city", the character length must be smaller than or equal to 50.')
550
+ end
551
+
552
+ if !@other_state.nil? && @other_state.to_s.length > 50
553
+ invalid_properties.push('invalid value for "other_state", the character length must be smaller than or equal to 50.')
554
+ end
555
+
556
+ if !@other_zip.nil? && @other_zip.to_s.length > 50
557
+ invalid_properties.push('invalid value for "other_zip", the character length must be smaller than or equal to 50.')
558
+ end
559
+
560
+ if !@other_country.nil? && @other_country.to_s.length > 50
561
+ invalid_properties.push('invalid value for "other_country", the character length must be smaller than or equal to 50.')
562
+ end
563
+
564
+ if !@cfcustom_field_name.nil? && @cfcustom_field_name.to_s.length > 255
565
+ invalid_properties.push('invalid value for "cfcustom_field_name", the character length must be smaller than or equal to 255.')
566
+ end
567
+
568
+ if !@sms_number.nil? && @sms_number.to_s.length > 16
569
+ invalid_properties.push('invalid value for "sms_number", the character length must be smaller than or equal to 16.')
570
+ end
571
+
572
+ if !@sms_consent_date.nil? && @sms_consent_date.to_s.length > 16
573
+ invalid_properties.push('invalid value for "sms_consent_date", the character length must be smaller than or equal to 16.')
574
+ end
575
+
576
+ invalid_properties
577
+ end
578
+
579
+ # Check to see if the all the properties in the model are valid
580
+ # @return true if the model is valid
581
+ def valid?
582
+ warn '[DEPRECATED] the `valid?` method is obsolete'
583
+ return false if @email.nil?
584
+ return false if @email.to_s.length > 50
585
+ return false if !@first_name.nil? && @first_name.to_s.length > 50
586
+ return false if !@last_name.nil? && @last_name.to_s.length > 50
587
+ return false if !@job_title.nil? && @job_title.to_s.length > 50
588
+ return false if !@company_name.nil? && @company_name.to_s.length > 50
589
+ return false if !@phone.nil? && @phone.to_s.length > 50
590
+ return false if !@home_phone.nil? && @home_phone.to_s.length > 50
591
+ return false if !@work_phone.nil? && @work_phone.to_s.length > 50
592
+ return false if !@mobile_phone.nil? && @mobile_phone.to_s.length > 50
593
+ return false if !@other_phone.nil? && @other_phone.to_s.length > 50
594
+ return false if !@street.nil? && @street.to_s.length > 255
595
+ return false if !@street2.nil? && @street2.to_s.length > 255
596
+ return false if !@city.nil? && @city.to_s.length > 50
597
+ return false if !@state.nil? && @state.to_s.length > 50
598
+ return false if !@zip.nil? && @zip.to_s.length > 50
599
+ return false if !@country.nil? && @country.to_s.length > 50
600
+ return false if !@home_street.nil? && @home_street.to_s.length > 255
601
+ return false if !@home_street2.nil? && @home_street2.to_s.length > 255
602
+ return false if !@home_city.nil? && @home_city.to_s.length > 50
603
+ return false if !@home_state.nil? && @home_state.to_s.length > 50
604
+ return false if !@home_zip.nil? && @home_zip.to_s.length > 50
605
+ return false if !@home_country.nil? && @home_country.to_s.length > 50
606
+ return false if !@work_street.nil? && @work_street.to_s.length > 255
607
+ return false if !@work_street2.nil? && @work_street2.to_s.length > 255
608
+ return false if !@work_city.nil? && @work_city.to_s.length > 50
609
+ return false if !@work_state.nil? && @work_state.to_s.length > 50
610
+ return false if !@work_zip.nil? && @work_zip.to_s.length > 50
611
+ return false if !@work_country.nil? && @work_country.to_s.length > 50
612
+ return false if !@other_street.nil? && @other_street.to_s.length > 255
613
+ return false if !@other_street2.nil? && @other_street2.to_s.length > 255
614
+ return false if !@other_city.nil? && @other_city.to_s.length > 50
615
+ return false if !@other_state.nil? && @other_state.to_s.length > 50
616
+ return false if !@other_zip.nil? && @other_zip.to_s.length > 50
617
+ return false if !@other_country.nil? && @other_country.to_s.length > 50
618
+ return false if !@cfcustom_field_name.nil? && @cfcustom_field_name.to_s.length > 255
619
+ return false if !@sms_number.nil? && @sms_number.to_s.length > 16
620
+ return false if !@sms_consent_date.nil? && @sms_consent_date.to_s.length > 16
621
+ true
622
+ end
623
+
624
+ # Custom attribute writer method with validation
625
+ # @param [Object] email Value to be assigned
626
+ def email=(email)
627
+ if email.nil?
628
+ fail ArgumentError, 'email cannot be nil'
629
+ end
630
+
631
+ if email.to_s.length > 50
632
+ fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 50.'
633
+ end
634
+
635
+ @email = email
636
+ end
637
+
638
+ # Custom attribute writer method with validation
639
+ # @param [Object] first_name Value to be assigned
640
+ def first_name=(first_name)
641
+ if first_name.nil?
642
+ fail ArgumentError, 'first_name cannot be nil'
643
+ end
644
+
645
+ if first_name.to_s.length > 50
646
+ fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 50.'
647
+ end
648
+
649
+ @first_name = first_name
650
+ end
651
+
652
+ # Custom attribute writer method with validation
653
+ # @param [Object] last_name Value to be assigned
654
+ def last_name=(last_name)
655
+ if last_name.nil?
656
+ fail ArgumentError, 'last_name cannot be nil'
657
+ end
658
+
659
+ if last_name.to_s.length > 50
660
+ fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 50.'
661
+ end
662
+
663
+ @last_name = last_name
664
+ end
665
+
666
+ # Custom attribute writer method with validation
667
+ # @param [Object] job_title Value to be assigned
668
+ def job_title=(job_title)
669
+ if job_title.nil?
670
+ fail ArgumentError, 'job_title cannot be nil'
671
+ end
672
+
673
+ if job_title.to_s.length > 50
674
+ fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 50.'
675
+ end
676
+
677
+ @job_title = job_title
678
+ end
679
+
680
+ # Custom attribute writer method with validation
681
+ # @param [Object] company_name Value to be assigned
682
+ def company_name=(company_name)
683
+ if company_name.nil?
684
+ fail ArgumentError, 'company_name cannot be nil'
685
+ end
686
+
687
+ if company_name.to_s.length > 50
688
+ fail ArgumentError, 'invalid value for "company_name", the character length must be smaller than or equal to 50.'
689
+ end
690
+
691
+ @company_name = company_name
692
+ end
693
+
694
+ # Custom attribute writer method with validation
695
+ # @param [Object] phone Value to be assigned
696
+ def phone=(phone)
697
+ if phone.nil?
698
+ fail ArgumentError, 'phone cannot be nil'
699
+ end
700
+
701
+ if phone.to_s.length > 50
702
+ fail ArgumentError, 'invalid value for "phone", the character length must be smaller than or equal to 50.'
703
+ end
704
+
705
+ @phone = phone
706
+ end
707
+
708
+ # Custom attribute writer method with validation
709
+ # @param [Object] home_phone Value to be assigned
710
+ def home_phone=(home_phone)
711
+ if home_phone.nil?
712
+ fail ArgumentError, 'home_phone cannot be nil'
713
+ end
714
+
715
+ if home_phone.to_s.length > 50
716
+ fail ArgumentError, 'invalid value for "home_phone", the character length must be smaller than or equal to 50.'
717
+ end
718
+
719
+ @home_phone = home_phone
720
+ end
721
+
722
+ # Custom attribute writer method with validation
723
+ # @param [Object] work_phone Value to be assigned
724
+ def work_phone=(work_phone)
725
+ if work_phone.nil?
726
+ fail ArgumentError, 'work_phone cannot be nil'
727
+ end
728
+
729
+ if work_phone.to_s.length > 50
730
+ fail ArgumentError, 'invalid value for "work_phone", the character length must be smaller than or equal to 50.'
731
+ end
732
+
733
+ @work_phone = work_phone
734
+ end
735
+
736
+ # Custom attribute writer method with validation
737
+ # @param [Object] mobile_phone Value to be assigned
738
+ def mobile_phone=(mobile_phone)
739
+ if mobile_phone.nil?
740
+ fail ArgumentError, 'mobile_phone cannot be nil'
741
+ end
742
+
743
+ if mobile_phone.to_s.length > 50
744
+ fail ArgumentError, 'invalid value for "mobile_phone", the character length must be smaller than or equal to 50.'
745
+ end
746
+
747
+ @mobile_phone = mobile_phone
748
+ end
749
+
750
+ # Custom attribute writer method with validation
751
+ # @param [Object] other_phone Value to be assigned
752
+ def other_phone=(other_phone)
753
+ if other_phone.nil?
754
+ fail ArgumentError, 'other_phone cannot be nil'
755
+ end
756
+
757
+ if other_phone.to_s.length > 50
758
+ fail ArgumentError, 'invalid value for "other_phone", the character length must be smaller than or equal to 50.'
759
+ end
760
+
761
+ @other_phone = other_phone
762
+ end
763
+
764
+ # Custom attribute writer method with validation
765
+ # @param [Object] street Value to be assigned
766
+ def street=(street)
767
+ if street.nil?
768
+ fail ArgumentError, 'street cannot be nil'
769
+ end
770
+
771
+ if street.to_s.length > 255
772
+ fail ArgumentError, 'invalid value for "street", the character length must be smaller than or equal to 255.'
773
+ end
774
+
775
+ @street = street
776
+ end
777
+
778
+ # Custom attribute writer method with validation
779
+ # @param [Object] street2 Value to be assigned
780
+ def street2=(street2)
781
+ if street2.nil?
782
+ fail ArgumentError, 'street2 cannot be nil'
783
+ end
784
+
785
+ if street2.to_s.length > 255
786
+ fail ArgumentError, 'invalid value for "street2", the character length must be smaller than or equal to 255.'
787
+ end
788
+
789
+ @street2 = street2
790
+ end
791
+
792
+ # Custom attribute writer method with validation
793
+ # @param [Object] city Value to be assigned
794
+ def city=(city)
795
+ if city.nil?
796
+ fail ArgumentError, 'city cannot be nil'
797
+ end
798
+
799
+ if city.to_s.length > 50
800
+ fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 50.'
801
+ end
802
+
803
+ @city = city
804
+ end
805
+
806
+ # Custom attribute writer method with validation
807
+ # @param [Object] state Value to be assigned
808
+ def state=(state)
809
+ if state.nil?
810
+ fail ArgumentError, 'state cannot be nil'
811
+ end
812
+
813
+ if state.to_s.length > 50
814
+ fail ArgumentError, 'invalid value for "state", the character length must be smaller than or equal to 50.'
815
+ end
816
+
817
+ @state = state
818
+ end
819
+
820
+ # Custom attribute writer method with validation
821
+ # @param [Object] zip Value to be assigned
822
+ def zip=(zip)
823
+ if zip.nil?
824
+ fail ArgumentError, 'zip cannot be nil'
825
+ end
826
+
827
+ if zip.to_s.length > 50
828
+ fail ArgumentError, 'invalid value for "zip", the character length must be smaller than or equal to 50.'
829
+ end
830
+
831
+ @zip = zip
832
+ end
833
+
834
+ # Custom attribute writer method with validation
835
+ # @param [Object] country Value to be assigned
836
+ def country=(country)
837
+ if country.nil?
838
+ fail ArgumentError, 'country cannot be nil'
839
+ end
840
+
841
+ if country.to_s.length > 50
842
+ fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 50.'
843
+ end
844
+
845
+ @country = country
846
+ end
847
+
848
+ # Custom attribute writer method with validation
849
+ # @param [Object] home_street Value to be assigned
850
+ def home_street=(home_street)
851
+ if home_street.nil?
852
+ fail ArgumentError, 'home_street cannot be nil'
853
+ end
854
+
855
+ if home_street.to_s.length > 255
856
+ fail ArgumentError, 'invalid value for "home_street", the character length must be smaller than or equal to 255.'
857
+ end
858
+
859
+ @home_street = home_street
860
+ end
861
+
862
+ # Custom attribute writer method with validation
863
+ # @param [Object] home_street2 Value to be assigned
864
+ def home_street2=(home_street2)
865
+ if home_street2.nil?
866
+ fail ArgumentError, 'home_street2 cannot be nil'
867
+ end
868
+
869
+ if home_street2.to_s.length > 255
870
+ fail ArgumentError, 'invalid value for "home_street2", the character length must be smaller than or equal to 255.'
871
+ end
872
+
873
+ @home_street2 = home_street2
874
+ end
875
+
876
+ # Custom attribute writer method with validation
877
+ # @param [Object] home_city Value to be assigned
878
+ def home_city=(home_city)
879
+ if home_city.nil?
880
+ fail ArgumentError, 'home_city cannot be nil'
881
+ end
882
+
883
+ if home_city.to_s.length > 50
884
+ fail ArgumentError, 'invalid value for "home_city", the character length must be smaller than or equal to 50.'
885
+ end
886
+
887
+ @home_city = home_city
888
+ end
889
+
890
+ # Custom attribute writer method with validation
891
+ # @param [Object] home_state Value to be assigned
892
+ def home_state=(home_state)
893
+ if home_state.nil?
894
+ fail ArgumentError, 'home_state cannot be nil'
895
+ end
896
+
897
+ if home_state.to_s.length > 50
898
+ fail ArgumentError, 'invalid value for "home_state", the character length must be smaller than or equal to 50.'
899
+ end
900
+
901
+ @home_state = home_state
902
+ end
903
+
904
+ # Custom attribute writer method with validation
905
+ # @param [Object] home_zip Value to be assigned
906
+ def home_zip=(home_zip)
907
+ if home_zip.nil?
908
+ fail ArgumentError, 'home_zip cannot be nil'
909
+ end
910
+
911
+ if home_zip.to_s.length > 50
912
+ fail ArgumentError, 'invalid value for "home_zip", the character length must be smaller than or equal to 50.'
913
+ end
914
+
915
+ @home_zip = home_zip
916
+ end
917
+
918
+ # Custom attribute writer method with validation
919
+ # @param [Object] home_country Value to be assigned
920
+ def home_country=(home_country)
921
+ if home_country.nil?
922
+ fail ArgumentError, 'home_country cannot be nil'
923
+ end
924
+
925
+ if home_country.to_s.length > 50
926
+ fail ArgumentError, 'invalid value for "home_country", the character length must be smaller than or equal to 50.'
927
+ end
928
+
929
+ @home_country = home_country
930
+ end
931
+
932
+ # Custom attribute writer method with validation
933
+ # @param [Object] work_street Value to be assigned
934
+ def work_street=(work_street)
935
+ if work_street.nil?
936
+ fail ArgumentError, 'work_street cannot be nil'
937
+ end
938
+
939
+ if work_street.to_s.length > 255
940
+ fail ArgumentError, 'invalid value for "work_street", the character length must be smaller than or equal to 255.'
941
+ end
942
+
943
+ @work_street = work_street
944
+ end
945
+
946
+ # Custom attribute writer method with validation
947
+ # @param [Object] work_street2 Value to be assigned
948
+ def work_street2=(work_street2)
949
+ if work_street2.nil?
950
+ fail ArgumentError, 'work_street2 cannot be nil'
951
+ end
952
+
953
+ if work_street2.to_s.length > 255
954
+ fail ArgumentError, 'invalid value for "work_street2", the character length must be smaller than or equal to 255.'
955
+ end
956
+
957
+ @work_street2 = work_street2
958
+ end
959
+
960
+ # Custom attribute writer method with validation
961
+ # @param [Object] work_city Value to be assigned
962
+ def work_city=(work_city)
963
+ if work_city.nil?
964
+ fail ArgumentError, 'work_city cannot be nil'
965
+ end
966
+
967
+ if work_city.to_s.length > 50
968
+ fail ArgumentError, 'invalid value for "work_city", the character length must be smaller than or equal to 50.'
969
+ end
970
+
971
+ @work_city = work_city
972
+ end
973
+
974
+ # Custom attribute writer method with validation
975
+ # @param [Object] work_state Value to be assigned
976
+ def work_state=(work_state)
977
+ if work_state.nil?
978
+ fail ArgumentError, 'work_state cannot be nil'
979
+ end
980
+
981
+ if work_state.to_s.length > 50
982
+ fail ArgumentError, 'invalid value for "work_state", the character length must be smaller than or equal to 50.'
983
+ end
984
+
985
+ @work_state = work_state
986
+ end
987
+
988
+ # Custom attribute writer method with validation
989
+ # @param [Object] work_zip Value to be assigned
990
+ def work_zip=(work_zip)
991
+ if work_zip.nil?
992
+ fail ArgumentError, 'work_zip cannot be nil'
993
+ end
994
+
995
+ if work_zip.to_s.length > 50
996
+ fail ArgumentError, 'invalid value for "work_zip", the character length must be smaller than or equal to 50.'
997
+ end
998
+
999
+ @work_zip = work_zip
1000
+ end
1001
+
1002
+ # Custom attribute writer method with validation
1003
+ # @param [Object] work_country Value to be assigned
1004
+ def work_country=(work_country)
1005
+ if work_country.nil?
1006
+ fail ArgumentError, 'work_country cannot be nil'
1007
+ end
1008
+
1009
+ if work_country.to_s.length > 50
1010
+ fail ArgumentError, 'invalid value for "work_country", the character length must be smaller than or equal to 50.'
1011
+ end
1012
+
1013
+ @work_country = work_country
1014
+ end
1015
+
1016
+ # Custom attribute writer method with validation
1017
+ # @param [Object] other_street Value to be assigned
1018
+ def other_street=(other_street)
1019
+ if other_street.nil?
1020
+ fail ArgumentError, 'other_street cannot be nil'
1021
+ end
1022
+
1023
+ if other_street.to_s.length > 255
1024
+ fail ArgumentError, 'invalid value for "other_street", the character length must be smaller than or equal to 255.'
1025
+ end
1026
+
1027
+ @other_street = other_street
1028
+ end
1029
+
1030
+ # Custom attribute writer method with validation
1031
+ # @param [Object] other_street2 Value to be assigned
1032
+ def other_street2=(other_street2)
1033
+ if other_street2.nil?
1034
+ fail ArgumentError, 'other_street2 cannot be nil'
1035
+ end
1036
+
1037
+ if other_street2.to_s.length > 255
1038
+ fail ArgumentError, 'invalid value for "other_street2", the character length must be smaller than or equal to 255.'
1039
+ end
1040
+
1041
+ @other_street2 = other_street2
1042
+ end
1043
+
1044
+ # Custom attribute writer method with validation
1045
+ # @param [Object] other_city Value to be assigned
1046
+ def other_city=(other_city)
1047
+ if other_city.nil?
1048
+ fail ArgumentError, 'other_city cannot be nil'
1049
+ end
1050
+
1051
+ if other_city.to_s.length > 50
1052
+ fail ArgumentError, 'invalid value for "other_city", the character length must be smaller than or equal to 50.'
1053
+ end
1054
+
1055
+ @other_city = other_city
1056
+ end
1057
+
1058
+ # Custom attribute writer method with validation
1059
+ # @param [Object] other_state Value to be assigned
1060
+ def other_state=(other_state)
1061
+ if other_state.nil?
1062
+ fail ArgumentError, 'other_state cannot be nil'
1063
+ end
1064
+
1065
+ if other_state.to_s.length > 50
1066
+ fail ArgumentError, 'invalid value for "other_state", the character length must be smaller than or equal to 50.'
1067
+ end
1068
+
1069
+ @other_state = other_state
1070
+ end
1071
+
1072
+ # Custom attribute writer method with validation
1073
+ # @param [Object] other_zip Value to be assigned
1074
+ def other_zip=(other_zip)
1075
+ if other_zip.nil?
1076
+ fail ArgumentError, 'other_zip cannot be nil'
1077
+ end
1078
+
1079
+ if other_zip.to_s.length > 50
1080
+ fail ArgumentError, 'invalid value for "other_zip", the character length must be smaller than or equal to 50.'
1081
+ end
1082
+
1083
+ @other_zip = other_zip
1084
+ end
1085
+
1086
+ # Custom attribute writer method with validation
1087
+ # @param [Object] other_country Value to be assigned
1088
+ def other_country=(other_country)
1089
+ if other_country.nil?
1090
+ fail ArgumentError, 'other_country cannot be nil'
1091
+ end
1092
+
1093
+ if other_country.to_s.length > 50
1094
+ fail ArgumentError, 'invalid value for "other_country", the character length must be smaller than or equal to 50.'
1095
+ end
1096
+
1097
+ @other_country = other_country
1098
+ end
1099
+
1100
+ # Custom attribute writer method with validation
1101
+ # @param [Object] cfcustom_field_name Value to be assigned
1102
+ def cfcustom_field_name=(cfcustom_field_name)
1103
+ if cfcustom_field_name.nil?
1104
+ fail ArgumentError, 'cfcustom_field_name cannot be nil'
1105
+ end
1106
+
1107
+ if cfcustom_field_name.to_s.length > 255
1108
+ fail ArgumentError, 'invalid value for "cfcustom_field_name", the character length must be smaller than or equal to 255.'
1109
+ end
1110
+
1111
+ @cfcustom_field_name = cfcustom_field_name
1112
+ end
1113
+
1114
+ # Custom attribute writer method with validation
1115
+ # @param [Object] sms_number Value to be assigned
1116
+ def sms_number=(sms_number)
1117
+ if sms_number.nil?
1118
+ fail ArgumentError, 'sms_number cannot be nil'
1119
+ end
1120
+
1121
+ if sms_number.to_s.length > 16
1122
+ fail ArgumentError, 'invalid value for "sms_number", the character length must be smaller than or equal to 16.'
1123
+ end
1124
+
1125
+ @sms_number = sms_number
1126
+ end
1127
+
1128
+ # Custom attribute writer method with validation
1129
+ # @param [Object] sms_consent_date Value to be assigned
1130
+ def sms_consent_date=(sms_consent_date)
1131
+ if sms_consent_date.nil?
1132
+ fail ArgumentError, 'sms_consent_date cannot be nil'
1133
+ end
1134
+
1135
+ if sms_consent_date.to_s.length > 16
1136
+ fail ArgumentError, 'invalid value for "sms_consent_date", the character length must be smaller than or equal to 16.'
1137
+ end
1138
+
1139
+ @sms_consent_date = sms_consent_date
1140
+ end
1141
+
1142
+ # Checks equality by comparing each attribute.
1143
+ # @param [Object] Object to be compared
1144
+ def ==(o)
1145
+ return true if self.equal?(o)
1146
+ self.class == o.class &&
1147
+ email == o.email &&
1148
+ first_name == o.first_name &&
1149
+ last_name == o.last_name &&
1150
+ job_title == o.job_title &&
1151
+ company_name == o.company_name &&
1152
+ birthday_month == o.birthday_month &&
1153
+ birthday_day == o.birthday_day &&
1154
+ anniversary == o.anniversary &&
1155
+ phone == o.phone &&
1156
+ home_phone == o.home_phone &&
1157
+ work_phone == o.work_phone &&
1158
+ mobile_phone == o.mobile_phone &&
1159
+ other_phone == o.other_phone &&
1160
+ street == o.street &&
1161
+ street2 == o.street2 &&
1162
+ city == o.city &&
1163
+ state == o.state &&
1164
+ zip == o.zip &&
1165
+ country == o.country &&
1166
+ home_street == o.home_street &&
1167
+ home_street2 == o.home_street2 &&
1168
+ home_city == o.home_city &&
1169
+ home_state == o.home_state &&
1170
+ home_zip == o.home_zip &&
1171
+ home_country == o.home_country &&
1172
+ work_street == o.work_street &&
1173
+ work_street2 == o.work_street2 &&
1174
+ work_city == o.work_city &&
1175
+ work_state == o.work_state &&
1176
+ work_zip == o.work_zip &&
1177
+ work_country == o.work_country &&
1178
+ other_street == o.other_street &&
1179
+ other_street2 == o.other_street2 &&
1180
+ other_city == o.other_city &&
1181
+ other_state == o.other_state &&
1182
+ other_zip == o.other_zip &&
1183
+ other_country == o.other_country &&
1184
+ cfcustom_field_name == o.cfcustom_field_name &&
1185
+ sms_number == o.sms_number &&
1186
+ sms_consent_date == o.sms_consent_date
1187
+ end
1188
+
1189
+ # @see the `==` method
1190
+ # @param [Object] Object to be compared
1191
+ def eql?(o)
1192
+ self == o
1193
+ end
1194
+
1195
+ # Calculates hash code according to all attributes.
1196
+ # @return [Integer] Hash code
1197
+ def hash
1198
+ [email, first_name, last_name, job_title, company_name, birthday_month, birthday_day, anniversary, phone, home_phone, work_phone, mobile_phone, other_phone, street, street2, city, state, zip, country, home_street, home_street2, home_city, home_state, home_zip, home_country, work_street, work_street2, work_city, work_state, work_zip, work_country, other_street, other_street2, other_city, other_state, other_zip, other_country, cfcustom_field_name, sms_number, sms_consent_date].hash
1199
+ end
1200
+
1201
+ # Builds the object from hash
1202
+ # @param [Hash] attributes Model attributes in the form of hash
1203
+ # @return [Object] Returns the model itself
1204
+ def self.build_from_hash(attributes)
1205
+ return nil unless attributes.is_a?(Hash)
1206
+ attributes = attributes.transform_keys(&:to_sym)
1207
+ transformed_hash = {}
1208
+ openapi_types.each_pair do |key, type|
1209
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
1210
+ transformed_hash["#{key}"] = nil
1211
+ elsif type =~ /\AArray<(.*)>/i
1212
+ # check to ensure the input is an array given that the attribute
1213
+ # is documented as an array but the input is not
1214
+ if attributes[attribute_map[key]].is_a?(Array)
1215
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
1216
+ end
1217
+ elsif !attributes[attribute_map[key]].nil?
1218
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
1219
+ end
1220
+ end
1221
+ new(transformed_hash)
1222
+ end
1223
+
1224
+ # Deserializes the data based on type
1225
+ # @param string type Data type
1226
+ # @param string value Value to be deserialized
1227
+ # @return [Object] Deserialized data
1228
+ def self._deserialize(type, value)
1229
+ case type.to_sym
1230
+ when :Time
1231
+ Time.parse(value)
1232
+ when :Date
1233
+ Date.parse(value)
1234
+ when :String
1235
+ value.to_s
1236
+ when :Integer
1237
+ value.to_i
1238
+ when :Float
1239
+ value.to_f
1240
+ when :Boolean
1241
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1242
+ true
1243
+ else
1244
+ false
1245
+ end
1246
+ when :Object
1247
+ # generic object (usually a Hash), return directly
1248
+ value
1249
+ when /\AArray<(?<inner_type>.+)>\z/
1250
+ inner_type = Regexp.last_match[:inner_type]
1251
+ value.map { |v| _deserialize(inner_type, v) }
1252
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1253
+ k_type = Regexp.last_match[:k_type]
1254
+ v_type = Regexp.last_match[:v_type]
1255
+ {}.tap do |hash|
1256
+ value.each do |k, v|
1257
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1258
+ end
1259
+ end
1260
+ else # model
1261
+ # models (e.g. Pet) or oneOf
1262
+ klass = ConstantContactClient.const_get(type)
1263
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
1264
+ end
1265
+ end
1266
+
1267
+ # Returns the string representation of the object
1268
+ # @return [String] String presentation of the object
1269
+ def to_s
1270
+ to_hash.to_s
1271
+ end
1272
+
1273
+ # to_body is an alias to to_hash (backward compatibility)
1274
+ # @return [Hash] Returns the object in the form of hash
1275
+ def to_body
1276
+ to_hash
1277
+ end
1278
+
1279
+ # Returns the object in the form of hash
1280
+ # @return [Hash] Returns the object in the form of hash
1281
+ def to_hash
1282
+ hash = {}
1283
+ self.class.attribute_map.each_pair do |attr, param|
1284
+ value = self.send(attr)
1285
+ if value.nil?
1286
+ is_nullable = self.class.openapi_nullable.include?(attr)
1287
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1288
+ end
1289
+
1290
+ hash[param] = _to_hash(value)
1291
+ end
1292
+ hash
1293
+ end
1294
+
1295
+ # Outputs non-array value in the form of hash
1296
+ # For object, use to_hash. Otherwise, just return the value
1297
+ # @param [Object] value Any valid value
1298
+ # @return [Hash] Returns the value in the form of hash
1299
+ def _to_hash(value)
1300
+ if value.is_a?(Array)
1301
+ value.compact.map { |v| _to_hash(v) }
1302
+ elsif value.is_a?(Hash)
1303
+ {}.tap do |hash|
1304
+ value.each { |k, v| hash[k] = _to_hash(v) }
1305
+ end
1306
+ elsif value.respond_to? :to_hash
1307
+ value.to_hash
1308
+ else
1309
+ value
1310
+ end
1311
+ end
1312
+
1313
+ end
1314
+
1315
+ end