sib-api-v3-sdk 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 973ba202b9197a44a95a6e80d9171c9c2d0bd421
4
- data.tar.gz: ba778c105779cffdc8a4be846aa41d90e99c0986
3
+ metadata.gz: feebdbb2a3934137395d706ad63fc4da35de5e63
4
+ data.tar.gz: 080443333cf2847b80337bdb51e9b48c36de8e07
5
5
  SHA512:
6
- metadata.gz: 49937db53f14ef81b0ac9c45c9e4bf8d723aa0e3266c5fa62f5ca19cc940527fbd24745c7bd6c95acfe5a6149e3f14b6d86576c63a638c69155280e26869f10a
7
- data.tar.gz: 5a94b714a5d542f440501805865f1c95a6d0864fbdb1a892cdcd43e17a95ebc63a1b67a82e4df1332a8a6b7496539aaa2405d2e663fc52f2ba156b989d10de1b
6
+ metadata.gz: 92d0b92e1c890ef974b53564dac16a884660a2f28b7c06291767d4f74de7012fe9c881a7af2d83185ab088fbd336203e15a723547d9727e3b86d95dd726129f1
7
+ data.tar.gz: d685ea4df40639c68d1ad6597a107a3692436645cb9dc644bcef48c463542204500075c6a2be8c314a671ef1b2d871d07170486105a51070f06a41a24f75477a
data/docs/ContactsApi.md CHANGED
@@ -617,7 +617,8 @@ api_instance = SibApiV3Sdk::ContactsApi.new
617
617
 
618
618
  opts = {
619
619
  limit: 50, # Integer | Number of documents per page
620
- offset: 0 # Integer | Index of the first document of the page
620
+ offset: 0, # Integer | Index of the first document of the page
621
+ modified_since: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
621
622
  }
622
623
 
623
624
  begin
@@ -635,6 +636,7 @@ Name | Type | Description | Notes
635
636
  ------------- | ------------- | ------------- | -------------
636
637
  **limit** | **Integer**| Number of documents per page | [optional] [default to 50]
637
638
  **offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
639
+ **modified_since** | **DateTime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
638
640
 
639
641
  ### Return type
640
642
 
@@ -4,13 +4,14 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **email** | **String** | Email address which generates the event |
7
- **date** | **Date** | Date on which the event has been generated |
7
+ **date** | **DateTime** | Date on which the event has been generated |
8
8
  **subject** | **String** | Subject of the event | [optional]
9
9
  **message_id** | **String** | Message ID which generated the event |
10
10
  **event** | **String** | Event which occurred |
11
- **reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) |
11
+ **reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional]
12
12
  **tag** | **String** | Tag of the email which generated the event |
13
13
  **ip** | **String** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional]
14
14
  **link** | **String** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional]
15
+ **from** | **String** | Sender email from which the emails are sent |
15
16
 
16
17
 
@@ -627,6 +627,7 @@ module SibApiV3Sdk
627
627
  # @param [Hash] opts the optional parameters
628
628
  # @option opts [Integer] :limit Number of documents per page (default to 50)
629
629
  # @option opts [Integer] :offset Index of the first document of the page (default to 0)
630
+ # @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
630
631
  # @return [GetContacts]
631
632
  def get_contacts(opts = {})
632
633
  data, _status_code, _headers = get_contacts_with_http_info(opts)
@@ -638,6 +639,7 @@ module SibApiV3Sdk
638
639
  # @param [Hash] opts the optional parameters
639
640
  # @option opts [Integer] :limit Number of documents per page
640
641
  # @option opts [Integer] :offset Index of the first document of the page
642
+ # @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
641
643
  # @return [Array<(GetContacts, Fixnum, Hash)>] GetContacts data, response status code and response headers
642
644
  def get_contacts_with_http_info(opts = {})
643
645
  if @api_client.config.debugging
@@ -654,6 +656,7 @@ module SibApiV3Sdk
654
656
  query_params = {}
655
657
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
656
658
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
659
+ query_params[:'modifiedSince'] = opts[:'modified_since'] if !opts[:'modified_since'].nil?
657
660
 
658
661
  # header parameters
659
662
  header_params = {}
@@ -42,6 +42,9 @@ module SibApiV3Sdk
42
42
  # The link which is sent to the user (only available if the event is requests or opened or clicks)
43
43
  attr_accessor :link
44
44
 
45
+ # Sender email from which the emails are sent
46
+ attr_accessor :from
47
+
45
48
  class EnumAttributeValidator
46
49
  attr_reader :datatype
47
50
  attr_reader :allowable_values
@@ -75,7 +78,8 @@ module SibApiV3Sdk
75
78
  :'reason' => :'reason',
76
79
  :'tag' => :'tag',
77
80
  :'ip' => :'ip',
78
- :'link' => :'link'
81
+ :'link' => :'link',
82
+ :'from' => :'from'
79
83
  }
80
84
  end
81
85
 
@@ -83,14 +87,15 @@ module SibApiV3Sdk
83
87
  def self.swagger_types
84
88
  {
85
89
  :'email' => :'String',
86
- :'date' => :'Date',
90
+ :'date' => :'DateTime',
87
91
  :'subject' => :'String',
88
92
  :'message_id' => :'String',
89
93
  :'event' => :'String',
90
94
  :'reason' => :'String',
91
95
  :'tag' => :'String',
92
96
  :'ip' => :'String',
93
- :'link' => :'String'
97
+ :'link' => :'String',
98
+ :'from' => :'String'
94
99
  }
95
100
  end
96
101
 
@@ -138,6 +143,10 @@ module SibApiV3Sdk
138
143
  self.link = attributes[:'link']
139
144
  end
140
145
 
146
+ if attributes.has_key?(:'from')
147
+ self.from = attributes[:'from']
148
+ end
149
+
141
150
  end
142
151
 
143
152
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -160,14 +169,14 @@ module SibApiV3Sdk
160
169
  invalid_properties.push("invalid value for 'event', event cannot be nil.")
161
170
  end
162
171
 
163
- if @reason.nil?
164
- invalid_properties.push("invalid value for 'reason', reason cannot be nil.")
165
- end
166
-
167
172
  if @tag.nil?
168
173
  invalid_properties.push("invalid value for 'tag', tag cannot be nil.")
169
174
  end
170
175
 
176
+ if @from.nil?
177
+ invalid_properties.push("invalid value for 'from', from cannot be nil.")
178
+ end
179
+
171
180
  return invalid_properties
172
181
  end
173
182
 
@@ -180,8 +189,8 @@ module SibApiV3Sdk
180
189
  return false if @event.nil?
181
190
  event_validator = EnumAttributeValidator.new('String', ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked"])
182
191
  return false unless event_validator.valid?(@event)
183
- return false if @reason.nil?
184
192
  return false if @tag.nil?
193
+ return false if @from.nil?
185
194
  return true
186
195
  end
187
196
 
@@ -208,7 +217,8 @@ module SibApiV3Sdk
208
217
  reason == o.reason &&
209
218
  tag == o.tag &&
210
219
  ip == o.ip &&
211
- link == o.link
220
+ link == o.link &&
221
+ from == o.from
212
222
  end
213
223
 
214
224
  # @see the `==` method
@@ -220,7 +230,7 @@ module SibApiV3Sdk
220
230
  # Calculates hash code according to all attributes.
221
231
  # @return [Fixnum] Hash code
222
232
  def hash
223
- [email, date, subject, message_id, event, reason, tag, ip, link].hash
233
+ [email, date, subject, message_id, event, reason, tag, ip, link, from].hash
224
234
  end
225
235
 
226
236
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.2.3
11
11
  =end
12
12
 
13
13
  module SibApiV3Sdk
14
- VERSION = "2.1.1"
14
+ VERSION = "2.1.2"
15
15
  end
@@ -170,6 +170,7 @@ describe 'ContactsApi' do
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [Integer] :limit Number of documents per page
172
172
  # @option opts [Integer] :offset Index of the first document of the page
173
+ # @option opts [DateTime] :modified_since Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
173
174
  # @return [GetContacts]
174
175
  describe 'get_contacts test' do
175
176
  it "should work" do
@@ -90,5 +90,11 @@ describe 'GetEmailEventReportEvents' do
90
90
  end
91
91
  end
92
92
 
93
+ describe 'test attribute "from"' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
93
99
  end
94
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sib-api-v3-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - SendinBlue Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-23 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus