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,190 @@
|
|
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 Body72
|
17
|
+
# a valid api key
|
18
|
+
attr_accessor :key
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'key' => :'key'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'key' => :'String'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
|
+
|
42
|
+
if attributes.has_key?(:'key')
|
43
|
+
self.key = attributes[:'key']
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
48
|
+
# @return Array for valid properties with the reasons
|
49
|
+
def list_invalid_properties
|
50
|
+
invalid_properties = Array.new
|
51
|
+
if @key.nil?
|
52
|
+
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
53
|
+
end
|
54
|
+
|
55
|
+
invalid_properties
|
56
|
+
end
|
57
|
+
|
58
|
+
# Check to see if the all the properties in the model are valid
|
59
|
+
# @return true if the model is valid
|
60
|
+
def valid?
|
61
|
+
return false if @key.nil?
|
62
|
+
true
|
63
|
+
end
|
64
|
+
|
65
|
+
# Checks equality by comparing each attribute.
|
66
|
+
# @param [Object] Object to be compared
|
67
|
+
def ==(o)
|
68
|
+
return true if self.equal?(o)
|
69
|
+
self.class == o.class &&
|
70
|
+
key == o.key
|
71
|
+
end
|
72
|
+
|
73
|
+
# @see the `==` method
|
74
|
+
# @param [Object] Object to be compared
|
75
|
+
def eql?(o)
|
76
|
+
self == o
|
77
|
+
end
|
78
|
+
|
79
|
+
# Calculates hash code according to all attributes.
|
80
|
+
# @return [Fixnum] Hash code
|
81
|
+
def hash
|
82
|
+
[key].hash
|
83
|
+
end
|
84
|
+
|
85
|
+
# Builds the object from hash
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
# @return [Object] Returns the model itself
|
88
|
+
def build_from_hash(attributes)
|
89
|
+
return nil unless attributes.is_a?(Hash)
|
90
|
+
self.class.swagger_types.each_pair do |key, type|
|
91
|
+
if type =~ /\AArray<(.*)>/i
|
92
|
+
# check to ensure the input is an array given that the attribute
|
93
|
+
# is documented as an array but the input is not
|
94
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
95
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
96
|
+
end
|
97
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
98
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
99
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
100
|
+
end
|
101
|
+
|
102
|
+
self
|
103
|
+
end
|
104
|
+
|
105
|
+
# Deserializes the data based on type
|
106
|
+
# @param string type Data type
|
107
|
+
# @param string value Value to be deserialized
|
108
|
+
# @return [Object] Deserialized data
|
109
|
+
def _deserialize(type, value)
|
110
|
+
case type.to_sym
|
111
|
+
when :DateTime
|
112
|
+
DateTime.parse(value)
|
113
|
+
when :Date
|
114
|
+
Date.parse(value)
|
115
|
+
when :String
|
116
|
+
value.to_s
|
117
|
+
when :Integer
|
118
|
+
value.to_i
|
119
|
+
when :Float
|
120
|
+
value.to_f
|
121
|
+
when :BOOLEAN
|
122
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
123
|
+
true
|
124
|
+
else
|
125
|
+
false
|
126
|
+
end
|
127
|
+
when :Object
|
128
|
+
# generic object (usually a Hash), return directly
|
129
|
+
value
|
130
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
131
|
+
inner_type = Regexp.last_match[:inner_type]
|
132
|
+
value.map { |v| _deserialize(inner_type, v) }
|
133
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
134
|
+
k_type = Regexp.last_match[:k_type]
|
135
|
+
v_type = Regexp.last_match[:v_type]
|
136
|
+
{}.tap do |hash|
|
137
|
+
value.each do |k, v|
|
138
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
else # model
|
142
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
143
|
+
temp_model.build_from_hash(value)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# Returns the string representation of the object
|
148
|
+
# @return [String] String presentation of the object
|
149
|
+
def to_s
|
150
|
+
to_hash.to_s
|
151
|
+
end
|
152
|
+
|
153
|
+
# to_body is an alias to to_hash (backward compatibility)
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
155
|
+
def to_body
|
156
|
+
to_hash
|
157
|
+
end
|
158
|
+
|
159
|
+
# Returns the object in the form of hash
|
160
|
+
# @return [Hash] Returns the object in the form of hash
|
161
|
+
def to_hash
|
162
|
+
hash = {}
|
163
|
+
self.class.attribute_map.each_pair do |attr, param|
|
164
|
+
value = self.send(attr)
|
165
|
+
next if value.nil?
|
166
|
+
hash[param] = _to_hash(value)
|
167
|
+
end
|
168
|
+
hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Outputs non-array value in the form of hash
|
172
|
+
# For object, use to_hash. Otherwise, just return the value
|
173
|
+
# @param [Object] value Any valid value
|
174
|
+
# @return [Hash] Returns the value in the form of hash
|
175
|
+
def _to_hash(value)
|
176
|
+
if value.is_a?(Array)
|
177
|
+
value.compact.map { |v| _to_hash(v) }
|
178
|
+
elsif value.is_a?(Hash)
|
179
|
+
{}.tap do |hash|
|
180
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
181
|
+
end
|
182
|
+
elsif value.respond_to? :to_hash
|
183
|
+
value.to_hash
|
184
|
+
else
|
185
|
+
value
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
end
|
190
|
+
end
|
@@ -0,0 +1,205 @@
|
|
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 Body73
|
17
|
+
# a valid api key
|
18
|
+
attr_accessor :key
|
19
|
+
|
20
|
+
# a search query
|
21
|
+
attr_accessor :q
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'key' => :'key',
|
27
|
+
:'q' => :'q'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'key' => :'String',
|
35
|
+
:'q' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'key')
|
48
|
+
self.key = attributes[:'key']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'q')
|
52
|
+
self.q = attributes[:'q']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
if @key.nil?
|
61
|
+
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
62
|
+
end
|
63
|
+
|
64
|
+
if @q.nil?
|
65
|
+
invalid_properties.push('invalid value for "q", q cannot be nil.')
|
66
|
+
end
|
67
|
+
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
return false if @key.nil?
|
75
|
+
return false if @q.nil?
|
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
|
+
key == o.key &&
|
85
|
+
q == o.q
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Fixnum] Hash code
|
96
|
+
def hash
|
97
|
+
[key, q].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.swagger_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :BOOLEAN
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
158
|
+
temp_model.build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
next if value.nil?
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map { |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|
@@ -0,0 +1,205 @@
|
|
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 Body74
|
17
|
+
# a valid api key
|
18
|
+
attr_accessor :key
|
19
|
+
|
20
|
+
# an existing URL
|
21
|
+
attr_accessor :url
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'key' => :'key',
|
27
|
+
:'url' => :'url'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'key' => :'String',
|
35
|
+
:'url' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'key')
|
48
|
+
self.key = attributes[:'key']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'url')
|
52
|
+
self.url = attributes[:'url']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
if @key.nil?
|
61
|
+
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
62
|
+
end
|
63
|
+
|
64
|
+
if @url.nil?
|
65
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
66
|
+
end
|
67
|
+
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
return false if @key.nil?
|
75
|
+
return false if @url.nil?
|
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
|
+
key == o.key &&
|
85
|
+
url == o.url
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Fixnum] Hash code
|
96
|
+
def hash
|
97
|
+
[key, url].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.swagger_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :BOOLEAN
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
158
|
+
temp_model.build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
next if value.nil?
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map { |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|