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,373 @@
|
|
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 information about the subaccount
|
17
|
+
class InlineResponse20049
|
18
|
+
# a unique indentifier for the subaccount
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# an optional display name for the subaccount
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
|
+
# optional extra text to associate with the subaccount
|
25
|
+
attr_accessor :notes
|
26
|
+
|
27
|
+
# an optional manual hourly quota for the subaccount. If not specified, the hourly quota will be managed based on reputation
|
28
|
+
attr_accessor :custom_quota
|
29
|
+
|
30
|
+
# the current sending status of the subaccount
|
31
|
+
attr_accessor :status
|
32
|
+
|
33
|
+
# the subaccount's current reputation on a scale from 0 to 100
|
34
|
+
attr_accessor :reputation
|
35
|
+
|
36
|
+
# the date and time that the subaccount was created as a UTC string in YYYY-MM-DD HH:MM:SS format
|
37
|
+
attr_accessor :created_at
|
38
|
+
|
39
|
+
# the date and time that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format
|
40
|
+
attr_accessor :first_sent_at
|
41
|
+
|
42
|
+
# the number of emails the subaccount has sent so far this week (weeks start on midnight Monday, UTC)
|
43
|
+
attr_accessor :sent_weekly
|
44
|
+
|
45
|
+
# the number of emails the subaccount has sent so far this month (months start on midnight of the 1st, UTC)
|
46
|
+
attr_accessor :sent_monthly
|
47
|
+
|
48
|
+
# the number of emails the subaccount has sent since it was created
|
49
|
+
attr_accessor :sent_total
|
50
|
+
|
51
|
+
# the number of emails the subaccount has sent in the last hour
|
52
|
+
attr_accessor :sent_hourly
|
53
|
+
|
54
|
+
# the current hourly quota for the subaccount, either manual or reputation-based
|
55
|
+
attr_accessor :hourly_quota
|
56
|
+
|
57
|
+
attr_accessor :last_30_days
|
58
|
+
|
59
|
+
class EnumAttributeValidator
|
60
|
+
attr_reader :datatype
|
61
|
+
attr_reader :allowable_values
|
62
|
+
|
63
|
+
def initialize(datatype, allowable_values)
|
64
|
+
@allowable_values = allowable_values.map do |value|
|
65
|
+
case datatype.to_s
|
66
|
+
when /Integer/i
|
67
|
+
value.to_i
|
68
|
+
when /Float/i
|
69
|
+
value.to_f
|
70
|
+
else
|
71
|
+
value
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def valid?(value)
|
77
|
+
!value || allowable_values.include?(value)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
82
|
+
def self.attribute_map
|
83
|
+
{
|
84
|
+
:'id' => :'id',
|
85
|
+
:'name' => :'name',
|
86
|
+
:'notes' => :'notes',
|
87
|
+
:'custom_quota' => :'custom_quota',
|
88
|
+
:'status' => :'status',
|
89
|
+
:'reputation' => :'reputation',
|
90
|
+
:'created_at' => :'created_at',
|
91
|
+
:'first_sent_at' => :'first_sent_at',
|
92
|
+
:'sent_weekly' => :'sent_weekly',
|
93
|
+
:'sent_monthly' => :'sent_monthly',
|
94
|
+
:'sent_total' => :'sent_total',
|
95
|
+
:'sent_hourly' => :'sent_hourly',
|
96
|
+
:'hourly_quota' => :'hourly_quota',
|
97
|
+
:'last_30_days' => :'last_30_days'
|
98
|
+
}
|
99
|
+
end
|
100
|
+
|
101
|
+
# Attribute type mapping.
|
102
|
+
def self.swagger_types
|
103
|
+
{
|
104
|
+
:'id' => :'String',
|
105
|
+
:'name' => :'String',
|
106
|
+
:'notes' => :'String',
|
107
|
+
:'custom_quota' => :'Integer',
|
108
|
+
:'status' => :'String',
|
109
|
+
:'reputation' => :'Integer',
|
110
|
+
:'created_at' => :'DateTime',
|
111
|
+
:'first_sent_at' => :'DateTime',
|
112
|
+
:'sent_weekly' => :'Integer',
|
113
|
+
:'sent_monthly' => :'Integer',
|
114
|
+
:'sent_total' => :'Integer',
|
115
|
+
:'sent_hourly' => :'Integer',
|
116
|
+
:'hourly_quota' => :'Integer',
|
117
|
+
:'last_30_days' => :'InlineResponse20049Last30Days'
|
118
|
+
}
|
119
|
+
end
|
120
|
+
|
121
|
+
# Initializes the object
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
def initialize(attributes = {})
|
124
|
+
return unless attributes.is_a?(Hash)
|
125
|
+
|
126
|
+
# convert string to symbol for hash key
|
127
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
128
|
+
|
129
|
+
if attributes.has_key?(:'id')
|
130
|
+
self.id = attributes[:'id']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.has_key?(:'name')
|
134
|
+
self.name = attributes[:'name']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.has_key?(:'notes')
|
138
|
+
self.notes = attributes[:'notes']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'custom_quota')
|
142
|
+
self.custom_quota = attributes[:'custom_quota']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'status')
|
146
|
+
self.status = attributes[:'status']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'reputation')
|
150
|
+
self.reputation = attributes[:'reputation']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'created_at')
|
154
|
+
self.created_at = attributes[:'created_at']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'first_sent_at')
|
158
|
+
self.first_sent_at = attributes[:'first_sent_at']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'sent_weekly')
|
162
|
+
self.sent_weekly = attributes[:'sent_weekly']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'sent_monthly')
|
166
|
+
self.sent_monthly = attributes[:'sent_monthly']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'sent_total')
|
170
|
+
self.sent_total = attributes[:'sent_total']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.has_key?(:'sent_hourly')
|
174
|
+
self.sent_hourly = attributes[:'sent_hourly']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.has_key?(:'hourly_quota')
|
178
|
+
self.hourly_quota = attributes[:'hourly_quota']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.has_key?(:'last_30_days')
|
182
|
+
self.last_30_days = attributes[:'last_30_days']
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
187
|
+
# @return Array for valid properties with the reasons
|
188
|
+
def list_invalid_properties
|
189
|
+
invalid_properties = Array.new
|
190
|
+
if !@reputation.nil? && @reputation > 100
|
191
|
+
invalid_properties.push('invalid value for "reputation", must be smaller than or equal to 100.')
|
192
|
+
end
|
193
|
+
|
194
|
+
if !@reputation.nil? && @reputation < 0
|
195
|
+
invalid_properties.push('invalid value for "reputation", must be greater than or equal to 0.')
|
196
|
+
end
|
197
|
+
|
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
|
+
status_validator = EnumAttributeValidator.new('String', ['active', 'paused'])
|
205
|
+
return false unless status_validator.valid?(@status)
|
206
|
+
return false if !@reputation.nil? && @reputation > 100
|
207
|
+
return false if !@reputation.nil? && @reputation < 0
|
208
|
+
true
|
209
|
+
end
|
210
|
+
|
211
|
+
# Custom attribute writer method checking allowed values (enum).
|
212
|
+
# @param [Object] status Object to be assigned
|
213
|
+
def status=(status)
|
214
|
+
validator = EnumAttributeValidator.new('String', ['active', 'paused'])
|
215
|
+
unless validator.valid?(status)
|
216
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
217
|
+
end
|
218
|
+
@status = status
|
219
|
+
end
|
220
|
+
|
221
|
+
# Custom attribute writer method with validation
|
222
|
+
# @param [Object] reputation Value to be assigned
|
223
|
+
def reputation=(reputation)
|
224
|
+
if !reputation.nil? && reputation > 100
|
225
|
+
fail ArgumentError, 'invalid value for "reputation", must be smaller than or equal to 100.'
|
226
|
+
end
|
227
|
+
|
228
|
+
if !reputation.nil? && reputation < 0
|
229
|
+
fail ArgumentError, 'invalid value for "reputation", must be greater than or equal to 0.'
|
230
|
+
end
|
231
|
+
|
232
|
+
@reputation = reputation
|
233
|
+
end
|
234
|
+
|
235
|
+
# Checks equality by comparing each attribute.
|
236
|
+
# @param [Object] Object to be compared
|
237
|
+
def ==(o)
|
238
|
+
return true if self.equal?(o)
|
239
|
+
self.class == o.class &&
|
240
|
+
id == o.id &&
|
241
|
+
name == o.name &&
|
242
|
+
notes == o.notes &&
|
243
|
+
custom_quota == o.custom_quota &&
|
244
|
+
status == o.status &&
|
245
|
+
reputation == o.reputation &&
|
246
|
+
created_at == o.created_at &&
|
247
|
+
first_sent_at == o.first_sent_at &&
|
248
|
+
sent_weekly == o.sent_weekly &&
|
249
|
+
sent_monthly == o.sent_monthly &&
|
250
|
+
sent_total == o.sent_total &&
|
251
|
+
sent_hourly == o.sent_hourly &&
|
252
|
+
hourly_quota == o.hourly_quota &&
|
253
|
+
last_30_days == o.last_30_days
|
254
|
+
end
|
255
|
+
|
256
|
+
# @see the `==` method
|
257
|
+
# @param [Object] Object to be compared
|
258
|
+
def eql?(o)
|
259
|
+
self == o
|
260
|
+
end
|
261
|
+
|
262
|
+
# Calculates hash code according to all attributes.
|
263
|
+
# @return [Fixnum] Hash code
|
264
|
+
def hash
|
265
|
+
[id, name, notes, custom_quota, status, reputation, created_at, first_sent_at, sent_weekly, sent_monthly, sent_total, sent_hourly, hourly_quota, last_30_days].hash
|
266
|
+
end
|
267
|
+
|
268
|
+
# Builds the object from hash
|
269
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
270
|
+
# @return [Object] Returns the model itself
|
271
|
+
def build_from_hash(attributes)
|
272
|
+
return nil unless attributes.is_a?(Hash)
|
273
|
+
self.class.swagger_types.each_pair do |key, type|
|
274
|
+
if type =~ /\AArray<(.*)>/i
|
275
|
+
# check to ensure the input is an array given that the attribute
|
276
|
+
# is documented as an array but the input is not
|
277
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
278
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
279
|
+
end
|
280
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
281
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
282
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
283
|
+
end
|
284
|
+
|
285
|
+
self
|
286
|
+
end
|
287
|
+
|
288
|
+
# Deserializes the data based on type
|
289
|
+
# @param string type Data type
|
290
|
+
# @param string value Value to be deserialized
|
291
|
+
# @return [Object] Deserialized data
|
292
|
+
def _deserialize(type, value)
|
293
|
+
case type.to_sym
|
294
|
+
when :DateTime
|
295
|
+
DateTime.parse(value)
|
296
|
+
when :Date
|
297
|
+
Date.parse(value)
|
298
|
+
when :String
|
299
|
+
value.to_s
|
300
|
+
when :Integer
|
301
|
+
value.to_i
|
302
|
+
when :Float
|
303
|
+
value.to_f
|
304
|
+
when :BOOLEAN
|
305
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
306
|
+
true
|
307
|
+
else
|
308
|
+
false
|
309
|
+
end
|
310
|
+
when :Object
|
311
|
+
# generic object (usually a Hash), return directly
|
312
|
+
value
|
313
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
314
|
+
inner_type = Regexp.last_match[:inner_type]
|
315
|
+
value.map { |v| _deserialize(inner_type, v) }
|
316
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
317
|
+
k_type = Regexp.last_match[:k_type]
|
318
|
+
v_type = Regexp.last_match[:v_type]
|
319
|
+
{}.tap do |hash|
|
320
|
+
value.each do |k, v|
|
321
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
else # model
|
325
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
326
|
+
temp_model.build_from_hash(value)
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
# Returns the string representation of the object
|
331
|
+
# @return [String] String presentation of the object
|
332
|
+
def to_s
|
333
|
+
to_hash.to_s
|
334
|
+
end
|
335
|
+
|
336
|
+
# to_body is an alias to to_hash (backward compatibility)
|
337
|
+
# @return [Hash] Returns the object in the form of hash
|
338
|
+
def to_body
|
339
|
+
to_hash
|
340
|
+
end
|
341
|
+
|
342
|
+
# Returns the object in the form of hash
|
343
|
+
# @return [Hash] Returns the object in the form of hash
|
344
|
+
def to_hash
|
345
|
+
hash = {}
|
346
|
+
self.class.attribute_map.each_pair do |attr, param|
|
347
|
+
value = self.send(attr)
|
348
|
+
next if value.nil?
|
349
|
+
hash[param] = _to_hash(value)
|
350
|
+
end
|
351
|
+
hash
|
352
|
+
end
|
353
|
+
|
354
|
+
# Outputs non-array value in the form of hash
|
355
|
+
# For object, use to_hash. Otherwise, just return the value
|
356
|
+
# @param [Object] value Any valid value
|
357
|
+
# @return [Hash] Returns the value in the form of hash
|
358
|
+
def _to_hash(value)
|
359
|
+
if value.is_a?(Array)
|
360
|
+
value.compact.map { |v| _to_hash(v) }
|
361
|
+
elsif value.is_a?(Hash)
|
362
|
+
{}.tap do |hash|
|
363
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
364
|
+
end
|
365
|
+
elsif value.respond_to? :to_hash
|
366
|
+
value.to_hash
|
367
|
+
else
|
368
|
+
value
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
end
|
373
|
+
end
|
@@ -0,0 +1,276 @@
|
|
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
|
+
# stats for this subaccount in the last 30 days
|
17
|
+
class InlineResponse20049Last30Days
|
18
|
+
# the number of emails sent for this subaccount in the last 30 days
|
19
|
+
attr_accessor :sent
|
20
|
+
|
21
|
+
# the number of emails hard bounced for this subaccount in the last 30 days
|
22
|
+
attr_accessor :hard_bounces
|
23
|
+
|
24
|
+
# the number of emails soft bounced for this subaccount in the last 30 days
|
25
|
+
attr_accessor :soft_bounces
|
26
|
+
|
27
|
+
# the number of emails rejected for sending this subaccount in the last 30 days
|
28
|
+
attr_accessor :rejects
|
29
|
+
|
30
|
+
# the number of spam complaints for this subaccount in the last 30 days
|
31
|
+
attr_accessor :complaints
|
32
|
+
|
33
|
+
# the number of unsbuscribes for this subaccount in the last 30 days
|
34
|
+
attr_accessor :unsubs
|
35
|
+
|
36
|
+
# the number of times emails have been opened for this subaccount in the last 30 days
|
37
|
+
attr_accessor :opens
|
38
|
+
|
39
|
+
# the number of unique opens for emails sent for this subaccount in the last 30 days
|
40
|
+
attr_accessor :unique_opens
|
41
|
+
|
42
|
+
# the number of URLs that have been clicked for this subaccount in the last 30 days
|
43
|
+
attr_accessor :clicks
|
44
|
+
|
45
|
+
# the number of unique clicks for emails sent for this subaccount in the last 30 days
|
46
|
+
attr_accessor :unique_clicks
|
47
|
+
|
48
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
+
def self.attribute_map
|
50
|
+
{
|
51
|
+
:'sent' => :'sent',
|
52
|
+
:'hard_bounces' => :'hard_bounces',
|
53
|
+
:'soft_bounces' => :'soft_bounces',
|
54
|
+
:'rejects' => :'rejects',
|
55
|
+
:'complaints' => :'complaints',
|
56
|
+
:'unsubs' => :'unsubs',
|
57
|
+
:'opens' => :'opens',
|
58
|
+
:'unique_opens' => :'unique_opens',
|
59
|
+
:'clicks' => :'clicks',
|
60
|
+
:'unique_clicks' => :'unique_clicks'
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute type mapping.
|
65
|
+
def self.swagger_types
|
66
|
+
{
|
67
|
+
:'sent' => :'Integer',
|
68
|
+
:'hard_bounces' => :'Integer',
|
69
|
+
:'soft_bounces' => :'Integer',
|
70
|
+
:'rejects' => :'Integer',
|
71
|
+
:'complaints' => :'Integer',
|
72
|
+
:'unsubs' => :'Integer',
|
73
|
+
:'opens' => :'Integer',
|
74
|
+
:'unique_opens' => :'Integer',
|
75
|
+
:'clicks' => :'Integer',
|
76
|
+
:'unique_clicks' => :'Integer'
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# Initializes the object
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
82
|
+
def initialize(attributes = {})
|
83
|
+
return unless attributes.is_a?(Hash)
|
84
|
+
|
85
|
+
# convert string to symbol for hash key
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
|
+
|
88
|
+
if attributes.has_key?(:'sent')
|
89
|
+
self.sent = attributes[:'sent']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'hard_bounces')
|
93
|
+
self.hard_bounces = attributes[:'hard_bounces']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'soft_bounces')
|
97
|
+
self.soft_bounces = attributes[:'soft_bounces']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'rejects')
|
101
|
+
self.rejects = attributes[:'rejects']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'complaints')
|
105
|
+
self.complaints = attributes[:'complaints']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.has_key?(:'unsubs')
|
109
|
+
self.unsubs = attributes[:'unsubs']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'opens')
|
113
|
+
self.opens = attributes[:'opens']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.has_key?(:'unique_opens')
|
117
|
+
self.unique_opens = attributes[:'unique_opens']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'clicks')
|
121
|
+
self.clicks = attributes[:'clicks']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'unique_clicks')
|
125
|
+
self.unique_clicks = attributes[:'unique_clicks']
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
130
|
+
# @return Array for valid properties with the reasons
|
131
|
+
def list_invalid_properties
|
132
|
+
invalid_properties = Array.new
|
133
|
+
invalid_properties
|
134
|
+
end
|
135
|
+
|
136
|
+
# Check to see if the all the properties in the model are valid
|
137
|
+
# @return true if the model is valid
|
138
|
+
def valid?
|
139
|
+
true
|
140
|
+
end
|
141
|
+
|
142
|
+
# Checks equality by comparing each attribute.
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def ==(o)
|
145
|
+
return true if self.equal?(o)
|
146
|
+
self.class == o.class &&
|
147
|
+
sent == o.sent &&
|
148
|
+
hard_bounces == o.hard_bounces &&
|
149
|
+
soft_bounces == o.soft_bounces &&
|
150
|
+
rejects == o.rejects &&
|
151
|
+
complaints == o.complaints &&
|
152
|
+
unsubs == o.unsubs &&
|
153
|
+
opens == o.opens &&
|
154
|
+
unique_opens == o.unique_opens &&
|
155
|
+
clicks == o.clicks &&
|
156
|
+
unique_clicks == o.unique_clicks
|
157
|
+
end
|
158
|
+
|
159
|
+
# @see the `==` method
|
160
|
+
# @param [Object] Object to be compared
|
161
|
+
def eql?(o)
|
162
|
+
self == o
|
163
|
+
end
|
164
|
+
|
165
|
+
# Calculates hash code according to all attributes.
|
166
|
+
# @return [Fixnum] Hash code
|
167
|
+
def hash
|
168
|
+
[sent, hard_bounces, soft_bounces, rejects, complaints, unsubs, opens, unique_opens, clicks, unique_clicks].hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Builds the object from hash
|
172
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
173
|
+
# @return [Object] Returns the model itself
|
174
|
+
def build_from_hash(attributes)
|
175
|
+
return nil unless attributes.is_a?(Hash)
|
176
|
+
self.class.swagger_types.each_pair do |key, type|
|
177
|
+
if type =~ /\AArray<(.*)>/i
|
178
|
+
# check to ensure the input is an array given that the attribute
|
179
|
+
# is documented as an array but the input is not
|
180
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
182
|
+
end
|
183
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
184
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
185
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
186
|
+
end
|
187
|
+
|
188
|
+
self
|
189
|
+
end
|
190
|
+
|
191
|
+
# Deserializes the data based on type
|
192
|
+
# @param string type Data type
|
193
|
+
# @param string value Value to be deserialized
|
194
|
+
# @return [Object] Deserialized data
|
195
|
+
def _deserialize(type, value)
|
196
|
+
case type.to_sym
|
197
|
+
when :DateTime
|
198
|
+
DateTime.parse(value)
|
199
|
+
when :Date
|
200
|
+
Date.parse(value)
|
201
|
+
when :String
|
202
|
+
value.to_s
|
203
|
+
when :Integer
|
204
|
+
value.to_i
|
205
|
+
when :Float
|
206
|
+
value.to_f
|
207
|
+
when :BOOLEAN
|
208
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
209
|
+
true
|
210
|
+
else
|
211
|
+
false
|
212
|
+
end
|
213
|
+
when :Object
|
214
|
+
# generic object (usually a Hash), return directly
|
215
|
+
value
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
219
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each do |k, v|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
else # model
|
228
|
+
temp_model = MailchimpTransactional.const_get(type).new
|
229
|
+
temp_model.build_from_hash(value)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the string representation of the object
|
234
|
+
# @return [String] String presentation of the object
|
235
|
+
def to_s
|
236
|
+
to_hash.to_s
|
237
|
+
end
|
238
|
+
|
239
|
+
# to_body is an alias to to_hash (backward compatibility)
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
241
|
+
def to_body
|
242
|
+
to_hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the object in the form of hash
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
247
|
+
def to_hash
|
248
|
+
hash = {}
|
249
|
+
self.class.attribute_map.each_pair do |attr, param|
|
250
|
+
value = self.send(attr)
|
251
|
+
next if value.nil?
|
252
|
+
hash[param] = _to_hash(value)
|
253
|
+
end
|
254
|
+
hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Outputs non-array value in the form of hash
|
258
|
+
# For object, use to_hash. Otherwise, just return the value
|
259
|
+
# @param [Object] value Any valid value
|
260
|
+
# @return [Hash] Returns the value in the form of hash
|
261
|
+
def _to_hash(value)
|
262
|
+
if value.is_a?(Array)
|
263
|
+
value.compact.map { |v| _to_hash(v) }
|
264
|
+
elsif value.is_a?(Hash)
|
265
|
+
{}.tap do |hash|
|
266
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
267
|
+
end
|
268
|
+
elsif value.respond_to? :to_hash
|
269
|
+
value.to_hash
|
270
|
+
else
|
271
|
+
value
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
end
|
276
|
+
end
|