mailchimp_transactional 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (671) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +395 -0
  4. data/Rakefile +8 -0
  5. data/docs/Body.md +9 -0
  6. data/docs/Body1.md +8 -0
  7. data/docs/Body10.md +11 -0
  8. data/docs/Body11.md +11 -0
  9. data/docs/Body12.md +9 -0
  10. data/docs/Body13.md +13 -0
  11. data/docs/Body14.md +8 -0
  12. data/docs/Body15.md +9 -0
  13. data/docs/Body16.md +10 -0
  14. data/docs/Body17.md +9 -0
  15. data/docs/Body18.md +9 -0
  16. data/docs/Body19.md +11 -0
  17. data/docs/Body2.md +9 -0
  18. data/docs/Body20.md +9 -0
  19. data/docs/Body21.md +8 -0
  20. data/docs/Body22.md +9 -0
  21. data/docs/Body23.md +9 -0
  22. data/docs/Body24.md +9 -0
  23. data/docs/Body25.md +10 -0
  24. data/docs/Body26.md +10 -0
  25. data/docs/Body27.md +12 -0
  26. data/docs/Body28.md +14 -0
  27. data/docs/Body29.md +15 -0
  28. data/docs/Body3.md +9 -0
  29. data/docs/Body30.md +13 -0
  30. data/docs/Body31.md +9 -0
  31. data/docs/Body32.md +9 -0
  32. data/docs/Body33.md +9 -0
  33. data/docs/Body34.md +16 -0
  34. data/docs/Body35.md +9 -0
  35. data/docs/Body36.md +9 -0
  36. data/docs/Body37.md +10 -0
  37. data/docs/Body38.md +8 -0
  38. data/docs/Body39.md +10 -0
  39. data/docs/Body4.md +15 -0
  40. data/docs/Body40.md +10 -0
  41. data/docs/Body41.md +9 -0
  42. data/docs/Body42.md +11 -0
  43. data/docs/Body43.md +11 -0
  44. data/docs/Body44.md +10 -0
  45. data/docs/Body45.md +8 -0
  46. data/docs/Body46.md +8 -0
  47. data/docs/Body47.md +9 -0
  48. data/docs/Body48.md +9 -0
  49. data/docs/Body49.md +10 -0
  50. data/docs/Body5.md +8 -0
  51. data/docs/Body50.md +9 -0
  52. data/docs/Body51.md +9 -0
  53. data/docs/Body52.md +9 -0
  54. data/docs/Body53.md +12 -0
  55. data/docs/Body54.md +9 -0
  56. data/docs/Body55.md +12 -0
  57. data/docs/Body56.md +9 -0
  58. data/docs/Body57.md +9 -0
  59. data/docs/Body58.md +9 -0
  60. data/docs/Body59.md +8 -0
  61. data/docs/Body6.md +9 -0
  62. data/docs/Body60.md +9 -0
  63. data/docs/Body61.md +9 -0
  64. data/docs/Body62.md +9 -0
  65. data/docs/Body63.md +8 -0
  66. data/docs/Body64.md +16 -0
  67. data/docs/Body65.md +9 -0
  68. data/docs/Body66.md +16 -0
  69. data/docs/Body67.md +9 -0
  70. data/docs/Body68.md +9 -0
  71. data/docs/Body69.md +9 -0
  72. data/docs/Body7.md +9 -0
  73. data/docs/Body70.md +9 -0
  74. data/docs/Body71.md +11 -0
  75. data/docs/Body72.md +8 -0
  76. data/docs/Body73.md +9 -0
  77. data/docs/Body74.md +9 -0
  78. data/docs/Body75.md +8 -0
  79. data/docs/Body76.md +9 -0
  80. data/docs/Body77.md +9 -0
  81. data/docs/Body78.md +8 -0
  82. data/docs/Body79.md +8 -0
  83. data/docs/Body8.md +9 -0
  84. data/docs/Body80.md +8 -0
  85. data/docs/Body81.md +8 -0
  86. data/docs/Body82.md +8 -0
  87. data/docs/Body83.md +11 -0
  88. data/docs/Body84.md +9 -0
  89. data/docs/Body85.md +12 -0
  90. data/docs/Body86.md +9 -0
  91. data/docs/Body87.md +10 -0
  92. data/docs/Body88.md +9 -0
  93. data/docs/Body89.md +9 -0
  94. data/docs/Body9.md +9 -0
  95. data/docs/InlineResponse200.md +13 -0
  96. data/docs/InlineResponse2001.md +13 -0
  97. data/docs/InlineResponse20010.md +10 -0
  98. data/docs/InlineResponse20011.md +10 -0
  99. data/docs/InlineResponse20012.md +10 -0
  100. data/docs/InlineResponse20013.md +10 -0
  101. data/docs/InlineResponse20014.md +13 -0
  102. data/docs/InlineResponse20015.md +13 -0
  103. data/docs/InlineResponse20016.md +8 -0
  104. data/docs/InlineResponse20017.md +13 -0
  105. data/docs/InlineResponse20018.md +13 -0
  106. data/docs/InlineResponse20019.md +9 -0
  107. data/docs/InlineResponse2002.md +13 -0
  108. data/docs/InlineResponse20020.md +10 -0
  109. data/docs/InlineResponse20021.md +10 -0
  110. data/docs/InlineResponse20022.md +9 -0
  111. data/docs/InlineResponse20023.md +9 -0
  112. data/docs/InlineResponse20024.md +13 -0
  113. data/docs/InlineResponse20025.md +11 -0
  114. data/docs/InlineResponse20026.md +11 -0
  115. data/docs/InlineResponse20027.md +20 -0
  116. data/docs/InlineResponse20028.md +18 -0
  117. data/docs/InlineResponse20029.md +21 -0
  118. data/docs/InlineResponse20029SmtpEvents.md +10 -0
  119. data/docs/InlineResponse2003.md +13 -0
  120. data/docs/InlineResponse20030.md +18 -0
  121. data/docs/InlineResponse20030Attachments.md +10 -0
  122. data/docs/InlineResponse20030To.md +9 -0
  123. data/docs/InlineResponse20031.md +16 -0
  124. data/docs/InlineResponse20031Attachments.md +11 -0
  125. data/docs/InlineResponse20031Images.md +10 -0
  126. data/docs/InlineResponse20031To.md +9 -0
  127. data/docs/InlineResponse20032.md +13 -0
  128. data/docs/InlineResponse20033.md +10 -0
  129. data/docs/InlineResponse20034.md +10 -0
  130. data/docs/InlineResponse20035.md +10 -0
  131. data/docs/InlineResponse20036.md +10 -0
  132. data/docs/InlineResponse20037.md +9 -0
  133. data/docs/InlineResponse20038.md +16 -0
  134. data/docs/InlineResponse20039.md +10 -0
  135. data/docs/InlineResponse2004.md +13 -0
  136. data/docs/InlineResponse20040.md +19 -0
  137. data/docs/InlineResponse20041.md +14 -0
  138. data/docs/InlineResponse20042.md +14 -0
  139. data/docs/InlineResponse20043.md +14 -0
  140. data/docs/InlineResponse20044.md +10 -0
  141. data/docs/InlineResponse20045.md +18 -0
  142. data/docs/InlineResponse20045Stats.md +12 -0
  143. data/docs/InlineResponse20045StatsLast30Days.md +17 -0
  144. data/docs/InlineResponse20045StatsLast60Days.md +17 -0
  145. data/docs/InlineResponse20045StatsLast7Days.md +17 -0
  146. data/docs/InlineResponse20045StatsLast90Days.md +17 -0
  147. data/docs/InlineResponse20045StatsToday.md +17 -0
  148. data/docs/InlineResponse20046.md +17 -0
  149. data/docs/InlineResponse20047.md +17 -0
  150. data/docs/InlineResponse20048.md +17 -0
  151. data/docs/InlineResponse20049.md +21 -0
  152. data/docs/InlineResponse20049Last30Days.md +17 -0
  153. data/docs/InlineResponse2005.md +10 -0
  154. data/docs/InlineResponse20050.md +17 -0
  155. data/docs/InlineResponse20051.md +17 -0
  156. data/docs/InlineResponse20052.md +17 -0
  157. data/docs/InlineResponse20053.md +17 -0
  158. data/docs/InlineResponse20054.md +19 -0
  159. data/docs/InlineResponse20055.md +19 -0
  160. data/docs/InlineResponse20056.md +17 -0
  161. data/docs/InlineResponse20056Stats.md +12 -0
  162. data/docs/InlineResponse20056StatsLast30Days.md +17 -0
  163. data/docs/InlineResponse20056StatsLast60Days.md +17 -0
  164. data/docs/InlineResponse20056StatsLast7Days.md +17 -0
  165. data/docs/InlineResponse20056StatsLast90Days.md +17 -0
  166. data/docs/InlineResponse20056StatsToday.md +17 -0
  167. data/docs/InlineResponse20057.md +24 -0
  168. data/docs/InlineResponse20058.md +24 -0
  169. data/docs/InlineResponse20059.md +24 -0
  170. data/docs/InlineResponse2006.md +10 -0
  171. data/docs/InlineResponse20060.md +24 -0
  172. data/docs/InlineResponse20061.md +24 -0
  173. data/docs/InlineResponse20062.md +24 -0
  174. data/docs/InlineResponse20063.md +8 -0
  175. data/docs/InlineResponse20064.md +11 -0
  176. data/docs/InlineResponse20065.md +11 -0
  177. data/docs/InlineResponse20066.md +11 -0
  178. data/docs/InlineResponse20067.md +12 -0
  179. data/docs/InlineResponse20068.md +12 -0
  180. data/docs/InlineResponse20069.md +14 -0
  181. data/docs/InlineResponse20069Stats.md +13 -0
  182. data/docs/InlineResponse20069StatsAllTime.md +17 -0
  183. data/docs/InlineResponse20069StatsLast30Days.md +17 -0
  184. data/docs/InlineResponse20069StatsLast60Days.md +17 -0
  185. data/docs/InlineResponse20069StatsLast7Days.md +17 -0
  186. data/docs/InlineResponse20069StatsLast90Days.md +17 -0
  187. data/docs/InlineResponse20069StatsToday.md +17 -0
  188. data/docs/InlineResponse2007.md +10 -0
  189. data/docs/InlineResponse20070.md +8 -0
  190. data/docs/InlineResponse20071.md +17 -0
  191. data/docs/InlineResponse20072.md +17 -0
  192. data/docs/InlineResponse20073.md +17 -0
  193. data/docs/InlineResponse20074.md +17 -0
  194. data/docs/InlineResponse20075.md +17 -0
  195. data/docs/InlineResponse20076.md +9 -0
  196. data/docs/InlineResponse20077.md +10 -0
  197. data/docs/InlineResponse20078.md +9 -0
  198. data/docs/InlineResponse2008.md +10 -0
  199. data/docs/InlineResponse2009.md +10 -0
  200. data/docs/IpslistCustomDns.md +10 -0
  201. data/docs/IpslistWarmup.md +10 -0
  202. data/docs/IpslistpoolsIps.md +13 -0
  203. data/docs/MessagessearchClicksDetail.md +12 -0
  204. data/docs/MessagessearchOpensDetail.md +11 -0
  205. data/docs/MessagessendMessage.md +39 -0
  206. data/docs/MessagessendMessageAttachments.md +10 -0
  207. data/docs/MessagessendMessageGlobalMergeVars.md +9 -0
  208. data/docs/MessagessendMessageImages.md +10 -0
  209. data/docs/MessagessendMessageMergeVars.md +9 -0
  210. data/docs/MessagessendMessageMetadata.md +8 -0
  211. data/docs/MessagessendMessageRecipientMetadata.md +9 -0
  212. data/docs/MessagessendMessageTo.md +10 -0
  213. data/docs/MessagessendMessageValues.md +8 -0
  214. data/docs/MessagessendMessageVars.md +9 -0
  215. data/docs/MessagessendtemplateMessage.md +39 -0
  216. data/docs/MessagessendtemplateTemplateContent.md +9 -0
  217. data/docs/RejectslistSender.md +19 -0
  218. data/docs/SendersdomainsDkim.md +10 -0
  219. data/docs/SendersdomainsSpf.md +10 -0
  220. data/docs/TemplatesrenderMergeVars.md +9 -0
  221. data/docs/TemplatesrenderTemplateContent.md +9 -0
  222. data/docs/TransactionalApi.md +4328 -0
  223. data/docs/UrlstrackingdomainsCname.md +10 -0
  224. data/git_push.sh +55 -0
  225. data/lib/mailchimp_transactional/api/transactional_api.rb +4883 -0
  226. data/lib/mailchimp_transactional/api_client.rb +390 -0
  227. data/lib/mailchimp_transactional/api_error.rb +38 -0
  228. data/lib/mailchimp_transactional/configuration.rb +202 -0
  229. data/lib/mailchimp_transactional/models/body.rb +205 -0
  230. data/lib/mailchimp_transactional/models/body_1.rb +190 -0
  231. data/lib/mailchimp_transactional/models/body_10.rb +235 -0
  232. data/lib/mailchimp_transactional/models/body_11.rb +225 -0
  233. data/lib/mailchimp_transactional/models/body_12.rb +205 -0
  234. data/lib/mailchimp_transactional/models/body_13.rb +247 -0
  235. data/lib/mailchimp_transactional/models/body_14.rb +190 -0
  236. data/lib/mailchimp_transactional/models/body_15.rb +200 -0
  237. data/lib/mailchimp_transactional/models/body_16.rb +210 -0
  238. data/lib/mailchimp_transactional/models/body_17.rb +205 -0
  239. data/lib/mailchimp_transactional/models/body_18.rb +205 -0
  240. data/lib/mailchimp_transactional/models/body_19.rb +230 -0
  241. data/lib/mailchimp_transactional/models/body_2.rb +200 -0
  242. data/lib/mailchimp_transactional/models/body_20.rb +205 -0
  243. data/lib/mailchimp_transactional/models/body_21.rb +190 -0
  244. data/lib/mailchimp_transactional/models/body_22.rb +205 -0
  245. data/lib/mailchimp_transactional/models/body_23.rb +205 -0
  246. data/lib/mailchimp_transactional/models/body_24.rb +205 -0
  247. data/lib/mailchimp_transactional/models/body_25.rb +220 -0
  248. data/lib/mailchimp_transactional/models/body_26.rb +220 -0
  249. data/lib/mailchimp_transactional/models/body_27.rb +234 -0
  250. data/lib/mailchimp_transactional/models/body_28.rb +266 -0
  251. data/lib/mailchimp_transactional/models/body_29.rb +290 -0
  252. data/lib/mailchimp_transactional/models/body_3.rb +200 -0
  253. data/lib/mailchimp_transactional/models/body_30.rb +244 -0
  254. data/lib/mailchimp_transactional/models/body_31.rb +205 -0
  255. data/lib/mailchimp_transactional/models/body_32.rb +205 -0
  256. data/lib/mailchimp_transactional/models/body_33.rb +205 -0
  257. data/lib/mailchimp_transactional/models/body_34.rb +277 -0
  258. data/lib/mailchimp_transactional/models/body_35.rb +200 -0
  259. data/lib/mailchimp_transactional/models/body_36.rb +205 -0
  260. data/lib/mailchimp_transactional/models/body_37.rb +220 -0
  261. data/lib/mailchimp_transactional/models/body_38.rb +190 -0
  262. data/lib/mailchimp_transactional/models/body_39.rb +249 -0
  263. data/lib/mailchimp_transactional/models/body_4.rb +290 -0
  264. data/lib/mailchimp_transactional/models/body_40.rb +239 -0
  265. data/lib/mailchimp_transactional/models/body_41.rb +205 -0
  266. data/lib/mailchimp_transactional/models/body_42.rb +240 -0
  267. data/lib/mailchimp_transactional/models/body_43.rb +235 -0
  268. data/lib/mailchimp_transactional/models/body_44.rb +230 -0
  269. data/lib/mailchimp_transactional/models/body_45.rb +190 -0
  270. data/lib/mailchimp_transactional/models/body_46.rb +190 -0
  271. data/lib/mailchimp_transactional/models/body_47.rb +205 -0
  272. data/lib/mailchimp_transactional/models/body_48.rb +205 -0
  273. data/lib/mailchimp_transactional/models/body_49.rb +220 -0
  274. data/lib/mailchimp_transactional/models/body_5.rb +190 -0
  275. data/lib/mailchimp_transactional/models/body_50.rb +205 -0
  276. data/lib/mailchimp_transactional/models/body_51.rb +205 -0
  277. data/lib/mailchimp_transactional/models/body_52.rb +200 -0
  278. data/lib/mailchimp_transactional/models/body_53.rb +284 -0
  279. data/lib/mailchimp_transactional/models/body_54.rb +205 -0
  280. data/lib/mailchimp_transactional/models/body_55.rb +265 -0
  281. data/lib/mailchimp_transactional/models/body_56.rb +205 -0
  282. data/lib/mailchimp_transactional/models/body_57.rb +205 -0
  283. data/lib/mailchimp_transactional/models/body_58.rb +205 -0
  284. data/lib/mailchimp_transactional/models/body_59.rb +190 -0
  285. data/lib/mailchimp_transactional/models/body_6.rb +205 -0
  286. data/lib/mailchimp_transactional/models/body_60.rb +205 -0
  287. data/lib/mailchimp_transactional/models/body_61.rb +205 -0
  288. data/lib/mailchimp_transactional/models/body_62.rb +205 -0
  289. data/lib/mailchimp_transactional/models/body_63.rb +190 -0
  290. data/lib/mailchimp_transactional/models/body_64.rb +277 -0
  291. data/lib/mailchimp_transactional/models/body_65.rb +205 -0
  292. data/lib/mailchimp_transactional/models/body_66.rb +277 -0
  293. data/lib/mailchimp_transactional/models/body_67.rb +205 -0
  294. data/lib/mailchimp_transactional/models/body_68.rb +205 -0
  295. data/lib/mailchimp_transactional/models/body_69.rb +200 -0
  296. data/lib/mailchimp_transactional/models/body_7.rb +205 -0
  297. data/lib/mailchimp_transactional/models/body_70.rb +205 -0
  298. data/lib/mailchimp_transactional/models/body_71.rb +234 -0
  299. data/lib/mailchimp_transactional/models/body_72.rb +190 -0
  300. data/lib/mailchimp_transactional/models/body_73.rb +205 -0
  301. data/lib/mailchimp_transactional/models/body_74.rb +205 -0
  302. data/lib/mailchimp_transactional/models/body_75.rb +190 -0
  303. data/lib/mailchimp_transactional/models/body_76.rb +205 -0
  304. data/lib/mailchimp_transactional/models/body_77.rb +205 -0
  305. data/lib/mailchimp_transactional/models/body_78.rb +190 -0
  306. data/lib/mailchimp_transactional/models/body_79.rb +190 -0
  307. data/lib/mailchimp_transactional/models/body_8.rb +205 -0
  308. data/lib/mailchimp_transactional/models/body_80.rb +190 -0
  309. data/lib/mailchimp_transactional/models/body_81.rb +190 -0
  310. data/lib/mailchimp_transactional/models/body_82.rb +190 -0
  311. data/lib/mailchimp_transactional/models/body_83.rb +249 -0
  312. data/lib/mailchimp_transactional/models/body_84.rb +205 -0
  313. data/lib/mailchimp_transactional/models/body_85.rb +264 -0
  314. data/lib/mailchimp_transactional/models/body_86.rb +205 -0
  315. data/lib/mailchimp_transactional/models/body_87.rb +230 -0
  316. data/lib/mailchimp_transactional/models/body_88.rb +200 -0
  317. data/lib/mailchimp_transactional/models/body_89.rb +205 -0
  318. data/lib/mailchimp_transactional/models/body_9.rb +205 -0
  319. data/lib/mailchimp_transactional/models/inline_response_200.rb +236 -0
  320. data/lib/mailchimp_transactional/models/inline_response_200_1.rb +236 -0
  321. data/lib/mailchimp_transactional/models/inline_response_200_10.rb +206 -0
  322. data/lib/mailchimp_transactional/models/inline_response_200_11.rb +206 -0
  323. data/lib/mailchimp_transactional/models/inline_response_200_12.rb +206 -0
  324. data/lib/mailchimp_transactional/models/inline_response_200_13.rb +206 -0
  325. data/lib/mailchimp_transactional/models/inline_response_200_14.rb +234 -0
  326. data/lib/mailchimp_transactional/models/inline_response_200_15.rb +234 -0
  327. data/lib/mailchimp_transactional/models/inline_response_200_16.rb +186 -0
  328. data/lib/mailchimp_transactional/models/inline_response_200_17.rb +234 -0
  329. data/lib/mailchimp_transactional/models/inline_response_200_18.rb +234 -0
  330. data/lib/mailchimp_transactional/models/inline_response_200_19.rb +196 -0
  331. data/lib/mailchimp_transactional/models/inline_response_200_2.rb +236 -0
  332. data/lib/mailchimp_transactional/models/inline_response_200_20.rb +208 -0
  333. data/lib/mailchimp_transactional/models/inline_response_200_21.rb +208 -0
  334. data/lib/mailchimp_transactional/models/inline_response_200_22.rb +196 -0
  335. data/lib/mailchimp_transactional/models/inline_response_200_23.rb +196 -0
  336. data/lib/mailchimp_transactional/models/inline_response_200_24.rb +234 -0
  337. data/lib/mailchimp_transactional/models/inline_response_200_25.rb +262 -0
  338. data/lib/mailchimp_transactional/models/inline_response_200_26.rb +262 -0
  339. data/lib/mailchimp_transactional/models/inline_response_200_27.rb +346 -0
  340. data/lib/mailchimp_transactional/models/inline_response_200_28.rb +286 -0
  341. data/lib/mailchimp_transactional/models/inline_response_200_29.rb +358 -0
  342. data/lib/mailchimp_transactional/models/inline_response_200_29_smtp_events.rb +206 -0
  343. data/lib/mailchimp_transactional/models/inline_response_200_3.rb +236 -0
  344. data/lib/mailchimp_transactional/models/inline_response_200_30.rb +289 -0
  345. data/lib/mailchimp_transactional/models/inline_response_200_30_attachments.rb +206 -0
  346. data/lib/mailchimp_transactional/models/inline_response_200_30_to.rb +196 -0
  347. data/lib/mailchimp_transactional/models/inline_response_200_31.rb +272 -0
  348. data/lib/mailchimp_transactional/models/inline_response_200_31_attachments.rb +216 -0
  349. data/lib/mailchimp_transactional/models/inline_response_200_31_images.rb +206 -0
  350. data/lib/mailchimp_transactional/models/inline_response_200_31_to.rb +196 -0
  351. data/lib/mailchimp_transactional/models/inline_response_200_32.rb +236 -0
  352. data/lib/mailchimp_transactional/models/inline_response_200_33.rb +240 -0
  353. data/lib/mailchimp_transactional/models/inline_response_200_34.rb +240 -0
  354. data/lib/mailchimp_transactional/models/inline_response_200_35.rb +240 -0
  355. data/lib/mailchimp_transactional/models/inline_response_200_36.rb +240 -0
  356. data/lib/mailchimp_transactional/models/inline_response_200_37.rb +196 -0
  357. data/lib/mailchimp_transactional/models/inline_response_200_38.rb +265 -0
  358. data/lib/mailchimp_transactional/models/inline_response_200_39.rb +206 -0
  359. data/lib/mailchimp_transactional/models/inline_response_200_4.rb +236 -0
  360. data/lib/mailchimp_transactional/models/inline_response_200_40.rb +296 -0
  361. data/lib/mailchimp_transactional/models/inline_response_200_41.rb +244 -0
  362. data/lib/mailchimp_transactional/models/inline_response_200_42.rb +244 -0
  363. data/lib/mailchimp_transactional/models/inline_response_200_43.rb +244 -0
  364. data/lib/mailchimp_transactional/models/inline_response_200_44.rb +206 -0
  365. data/lib/mailchimp_transactional/models/inline_response_200_45.rb +285 -0
  366. data/lib/mailchimp_transactional/models/inline_response_200_45_stats.rb +221 -0
  367. data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_30_days.rb +276 -0
  368. data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_60_days.rb +276 -0
  369. data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_7_days.rb +276 -0
  370. data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_90_days.rb +276 -0
  371. data/lib/mailchimp_transactional/models/inline_response_200_45_stats_today.rb +276 -0
  372. data/lib/mailchimp_transactional/models/inline_response_200_46.rb +276 -0
  373. data/lib/mailchimp_transactional/models/inline_response_200_47.rb +334 -0
  374. data/lib/mailchimp_transactional/models/inline_response_200_48.rb +334 -0
  375. data/lib/mailchimp_transactional/models/inline_response_200_49.rb +373 -0
  376. data/lib/mailchimp_transactional/models/inline_response_200_49_last_30_days.rb +276 -0
  377. data/lib/mailchimp_transactional/models/inline_response_200_5.rb +206 -0
  378. data/lib/mailchimp_transactional/models/inline_response_200_50.rb +334 -0
  379. data/lib/mailchimp_transactional/models/inline_response_200_51.rb +334 -0
  380. data/lib/mailchimp_transactional/models/inline_response_200_52.rb +334 -0
  381. data/lib/mailchimp_transactional/models/inline_response_200_53.rb +334 -0
  382. data/lib/mailchimp_transactional/models/inline_response_200_54.rb +320 -0
  383. data/lib/mailchimp_transactional/models/inline_response_200_55.rb +320 -0
  384. data/lib/mailchimp_transactional/models/inline_response_200_56.rb +275 -0
  385. data/lib/mailchimp_transactional/models/inline_response_200_56_stats.rb +221 -0
  386. data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_30_days.rb +276 -0
  387. data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_60_days.rb +276 -0
  388. data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_7_days.rb +276 -0
  389. data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_90_days.rb +276 -0
  390. data/lib/mailchimp_transactional/models/inline_response_200_56_stats_today.rb +276 -0
  391. data/lib/mailchimp_transactional/models/inline_response_200_57.rb +348 -0
  392. data/lib/mailchimp_transactional/models/inline_response_200_58.rb +348 -0
  393. data/lib/mailchimp_transactional/models/inline_response_200_59.rb +348 -0
  394. data/lib/mailchimp_transactional/models/inline_response_200_6.rb +206 -0
  395. data/lib/mailchimp_transactional/models/inline_response_200_60.rb +348 -0
  396. data/lib/mailchimp_transactional/models/inline_response_200_61.rb +348 -0
  397. data/lib/mailchimp_transactional/models/inline_response_200_62.rb +348 -0
  398. data/lib/mailchimp_transactional/models/inline_response_200_63.rb +186 -0
  399. data/lib/mailchimp_transactional/models/inline_response_200_64.rb +216 -0
  400. data/lib/mailchimp_transactional/models/inline_response_200_65.rb +216 -0
  401. data/lib/mailchimp_transactional/models/inline_response_200_66.rb +216 -0
  402. data/lib/mailchimp_transactional/models/inline_response_200_67.rb +225 -0
  403. data/lib/mailchimp_transactional/models/inline_response_200_68.rb +225 -0
  404. data/lib/mailchimp_transactional/models/inline_response_200_69.rb +245 -0
  405. data/lib/mailchimp_transactional/models/inline_response_200_69_stats.rb +230 -0
  406. data/lib/mailchimp_transactional/models/inline_response_200_69_stats_all_time.rb +276 -0
  407. data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_30_days.rb +276 -0
  408. data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_60_days.rb +276 -0
  409. data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_7_days.rb +276 -0
  410. data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_90_days.rb +276 -0
  411. data/lib/mailchimp_transactional/models/inline_response_200_69_stats_today.rb +276 -0
  412. data/lib/mailchimp_transactional/models/inline_response_200_7.rb +206 -0
  413. data/lib/mailchimp_transactional/models/inline_response_200_70.rb +186 -0
  414. data/lib/mailchimp_transactional/models/inline_response_200_71.rb +300 -0
  415. data/lib/mailchimp_transactional/models/inline_response_200_72.rb +300 -0
  416. data/lib/mailchimp_transactional/models/inline_response_200_73.rb +300 -0
  417. data/lib/mailchimp_transactional/models/inline_response_200_74.rb +300 -0
  418. data/lib/mailchimp_transactional/models/inline_response_200_75.rb +300 -0
  419. data/lib/mailchimp_transactional/models/inline_response_200_76.rb +196 -0
  420. data/lib/mailchimp_transactional/models/inline_response_200_77.rb +206 -0
  421. data/lib/mailchimp_transactional/models/inline_response_200_78.rb +196 -0
  422. data/lib/mailchimp_transactional/models/inline_response_200_8.rb +206 -0
  423. data/lib/mailchimp_transactional/models/inline_response_200_9.rb +206 -0
  424. data/lib/mailchimp_transactional/models/ipslist_custom_dns.rb +206 -0
  425. data/lib/mailchimp_transactional/models/ipslist_warmup.rb +206 -0
  426. data/lib/mailchimp_transactional/models/ipslistpools_ips.rb +234 -0
  427. data/lib/mailchimp_transactional/models/messagessearch_clicks_detail.rb +226 -0
  428. data/lib/mailchimp_transactional/models/messagessearch_opens_detail.rb +216 -0
  429. data/lib/mailchimp_transactional/models/messagessend_message.rb +545 -0
  430. data/lib/mailchimp_transactional/models/messagessend_message_attachments.rb +206 -0
  431. data/lib/mailchimp_transactional/models/messagessend_message_global_merge_vars.rb +196 -0
  432. data/lib/mailchimp_transactional/models/messagessend_message_images.rb +206 -0
  433. data/lib/mailchimp_transactional/models/messagessend_message_merge_vars.rb +203 -0
  434. data/lib/mailchimp_transactional/models/messagessend_message_metadata.rb +186 -0
  435. data/lib/mailchimp_transactional/models/messagessend_message_recipient_metadata.rb +195 -0
  436. data/lib/mailchimp_transactional/models/messagessend_message_to.rb +245 -0
  437. data/lib/mailchimp_transactional/models/messagessend_message_values.rb +186 -0
  438. data/lib/mailchimp_transactional/models/messagessend_message_vars.rb +195 -0
  439. data/lib/mailchimp_transactional/models/messagessendtemplate_message.rb +545 -0
  440. data/lib/mailchimp_transactional/models/messagessendtemplate_template_content.rb +196 -0
  441. data/lib/mailchimp_transactional/models/rejectslist_sender.rb +296 -0
  442. data/lib/mailchimp_transactional/models/sendersdomains_dkim.rb +206 -0
  443. data/lib/mailchimp_transactional/models/sendersdomains_spf.rb +206 -0
  444. data/lib/mailchimp_transactional/models/templatesrender_merge_vars.rb +196 -0
  445. data/lib/mailchimp_transactional/models/templatesrender_template_content.rb +206 -0
  446. data/lib/mailchimp_transactional/models/urlstrackingdomains_cname.rb +206 -0
  447. data/lib/mailchimp_transactional/version.rb +15 -0
  448. data/lib/mailchimp_transactional.rb +258 -0
  449. data/mailchimp_transactional.gemspec +45 -0
  450. data/spec/api_client_spec.rb +243 -0
  451. data/spec/configuration_spec.rb +42 -0
  452. data/spec/models/body_10_spec.rb +59 -0
  453. data/spec/models/body_11_spec.rb +59 -0
  454. data/spec/models/body_12_spec.rb +47 -0
  455. data/spec/models/body_13_spec.rb +71 -0
  456. data/spec/models/body_14_spec.rb +41 -0
  457. data/spec/models/body_15_spec.rb +47 -0
  458. data/spec/models/body_16_spec.rb +53 -0
  459. data/spec/models/body_17_spec.rb +47 -0
  460. data/spec/models/body_18_spec.rb +47 -0
  461. data/spec/models/body_19_spec.rb +59 -0
  462. data/spec/models/body_1_spec.rb +41 -0
  463. data/spec/models/body_20_spec.rb +47 -0
  464. data/spec/models/body_21_spec.rb +41 -0
  465. data/spec/models/body_22_spec.rb +47 -0
  466. data/spec/models/body_23_spec.rb +47 -0
  467. data/spec/models/body_24_spec.rb +47 -0
  468. data/spec/models/body_25_spec.rb +53 -0
  469. data/spec/models/body_26_spec.rb +53 -0
  470. data/spec/models/body_27_spec.rb +65 -0
  471. data/spec/models/body_28_spec.rb +77 -0
  472. data/spec/models/body_29_spec.rb +83 -0
  473. data/spec/models/body_2_spec.rb +47 -0
  474. data/spec/models/body_30_spec.rb +71 -0
  475. data/spec/models/body_31_spec.rb +47 -0
  476. data/spec/models/body_32_spec.rb +47 -0
  477. data/spec/models/body_33_spec.rb +47 -0
  478. data/spec/models/body_34_spec.rb +89 -0
  479. data/spec/models/body_35_spec.rb +47 -0
  480. data/spec/models/body_36_spec.rb +47 -0
  481. data/spec/models/body_37_spec.rb +53 -0
  482. data/spec/models/body_38_spec.rb +41 -0
  483. data/spec/models/body_39_spec.rb +53 -0
  484. data/spec/models/body_3_spec.rb +47 -0
  485. data/spec/models/body_40_spec.rb +53 -0
  486. data/spec/models/body_41_spec.rb +47 -0
  487. data/spec/models/body_42_spec.rb +59 -0
  488. data/spec/models/body_43_spec.rb +59 -0
  489. data/spec/models/body_44_spec.rb +53 -0
  490. data/spec/models/body_45_spec.rb +41 -0
  491. data/spec/models/body_46_spec.rb +41 -0
  492. data/spec/models/body_47_spec.rb +47 -0
  493. data/spec/models/body_48_spec.rb +47 -0
  494. data/spec/models/body_49_spec.rb +53 -0
  495. data/spec/models/body_4_spec.rb +87 -0
  496. data/spec/models/body_50_spec.rb +47 -0
  497. data/spec/models/body_51_spec.rb +47 -0
  498. data/spec/models/body_52_spec.rb +47 -0
  499. data/spec/models/body_53_spec.rb +65 -0
  500. data/spec/models/body_54_spec.rb +47 -0
  501. data/spec/models/body_55_spec.rb +65 -0
  502. data/spec/models/body_56_spec.rb +47 -0
  503. data/spec/models/body_57_spec.rb +47 -0
  504. data/spec/models/body_58_spec.rb +47 -0
  505. data/spec/models/body_59_spec.rb +41 -0
  506. data/spec/models/body_5_spec.rb +41 -0
  507. data/spec/models/body_60_spec.rb +47 -0
  508. data/spec/models/body_61_spec.rb +47 -0
  509. data/spec/models/body_62_spec.rb +47 -0
  510. data/spec/models/body_63_spec.rb +41 -0
  511. data/spec/models/body_64_spec.rb +89 -0
  512. data/spec/models/body_65_spec.rb +47 -0
  513. data/spec/models/body_66_spec.rb +89 -0
  514. data/spec/models/body_67_spec.rb +47 -0
  515. data/spec/models/body_68_spec.rb +47 -0
  516. data/spec/models/body_69_spec.rb +47 -0
  517. data/spec/models/body_6_spec.rb +47 -0
  518. data/spec/models/body_70_spec.rb +47 -0
  519. data/spec/models/body_71_spec.rb +59 -0
  520. data/spec/models/body_72_spec.rb +41 -0
  521. data/spec/models/body_73_spec.rb +47 -0
  522. data/spec/models/body_74_spec.rb +47 -0
  523. data/spec/models/body_75_spec.rb +41 -0
  524. data/spec/models/body_76_spec.rb +47 -0
  525. data/spec/models/body_77_spec.rb +47 -0
  526. data/spec/models/body_78_spec.rb +41 -0
  527. data/spec/models/body_79_spec.rb +41 -0
  528. data/spec/models/body_7_spec.rb +47 -0
  529. data/spec/models/body_80_spec.rb +41 -0
  530. data/spec/models/body_81_spec.rb +41 -0
  531. data/spec/models/body_82_spec.rb +41 -0
  532. data/spec/models/body_83_spec.rb +63 -0
  533. data/spec/models/body_84_spec.rb +47 -0
  534. data/spec/models/body_85_spec.rb +69 -0
  535. data/spec/models/body_86_spec.rb +47 -0
  536. data/spec/models/body_87_spec.rb +53 -0
  537. data/spec/models/body_88_spec.rb +47 -0
  538. data/spec/models/body_89_spec.rb +47 -0
  539. data/spec/models/body_8_spec.rb +47 -0
  540. data/spec/models/body_9_spec.rb +47 -0
  541. data/spec/models/body_spec.rb +47 -0
  542. data/spec/models/inline_response_200_10_spec.rb +53 -0
  543. data/spec/models/inline_response_200_11_spec.rb +53 -0
  544. data/spec/models/inline_response_200_12_spec.rb +53 -0
  545. data/spec/models/inline_response_200_13_spec.rb +53 -0
  546. data/spec/models/inline_response_200_14_spec.rb +71 -0
  547. data/spec/models/inline_response_200_15_spec.rb +71 -0
  548. data/spec/models/inline_response_200_16_spec.rb +41 -0
  549. data/spec/models/inline_response_200_17_spec.rb +71 -0
  550. data/spec/models/inline_response_200_18_spec.rb +71 -0
  551. data/spec/models/inline_response_200_19_spec.rb +47 -0
  552. data/spec/models/inline_response_200_1_spec.rb +71 -0
  553. data/spec/models/inline_response_200_20_spec.rb +53 -0
  554. data/spec/models/inline_response_200_21_spec.rb +53 -0
  555. data/spec/models/inline_response_200_22_spec.rb +47 -0
  556. data/spec/models/inline_response_200_23_spec.rb +47 -0
  557. data/spec/models/inline_response_200_24_spec.rb +71 -0
  558. data/spec/models/inline_response_200_25_spec.rb +67 -0
  559. data/spec/models/inline_response_200_26_spec.rb +67 -0
  560. data/spec/models/inline_response_200_27_spec.rb +117 -0
  561. data/spec/models/inline_response_200_28_spec.rb +101 -0
  562. data/spec/models/inline_response_200_29_smtp_events_spec.rb +53 -0
  563. data/spec/models/inline_response_200_29_spec.rb +123 -0
  564. data/spec/models/inline_response_200_2_spec.rb +71 -0
  565. data/spec/models/inline_response_200_30_attachments_spec.rb +53 -0
  566. data/spec/models/inline_response_200_30_spec.rb +101 -0
  567. data/spec/models/inline_response_200_30_to_spec.rb +47 -0
  568. data/spec/models/inline_response_200_31_attachments_spec.rb +59 -0
  569. data/spec/models/inline_response_200_31_images_spec.rb +53 -0
  570. data/spec/models/inline_response_200_31_spec.rb +89 -0
  571. data/spec/models/inline_response_200_31_to_spec.rb +47 -0
  572. data/spec/models/inline_response_200_32_spec.rb +71 -0
  573. data/spec/models/inline_response_200_33_spec.rb +57 -0
  574. data/spec/models/inline_response_200_34_spec.rb +57 -0
  575. data/spec/models/inline_response_200_35_spec.rb +57 -0
  576. data/spec/models/inline_response_200_36_spec.rb +57 -0
  577. data/spec/models/inline_response_200_37_spec.rb +47 -0
  578. data/spec/models/inline_response_200_38_spec.rb +89 -0
  579. data/spec/models/inline_response_200_39_spec.rb +53 -0
  580. data/spec/models/inline_response_200_3_spec.rb +71 -0
  581. data/spec/models/inline_response_200_40_spec.rb +107 -0
  582. data/spec/models/inline_response_200_41_spec.rb +77 -0
  583. data/spec/models/inline_response_200_42_spec.rb +77 -0
  584. data/spec/models/inline_response_200_43_spec.rb +77 -0
  585. data/spec/models/inline_response_200_44_spec.rb +53 -0
  586. data/spec/models/inline_response_200_45_spec.rb +101 -0
  587. data/spec/models/inline_response_200_45_stats_last_30_days_spec.rb +95 -0
  588. data/spec/models/inline_response_200_45_stats_last_60_days_spec.rb +95 -0
  589. data/spec/models/inline_response_200_45_stats_last_7_days_spec.rb +95 -0
  590. data/spec/models/inline_response_200_45_stats_last_90_days_spec.rb +95 -0
  591. data/spec/models/inline_response_200_45_stats_spec.rb +65 -0
  592. data/spec/models/inline_response_200_45_stats_today_spec.rb +95 -0
  593. data/spec/models/inline_response_200_46_spec.rb +95 -0
  594. data/spec/models/inline_response_200_47_spec.rb +99 -0
  595. data/spec/models/inline_response_200_48_spec.rb +99 -0
  596. data/spec/models/inline_response_200_49_last_30_days_spec.rb +95 -0
  597. data/spec/models/inline_response_200_49_spec.rb +123 -0
  598. data/spec/models/inline_response_200_4_spec.rb +71 -0
  599. data/spec/models/inline_response_200_50_spec.rb +99 -0
  600. data/spec/models/inline_response_200_51_spec.rb +99 -0
  601. data/spec/models/inline_response_200_52_spec.rb +99 -0
  602. data/spec/models/inline_response_200_53_spec.rb +99 -0
  603. data/spec/models/inline_response_200_54_spec.rb +107 -0
  604. data/spec/models/inline_response_200_55_spec.rb +107 -0
  605. data/spec/models/inline_response_200_56_spec.rb +95 -0
  606. data/spec/models/inline_response_200_56_stats_last_30_days_spec.rb +95 -0
  607. data/spec/models/inline_response_200_56_stats_last_60_days_spec.rb +95 -0
  608. data/spec/models/inline_response_200_56_stats_last_7_days_spec.rb +95 -0
  609. data/spec/models/inline_response_200_56_stats_last_90_days_spec.rb +95 -0
  610. data/spec/models/inline_response_200_56_stats_spec.rb +65 -0
  611. data/spec/models/inline_response_200_56_stats_today_spec.rb +95 -0
  612. data/spec/models/inline_response_200_57_spec.rb +137 -0
  613. data/spec/models/inline_response_200_58_spec.rb +137 -0
  614. data/spec/models/inline_response_200_59_spec.rb +137 -0
  615. data/spec/models/inline_response_200_5_spec.rb +53 -0
  616. data/spec/models/inline_response_200_60_spec.rb +137 -0
  617. data/spec/models/inline_response_200_61_spec.rb +137 -0
  618. data/spec/models/inline_response_200_62_spec.rb +137 -0
  619. data/spec/models/inline_response_200_63_spec.rb +41 -0
  620. data/spec/models/inline_response_200_64_spec.rb +59 -0
  621. data/spec/models/inline_response_200_65_spec.rb +59 -0
  622. data/spec/models/inline_response_200_66_spec.rb +59 -0
  623. data/spec/models/inline_response_200_67_spec.rb +65 -0
  624. data/spec/models/inline_response_200_68_spec.rb +65 -0
  625. data/spec/models/inline_response_200_69_spec.rb +77 -0
  626. data/spec/models/inline_response_200_69_stats_all_time_spec.rb +95 -0
  627. data/spec/models/inline_response_200_69_stats_last_30_days_spec.rb +95 -0
  628. data/spec/models/inline_response_200_69_stats_last_60_days_spec.rb +95 -0
  629. data/spec/models/inline_response_200_69_stats_last_7_days_spec.rb +95 -0
  630. data/spec/models/inline_response_200_69_stats_last_90_days_spec.rb +95 -0
  631. data/spec/models/inline_response_200_69_stats_spec.rb +71 -0
  632. data/spec/models/inline_response_200_69_stats_today_spec.rb +95 -0
  633. data/spec/models/inline_response_200_6_spec.rb +53 -0
  634. data/spec/models/inline_response_200_70_spec.rb +41 -0
  635. data/spec/models/inline_response_200_71_spec.rb +99 -0
  636. data/spec/models/inline_response_200_72_spec.rb +99 -0
  637. data/spec/models/inline_response_200_73_spec.rb +99 -0
  638. data/spec/models/inline_response_200_74_spec.rb +99 -0
  639. data/spec/models/inline_response_200_75_spec.rb +99 -0
  640. data/spec/models/inline_response_200_76_spec.rb +47 -0
  641. data/spec/models/inline_response_200_77_spec.rb +53 -0
  642. data/spec/models/inline_response_200_78_spec.rb +47 -0
  643. data/spec/models/inline_response_200_7_spec.rb +53 -0
  644. data/spec/models/inline_response_200_8_spec.rb +53 -0
  645. data/spec/models/inline_response_200_9_spec.rb +53 -0
  646. data/spec/models/inline_response_200_spec.rb +71 -0
  647. data/spec/models/ipslist_custom_dns_spec.rb +53 -0
  648. data/spec/models/ipslist_warmup_spec.rb +53 -0
  649. data/spec/models/ipslistpools_ips_spec.rb +71 -0
  650. data/spec/models/messagessearch_clicks_detail_spec.rb +65 -0
  651. data/spec/models/messagessearch_opens_detail_spec.rb +59 -0
  652. data/spec/models/messagessend_message_attachments_spec.rb +53 -0
  653. data/spec/models/messagessend_message_global_merge_vars_spec.rb +47 -0
  654. data/spec/models/messagessend_message_images_spec.rb +53 -0
  655. data/spec/models/messagessend_message_merge_vars_spec.rb +47 -0
  656. data/spec/models/messagessend_message_metadata_spec.rb +41 -0
  657. data/spec/models/messagessend_message_recipient_metadata_spec.rb +47 -0
  658. data/spec/models/messagessend_message_spec.rb +231 -0
  659. data/spec/models/messagessend_message_to_spec.rb +57 -0
  660. data/spec/models/messagessend_message_values_spec.rb +41 -0
  661. data/spec/models/messagessend_message_vars_spec.rb +47 -0
  662. data/spec/models/messagessendtemplate_message_spec.rb +231 -0
  663. data/spec/models/messagessendtemplate_template_content_spec.rb +47 -0
  664. data/spec/models/rejectslist_sender_spec.rb +107 -0
  665. data/spec/models/sendersdomains_dkim_spec.rb +53 -0
  666. data/spec/models/sendersdomains_spf_spec.rb +53 -0
  667. data/spec/models/templatesrender_merge_vars_spec.rb +47 -0
  668. data/spec/models/templatesrender_template_content_spec.rb +47 -0
  669. data/spec/models/urlstrackingdomains_cname_spec.rb +53 -0
  670. data/spec/spec_helper.rb +111 -0
  671. metadata +1113 -0
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Mandrill API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.1
7
+ Contact: apihelp@mandrill.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailchimpTransactional
16
+ class Body25
17
+ # a valid api key
18
+ attr_accessor :key
19
+
20
+ # a dedicated ip address
21
+ attr_accessor :ip
22
+
23
+ # the domain name to test
24
+ attr_accessor :domain
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'key' => :'key',
30
+ :'ip' => :'ip',
31
+ :'domain' => :'domain'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'key' => :'String',
39
+ :'ip' => :'String',
40
+ :'domain' => :'String'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'key')
53
+ self.key = attributes[:'key']
54
+ end
55
+
56
+ if attributes.has_key?(:'ip')
57
+ self.ip = attributes[:'ip']
58
+ end
59
+
60
+ if attributes.has_key?(:'domain')
61
+ self.domain = attributes[:'domain']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @key.nil?
70
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
71
+ end
72
+
73
+ if @ip.nil?
74
+ invalid_properties.push('invalid value for "ip", ip cannot be nil.')
75
+ end
76
+
77
+ if @domain.nil?
78
+ invalid_properties.push('invalid value for "domain", domain cannot be nil.')
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ return false if @key.nil?
88
+ return false if @ip.nil?
89
+ return false if @domain.nil?
90
+ true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ key == o.key &&
99
+ ip == o.ip &&
100
+ domain == o.domain
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Fixnum] Hash code
111
+ def hash
112
+ [key, ip, domain].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ DateTime.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ temp_model = MailchimpTransactional.const_get(type).new
173
+ temp_model.build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ next if value.nil?
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+ end
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Mandrill API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.1
7
+ Contact: apihelp@mandrill.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailchimpTransactional
16
+ class Body26
17
+ # a valid api key
18
+ attr_accessor :key
19
+
20
+ # a dedicated ip address
21
+ attr_accessor :ip
22
+
23
+ # a domain name to set as the dedicated IP's custom dns name.
24
+ attr_accessor :domain
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'key' => :'key',
30
+ :'ip' => :'ip',
31
+ :'domain' => :'domain'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'key' => :'String',
39
+ :'ip' => :'String',
40
+ :'domain' => :'String'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'key')
53
+ self.key = attributes[:'key']
54
+ end
55
+
56
+ if attributes.has_key?(:'ip')
57
+ self.ip = attributes[:'ip']
58
+ end
59
+
60
+ if attributes.has_key?(:'domain')
61
+ self.domain = attributes[:'domain']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @key.nil?
70
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
71
+ end
72
+
73
+ if @ip.nil?
74
+ invalid_properties.push('invalid value for "ip", ip cannot be nil.')
75
+ end
76
+
77
+ if @domain.nil?
78
+ invalid_properties.push('invalid value for "domain", domain cannot be nil.')
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ return false if @key.nil?
88
+ return false if @ip.nil?
89
+ return false if @domain.nil?
90
+ true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ key == o.key &&
99
+ ip == o.ip &&
100
+ domain == o.domain
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Fixnum] Hash code
111
+ def hash
112
+ [key, ip, domain].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ DateTime.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ temp_model = MailchimpTransactional.const_get(type).new
173
+ temp_model.build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ next if value.nil?
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+ end
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #Mandrill API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.1
7
+ Contact: apihelp@mandrill.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailchimpTransactional
16
+ class Body27
17
+ # a valid api key
18
+ attr_accessor :key
19
+
20
+ attr_accessor :message
21
+
22
+ # enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of \"queued\" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
23
+ attr_accessor :async
24
+
25
+ # the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead.
26
+ attr_accessor :ip_pool
27
+
28
+ # when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately. An additional fee applies for scheduled email, and this feature is only available to accounts with a positive balance.
29
+ attr_accessor :send_at
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'key' => :'key',
35
+ :'message' => :'message',
36
+ :'async' => :'async',
37
+ :'ip_pool' => :'ip_pool',
38
+ :'send_at' => :'send_at'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.swagger_types
44
+ {
45
+ :'key' => :'String',
46
+ :'message' => :'MessagessendMessage',
47
+ :'async' => :'BOOLEAN',
48
+ :'ip_pool' => :'String',
49
+ :'send_at' => :'DateTime'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.has_key?(:'key')
62
+ self.key = attributes[:'key']
63
+ end
64
+
65
+ if attributes.has_key?(:'message')
66
+ self.message = attributes[:'message']
67
+ end
68
+
69
+ if attributes.has_key?(:'async')
70
+ self.async = attributes[:'async']
71
+ end
72
+
73
+ if attributes.has_key?(:'ip_pool')
74
+ self.ip_pool = attributes[:'ip_pool']
75
+ end
76
+
77
+ if attributes.has_key?(:'send_at')
78
+ self.send_at = attributes[:'send_at']
79
+ end
80
+ end
81
+
82
+ # Show invalid properties with the reasons. Usually used together with valid?
83
+ # @return Array for valid properties with the reasons
84
+ def list_invalid_properties
85
+ invalid_properties = Array.new
86
+ if @key.nil?
87
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
88
+ end
89
+
90
+ if @message.nil?
91
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
92
+ end
93
+
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ return false if @key.nil?
101
+ return false if @message.nil?
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ key == o.key &&
111
+ message == o.message &&
112
+ async == o.async &&
113
+ ip_pool == o.ip_pool &&
114
+ send_at == o.send_at
115
+ end
116
+
117
+ # @see the `==` method
118
+ # @param [Object] Object to be compared
119
+ def eql?(o)
120
+ self == o
121
+ end
122
+
123
+ # Calculates hash code according to all attributes.
124
+ # @return [Fixnum] Hash code
125
+ def hash
126
+ [key, message, async, ip_pool, send_at].hash
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ self.class.swagger_types.each_pair do |key, type|
135
+ if type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :DateTime
156
+ DateTime.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :BOOLEAN
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ temp_model = MailchimpTransactional.const_get(type).new
187
+ temp_model.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ next if value.nil?
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map { |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+ end