mailchimp_transactional 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +395 -0
- data/Rakefile +8 -0
- data/docs/Body.md +9 -0
- data/docs/Body1.md +8 -0
- data/docs/Body10.md +11 -0
- data/docs/Body11.md +11 -0
- data/docs/Body12.md +9 -0
- data/docs/Body13.md +13 -0
- data/docs/Body14.md +8 -0
- data/docs/Body15.md +9 -0
- data/docs/Body16.md +10 -0
- data/docs/Body17.md +9 -0
- data/docs/Body18.md +9 -0
- data/docs/Body19.md +11 -0
- data/docs/Body2.md +9 -0
- data/docs/Body20.md +9 -0
- data/docs/Body21.md +8 -0
- data/docs/Body22.md +9 -0
- data/docs/Body23.md +9 -0
- data/docs/Body24.md +9 -0
- data/docs/Body25.md +10 -0
- data/docs/Body26.md +10 -0
- data/docs/Body27.md +12 -0
- data/docs/Body28.md +14 -0
- data/docs/Body29.md +15 -0
- data/docs/Body3.md +9 -0
- data/docs/Body30.md +13 -0
- data/docs/Body31.md +9 -0
- data/docs/Body32.md +9 -0
- data/docs/Body33.md +9 -0
- data/docs/Body34.md +16 -0
- data/docs/Body35.md +9 -0
- data/docs/Body36.md +9 -0
- data/docs/Body37.md +10 -0
- data/docs/Body38.md +8 -0
- data/docs/Body39.md +10 -0
- data/docs/Body4.md +15 -0
- data/docs/Body40.md +10 -0
- data/docs/Body41.md +9 -0
- data/docs/Body42.md +11 -0
- data/docs/Body43.md +11 -0
- data/docs/Body44.md +10 -0
- data/docs/Body45.md +8 -0
- data/docs/Body46.md +8 -0
- data/docs/Body47.md +9 -0
- data/docs/Body48.md +9 -0
- data/docs/Body49.md +10 -0
- data/docs/Body5.md +8 -0
- data/docs/Body50.md +9 -0
- data/docs/Body51.md +9 -0
- data/docs/Body52.md +9 -0
- data/docs/Body53.md +12 -0
- data/docs/Body54.md +9 -0
- data/docs/Body55.md +12 -0
- data/docs/Body56.md +9 -0
- data/docs/Body57.md +9 -0
- data/docs/Body58.md +9 -0
- data/docs/Body59.md +8 -0
- data/docs/Body6.md +9 -0
- data/docs/Body60.md +9 -0
- data/docs/Body61.md +9 -0
- data/docs/Body62.md +9 -0
- data/docs/Body63.md +8 -0
- data/docs/Body64.md +16 -0
- data/docs/Body65.md +9 -0
- data/docs/Body66.md +16 -0
- data/docs/Body67.md +9 -0
- data/docs/Body68.md +9 -0
- data/docs/Body69.md +9 -0
- data/docs/Body7.md +9 -0
- data/docs/Body70.md +9 -0
- data/docs/Body71.md +11 -0
- data/docs/Body72.md +8 -0
- data/docs/Body73.md +9 -0
- data/docs/Body74.md +9 -0
- data/docs/Body75.md +8 -0
- data/docs/Body76.md +9 -0
- data/docs/Body77.md +9 -0
- data/docs/Body78.md +8 -0
- data/docs/Body79.md +8 -0
- data/docs/Body8.md +9 -0
- data/docs/Body80.md +8 -0
- data/docs/Body81.md +8 -0
- data/docs/Body82.md +8 -0
- data/docs/Body83.md +11 -0
- data/docs/Body84.md +9 -0
- data/docs/Body85.md +12 -0
- data/docs/Body86.md +9 -0
- data/docs/Body87.md +10 -0
- data/docs/Body88.md +9 -0
- data/docs/Body89.md +9 -0
- data/docs/Body9.md +9 -0
- data/docs/InlineResponse200.md +13 -0
- data/docs/InlineResponse2001.md +13 -0
- data/docs/InlineResponse20010.md +10 -0
- data/docs/InlineResponse20011.md +10 -0
- data/docs/InlineResponse20012.md +10 -0
- data/docs/InlineResponse20013.md +10 -0
- data/docs/InlineResponse20014.md +13 -0
- data/docs/InlineResponse20015.md +13 -0
- data/docs/InlineResponse20016.md +8 -0
- data/docs/InlineResponse20017.md +13 -0
- data/docs/InlineResponse20018.md +13 -0
- data/docs/InlineResponse20019.md +9 -0
- data/docs/InlineResponse2002.md +13 -0
- data/docs/InlineResponse20020.md +10 -0
- data/docs/InlineResponse20021.md +10 -0
- data/docs/InlineResponse20022.md +9 -0
- data/docs/InlineResponse20023.md +9 -0
- data/docs/InlineResponse20024.md +13 -0
- data/docs/InlineResponse20025.md +11 -0
- data/docs/InlineResponse20026.md +11 -0
- data/docs/InlineResponse20027.md +20 -0
- data/docs/InlineResponse20028.md +18 -0
- data/docs/InlineResponse20029.md +21 -0
- data/docs/InlineResponse20029SmtpEvents.md +10 -0
- data/docs/InlineResponse2003.md +13 -0
- data/docs/InlineResponse20030.md +18 -0
- data/docs/InlineResponse20030Attachments.md +10 -0
- data/docs/InlineResponse20030To.md +9 -0
- data/docs/InlineResponse20031.md +16 -0
- data/docs/InlineResponse20031Attachments.md +11 -0
- data/docs/InlineResponse20031Images.md +10 -0
- data/docs/InlineResponse20031To.md +9 -0
- data/docs/InlineResponse20032.md +13 -0
- data/docs/InlineResponse20033.md +10 -0
- data/docs/InlineResponse20034.md +10 -0
- data/docs/InlineResponse20035.md +10 -0
- data/docs/InlineResponse20036.md +10 -0
- data/docs/InlineResponse20037.md +9 -0
- data/docs/InlineResponse20038.md +16 -0
- data/docs/InlineResponse20039.md +10 -0
- data/docs/InlineResponse2004.md +13 -0
- data/docs/InlineResponse20040.md +19 -0
- data/docs/InlineResponse20041.md +14 -0
- data/docs/InlineResponse20042.md +14 -0
- data/docs/InlineResponse20043.md +14 -0
- data/docs/InlineResponse20044.md +10 -0
- data/docs/InlineResponse20045.md +18 -0
- data/docs/InlineResponse20045Stats.md +12 -0
- data/docs/InlineResponse20045StatsLast30Days.md +17 -0
- data/docs/InlineResponse20045StatsLast60Days.md +17 -0
- data/docs/InlineResponse20045StatsLast7Days.md +17 -0
- data/docs/InlineResponse20045StatsLast90Days.md +17 -0
- data/docs/InlineResponse20045StatsToday.md +17 -0
- data/docs/InlineResponse20046.md +17 -0
- data/docs/InlineResponse20047.md +17 -0
- data/docs/InlineResponse20048.md +17 -0
- data/docs/InlineResponse20049.md +21 -0
- data/docs/InlineResponse20049Last30Days.md +17 -0
- data/docs/InlineResponse2005.md +10 -0
- data/docs/InlineResponse20050.md +17 -0
- data/docs/InlineResponse20051.md +17 -0
- data/docs/InlineResponse20052.md +17 -0
- data/docs/InlineResponse20053.md +17 -0
- data/docs/InlineResponse20054.md +19 -0
- data/docs/InlineResponse20055.md +19 -0
- data/docs/InlineResponse20056.md +17 -0
- data/docs/InlineResponse20056Stats.md +12 -0
- data/docs/InlineResponse20056StatsLast30Days.md +17 -0
- data/docs/InlineResponse20056StatsLast60Days.md +17 -0
- data/docs/InlineResponse20056StatsLast7Days.md +17 -0
- data/docs/InlineResponse20056StatsLast90Days.md +17 -0
- data/docs/InlineResponse20056StatsToday.md +17 -0
- data/docs/InlineResponse20057.md +24 -0
- data/docs/InlineResponse20058.md +24 -0
- data/docs/InlineResponse20059.md +24 -0
- data/docs/InlineResponse2006.md +10 -0
- data/docs/InlineResponse20060.md +24 -0
- data/docs/InlineResponse20061.md +24 -0
- data/docs/InlineResponse20062.md +24 -0
- data/docs/InlineResponse20063.md +8 -0
- data/docs/InlineResponse20064.md +11 -0
- data/docs/InlineResponse20065.md +11 -0
- data/docs/InlineResponse20066.md +11 -0
- data/docs/InlineResponse20067.md +12 -0
- data/docs/InlineResponse20068.md +12 -0
- data/docs/InlineResponse20069.md +14 -0
- data/docs/InlineResponse20069Stats.md +13 -0
- data/docs/InlineResponse20069StatsAllTime.md +17 -0
- data/docs/InlineResponse20069StatsLast30Days.md +17 -0
- data/docs/InlineResponse20069StatsLast60Days.md +17 -0
- data/docs/InlineResponse20069StatsLast7Days.md +17 -0
- data/docs/InlineResponse20069StatsLast90Days.md +17 -0
- data/docs/InlineResponse20069StatsToday.md +17 -0
- data/docs/InlineResponse2007.md +10 -0
- data/docs/InlineResponse20070.md +8 -0
- data/docs/InlineResponse20071.md +17 -0
- data/docs/InlineResponse20072.md +17 -0
- data/docs/InlineResponse20073.md +17 -0
- data/docs/InlineResponse20074.md +17 -0
- data/docs/InlineResponse20075.md +17 -0
- data/docs/InlineResponse20076.md +9 -0
- data/docs/InlineResponse20077.md +10 -0
- data/docs/InlineResponse20078.md +9 -0
- data/docs/InlineResponse2008.md +10 -0
- data/docs/InlineResponse2009.md +10 -0
- data/docs/IpslistCustomDns.md +10 -0
- data/docs/IpslistWarmup.md +10 -0
- data/docs/IpslistpoolsIps.md +13 -0
- data/docs/MessagessearchClicksDetail.md +12 -0
- data/docs/MessagessearchOpensDetail.md +11 -0
- data/docs/MessagessendMessage.md +39 -0
- data/docs/MessagessendMessageAttachments.md +10 -0
- data/docs/MessagessendMessageGlobalMergeVars.md +9 -0
- data/docs/MessagessendMessageImages.md +10 -0
- data/docs/MessagessendMessageMergeVars.md +9 -0
- data/docs/MessagessendMessageMetadata.md +8 -0
- data/docs/MessagessendMessageRecipientMetadata.md +9 -0
- data/docs/MessagessendMessageTo.md +10 -0
- data/docs/MessagessendMessageValues.md +8 -0
- data/docs/MessagessendMessageVars.md +9 -0
- data/docs/MessagessendtemplateMessage.md +39 -0
- data/docs/MessagessendtemplateTemplateContent.md +9 -0
- data/docs/RejectslistSender.md +19 -0
- data/docs/SendersdomainsDkim.md +10 -0
- data/docs/SendersdomainsSpf.md +10 -0
- data/docs/TemplatesrenderMergeVars.md +9 -0
- data/docs/TemplatesrenderTemplateContent.md +9 -0
- data/docs/TransactionalApi.md +4328 -0
- data/docs/UrlstrackingdomainsCname.md +10 -0
- data/git_push.sh +55 -0
- data/lib/mailchimp_transactional/api/transactional_api.rb +4883 -0
- data/lib/mailchimp_transactional/api_client.rb +390 -0
- data/lib/mailchimp_transactional/api_error.rb +38 -0
- data/lib/mailchimp_transactional/configuration.rb +202 -0
- data/lib/mailchimp_transactional/models/body.rb +205 -0
- data/lib/mailchimp_transactional/models/body_1.rb +190 -0
- data/lib/mailchimp_transactional/models/body_10.rb +235 -0
- data/lib/mailchimp_transactional/models/body_11.rb +225 -0
- data/lib/mailchimp_transactional/models/body_12.rb +205 -0
- data/lib/mailchimp_transactional/models/body_13.rb +247 -0
- data/lib/mailchimp_transactional/models/body_14.rb +190 -0
- data/lib/mailchimp_transactional/models/body_15.rb +200 -0
- data/lib/mailchimp_transactional/models/body_16.rb +210 -0
- data/lib/mailchimp_transactional/models/body_17.rb +205 -0
- data/lib/mailchimp_transactional/models/body_18.rb +205 -0
- data/lib/mailchimp_transactional/models/body_19.rb +230 -0
- data/lib/mailchimp_transactional/models/body_2.rb +200 -0
- data/lib/mailchimp_transactional/models/body_20.rb +205 -0
- data/lib/mailchimp_transactional/models/body_21.rb +190 -0
- data/lib/mailchimp_transactional/models/body_22.rb +205 -0
- data/lib/mailchimp_transactional/models/body_23.rb +205 -0
- data/lib/mailchimp_transactional/models/body_24.rb +205 -0
- data/lib/mailchimp_transactional/models/body_25.rb +220 -0
- data/lib/mailchimp_transactional/models/body_26.rb +220 -0
- data/lib/mailchimp_transactional/models/body_27.rb +234 -0
- data/lib/mailchimp_transactional/models/body_28.rb +266 -0
- data/lib/mailchimp_transactional/models/body_29.rb +290 -0
- data/lib/mailchimp_transactional/models/body_3.rb +200 -0
- data/lib/mailchimp_transactional/models/body_30.rb +244 -0
- data/lib/mailchimp_transactional/models/body_31.rb +205 -0
- data/lib/mailchimp_transactional/models/body_32.rb +205 -0
- data/lib/mailchimp_transactional/models/body_33.rb +205 -0
- data/lib/mailchimp_transactional/models/body_34.rb +277 -0
- data/lib/mailchimp_transactional/models/body_35.rb +200 -0
- data/lib/mailchimp_transactional/models/body_36.rb +205 -0
- data/lib/mailchimp_transactional/models/body_37.rb +220 -0
- data/lib/mailchimp_transactional/models/body_38.rb +190 -0
- data/lib/mailchimp_transactional/models/body_39.rb +249 -0
- data/lib/mailchimp_transactional/models/body_4.rb +290 -0
- data/lib/mailchimp_transactional/models/body_40.rb +239 -0
- data/lib/mailchimp_transactional/models/body_41.rb +205 -0
- data/lib/mailchimp_transactional/models/body_42.rb +240 -0
- data/lib/mailchimp_transactional/models/body_43.rb +235 -0
- data/lib/mailchimp_transactional/models/body_44.rb +230 -0
- data/lib/mailchimp_transactional/models/body_45.rb +190 -0
- data/lib/mailchimp_transactional/models/body_46.rb +190 -0
- data/lib/mailchimp_transactional/models/body_47.rb +205 -0
- data/lib/mailchimp_transactional/models/body_48.rb +205 -0
- data/lib/mailchimp_transactional/models/body_49.rb +220 -0
- data/lib/mailchimp_transactional/models/body_5.rb +190 -0
- data/lib/mailchimp_transactional/models/body_50.rb +205 -0
- data/lib/mailchimp_transactional/models/body_51.rb +205 -0
- data/lib/mailchimp_transactional/models/body_52.rb +200 -0
- data/lib/mailchimp_transactional/models/body_53.rb +284 -0
- data/lib/mailchimp_transactional/models/body_54.rb +205 -0
- data/lib/mailchimp_transactional/models/body_55.rb +265 -0
- data/lib/mailchimp_transactional/models/body_56.rb +205 -0
- data/lib/mailchimp_transactional/models/body_57.rb +205 -0
- data/lib/mailchimp_transactional/models/body_58.rb +205 -0
- data/lib/mailchimp_transactional/models/body_59.rb +190 -0
- data/lib/mailchimp_transactional/models/body_6.rb +205 -0
- data/lib/mailchimp_transactional/models/body_60.rb +205 -0
- data/lib/mailchimp_transactional/models/body_61.rb +205 -0
- data/lib/mailchimp_transactional/models/body_62.rb +205 -0
- data/lib/mailchimp_transactional/models/body_63.rb +190 -0
- data/lib/mailchimp_transactional/models/body_64.rb +277 -0
- data/lib/mailchimp_transactional/models/body_65.rb +205 -0
- data/lib/mailchimp_transactional/models/body_66.rb +277 -0
- data/lib/mailchimp_transactional/models/body_67.rb +205 -0
- data/lib/mailchimp_transactional/models/body_68.rb +205 -0
- data/lib/mailchimp_transactional/models/body_69.rb +200 -0
- data/lib/mailchimp_transactional/models/body_7.rb +205 -0
- data/lib/mailchimp_transactional/models/body_70.rb +205 -0
- data/lib/mailchimp_transactional/models/body_71.rb +234 -0
- data/lib/mailchimp_transactional/models/body_72.rb +190 -0
- data/lib/mailchimp_transactional/models/body_73.rb +205 -0
- data/lib/mailchimp_transactional/models/body_74.rb +205 -0
- data/lib/mailchimp_transactional/models/body_75.rb +190 -0
- data/lib/mailchimp_transactional/models/body_76.rb +205 -0
- data/lib/mailchimp_transactional/models/body_77.rb +205 -0
- data/lib/mailchimp_transactional/models/body_78.rb +190 -0
- data/lib/mailchimp_transactional/models/body_79.rb +190 -0
- data/lib/mailchimp_transactional/models/body_8.rb +205 -0
- data/lib/mailchimp_transactional/models/body_80.rb +190 -0
- data/lib/mailchimp_transactional/models/body_81.rb +190 -0
- data/lib/mailchimp_transactional/models/body_82.rb +190 -0
- data/lib/mailchimp_transactional/models/body_83.rb +249 -0
- data/lib/mailchimp_transactional/models/body_84.rb +205 -0
- data/lib/mailchimp_transactional/models/body_85.rb +264 -0
- data/lib/mailchimp_transactional/models/body_86.rb +205 -0
- data/lib/mailchimp_transactional/models/body_87.rb +230 -0
- data/lib/mailchimp_transactional/models/body_88.rb +200 -0
- data/lib/mailchimp_transactional/models/body_89.rb +205 -0
- data/lib/mailchimp_transactional/models/body_9.rb +205 -0
- data/lib/mailchimp_transactional/models/inline_response_200.rb +236 -0
- data/lib/mailchimp_transactional/models/inline_response_200_1.rb +236 -0
- data/lib/mailchimp_transactional/models/inline_response_200_10.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_11.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_12.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_13.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_14.rb +234 -0
- data/lib/mailchimp_transactional/models/inline_response_200_15.rb +234 -0
- data/lib/mailchimp_transactional/models/inline_response_200_16.rb +186 -0
- data/lib/mailchimp_transactional/models/inline_response_200_17.rb +234 -0
- data/lib/mailchimp_transactional/models/inline_response_200_18.rb +234 -0
- data/lib/mailchimp_transactional/models/inline_response_200_19.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_2.rb +236 -0
- data/lib/mailchimp_transactional/models/inline_response_200_20.rb +208 -0
- data/lib/mailchimp_transactional/models/inline_response_200_21.rb +208 -0
- data/lib/mailchimp_transactional/models/inline_response_200_22.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_23.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_24.rb +234 -0
- data/lib/mailchimp_transactional/models/inline_response_200_25.rb +262 -0
- data/lib/mailchimp_transactional/models/inline_response_200_26.rb +262 -0
- data/lib/mailchimp_transactional/models/inline_response_200_27.rb +346 -0
- data/lib/mailchimp_transactional/models/inline_response_200_28.rb +286 -0
- data/lib/mailchimp_transactional/models/inline_response_200_29.rb +358 -0
- data/lib/mailchimp_transactional/models/inline_response_200_29_smtp_events.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_3.rb +236 -0
- data/lib/mailchimp_transactional/models/inline_response_200_30.rb +289 -0
- data/lib/mailchimp_transactional/models/inline_response_200_30_attachments.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_30_to.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_31.rb +272 -0
- data/lib/mailchimp_transactional/models/inline_response_200_31_attachments.rb +216 -0
- data/lib/mailchimp_transactional/models/inline_response_200_31_images.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_31_to.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_32.rb +236 -0
- data/lib/mailchimp_transactional/models/inline_response_200_33.rb +240 -0
- data/lib/mailchimp_transactional/models/inline_response_200_34.rb +240 -0
- data/lib/mailchimp_transactional/models/inline_response_200_35.rb +240 -0
- data/lib/mailchimp_transactional/models/inline_response_200_36.rb +240 -0
- data/lib/mailchimp_transactional/models/inline_response_200_37.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_38.rb +265 -0
- data/lib/mailchimp_transactional/models/inline_response_200_39.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_4.rb +236 -0
- data/lib/mailchimp_transactional/models/inline_response_200_40.rb +296 -0
- data/lib/mailchimp_transactional/models/inline_response_200_41.rb +244 -0
- data/lib/mailchimp_transactional/models/inline_response_200_42.rb +244 -0
- data/lib/mailchimp_transactional/models/inline_response_200_43.rb +244 -0
- data/lib/mailchimp_transactional/models/inline_response_200_44.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45.rb +285 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45_stats.rb +221 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_30_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_60_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_7_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45_stats_last_90_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_45_stats_today.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_46.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_47.rb +334 -0
- data/lib/mailchimp_transactional/models/inline_response_200_48.rb +334 -0
- data/lib/mailchimp_transactional/models/inline_response_200_49.rb +373 -0
- data/lib/mailchimp_transactional/models/inline_response_200_49_last_30_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_5.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_50.rb +334 -0
- data/lib/mailchimp_transactional/models/inline_response_200_51.rb +334 -0
- data/lib/mailchimp_transactional/models/inline_response_200_52.rb +334 -0
- data/lib/mailchimp_transactional/models/inline_response_200_53.rb +334 -0
- data/lib/mailchimp_transactional/models/inline_response_200_54.rb +320 -0
- data/lib/mailchimp_transactional/models/inline_response_200_55.rb +320 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56.rb +275 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56_stats.rb +221 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_30_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_60_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_7_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56_stats_last_90_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_56_stats_today.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_57.rb +348 -0
- data/lib/mailchimp_transactional/models/inline_response_200_58.rb +348 -0
- data/lib/mailchimp_transactional/models/inline_response_200_59.rb +348 -0
- data/lib/mailchimp_transactional/models/inline_response_200_6.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_60.rb +348 -0
- data/lib/mailchimp_transactional/models/inline_response_200_61.rb +348 -0
- data/lib/mailchimp_transactional/models/inline_response_200_62.rb +348 -0
- data/lib/mailchimp_transactional/models/inline_response_200_63.rb +186 -0
- data/lib/mailchimp_transactional/models/inline_response_200_64.rb +216 -0
- data/lib/mailchimp_transactional/models/inline_response_200_65.rb +216 -0
- data/lib/mailchimp_transactional/models/inline_response_200_66.rb +216 -0
- data/lib/mailchimp_transactional/models/inline_response_200_67.rb +225 -0
- data/lib/mailchimp_transactional/models/inline_response_200_68.rb +225 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69.rb +245 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats.rb +230 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats_all_time.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_30_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_60_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_7_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats_last_90_days.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_69_stats_today.rb +276 -0
- data/lib/mailchimp_transactional/models/inline_response_200_7.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_70.rb +186 -0
- data/lib/mailchimp_transactional/models/inline_response_200_71.rb +300 -0
- data/lib/mailchimp_transactional/models/inline_response_200_72.rb +300 -0
- data/lib/mailchimp_transactional/models/inline_response_200_73.rb +300 -0
- data/lib/mailchimp_transactional/models/inline_response_200_74.rb +300 -0
- data/lib/mailchimp_transactional/models/inline_response_200_75.rb +300 -0
- data/lib/mailchimp_transactional/models/inline_response_200_76.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_77.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_78.rb +196 -0
- data/lib/mailchimp_transactional/models/inline_response_200_8.rb +206 -0
- data/lib/mailchimp_transactional/models/inline_response_200_9.rb +206 -0
- data/lib/mailchimp_transactional/models/ipslist_custom_dns.rb +206 -0
- data/lib/mailchimp_transactional/models/ipslist_warmup.rb +206 -0
- data/lib/mailchimp_transactional/models/ipslistpools_ips.rb +234 -0
- data/lib/mailchimp_transactional/models/messagessearch_clicks_detail.rb +226 -0
- data/lib/mailchimp_transactional/models/messagessearch_opens_detail.rb +216 -0
- data/lib/mailchimp_transactional/models/messagessend_message.rb +545 -0
- data/lib/mailchimp_transactional/models/messagessend_message_attachments.rb +206 -0
- data/lib/mailchimp_transactional/models/messagessend_message_global_merge_vars.rb +196 -0
- data/lib/mailchimp_transactional/models/messagessend_message_images.rb +206 -0
- data/lib/mailchimp_transactional/models/messagessend_message_merge_vars.rb +203 -0
- data/lib/mailchimp_transactional/models/messagessend_message_metadata.rb +186 -0
- data/lib/mailchimp_transactional/models/messagessend_message_recipient_metadata.rb +195 -0
- data/lib/mailchimp_transactional/models/messagessend_message_to.rb +245 -0
- data/lib/mailchimp_transactional/models/messagessend_message_values.rb +186 -0
- data/lib/mailchimp_transactional/models/messagessend_message_vars.rb +195 -0
- data/lib/mailchimp_transactional/models/messagessendtemplate_message.rb +545 -0
- data/lib/mailchimp_transactional/models/messagessendtemplate_template_content.rb +196 -0
- data/lib/mailchimp_transactional/models/rejectslist_sender.rb +296 -0
- data/lib/mailchimp_transactional/models/sendersdomains_dkim.rb +206 -0
- data/lib/mailchimp_transactional/models/sendersdomains_spf.rb +206 -0
- data/lib/mailchimp_transactional/models/templatesrender_merge_vars.rb +196 -0
- data/lib/mailchimp_transactional/models/templatesrender_template_content.rb +206 -0
- data/lib/mailchimp_transactional/models/urlstrackingdomains_cname.rb +206 -0
- data/lib/mailchimp_transactional/version.rb +15 -0
- data/lib/mailchimp_transactional.rb +258 -0
- data/mailchimp_transactional.gemspec +45 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/body_10_spec.rb +59 -0
- data/spec/models/body_11_spec.rb +59 -0
- data/spec/models/body_12_spec.rb +47 -0
- data/spec/models/body_13_spec.rb +71 -0
- data/spec/models/body_14_spec.rb +41 -0
- data/spec/models/body_15_spec.rb +47 -0
- data/spec/models/body_16_spec.rb +53 -0
- data/spec/models/body_17_spec.rb +47 -0
- data/spec/models/body_18_spec.rb +47 -0
- data/spec/models/body_19_spec.rb +59 -0
- data/spec/models/body_1_spec.rb +41 -0
- data/spec/models/body_20_spec.rb +47 -0
- data/spec/models/body_21_spec.rb +41 -0
- data/spec/models/body_22_spec.rb +47 -0
- data/spec/models/body_23_spec.rb +47 -0
- data/spec/models/body_24_spec.rb +47 -0
- data/spec/models/body_25_spec.rb +53 -0
- data/spec/models/body_26_spec.rb +53 -0
- data/spec/models/body_27_spec.rb +65 -0
- data/spec/models/body_28_spec.rb +77 -0
- data/spec/models/body_29_spec.rb +83 -0
- data/spec/models/body_2_spec.rb +47 -0
- data/spec/models/body_30_spec.rb +71 -0
- data/spec/models/body_31_spec.rb +47 -0
- data/spec/models/body_32_spec.rb +47 -0
- data/spec/models/body_33_spec.rb +47 -0
- data/spec/models/body_34_spec.rb +89 -0
- data/spec/models/body_35_spec.rb +47 -0
- data/spec/models/body_36_spec.rb +47 -0
- data/spec/models/body_37_spec.rb +53 -0
- data/spec/models/body_38_spec.rb +41 -0
- data/spec/models/body_39_spec.rb +53 -0
- data/spec/models/body_3_spec.rb +47 -0
- data/spec/models/body_40_spec.rb +53 -0
- data/spec/models/body_41_spec.rb +47 -0
- data/spec/models/body_42_spec.rb +59 -0
- data/spec/models/body_43_spec.rb +59 -0
- data/spec/models/body_44_spec.rb +53 -0
- data/spec/models/body_45_spec.rb +41 -0
- data/spec/models/body_46_spec.rb +41 -0
- data/spec/models/body_47_spec.rb +47 -0
- data/spec/models/body_48_spec.rb +47 -0
- data/spec/models/body_49_spec.rb +53 -0
- data/spec/models/body_4_spec.rb +87 -0
- data/spec/models/body_50_spec.rb +47 -0
- data/spec/models/body_51_spec.rb +47 -0
- data/spec/models/body_52_spec.rb +47 -0
- data/spec/models/body_53_spec.rb +65 -0
- data/spec/models/body_54_spec.rb +47 -0
- data/spec/models/body_55_spec.rb +65 -0
- data/spec/models/body_56_spec.rb +47 -0
- data/spec/models/body_57_spec.rb +47 -0
- data/spec/models/body_58_spec.rb +47 -0
- data/spec/models/body_59_spec.rb +41 -0
- data/spec/models/body_5_spec.rb +41 -0
- data/spec/models/body_60_spec.rb +47 -0
- data/spec/models/body_61_spec.rb +47 -0
- data/spec/models/body_62_spec.rb +47 -0
- data/spec/models/body_63_spec.rb +41 -0
- data/spec/models/body_64_spec.rb +89 -0
- data/spec/models/body_65_spec.rb +47 -0
- data/spec/models/body_66_spec.rb +89 -0
- data/spec/models/body_67_spec.rb +47 -0
- data/spec/models/body_68_spec.rb +47 -0
- data/spec/models/body_69_spec.rb +47 -0
- data/spec/models/body_6_spec.rb +47 -0
- data/spec/models/body_70_spec.rb +47 -0
- data/spec/models/body_71_spec.rb +59 -0
- data/spec/models/body_72_spec.rb +41 -0
- data/spec/models/body_73_spec.rb +47 -0
- data/spec/models/body_74_spec.rb +47 -0
- data/spec/models/body_75_spec.rb +41 -0
- data/spec/models/body_76_spec.rb +47 -0
- data/spec/models/body_77_spec.rb +47 -0
- data/spec/models/body_78_spec.rb +41 -0
- data/spec/models/body_79_spec.rb +41 -0
- data/spec/models/body_7_spec.rb +47 -0
- data/spec/models/body_80_spec.rb +41 -0
- data/spec/models/body_81_spec.rb +41 -0
- data/spec/models/body_82_spec.rb +41 -0
- data/spec/models/body_83_spec.rb +63 -0
- data/spec/models/body_84_spec.rb +47 -0
- data/spec/models/body_85_spec.rb +69 -0
- data/spec/models/body_86_spec.rb +47 -0
- data/spec/models/body_87_spec.rb +53 -0
- data/spec/models/body_88_spec.rb +47 -0
- data/spec/models/body_89_spec.rb +47 -0
- data/spec/models/body_8_spec.rb +47 -0
- data/spec/models/body_9_spec.rb +47 -0
- data/spec/models/body_spec.rb +47 -0
- data/spec/models/inline_response_200_10_spec.rb +53 -0
- data/spec/models/inline_response_200_11_spec.rb +53 -0
- data/spec/models/inline_response_200_12_spec.rb +53 -0
- data/spec/models/inline_response_200_13_spec.rb +53 -0
- data/spec/models/inline_response_200_14_spec.rb +71 -0
- data/spec/models/inline_response_200_15_spec.rb +71 -0
- data/spec/models/inline_response_200_16_spec.rb +41 -0
- data/spec/models/inline_response_200_17_spec.rb +71 -0
- data/spec/models/inline_response_200_18_spec.rb +71 -0
- data/spec/models/inline_response_200_19_spec.rb +47 -0
- data/spec/models/inline_response_200_1_spec.rb +71 -0
- data/spec/models/inline_response_200_20_spec.rb +53 -0
- data/spec/models/inline_response_200_21_spec.rb +53 -0
- data/spec/models/inline_response_200_22_spec.rb +47 -0
- data/spec/models/inline_response_200_23_spec.rb +47 -0
- data/spec/models/inline_response_200_24_spec.rb +71 -0
- data/spec/models/inline_response_200_25_spec.rb +67 -0
- data/spec/models/inline_response_200_26_spec.rb +67 -0
- data/spec/models/inline_response_200_27_spec.rb +117 -0
- data/spec/models/inline_response_200_28_spec.rb +101 -0
- data/spec/models/inline_response_200_29_smtp_events_spec.rb +53 -0
- data/spec/models/inline_response_200_29_spec.rb +123 -0
- data/spec/models/inline_response_200_2_spec.rb +71 -0
- data/spec/models/inline_response_200_30_attachments_spec.rb +53 -0
- data/spec/models/inline_response_200_30_spec.rb +101 -0
- data/spec/models/inline_response_200_30_to_spec.rb +47 -0
- data/spec/models/inline_response_200_31_attachments_spec.rb +59 -0
- data/spec/models/inline_response_200_31_images_spec.rb +53 -0
- data/spec/models/inline_response_200_31_spec.rb +89 -0
- data/spec/models/inline_response_200_31_to_spec.rb +47 -0
- data/spec/models/inline_response_200_32_spec.rb +71 -0
- data/spec/models/inline_response_200_33_spec.rb +57 -0
- data/spec/models/inline_response_200_34_spec.rb +57 -0
- data/spec/models/inline_response_200_35_spec.rb +57 -0
- data/spec/models/inline_response_200_36_spec.rb +57 -0
- data/spec/models/inline_response_200_37_spec.rb +47 -0
- data/spec/models/inline_response_200_38_spec.rb +89 -0
- data/spec/models/inline_response_200_39_spec.rb +53 -0
- data/spec/models/inline_response_200_3_spec.rb +71 -0
- data/spec/models/inline_response_200_40_spec.rb +107 -0
- data/spec/models/inline_response_200_41_spec.rb +77 -0
- data/spec/models/inline_response_200_42_spec.rb +77 -0
- data/spec/models/inline_response_200_43_spec.rb +77 -0
- data/spec/models/inline_response_200_44_spec.rb +53 -0
- data/spec/models/inline_response_200_45_spec.rb +101 -0
- data/spec/models/inline_response_200_45_stats_last_30_days_spec.rb +95 -0
- data/spec/models/inline_response_200_45_stats_last_60_days_spec.rb +95 -0
- data/spec/models/inline_response_200_45_stats_last_7_days_spec.rb +95 -0
- data/spec/models/inline_response_200_45_stats_last_90_days_spec.rb +95 -0
- data/spec/models/inline_response_200_45_stats_spec.rb +65 -0
- data/spec/models/inline_response_200_45_stats_today_spec.rb +95 -0
- data/spec/models/inline_response_200_46_spec.rb +95 -0
- data/spec/models/inline_response_200_47_spec.rb +99 -0
- data/spec/models/inline_response_200_48_spec.rb +99 -0
- data/spec/models/inline_response_200_49_last_30_days_spec.rb +95 -0
- data/spec/models/inline_response_200_49_spec.rb +123 -0
- data/spec/models/inline_response_200_4_spec.rb +71 -0
- data/spec/models/inline_response_200_50_spec.rb +99 -0
- data/spec/models/inline_response_200_51_spec.rb +99 -0
- data/spec/models/inline_response_200_52_spec.rb +99 -0
- data/spec/models/inline_response_200_53_spec.rb +99 -0
- data/spec/models/inline_response_200_54_spec.rb +107 -0
- data/spec/models/inline_response_200_55_spec.rb +107 -0
- data/spec/models/inline_response_200_56_spec.rb +95 -0
- data/spec/models/inline_response_200_56_stats_last_30_days_spec.rb +95 -0
- data/spec/models/inline_response_200_56_stats_last_60_days_spec.rb +95 -0
- data/spec/models/inline_response_200_56_stats_last_7_days_spec.rb +95 -0
- data/spec/models/inline_response_200_56_stats_last_90_days_spec.rb +95 -0
- data/spec/models/inline_response_200_56_stats_spec.rb +65 -0
- data/spec/models/inline_response_200_56_stats_today_spec.rb +95 -0
- data/spec/models/inline_response_200_57_spec.rb +137 -0
- data/spec/models/inline_response_200_58_spec.rb +137 -0
- data/spec/models/inline_response_200_59_spec.rb +137 -0
- data/spec/models/inline_response_200_5_spec.rb +53 -0
- data/spec/models/inline_response_200_60_spec.rb +137 -0
- data/spec/models/inline_response_200_61_spec.rb +137 -0
- data/spec/models/inline_response_200_62_spec.rb +137 -0
- data/spec/models/inline_response_200_63_spec.rb +41 -0
- data/spec/models/inline_response_200_64_spec.rb +59 -0
- data/spec/models/inline_response_200_65_spec.rb +59 -0
- data/spec/models/inline_response_200_66_spec.rb +59 -0
- data/spec/models/inline_response_200_67_spec.rb +65 -0
- data/spec/models/inline_response_200_68_spec.rb +65 -0
- data/spec/models/inline_response_200_69_spec.rb +77 -0
- data/spec/models/inline_response_200_69_stats_all_time_spec.rb +95 -0
- data/spec/models/inline_response_200_69_stats_last_30_days_spec.rb +95 -0
- data/spec/models/inline_response_200_69_stats_last_60_days_spec.rb +95 -0
- data/spec/models/inline_response_200_69_stats_last_7_days_spec.rb +95 -0
- data/spec/models/inline_response_200_69_stats_last_90_days_spec.rb +95 -0
- data/spec/models/inline_response_200_69_stats_spec.rb +71 -0
- data/spec/models/inline_response_200_69_stats_today_spec.rb +95 -0
- data/spec/models/inline_response_200_6_spec.rb +53 -0
- data/spec/models/inline_response_200_70_spec.rb +41 -0
- data/spec/models/inline_response_200_71_spec.rb +99 -0
- data/spec/models/inline_response_200_72_spec.rb +99 -0
- data/spec/models/inline_response_200_73_spec.rb +99 -0
- data/spec/models/inline_response_200_74_spec.rb +99 -0
- data/spec/models/inline_response_200_75_spec.rb +99 -0
- data/spec/models/inline_response_200_76_spec.rb +47 -0
- data/spec/models/inline_response_200_77_spec.rb +53 -0
- data/spec/models/inline_response_200_78_spec.rb +47 -0
- data/spec/models/inline_response_200_7_spec.rb +53 -0
- data/spec/models/inline_response_200_8_spec.rb +53 -0
- data/spec/models/inline_response_200_9_spec.rb +53 -0
- data/spec/models/inline_response_200_spec.rb +71 -0
- data/spec/models/ipslist_custom_dns_spec.rb +53 -0
- data/spec/models/ipslist_warmup_spec.rb +53 -0
- data/spec/models/ipslistpools_ips_spec.rb +71 -0
- data/spec/models/messagessearch_clicks_detail_spec.rb +65 -0
- data/spec/models/messagessearch_opens_detail_spec.rb +59 -0
- data/spec/models/messagessend_message_attachments_spec.rb +53 -0
- data/spec/models/messagessend_message_global_merge_vars_spec.rb +47 -0
- data/spec/models/messagessend_message_images_spec.rb +53 -0
- data/spec/models/messagessend_message_merge_vars_spec.rb +47 -0
- data/spec/models/messagessend_message_metadata_spec.rb +41 -0
- data/spec/models/messagessend_message_recipient_metadata_spec.rb +47 -0
- data/spec/models/messagessend_message_spec.rb +231 -0
- data/spec/models/messagessend_message_to_spec.rb +57 -0
- data/spec/models/messagessend_message_values_spec.rb +41 -0
- data/spec/models/messagessend_message_vars_spec.rb +47 -0
- data/spec/models/messagessendtemplate_message_spec.rb +231 -0
- data/spec/models/messagessendtemplate_template_content_spec.rb +47 -0
- data/spec/models/rejectslist_sender_spec.rb +107 -0
- data/spec/models/sendersdomains_dkim_spec.rb +53 -0
- data/spec/models/sendersdomains_spf_spec.rb +53 -0
- data/spec/models/templatesrender_merge_vars_spec.rb +47 -0
- data/spec/models/templatesrender_template_content_spec.rb +47 -0
- data/spec/models/urlstrackingdomains_cname_spec.rb +53 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1113 -0
@@ -0,0 +1,348 @@
|
|
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
|
+
# the template that was updated
|
17
|
+
class InlineResponse20059
|
18
|
+
# the immutable unique code name of the template
|
19
|
+
attr_accessor :slug
|
20
|
+
|
21
|
+
# the name of the template
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
# the list of labels applied to the template
|
25
|
+
attr_accessor :labels
|
26
|
+
|
27
|
+
# the full HTML code of the template, with mc:edit attributes marking the editable elements - draft version
|
28
|
+
attr_accessor :code
|
29
|
+
|
30
|
+
# the subject line of the template, if provided - draft version
|
31
|
+
attr_accessor :subject
|
32
|
+
|
33
|
+
# the default sender address for the template, if provided - draft version
|
34
|
+
attr_accessor :from_email
|
35
|
+
|
36
|
+
# the default sender from name for the template, if provided - draft version
|
37
|
+
attr_accessor :from_name
|
38
|
+
|
39
|
+
# the default text part of messages sent with the template, if provided - draft version
|
40
|
+
attr_accessor :text
|
41
|
+
|
42
|
+
# the same as the template name - kept as a separate field for backwards compatibility
|
43
|
+
attr_accessor :publish_name
|
44
|
+
|
45
|
+
# the full HTML code of the template, with mc:edit attributes marking the editable elements that are available as published, if it has been published
|
46
|
+
attr_accessor :publish_code
|
47
|
+
|
48
|
+
# the subject line of the template, if provided
|
49
|
+
attr_accessor :publish_subject
|
50
|
+
|
51
|
+
# the default sender address for the template, if provided
|
52
|
+
attr_accessor :publish_from_email
|
53
|
+
|
54
|
+
# the default sender from name for the template, if provided
|
55
|
+
attr_accessor :publish_from_name
|
56
|
+
|
57
|
+
# the default text part of messages sent with the template, if provided
|
58
|
+
attr_accessor :publish_text
|
59
|
+
|
60
|
+
# the date and time the template was last published as a UTC string in YYYY-MM-DD HH:MM:SS format, or null if it has not been published
|
61
|
+
attr_accessor :published_at
|
62
|
+
|
63
|
+
# the date and time the template was first created as a UTC string in YYYY-MM-DD HH:MM:SS format
|
64
|
+
attr_accessor :created_at
|
65
|
+
|
66
|
+
# the date and time the template was last modified as a UTC string in YYYY-MM-DD HH:MM:SS format
|
67
|
+
attr_accessor :updated_at
|
68
|
+
|
69
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
70
|
+
def self.attribute_map
|
71
|
+
{
|
72
|
+
:'slug' => :'slug',
|
73
|
+
:'name' => :'name',
|
74
|
+
:'labels' => :'labels',
|
75
|
+
:'code' => :'code',
|
76
|
+
:'subject' => :'subject',
|
77
|
+
:'from_email' => :'from_email',
|
78
|
+
:'from_name' => :'from_name',
|
79
|
+
:'text' => :'text',
|
80
|
+
:'publish_name' => :'publish_name',
|
81
|
+
:'publish_code' => :'publish_code',
|
82
|
+
:'publish_subject' => :'publish_subject',
|
83
|
+
:'publish_from_email' => :'publish_from_email',
|
84
|
+
:'publish_from_name' => :'publish_from_name',
|
85
|
+
:'publish_text' => :'publish_text',
|
86
|
+
:'published_at' => :'published_at',
|
87
|
+
:'created_at' => :'created_at',
|
88
|
+
:'updated_at' => :'updated_at'
|
89
|
+
}
|
90
|
+
end
|
91
|
+
|
92
|
+
# Attribute type mapping.
|
93
|
+
def self.swagger_types
|
94
|
+
{
|
95
|
+
:'slug' => :'String',
|
96
|
+
:'name' => :'String',
|
97
|
+
:'labels' => :'Array<String>',
|
98
|
+
:'code' => :'String',
|
99
|
+
:'subject' => :'String',
|
100
|
+
:'from_email' => :'String',
|
101
|
+
:'from_name' => :'String',
|
102
|
+
:'text' => :'String',
|
103
|
+
:'publish_name' => :'String',
|
104
|
+
:'publish_code' => :'String',
|
105
|
+
:'publish_subject' => :'String',
|
106
|
+
:'publish_from_email' => :'String',
|
107
|
+
:'publish_from_name' => :'String',
|
108
|
+
:'publish_text' => :'String',
|
109
|
+
:'published_at' => :'DateTime',
|
110
|
+
:'created_at' => :'DateTime',
|
111
|
+
:'updated_at' => :'DateTime'
|
112
|
+
}
|
113
|
+
end
|
114
|
+
|
115
|
+
# Initializes the object
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
117
|
+
def initialize(attributes = {})
|
118
|
+
return unless attributes.is_a?(Hash)
|
119
|
+
|
120
|
+
# convert string to symbol for hash key
|
121
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
122
|
+
|
123
|
+
if attributes.has_key?(:'slug')
|
124
|
+
self.slug = attributes[:'slug']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.has_key?(:'name')
|
128
|
+
self.name = attributes[:'name']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:'labels')
|
132
|
+
if (value = attributes[:'labels']).is_a?(Array)
|
133
|
+
self.labels = value
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'code')
|
138
|
+
self.code = attributes[:'code']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'subject')
|
142
|
+
self.subject = attributes[:'subject']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'from_email')
|
146
|
+
self.from_email = attributes[:'from_email']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'from_name')
|
150
|
+
self.from_name = attributes[:'from_name']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'text')
|
154
|
+
self.text = attributes[:'text']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'publish_name')
|
158
|
+
self.publish_name = attributes[:'publish_name']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'publish_code')
|
162
|
+
self.publish_code = attributes[:'publish_code']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'publish_subject')
|
166
|
+
self.publish_subject = attributes[:'publish_subject']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'publish_from_email')
|
170
|
+
self.publish_from_email = attributes[:'publish_from_email']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.has_key?(:'publish_from_name')
|
174
|
+
self.publish_from_name = attributes[:'publish_from_name']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.has_key?(:'publish_text')
|
178
|
+
self.publish_text = attributes[:'publish_text']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.has_key?(:'published_at')
|
182
|
+
self.published_at = attributes[:'published_at']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.has_key?(:'created_at')
|
186
|
+
self.created_at = attributes[:'created_at']
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.has_key?(:'updated_at')
|
190
|
+
self.updated_at = attributes[:'updated_at']
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
195
|
+
# @return Array for valid properties with the reasons
|
196
|
+
def list_invalid_properties
|
197
|
+
invalid_properties = Array.new
|
198
|
+
invalid_properties
|
199
|
+
end
|
200
|
+
|
201
|
+
# Check to see if the all the properties in the model are valid
|
202
|
+
# @return true if the model is valid
|
203
|
+
def valid?
|
204
|
+
true
|
205
|
+
end
|
206
|
+
|
207
|
+
# Checks equality by comparing each attribute.
|
208
|
+
# @param [Object] Object to be compared
|
209
|
+
def ==(o)
|
210
|
+
return true if self.equal?(o)
|
211
|
+
self.class == o.class &&
|
212
|
+
slug == o.slug &&
|
213
|
+
name == o.name &&
|
214
|
+
labels == o.labels &&
|
215
|
+
code == o.code &&
|
216
|
+
subject == o.subject &&
|
217
|
+
from_email == o.from_email &&
|
218
|
+
from_name == o.from_name &&
|
219
|
+
text == o.text &&
|
220
|
+
publish_name == o.publish_name &&
|
221
|
+
publish_code == o.publish_code &&
|
222
|
+
publish_subject == o.publish_subject &&
|
223
|
+
publish_from_email == o.publish_from_email &&
|
224
|
+
publish_from_name == o.publish_from_name &&
|
225
|
+
publish_text == o.publish_text &&
|
226
|
+
published_at == o.published_at &&
|
227
|
+
created_at == o.created_at &&
|
228
|
+
updated_at == o.updated_at
|
229
|
+
end
|
230
|
+
|
231
|
+
# @see the `==` method
|
232
|
+
# @param [Object] Object to be compared
|
233
|
+
def eql?(o)
|
234
|
+
self == o
|
235
|
+
end
|
236
|
+
|
237
|
+
# Calculates hash code according to all attributes.
|
238
|
+
# @return [Fixnum] Hash code
|
239
|
+
def hash
|
240
|
+
[slug, name, labels, code, subject, from_email, from_name, text, publish_name, publish_code, publish_subject, publish_from_email, publish_from_name, publish_text, published_at, created_at, updated_at].hash
|
241
|
+
end
|
242
|
+
|
243
|
+
# Builds the object from hash
|
244
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
245
|
+
# @return [Object] Returns the model itself
|
246
|
+
def build_from_hash(attributes)
|
247
|
+
return nil unless attributes.is_a?(Hash)
|
248
|
+
self.class.swagger_types.each_pair do |key, type|
|
249
|
+
if type =~ /\AArray<(.*)>/i
|
250
|
+
# check to ensure the input is an array given that the attribute
|
251
|
+
# is documented as an array but the input is not
|
252
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
253
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
254
|
+
end
|
255
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
256
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
257
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
258
|
+
end
|
259
|
+
|
260
|
+
self
|
261
|
+
end
|
262
|
+
|
263
|
+
# Deserializes the data based on type
|
264
|
+
# @param string type Data type
|
265
|
+
# @param string value Value to be deserialized
|
266
|
+
# @return [Object] Deserialized data
|
267
|
+
def _deserialize(type, value)
|
268
|
+
case type.to_sym
|
269
|
+
when :DateTime
|
270
|
+
DateTime.parse(value)
|
271
|
+
when :Date
|
272
|
+
Date.parse(value)
|
273
|
+
when :String
|
274
|
+
value.to_s
|
275
|
+
when :Integer
|
276
|
+
value.to_i
|
277
|
+
when :Float
|
278
|
+
value.to_f
|
279
|
+
when :BOOLEAN
|
280
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
281
|
+
true
|
282
|
+
else
|
283
|
+
false
|
284
|
+
end
|
285
|
+
when :Object
|
286
|
+
# generic object (usually a Hash), return directly
|
287
|
+
value
|
288
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
289
|
+
inner_type = Regexp.last_match[:inner_type]
|
290
|
+
value.map { |v| _deserialize(inner_type, v) }
|
291
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
292
|
+
k_type = Regexp.last_match[:k_type]
|
293
|
+
v_type = Regexp.last_match[:v_type]
|
294
|
+
{}.tap do |hash|
|
295
|
+
value.each do |k, v|
|
296
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
else # model
|
300
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
301
|
+
temp_model.build_from_hash(value)
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# Returns the string representation of the object
|
306
|
+
# @return [String] String presentation of the object
|
307
|
+
def to_s
|
308
|
+
to_hash.to_s
|
309
|
+
end
|
310
|
+
|
311
|
+
# to_body is an alias to to_hash (backward compatibility)
|
312
|
+
# @return [Hash] Returns the object in the form of hash
|
313
|
+
def to_body
|
314
|
+
to_hash
|
315
|
+
end
|
316
|
+
|
317
|
+
# Returns the object in the form of hash
|
318
|
+
# @return [Hash] Returns the object in the form of hash
|
319
|
+
def to_hash
|
320
|
+
hash = {}
|
321
|
+
self.class.attribute_map.each_pair do |attr, param|
|
322
|
+
value = self.send(attr)
|
323
|
+
next if value.nil?
|
324
|
+
hash[param] = _to_hash(value)
|
325
|
+
end
|
326
|
+
hash
|
327
|
+
end
|
328
|
+
|
329
|
+
# Outputs non-array value in the form of hash
|
330
|
+
# For object, use to_hash. Otherwise, just return the value
|
331
|
+
# @param [Object] value Any valid value
|
332
|
+
# @return [Hash] Returns the value in the form of hash
|
333
|
+
def _to_hash(value)
|
334
|
+
if value.is_a?(Array)
|
335
|
+
value.compact.map { |v| _to_hash(v) }
|
336
|
+
elsif value.is_a?(Hash)
|
337
|
+
{}.tap do |hash|
|
338
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
339
|
+
end
|
340
|
+
elsif value.respond_to? :to_hash
|
341
|
+
value.to_hash
|
342
|
+
else
|
343
|
+
value
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
end
|
348
|
+
end
|
@@ -0,0 +1,206 @@
|
|
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
|
+
# information about the domain
|
17
|
+
class InlineResponse2006
|
18
|
+
# the domain name that is accepting mail
|
19
|
+
attr_accessor :domain
|
20
|
+
|
21
|
+
# the date and time that the inbound domain was added as a UTC string in YYYY-MM-DD HH:MM:SS format
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
|
+
# true if this inbound domain has successfully set up an MX record to deliver mail to the Mandrill servers
|
25
|
+
attr_accessor :valid_mx
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'domain' => :'domain',
|
31
|
+
:'created_at' => :'created_at',
|
32
|
+
:'valid_mx' => :'valid_mx'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'domain' => :'String',
|
40
|
+
:'created_at' => :'DateTime',
|
41
|
+
:'valid_mx' => :'BOOLEAN'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
+
|
53
|
+
if attributes.has_key?(:'domain')
|
54
|
+
self.domain = attributes[:'domain']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'created_at')
|
58
|
+
self.created_at = attributes[:'created_at']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'valid_mx')
|
62
|
+
self.valid_mx = attributes[:'valid_mx']
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
67
|
+
# @return Array for valid properties with the reasons
|
68
|
+
def list_invalid_properties
|
69
|
+
invalid_properties = Array.new
|
70
|
+
invalid_properties
|
71
|
+
end
|
72
|
+
|
73
|
+
# Check to see if the all the properties in the model are valid
|
74
|
+
# @return true if the model is valid
|
75
|
+
def valid?
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Checks equality by comparing each attribute.
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def ==(o)
|
82
|
+
return true if self.equal?(o)
|
83
|
+
self.class == o.class &&
|
84
|
+
domain == o.domain &&
|
85
|
+
created_at == o.created_at &&
|
86
|
+
valid_mx == o.valid_mx
|
87
|
+
end
|
88
|
+
|
89
|
+
# @see the `==` method
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def eql?(o)
|
92
|
+
self == o
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Fixnum] Hash code
|
97
|
+
def hash
|
98
|
+
[domain, created_at, valid_mx].hash
|
99
|
+
end
|
100
|
+
|
101
|
+
# Builds the object from hash
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
+
# @return [Object] Returns the model itself
|
104
|
+
def build_from_hash(attributes)
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
106
|
+
self.class.swagger_types.each_pair do |key, type|
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
108
|
+
# check to ensure the input is an array given that the attribute
|
109
|
+
# is documented as an array but the input is not
|
110
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
+
end
|
113
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
+
end
|
117
|
+
|
118
|
+
self
|
119
|
+
end
|
120
|
+
|
121
|
+
# Deserializes the data based on type
|
122
|
+
# @param string type Data type
|
123
|
+
# @param string value Value to be deserialized
|
124
|
+
# @return [Object] Deserialized data
|
125
|
+
def _deserialize(type, value)
|
126
|
+
case type.to_sym
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
129
|
+
when :Date
|
130
|
+
Date.parse(value)
|
131
|
+
when :String
|
132
|
+
value.to_s
|
133
|
+
when :Integer
|
134
|
+
value.to_i
|
135
|
+
when :Float
|
136
|
+
value.to_f
|
137
|
+
when :BOOLEAN
|
138
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
+
true
|
140
|
+
else
|
141
|
+
false
|
142
|
+
end
|
143
|
+
when :Object
|
144
|
+
# generic object (usually a Hash), return directly
|
145
|
+
value
|
146
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
+
inner_type = Regexp.last_match[:inner_type]
|
148
|
+
value.map { |v| _deserialize(inner_type, v) }
|
149
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
+
k_type = Regexp.last_match[:k_type]
|
151
|
+
v_type = Regexp.last_match[:v_type]
|
152
|
+
{}.tap do |hash|
|
153
|
+
value.each do |k, v|
|
154
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
else # model
|
158
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
159
|
+
temp_model.build_from_hash(value)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
# Returns the string representation of the object
|
164
|
+
# @return [String] String presentation of the object
|
165
|
+
def to_s
|
166
|
+
to_hash.to_s
|
167
|
+
end
|
168
|
+
|
169
|
+
# to_body is an alias to to_hash (backward compatibility)
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
171
|
+
def to_body
|
172
|
+
to_hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the object in the form of hash
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
177
|
+
def to_hash
|
178
|
+
hash = {}
|
179
|
+
self.class.attribute_map.each_pair do |attr, param|
|
180
|
+
value = self.send(attr)
|
181
|
+
next if value.nil?
|
182
|
+
hash[param] = _to_hash(value)
|
183
|
+
end
|
184
|
+
hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Outputs non-array value in the form of hash
|
188
|
+
# For object, use to_hash. Otherwise, just return the value
|
189
|
+
# @param [Object] value Any valid value
|
190
|
+
# @return [Hash] Returns the value in the form of hash
|
191
|
+
def _to_hash(value)
|
192
|
+
if value.is_a?(Array)
|
193
|
+
value.compact.map { |v| _to_hash(v) }
|
194
|
+
elsif value.is_a?(Hash)
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
197
|
+
end
|
198
|
+
elsif value.respond_to? :to_hash
|
199
|
+
value.to_hash
|
200
|
+
else
|
201
|
+
value
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
end
|
206
|
+
end
|