mailjet 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -2
  3. data/lib/mailjet/message_delivery.rb +1 -1
  4. data/lib/mailjet/resource.rb +14 -14
  5. data/lib/mailjet/resources/apikey.rb +1 -1
  6. data/lib/mailjet/resources/apikeyaccess.rb +1 -1
  7. data/lib/mailjet/resources/apikeytotals.rb +1 -1
  8. data/lib/mailjet/resources/apitoken.rb +1 -1
  9. data/lib/mailjet/resources/axtesting.rb +1 -1
  10. data/lib/mailjet/resources/batchjob.rb +1 -1
  11. data/lib/mailjet/resources/bouncestatistics.rb +1 -1
  12. data/lib/mailjet/resources/campaign.rb +1 -1
  13. data/lib/mailjet/resources/campaignstatistics.rb +1 -1
  14. data/lib/mailjet/resources/clickstatistics.rb +1 -1
  15. data/lib/mailjet/resources/contact.rb +1 -1
  16. data/lib/mailjet/resources/contact_getcontactslists.rb +1 -1
  17. data/lib/mailjet/resources/contact_managecontactslists.rb +1 -1
  18. data/lib/mailjet/resources/contact_managemanycontacts.rb +1 -1
  19. data/lib/mailjet/resources/contactdata.rb +1 -1
  20. data/lib/mailjet/resources/contactfilter.rb +1 -1
  21. data/lib/mailjet/resources/contacthistorydata.rb +1 -1
  22. data/lib/mailjet/resources/contactmetadata.rb +1 -1
  23. data/lib/mailjet/resources/contactslist.rb +1 -1
  24. data/lib/mailjet/resources/contactslist_managecontact.rb +1 -1
  25. data/lib/mailjet/resources/contactslist_managemanycontacts.rb +1 -1
  26. data/lib/mailjet/resources/contactslistsignup.rb +1 -1
  27. data/lib/mailjet/resources/contactstatistics.rb +1 -1
  28. data/lib/mailjet/resources/csvimport.rb +1 -1
  29. data/lib/mailjet/resources/dns.rb +1 -1
  30. data/lib/mailjet/resources/dns_check.rb +1 -1
  31. data/lib/mailjet/resources/domainstatistics.rb +1 -1
  32. data/lib/mailjet/resources/eventcallbackurl.rb +1 -1
  33. data/lib/mailjet/resources/geostatistics.rb +1 -1
  34. data/lib/mailjet/resources/graphstatistics.rb +1 -1
  35. data/lib/mailjet/resources/listrecipient.rb +1 -1
  36. data/lib/mailjet/resources/listrecipientstatistics.rb +1 -1
  37. data/lib/mailjet/resources/liststatistics.rb +1 -1
  38. data/lib/mailjet/resources/manycontacts.rb +1 -1
  39. data/lib/mailjet/resources/message.rb +1 -1
  40. data/lib/mailjet/resources/messagehistory.rb +1 -1
  41. data/lib/mailjet/resources/messageinformation.rb +1 -1
  42. data/lib/mailjet/resources/messagesentstatistics.rb +1 -1
  43. data/lib/mailjet/resources/messagestate.rb +1 -1
  44. data/lib/mailjet/resources/messagestatistics.rb +1 -1
  45. data/lib/mailjet/resources/metadata.rb +1 -1
  46. data/lib/mailjet/resources/metasender.rb +1 -1
  47. data/lib/mailjet/resources/myprofile.rb +1 -1
  48. data/lib/mailjet/resources/newsletter.rb +1 -1
  49. data/lib/mailjet/resources/newsletter_detailcontent.rb +1 -1
  50. data/lib/mailjet/resources/newsletter_schedule.rb +1 -1
  51. data/lib/mailjet/resources/newsletter_send.rb +1 -1
  52. data/lib/mailjet/resources/newsletter_test.rb +1 -1
  53. data/lib/mailjet/resources/newsletterblock.rb +1 -1
  54. data/lib/mailjet/resources/newsletterproperties.rb +1 -1
  55. data/lib/mailjet/resources/newslettertemplate.rb +1 -1
  56. data/lib/mailjet/resources/newslettertemplateblock.rb +1 -1
  57. data/lib/mailjet/resources/newslettertemplatecategory.rb +1 -1
  58. data/lib/mailjet/resources/newslettertemplateproperties.rb +1 -1
  59. data/lib/mailjet/resources/openinformation.rb +1 -1
  60. data/lib/mailjet/resources/openstatistics.rb +1 -1
  61. data/lib/mailjet/resources/parseroute.rb +1 -1
  62. data/lib/mailjet/resources/preferences.rb +1 -1
  63. data/lib/mailjet/resources/sender.rb +1 -1
  64. data/lib/mailjet/resources/senderstatistics.rb +1 -1
  65. data/lib/mailjet/resources/toplinkclicked.rb +1 -1
  66. data/lib/mailjet/resources/trigger.rb +1 -1
  67. data/lib/mailjet/resources/user.rb +1 -1
  68. data/lib/mailjet/resources/useragentstatistics.rb +1 -1
  69. data/lib/mailjet/resources/widget.rb +1 -1
  70. data/lib/mailjet/resources/widgetcustomvalue.rb +1 -1
  71. data/lib/mailjet/version.rb +1 -1
  72. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bce510af0e64da9901c04173e262e897483fa7c8
4
- data.tar.gz: e8824a8d720e46b0b37d5fdd654b2483a397eb43
3
+ metadata.gz: 8b6cfdb58685fcffc92cf487065762ce4dde886c
4
+ data.tar.gz: 492d1ef6ece2349cc5bed79e29129e8dfca7b3b3
5
5
  SHA512:
6
- metadata.gz: d34de055592b05c8b29a801972b6e9b157860650102e441ff13782cbc95ada82ea25b635773075453cd37cd268dd2f184773da37c87b7abdfb71a3661648b60b
7
- data.tar.gz: 471a5630d3258ebc1c7a245dcc6c86cacc6ddacdd8413e44fe19a4742d01029471e2ff81a9aa486cc359dc55aae853cc6ed66aa06716e493f9c7726d2e9daad6
6
+ metadata.gz: 1003cc963f00b68896648795f95fb0ce041ca05222dc55aabdc4dbe8014a544ab8936a709533eaab08c90704156cd82282ba478cdcec18e27fcaae868ee8dfa6
7
+ data.tar.gz: e6b86ab99d07db1e49ec648541410564e11a028123eb23ab319cfeafd2795a05ade4a06e7977f22e36ee148568cc97d8f62feb16b79b18a577f1025b136c6d9e
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [Mailjet][mailjet]'s official Ruby wrapper, bootstraped with [Mailjetter][mailjetter].
4
4
 
5
+ [![Build Status](https://travis-ci.org/mailjet/mailjet-gem.svg?branch=master)](https://travis-ci.org/mailjet/mailjet-gem)
6
+
5
7
  <!--
6
8
 
7
9
  [![Build Status](https://secure.travis-ci.org/jbescoyez/mailjet.png?branch=master)][travis]
@@ -24,8 +26,10 @@
24
26
  [camelcase-api]: http://api.rubyonrails.org/classes/String.html#method-i-camelcase
25
27
  [underscore-api]: http://api.rubyonrails.org/classes/String.html#method-i-underscore
26
28
  [actionmailerdoc]: http://guides.rubyonrails.org/action_mailer_basics.html#sending-emails-with-dynamic-delivery-options
27
- [send-api-doc]: http://dev.mailjet.com/guides/send-api-guide/
29
+ [send-api-doc]: http://dev.mailjet.com/guides/?ruby#choose-sending-method
28
30
  [v1-branch]: https://github.com/mailjet/mailjet-gem/tree/v1
31
+ [mailjet_doc]: http://dev.mailjet.com/guides/?ruby#
32
+ [api_doc]: https://github.com/mailjet/api-documentation
29
33
 
30
34
  <!-- You can read this readme file in other languages:
31
35
  english | [french](./README.fr.md) -->
@@ -45,6 +49,12 @@ Rails ActionMailer integration designed for Rails 3.X and 4.X
45
49
 
46
50
  IMPORTANT: Mailjet gem switched to API v3, the new API provided by Mailjet. For the wrapper for API v1, check the [v1 branch][v1-branch].
47
51
 
52
+ Every code examples can be find on the [Mailjet Documentation][mailjet_doc]
53
+
54
+ (Please refer to the [Mailjet Documentation Repository][api_doc] to contribute to the documentation examples)
55
+
56
+
57
+
48
58
  ## Install
49
59
 
50
60
  ### Bundler
@@ -267,7 +277,8 @@ Mailjet::Contact_getcontactslists.find(1)
267
277
 
268
278
  Managing large amount of contacts asyncronously, uploading many contacts and returns a `job_id`
269
279
  ``` ruby
270
- managecontactslists = Mailjet::Contact_managemanycontacts.create(contacts_lists: [{:ListID => 234, :action => "addnoforce"}])
280
+ managecontactslists = Mailjet::Contact_managemanycontacts.create(contacts_lists: [{:ListID => 39, :action => "addnoforce"}], contacts: [{Email: 'mr-smith@mailjet.com'}])
281
+
271
282
  ```
272
283
 
273
284
  To 'find' (GET) with also a job ID, pass two parameters - first, the ID of the object; second, the job ID:
@@ -5,6 +5,6 @@ module Mailjet
5
5
  include Mailjet::Resource
6
6
  self.resource_path = 'v3/send/message'
7
7
  self.public_operations = [:post]
8
- self.properties = [:from, :sender, :to, :cc, :bcc, :subject, :text, :html, :attachment, :inlineattachment, :header, :'mj-customid', :'mj-eventpayload', :'mj-trackclick']
8
+ self.resourceprop = [:from, :sender, :to, :cc, :bcc, :subject, :text, :html, :attachment, :inlineattachment, :header, :'mj-customid', :'mj-eventpayload', :'mj-trackclick']
9
9
  end
10
10
  end
@@ -2,10 +2,12 @@ require 'mailjet/connection'
2
2
  require 'mailjet/resource'
3
3
  require 'active_support/hash_with_indifferent_access'
4
4
  require 'active_support/core_ext/class'
5
+ require 'active_support/core_ext/hash'
5
6
  require 'active_support/core_ext/string'
6
7
  require 'active_support/core_ext/module/delegation'
7
8
  require 'active_support/concern'
8
9
  require 'active_support/json/decoding'
10
+ require 'json'
9
11
 
10
12
 
11
13
  # This option automatically transforms the date output by the API into something a bit more readable.
@@ -19,7 +21,7 @@ module Mailjet
19
21
  extend ActiveSupport::Concern
20
22
 
21
23
  included do
22
- cattr_accessor :resource_path, :public_operations, :read_only, :filters, :properties, :action, :non_json_urls
24
+ cattr_accessor :resource_path, :public_operations, :read_only, :filters, :resourceprop, :action, :non_json_urls
23
25
  cattr_writer :connection
24
26
 
25
27
  def self.connection
@@ -38,7 +40,7 @@ module Mailjet
38
40
 
39
41
  def self.default_headers
40
42
  if @non_json_urls.include?(self.resource_path)#don't use JSON if Send API
41
- default_headers = { accept: :json, accept_encoding: :deflate }
43
+ default_headers = { accept: :json, accept_encoding: :deflate }
42
44
  else
43
45
  default_headers = { accept: :json, accept_encoding: :deflate, content_type: :json } #use JSON if *not* Send API
44
46
  end
@@ -53,7 +55,8 @@ module Mailjet
53
55
 
54
56
  def all(params = {})
55
57
  params = format_params(params)
56
- attribute_array = parse_api_json(connection.get(default_headers.merge(params: params)))
58
+ response = connection.get(default_headers.merge(params: params))
59
+ attribute_array = parse_api_json(response)
57
60
  attribute_array.map{ |attributes| instanciate_from_api(attributes) }
58
61
  end
59
62
 
@@ -64,9 +67,9 @@ module Mailjet
64
67
  end
65
68
 
66
69
  def find(id, job_id = nil)
67
- # if action method, ammend url to appropriate id
68
- self.resource_path = create_action_resource_path(id, job_id) if self.action
69
- #
70
+ # if action method, ammend url to appropriate id
71
+ self.resource_path = create_action_resource_path(id, job_id) if self.action
72
+ #
70
73
  attributes = parse_api_json(connection[id].get(default_headers)).first
71
74
  instanciate_from_api(attributes)
72
75
  rescue Mailjet::ApiError => e
@@ -78,13 +81,13 @@ module Mailjet
78
81
  end
79
82
 
80
83
  def create(attributes = {})
81
- # if action method, ammend url to appropriate id
82
- self.resource_path = create_action_resource_path(attributes[:id]) if self.action
83
- #
84
+ # if action method, ammend url to appropriate id
85
+ self.resource_path = create_action_resource_path(attributes[:id]) if self.action
84
86
  self.new(attributes).tap do |resource|
85
87
  resource.save!
86
88
  resource.persisted = true
87
89
  end
90
+
88
91
  end
89
92
 
90
93
  def delete(id)
@@ -232,7 +235,7 @@ module Mailjet
232
235
 
233
236
  def formatted_payload
234
237
  payload = attributes.reject { |k,v| v.blank? }
235
- payload = payload.slice(*properties)
238
+ payload = payload.slice(*resourceprop)
236
239
  payload = camelcase_keys(payload)
237
240
  payload.inject({}) do |h, (k, v)|
238
241
  v = v.utc.as_json if v.respond_to? :utc
@@ -252,16 +255,13 @@ module Mailjet
252
255
  self.class.parse_api_json(response_json)
253
256
  end
254
257
 
255
- #my code!
256
258
  def convert_dates_from(data)
257
259
  self.class.convert_dates_from(data)
258
260
  end
259
- #end my code
260
261
 
261
262
  def method_missing(method_symbol, *arguments) #:nodoc:
262
263
  method_name = method_symbol.to_s
263
-
264
- if method_name =~ /(=|\?)$/
264
+ if method_name =~ /(=|\?)$/
265
265
  case $1
266
266
  when "="
267
267
  attributes[$`] = arguments.first
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/apikey'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:api_key, :confirm_key, :custom_status, :is_active, :is_master, :key_type, :name, :user]
9
- self.properties = [:api_key, :created_at, :custom_status, :id, :inactive_reason, :is_active, :is_master, :name, :runlevel, :secret_key, :track_host, :user_id]
9
+ self.resourceprop = [:api_key, :created_at, :custom_status, :id, :inactive_reason, :is_active, :is_master, :name, :runlevel, :secret_key, :track_host, :user_id]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/apikeyaccess'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:api_key, :is_active, :real_user, :sub_account, :token, :user]
9
- self.properties = [:allowed_access, :api_key, :created_at, :custom_name, :id, :is_active, :last_activity_at, :real_user, :subaccount, :user]
9
+ self.resourceprop = [:allowed_access, :api_key, :created_at, :custom_name, :id, :is_active, :last_activity_at, :real_user, :subaccount, :user]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/apikeytotals'
7
7
  self.public_operations = [:get]
8
8
  self.filters = []
9
- self.properties = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :last_activity, :opened_count, :processed_count, :queued_count, :spamcomplaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :last_activity, :opened_count, :processed_count, :queued_count, :spamcomplaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/apitoken'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:api_key, :catched_ip, :is_active, :is_api_key_active, :token]
9
- self.properties = [:allowed_access, :api_key, :catched_ip, :created_at, :first_used_at, :id, :is_active, :lang, :last_used_at, :sent_data, :timezone, :token, :token_type, :valid_for]
9
+ self.resourceprop = [:allowed_access, :api_key, :catched_ip, :created_at, :first_used_at, :id, :is_active, :lang, :last_used_at, :sent_data, :timezone, :token, :token_type, :valid_for]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/axtesting'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:contacts_list, :is_deleted, :segmentation]
9
- self.properties = [:contact_list_id, :contact_list_alt, :created_at, :deleted, :id, :mode, :name, :percentage, :remainder_at, :segmentation_id, :segmentation_alt, :starred, :start_at, :status, :status_code, :status_string, :winner_click_rate, :winner_id, :winner_method, :winner_open_rate, :winner_spam_rate, :winner_unsub_rate]
9
+ self.resourceprop = [:contact_list_id, :contact_list_alt, :created_at, :deleted, :id, :mode, :name, :percentage, :remainder_at, :segmentation_id, :segmentation_alt, :starred, :start_at, :status, :status_code, :status_string, :winner_click_rate, :winner_id, :winner_method, :winner_open_rate, :winner_spam_rate, :winner_unsub_rate]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/batchjob'
7
7
  self.public_operations = [:get, :put, :post]
8
8
  self.filters = [:api_key, :data, :job_type, :max_job_end, :max_job_start, :max_request_at, :method, :min_job_end, :min_job_start, :min_request_at, :ref_id, :status]
9
- self.properties = [:alive_at, :api_key, :blocksize, :count, :current, :data, :errcount, :err_treshold, :id, :job_end, :job_start, :job_type, :method, :ref_id, :request_at, :status, :throttle]
9
+ self.resourceprop = [:alive_at, :api_key, :blocksize, :count, :current, :data, :errcount, :err_treshold, :id, :job_end, :job_start, :job_type, :method, :ref_id, :request_at, :status, :throttle]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/bouncestatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:bounced_at, :campaign, :contact, :id, :is_blocked, :is_state_permanent, :state]
9
+ self.resourceprop = [:bounced_at, :campaign, :contact, :id, :is_blocked, :is_state_permanent, :state]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/campaign'
7
7
  self.public_operations = [:get, :put]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :period, :to_ts]
9
- self.properties = [:campaign_type, :click_tracked, :created_at, :custom_value, :first_message_id, :from, :from_email, :from_name, :has_html_count, :has_txt_count, :id, :is_deleted, :is_starred, :list, :news_letter_id, :open_tracked, :segmentation, :send_end_at, :send_start_at, :spamass_score, :status, :subject, :unsubscribe_tracked_count]
9
+ self.resourceprop = [:campaign_type, :click_tracked, :created_at, :custom_value, :first_message_id, :from, :from_email, :from_name, :has_html_count, :has_txt_count, :id, :is_deleted, :is_starred, :list, :news_letter_id, :open_tracked, :segmentation, :send_end_at, :send_start_at, :spamass_score, :status, :subject, :unsubscribe_tracked_count]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/campaignstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:blocked, :bounced, :campaign_status, :click, :contacts_list, :from_type, :is_deleted, :is_starred, :last_activity_at, :max_last_activity_at, :min_last_activity_at, :news_letter, :open, :queued, :sender, :sent, :spam, :subject, :unsubscribed]
9
- self.properties = [:blocked_count, :bounced_count, :campaign, :clicked_count, :delivered_count, :last_activity_at, :news_letter, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :campaign, :clicked_count, :delivered_count, :last_activity_at, :news_letter, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/clickstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_id, :message_status, :period, :to_ts]
9
- self.properties = [:clicked_at, :clicked_delay, :contact, :id, :message, :url, :user_agent]
9
+ self.resourceprop = [:clicked_at, :clicked_delay, :contact, :id, :message, :url, :user_agent]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contact'
7
7
  self.public_operations = [:get, :put, :post]
8
8
  self.filters = [:campaign, :contacts_list, :is_unsubscribed, :last_activity_at, :recipient, :status]
9
- self.properties = [:created_at, :delivered_count, :email, :id, :is_opt_in_pending, :is_spam_complaining, :last_activity_at, :last_update_at, :name, :unsubscribed_at, :unsubscribed_by]
9
+ self.resourceprop = [:created_at, :delivered_count, :email, :id, :is_opt_in_pending, :is_spam_complaining, :last_activity_at, :last_update_at, :name, :unsubscribed_at, :unsubscribed_by]
10
10
 
11
11
  end
12
12
  end
@@ -7,6 +7,6 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/contact/id/#{self.action}"
8
8
  self.public_operations = [:get]
9
9
  self.filters = []
10
- self.properties = []
10
+ self.resourceprop = []
11
11
  end
12
12
  end
@@ -7,6 +7,6 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/contact/id/#{self.action}"
8
8
  self.public_operations = [:post]
9
9
  self.filters = []
10
- self.properties = [:contacts_lists, 'ListID', :list_id, :action] #need 'ListID' and :action in a subpacket
10
+ self.resourceprop = [:contacts_lists, 'ListID', :list_id, :action] #need 'ListID' and :action in a subpacket
11
11
  end
12
12
  end
@@ -8,6 +8,6 @@ module Mailjet
8
8
  self.resource_path = "v3/REST/contact/#{self.action}"
9
9
  self.public_operations = [:post, :get] #GET is for job_id ammended at the end
10
10
  self.filters = []
11
- self.properties = [:contacts_lists, :contacts, :list_id, 'ListID', :action, :email, :name, :properties] #need 'ListID' and :action in a subpacket
11
+ self.resourceprop = [:contacts_lists, :contacts, :list_id, 'ListID', :action, :email, :name, :properties] #need 'ListID' and :action in a subpacket
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contactdata'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:campaign, :contacts_list, :fields, :is_unsubscribed, :last_activity_at, :recipient, :status]
9
- self.properties = [:contact_id, :data, :id, 'ContactID', 'Name', 'Value']
9
+ self.resourceprop = [:contact_id, :data, :id, 'ContactID', 'Name', 'Value']
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contactfilter'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:show_deleted, :status]
9
- self.properties = [:description, :expression, :id, :name, :status]
9
+ self.resourceprop = [:description, :expression, :id, :name, :status]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contacthistorydata'
7
7
  self.public_operations = [:get, :post, :delete]
8
8
  self.filters = [:contact, :last, :max_created_at, :min_created_at, :name]
9
- self.properties = [:contact, :created_at, :data, :id, :name]
9
+ self.resourceprop = [:contact, :created_at, :data, :id, :name]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contactmetadata'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:data_type, :namespace]
9
- self.properties = [:datatype, :id, :name, :name_space]
9
+ self.resourceprop = [:datatype, :id, :name, :name_space]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contactslist'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:address, :exclude_id, :is_deleted, :name]
9
- self.properties = [:address, :created_at, :id, :is_deleted, :name, :subscriber_count]
9
+ self.resourceprop = [:address, :created_at, :id, :is_deleted, :name, :subscriber_count]
10
10
 
11
11
  end
12
12
  end
@@ -7,6 +7,6 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/contactslist/id/#{self.action}"
8
8
  self.public_operations = [:post]
9
9
  self.filters = []
10
- self.properties = [:email, :name, :action, :properties]
10
+ self.resourceprop = [:email, :name, :action, :properties]
11
11
  end
12
12
  end
@@ -7,6 +7,6 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/contactslist/id/#{self.action}"
8
8
  self.public_operations = [:post, :get] #GET is for when job_id is there
9
9
  self.filters = []
10
- self.properties = [:action, :contacts, :email, :name, :properties]
10
+ self.resourceprop = [:action, :contacts, :email, :name, :properties]
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contactslistsignup'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:api_key, :contact, :contacts_list, :domain, :email, :local_part, :max_confirm_at, :max_signup_at, :min_confirm_at, :min_signup_at, :source, :source_id]
9
- self.properties = [:confirm_at, :confirm_ip, :contact, :email, :id, :list, :recipient, :signup_at, :signup_ip, :signup_key, :source, :source_id]
9
+ self.resourceprop = [:confirm_at, :confirm_ip, :contact, :email, :id, :list, :recipient, :signup_at, :signup_ip, :signup_key, :source, :source_id]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/contactstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:blocked, :bounced, :click, :last_activity_at, :max_last_activity_at, :min_last_activity_at, :open, :queued, :sent, :spam, :unsubscribed]
9
- self.properties = [:blocked_count, :bounced_count, :clicked_count, :contact, :delivered_count, :last_activity_at, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :clicked_count, :contact, :delivered_count, :last_activity_at, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/csvimport'
7
7
  self.public_operations = [:get, :put, :post]
8
8
  self.filters = []
9
- self.properties = [:alive_at, :contacts_list, :count, :current, :data_id, :errcount, :err_treshold, :id, :import_options, :job_end, :job_start, :method, :request_at, :status]
9
+ self.resourceprop = [:alive_at, :contacts_list, :count, :current, :data_id, :errcount, :err_treshold, :id, :import_options, :job_end, :job_start, :method, :request_at, :status]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/dns'
7
7
  self.public_operations = [:get]
8
8
  self.filters = []
9
- self.properties = [:id, :isCheckInProgress, :DKIMStatus, :DKIMValue, :DKIMName, :format, :lastCheckedAt, :SPFStatus, :SPFValue, :ownershipToken]
9
+ self.resourceprop = [:id, :isCheckInProgress, :DKIMStatus, :DKIMValue, :DKIMName, :format, :lastCheckedAt, :SPFStatus, :SPFValue, :ownershipToken]
10
10
 
11
11
  end
12
12
  end
@@ -7,7 +7,7 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/dns/id/#{self.action}"
8
8
  self.public_operations = [:post]
9
9
  self.filters = []
10
- self.properties = []
10
+ self.resourceprop = []
11
11
 
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/domainstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :domain, :id, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :domain, :id, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/eventcallbackurl'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:api_key, :backup, :event_type, :status, :version]
9
- self.properties = [:api_key, :event_type, :id, :is_backup, :status, :url, :version]
9
+ self.resourceprop = [:api_key, :event_type, :id, :is_backup, :status, :url, :version]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/geostatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:clicked_count, :country, :opened_count]
9
+ self.resourceprop = [:clicked_count, :country, :opened_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/graphstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contact, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :scale, :to_ts]
9
- self.properties = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :opened_count, :processed_count, :queued_count, :ref_timestamp, :sendtime_start, :spamcomplaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :opened_count, :processed_count, :queued_count, :ref_timestamp, :sendtime_start, :spamcomplaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/listrecipient'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:active, :blocked, :contact, :contact_email, :contacts_list, :last_activity_at, :list_name, :opened, :status, :unsub]
9
- self.properties = [:contact, :id, :is_active, :is_unsubscribed, :list, :unsubscribed_at, :contact_id, :list_id, 'ContactID', 'ListID', 'ContactALT', 'ListALT']
9
+ self.resourceprop = [:contact, :id, :is_active, :is_unsubscribed, :list, :unsubscribed_at, :contact_id, :list_id, 'ContactID', 'ListID', 'ContactALT', 'ListALT']
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/listrecipientstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:blocked, :bounced, :click, :contact, :contacts_list, :is_active, :is_unsubscribed, :last_activity_at, :max_last_activity_at, :max_unsubscribed_at, :min_last_activity_at, :min_unsubscribed_at, :open, :queued, :sent, :show_extra_data, :spam, :unsubscribed]
9
- self.properties = [:blocked_count, :bounced_count, :clicked_count, :data, :delivered_count, :last_activity_at, :list_recipient, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :clicked_count, :data, :delivered_count, :last_activity_at, :list_recipient, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/liststatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:address, :calc_active_unsub, :exclude_id, :is_deleted, :name]
9
- self.properties = [:active_count, :active_unsubscribed_count, :address, :blocked_count, :bounced_count, :clicked_count, :created_at, :delivered_count, :id, :is_deleted, :last_activity_at, :name, :opened_count, :spam_complaint_count, :subscriber_count, :unsubscribed_count]
9
+ self.resourceprop = [:active_count, :active_unsubscribed_count, :address, :blocked_count, :bounced_count, :clicked_count, :created_at, :delivered_count, :id, :is_deleted, :last_activity_at, :name, :opened_count, :spam_complaint_count, :subscriber_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/manycontacts'
7
7
  self.public_operations = [:post]
8
8
  self.filters = []
9
- self.properties = [:action, :addresses, :errors, :force, :list_id, :recipients]
9
+ self.resourceprop = [:action, :addresses, :errors, :force, :list_id, :recipients]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/message'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign, :contact, :destination, :message_state, :plan_subscription, :sender]
9
- self.properties = [:arrived_at, :attachment_count, :attempt_count, :campaign, :contact, :delay, :destination, :filter_time, :from, :id, :is_click_tracked, :is_html_part_included, :is_open_tracked, :is_text_part_included, :is_unsub_tracked, :message_size, :spamassassin_score, :spamass_rules, :state, :state_permanent, :status]
9
+ self.resourceprop = [:arrived_at, :attachment_count, :attempt_count, :campaign, :contact, :delay, :destination, :filter_time, :from, :id, :is_click_tracked, :is_html_part_included, :is_open_tracked, :is_text_part_included, :is_unsub_tracked, :message_size, :spamassassin_score, :spamass_rules, :state, :state_permanent, :status]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/messagehistory'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:message]
9
- self.properties = [:event_at, :event_type, :useragent]
9
+ self.resourceprop = [:event_at, :event_type, :useragent]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/messageinformation'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:campaign, :click_tracked_count, :contact, :created_at, :id, :message_size, :open_tracked_count, :queued_count, :send_end_at, :sent_count, :spam_assassin_rules, :spam_assassin_score]
9
+ self.resourceprop = [:campaign, :click_tracked_count, :contact, :created_at, :id, :message_size, :open_tracked_count, :queued_count, :send_end_at, :sent_count, :spam_assassin_rules, :spam_assassin_score]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/messagesentstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:all_messages, :campaign_id, :campaign_status, :contact, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:arrival_ts, :blocked, :bounce, :campaign, :click, :cnt_recipients, :contact, :message_id, :open, :queued, :sent, :spam, :state, :state_permanent, :status]
9
+ self.resourceprop = [:arrival_ts, :blocked, :bounce, :campaign, :click, :cnt_recipients, :contact, :message_id, :open, :queued, :sent, :spam, :state, :state_permanent, :status]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/messagestate'
7
7
  self.public_operations = [:get]
8
8
  self.filters = []
9
- self.properties = [:id, :related_to, :state]
9
+ self.resourceprop = [:id, :related_to, :state]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/messagestatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contact_email, :contact_id, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:average_click_delay, :average_clicked_count, :average_open_delay, :average_opened_count, :blocked_count, :bounced_count, :campaign_count, :clicked_count, :delivered_count, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :transactional_count, :unsubscribed_count]
9
+ self.resourceprop = [:average_click_delay, :average_clicked_count, :average_open_delay, :average_opened_count, :blocked_count, :bounced_count, :campaign_count, :clicked_count, :delivered_count, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :transactional_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/metadata'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:public_resources, :read_only_resources, :resource_name]
9
- self.properties = [:description, :filters, :is_read_only, :name, :private_operations, :properties, :public_operations, :sort_info, :unique_key]
9
+ self.resourceprop = [:description, :filters, :is_read_only, :name, :private_operations, :properties, :public_operations, :sort_info, :unique_key]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/metasender'
7
7
  self.public_operations = [:get, :put, :post]
8
8
  self.filters = [:dns, :user]
9
- self.properties = [:created_at, :description, :email, :filename, :id, :is_enabled]
9
+ self.resourceprop = [:created_at, :description, :email, :filename, :id, :is_enabled]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/myprofile'
7
7
  self.public_operations = [:get, :put]
8
8
  self.filters = [:user]
9
- self.properties = [:address_city, :address_country, :address_postal_code, :address_street, :billing_email, :birthday_at, :company_name, :contact_phone, :estimated_volume, :features, :firstname, :id, :industry, :lastname, :user, :vat, :vat_number, :website]
9
+ self.resourceprop = [:address_city, :address_country, :address_postal_code, :address_street, :billing_email, :birthday_at, :company_name, :contact_phone, :estimated_volume, :features, :firstname, :id, :industry, :lastname, :user, :vat, :vat_number, :website]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newsletter'
7
7
  self.public_operations = [:get, :put, :post]
8
8
  self.filters = [:campaign, :contacts_list, :delivered_at, :edit_mode, :is_archived, :is_campaign, :is_deleted, :is_handled, :is_starred, :modified, :news_letter_template, :segmentation, :status, :subject]
9
- self.properties = [:callback, :campaign, :contacts_list, :created_at, :delivered_at, :edit_mode, :edit_type, :footer, :footer_address, :footer_wysiwyg_type, :header_filename, :header_link, :header_text, :header_url, :id, :ip, :is_handled, :is_starred, :is_text_part_included, :locale, :modified_at, :permalink, :permalink_host, :permalink_wysiwyg_type, :politeness_mode, :reply_email, :segmentation, :sender, :sender_email, :sender_name, :status, :subject, :template, :test_address, :title, :url, 'CampaignID', 'CampaignALT', 'ContactsListID', 'ContactsListALT', 'SegmentationID', 'SegmentationALT']
9
+ self.resourceprop = [:callback, :campaign, :contacts_list, :created_at, :delivered_at, :edit_mode, :edit_type, :footer, :footer_address, :footer_wysiwyg_type, :header_filename, :header_link, :header_text, :header_url, :id, :ip, :is_handled, :is_starred, :is_text_part_included, :locale, :modified_at, :permalink, :permalink_host, :permalink_wysiwyg_type, :politeness_mode, :reply_email, :segmentation, :sender, :sender_email, :sender_name, :status, :subject, :template, :test_address, :title, :url, 'CampaignID', 'CampaignALT', 'ContactsListID', 'ContactsListALT', 'SegmentationID', 'SegmentationALT']
10
10
 
11
11
  end
12
12
  end
@@ -7,7 +7,7 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/newsletter/id/#{self.action}"
8
8
  self.public_operations = [:get, :put, :post, :delete]
9
9
  self.filters = []
10
- self.properties = ["Text-part", "Html-part"]
10
+ self.resourceprop = ["Text-part", "Html-part"]
11
11
 
12
12
  end
13
13
  end
@@ -7,7 +7,7 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/newsletter/id/#{self.action}"
8
8
  self.public_operations = [:post, :delete]
9
9
  self.filters = []
10
- self.properties = [:date]
10
+ self.resourceprop = [:date]
11
11
 
12
12
  end
13
13
  end
@@ -7,6 +7,6 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/newsletter/id/#{self.action}"
8
8
  self.public_operations = [:post]
9
9
  self.filters = []
10
- self.properties = []
10
+ self.resourceprop = []
11
11
  end
12
12
  end
@@ -7,7 +7,7 @@ module Mailjet
7
7
  self.resource_path = "v3/REST/newsletter/id/#{self.action}"
8
8
  self.public_operations = [:post]
9
9
  self.filters = []
10
- self.properties = [:email, :name]
10
+ self.resourceprop = [:email, :name]
11
11
 
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newsletterblock'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:news_letter]
9
- self.properties = [:align, :alt, :block_type, :color, :content, :filename, :fontfamily, :fontsize, :id, :line, :link, :news_letter, :pos, :siblings, :src_height, :src_width, :url, :width]
9
+ self.resourceprop = [:align, :alt, :block_type, :color, :content, :filename, :fontfamily, :fontsize, :id, :line, :link, :news_letter, :pos, :siblings, :src_height, :src_width, :url, :width]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newsletterproperties'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:news_letter]
9
- self.properties = [:id, :name, :news_letter, :property_name, :selector, :value]
9
+ self.resourceprop = [:id, :name, :news_letter, :property_name, :selector, :value]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newslettertemplate'
7
7
  self.public_operations = [:get, :put, :post]
8
8
  self.filters = [:is_public, :news_letter_template_category]
9
- self.properties = [:category, :created_at, :footer, :footer_address, :footer_wysiwyg_type, :header_filename, :header_link, :header_text, :header_url, :id, :locale, :name, :permalink, :permalink_wysiwyg_type, :source_news_letter_id, :status]
9
+ self.resourceprop = [:category, :created_at, :footer, :footer_address, :footer_wysiwyg_type, :header_filename, :header_link, :header_text, :header_url, :id, :locale, :name, :permalink, :permalink_wysiwyg_type, :source_news_letter_id, :status]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newslettertemplateblock'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:news_letter_template]
9
- self.properties = [:align, :alt, :block_type, :color, :content, :filename, :fontfamily, :fontsize, :id, :line, :link, :pos, :siblings, :src_height, :src_width, :template, :url, :width]
9
+ self.resourceprop = [:align, :alt, :block_type, :color, :content, :filename, :fontfamily, :fontsize, :id, :line, :link, :pos, :siblings, :src_height, :src_width, :template, :url, :width]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newslettertemplatecategory'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:locale]
9
- self.properties = [:description, :id, :locale, :parent_category, :value]
9
+ self.resourceprop = [:description, :id, :locale, :parent_category, :value]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/newslettertemplateproperties'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:news_letter_template]
9
- self.properties = [:id, :name, :property_name, :selector, :template, :value]
9
+ self.resourceprop = [:id, :name, :property_name, :selector, :template, :value]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/openinformation'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:arrived_at, :campaign, :contact, :id, :message_id, :opened_at, :user_agent, :user_agent_full]
9
+ self.resourceprop = [:arrived_at, :campaign, :contact, :id, :message_id, :opened_at, :user_agent, :user_agent_full]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/openstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
- self.properties = [:opened_count, :opened_delay, :processed_count]
9
+ self.resourceprop = [:opened_count, :opened_delay, :processed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/parseroute'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:api_key]
9
- self.properties = [:api_key, :email, :id, :url]
9
+ self.resourceprop = [:api_key, :email, :id, :url]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/preferences'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:user]
9
- self.properties = [:id, :key, :user, :value]
9
+ self.resourceprop = [:id, :key, :user, :value]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/sender'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:confirm_key, :domain, :email, :local_part, :show_deleted, :status]
9
- self.properties = [:confirm_key, :created_at, :dns, :email, :email_type, :filename, :id, :is_default_sender, :name, :status]
9
+ self.resourceprop = [:confirm_key, :created_at, :dns, :email, :email_type, :filename, :id, :is_default_sender, :name, :status]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/senderstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:domain, :email, :sender]
9
- self.properties = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :last_activity_at, :opened_count, :processed_count, :queued_count, :sender, :spam_complaint_count, :unsubscribed_count]
9
+ self.resourceprop = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :last_activity_at, :opened_count, :processed_count, :queued_count, :sender, :spam_complaint_count, :unsubscribed_count]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/toplinkclicked'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contact, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message, :period, :to_ts]
9
- self.properties = [:clicked_count, :id, :link_id, :url]
9
+ self.resourceprop = [:clicked_count, :id, :link_id, :url]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/trigger'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:event, :min_added_ts]
9
- self.properties = [:added_ts, :api_key, :details, :event, :id, :user]
9
+ self.resourceprop = [:added_ts, :api_key, :details, :event, :id, :user]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/user'
7
7
  self.public_operations = [:get, :put]
8
8
  self.filters = [:is_activated, :new_email, :user_name]
9
- self.properties = [:created_at, :email, :id, :is_rules_accepted, :last_ip, :last_login_at, :locale, :max_allowed_api_keys, :timezone, :username, :warned_ratelimit_at]
9
+ self.resourceprop = [:created_at, :email, :id, :is_rules_accepted, :last_ip, :last_login_at, :locale, :max_allowed_api_keys, :timezone, :username, :warned_ratelimit_at]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/useragentstatistics'
7
7
  self.public_operations = [:get]
8
8
  self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :event, :exclude_platform, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :period, :platform, :to_ts]
9
- self.properties = [:count, :distinct_count, :platform, :user_agent]
9
+ self.resourceprop = [:count, :distinct_count, :platform, :user_agent]
10
10
 
11
11
  self.read_only = true
12
12
 
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/widget'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:active, :api_key, :contacts_list, :locale, :message_template, :sender]
9
- self.properties = [:created_at, :from, :id, :is_active, :list, :locale, :name, :replyto, :sendername, :subject, :template]
9
+ self.resourceprop = [:created_at, :from, :id, :is_active, :list, :locale, :name, :replyto, :sendername, :subject, :template]
10
10
 
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Mailjet
6
6
  self.resource_path = 'v3/REST/widgetcustomvalue'
7
7
  self.public_operations = [:get, :put, :post, :delete]
8
8
  self.filters = [:name, :widget]
9
- self.properties = [:api_key, :display, :id, :name, :value, :widget]
9
+ self.resourceprop = [:api_key, :display, :id, :name, :value, :widget]
10
10
 
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailjet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Nappy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-08-20 00:00:00.000000000 Z
14
+ date: 2015-11-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -375,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
375
  version: '0'
376
376
  requirements: []
377
377
  rubyforge_project:
378
- rubygems_version: 2.4.5
378
+ rubygems_version: 2.4.8
379
379
  signing_key:
380
380
  specification_version: 4
381
381
  summary: Mailjet a powerful all-in-one email service provider clients can use to get