zyphr 0.1.4 → 0.1.6

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
  SHA256:
3
- metadata.gz: 87596d5ffc1c14924ef0e9c02cedb97105ad29ed455925d2858f1eaca247b97d
4
- data.tar.gz: 6930382672eaca26a1be3fd68542d3bf4eef305cb59dc54e3a000ec0aeddee3c
3
+ metadata.gz: b823181930cbf53122e8740c542669b5a33e71ec29077e19f41d48cd78730c9e
4
+ data.tar.gz: b6ea90bdf625440428ef2c99802f2419fe14522bce62a4a9261ff32a6d2ad8d3
5
5
  SHA512:
6
- metadata.gz: 4ee32b11d8db910e1e9cc701869e971e5f97e5d0c1f2e39d7613a6425b1ad6123baef48c9f3331a478653648b16a36eb7002a875ed68149174b02edc7692a03d
7
- data.tar.gz: c287d5191ef460c8ca7baaab2cebef9441e62eecad5081526c5d3ecb183018c110fa93a87a284c2294fe51d3680e35ccd4901ee00bb160d2f147c9f0dc6cbc8f
6
+ metadata.gz: f1209847c55c3b00bda91aea08eab10fdd145afe96febe5d2fafb6be85a9f1cbe2417a3104a6e5ec328de68730f9e62fef7b2b2b4f2ad85c36d87b17badff1ec
7
+ data.tar.gz: 50471d0a92bf1d6f36b9217ec0f3396d4d4a64d8070f7d589aea1856283514b3c1f37f5141d785bdff69b9106e8b73a740c288a960f59e07f49b642eed854e2e
data/README.md CHANGED
@@ -444,7 +444,7 @@ Class | Method | HTTP request | Description
444
444
  - [Zyphr::PushListResponse](docs/PushListResponse.md)
445
445
  - [Zyphr::PushMessage](docs/PushMessage.md)
446
446
  - [Zyphr::PushMessageDetail](docs/PushMessageDetail.md)
447
- - [Zyphr::PushPayload](docs/PushPayload.md)
447
+ - [Zyphr::PushMessageDetailAllOfActionButtons](docs/PushMessageDetailAllOfActionButtons.md)
448
448
  - [Zyphr::PushStatsData](docs/PushStatsData.md)
449
449
  - [Zyphr::PushStatsResponse](docs/PushStatsResponse.md)
450
450
  - [Zyphr::PushTopicDevice](docs/PushTopicDevice.md)
@@ -490,6 +490,7 @@ Class | Method | HTTP request | Description
490
490
  - [Zyphr::SendInAppRequest](docs/SendInAppRequest.md)
491
491
  - [Zyphr::SendInAppResponse](docs/SendInAppResponse.md)
492
492
  - [Zyphr::SendPushRequest](docs/SendPushRequest.md)
493
+ - [Zyphr::SendPushRequestActionButtonsInner](docs/SendPushRequestActionButtonsInner.md)
493
494
  - [Zyphr::SendPushResponse](docs/SendPushResponse.md)
494
495
  - [Zyphr::SendPushResponseData](docs/SendPushResponseData.md)
495
496
  - [Zyphr::SendPushToTopicData](docs/SendPushToTopicData.md)
data/docs/Device.md CHANGED
@@ -5,14 +5,13 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **subscriber_id** | **String** | | [optional] |
8
+ | **user_id** | **String** | | [optional] |
9
9
  | **platform** | **String** | | [optional] |
10
- | **app_version** | **String** | | [optional] |
11
- | **device_model** | **String** | | [optional] |
12
- | **os_version** | **String** | | [optional] |
13
- | **status** | **String** | | [optional] |
10
+ | **token** | **String** | | [optional] |
11
+ | **metadata** | **Hash<String, Object>** | | [optional] |
12
+ | **last_active_at** | **Time** | | [optional] |
14
13
  | **created_at** | **Time** | | [optional] |
15
- | **last_seen_at** | **Time** | | [optional] |
14
+ | **updated_at** | **Time** | | [optional] |
16
15
 
17
16
  ## Example
18
17
 
@@ -21,14 +20,13 @@ require 'zyphr'
21
20
 
22
21
  instance = Zyphr::Device.new(
23
22
  id: null,
24
- subscriber_id: null,
23
+ user_id: null,
25
24
  platform: null,
26
- app_version: null,
27
- device_model: null,
28
- os_version: null,
29
- status: null,
25
+ token: null,
26
+ metadata: null,
27
+ last_active_at: null,
30
28
  created_at: null,
31
- last_seen_at: null
29
+ updated_at: null
32
30
  )
33
31
  ```
34
32
 
data/docs/DeviceStats.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **total** | **Integer** | | [optional] |
8
8
  | **by_platform** | **Hash<String, Integer>** | | [optional] |
9
+ | **active30_days** | **Integer** | | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'zyphr'
14
15
 
15
16
  instance = Zyphr::DeviceStats.new(
16
17
  total: null,
17
- by_platform: null
18
+ by_platform: null,
19
+ active30_days: null
18
20
  )
19
21
  ```
20
22
 
data/docs/DevicesApi.md CHANGED
@@ -394,7 +394,7 @@ Zyphr.configure do |config|
394
394
  end
395
395
 
396
396
  api_instance = Zyphr::DevicesApi.new
397
- register_device_request = Zyphr::RegisterDeviceRequest.new({platform: 'ios', token: 'token_example'}) # RegisterDeviceRequest |
397
+ register_device_request = Zyphr::RegisterDeviceRequest.new({user_id: 'user_id_example', platform: 'ios', token: 'token_example'}) # RegisterDeviceRequest |
398
398
 
399
399
  begin
400
400
  # Register a device
data/docs/PushApi.md CHANGED
@@ -405,7 +405,7 @@ Zyphr.configure do |config|
405
405
  end
406
406
 
407
407
  api_instance = Zyphr::PushApi.new
408
- send_push_request = Zyphr::SendPushRequest.new({payload: Zyphr::PushPayload.new({title: 'New Message', body: 'You have a new notification'})}) # SendPushRequest |
408
+ send_push_request = Zyphr::SendPushRequest.new # SendPushRequest |
409
409
 
410
410
  begin
411
411
  # Send a push notification
data/docs/PushMessage.md CHANGED
@@ -6,14 +6,17 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
8
  | **device_id** | **String** | | [optional] |
9
- | **subscriber_id** | **String** | | [optional] |
9
+ | **user_id** | **String** | | [optional] |
10
+ | **platform** | **String** | | [optional] |
10
11
  | **title** | **String** | | [optional] |
11
12
  | **body** | **String** | | [optional] |
13
+ | **data** | **Hash<String, Object>** | | [optional] |
12
14
  | **status** | **String** | | [optional] |
13
- | **platform** | **String** | | [optional] |
14
- | **created_at** | **Time** | | [optional] |
15
+ | **tags** | **Array<String>** | | [optional] |
16
+ | **queued_at** | **Time** | | [optional] |
15
17
  | **sent_at** | **Time** | | [optional] |
16
18
  | **delivered_at** | **Time** | | [optional] |
19
+ | **created_at** | **Time** | | [optional] |
17
20
 
18
21
  ## Example
19
22
 
@@ -23,14 +26,17 @@ require 'zyphr'
23
26
  instance = Zyphr::PushMessage.new(
24
27
  id: null,
25
28
  device_id: null,
26
- subscriber_id: null,
29
+ user_id: null,
30
+ platform: null,
27
31
  title: null,
28
32
  body: null,
33
+ data: null,
29
34
  status: null,
30
- platform: null,
31
- created_at: null,
35
+ tags: null,
36
+ queued_at: null,
32
37
  sent_at: null,
33
- delivered_at: null
38
+ delivered_at: null,
39
+ created_at: null
34
40
  )
35
41
  ```
36
42
 
@@ -6,25 +6,26 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
8
  | **device_id** | **String** | | [optional] |
9
- | **subscriber_id** | **String** | | [optional] |
9
+ | **user_id** | **String** | | [optional] |
10
+ | **platform** | **String** | | [optional] |
10
11
  | **title** | **String** | | [optional] |
11
12
  | **body** | **String** | | [optional] |
13
+ | **data** | **Hash<String, Object>** | | [optional] |
12
14
  | **status** | **String** | | [optional] |
13
- | **platform** | **String** | | [optional] |
14
- | **created_at** | **Time** | | [optional] |
15
+ | **tags** | **Array<String>** | | [optional] |
16
+ | **queued_at** | **Time** | | [optional] |
15
17
  | **sent_at** | **Time** | | [optional] |
16
18
  | **delivered_at** | **Time** | | [optional] |
19
+ | **created_at** | **Time** | | [optional] |
17
20
  | **batch_id** | **String** | | [optional] |
18
- | **user_id** | **String** | | [optional] |
19
- | **data** | **Hash<String, Object>** | | [optional] |
20
- | **badge** | **String** | | [optional] |
21
+ | **badge** | **Integer** | | [optional] |
21
22
  | **sound** | **String** | | [optional] |
22
23
  | **image_url** | **String** | | [optional] |
24
+ | **content_available** | **Boolean** | | [optional] |
25
+ | **action_buttons** | [**Array<PushMessageDetailAllOfActionButtons>**](PushMessageDetailAllOfActionButtons.md) | | [optional] |
23
26
  | **status_reason** | **String** | | [optional] |
24
27
  | **provider_message_id** | **String** | | [optional] |
25
- | **tags** | **Array<String>** | | [optional] |
26
28
  | **metadata** | **Hash<String, Object>** | | [optional] |
27
- | **queued_at** | **Time** | | [optional] |
28
29
  | **failed_at** | **Time** | | [optional] |
29
30
  | **events** | [**Array<PushEvent>**](PushEvent.md) | | [optional] |
30
31
 
@@ -36,25 +37,26 @@ require 'zyphr'
36
37
  instance = Zyphr::PushMessageDetail.new(
37
38
  id: null,
38
39
  device_id: null,
39
- subscriber_id: null,
40
+ user_id: null,
41
+ platform: null,
40
42
  title: null,
41
43
  body: null,
44
+ data: null,
42
45
  status: null,
43
- platform: null,
44
- created_at: null,
46
+ tags: null,
47
+ queued_at: null,
45
48
  sent_at: null,
46
49
  delivered_at: null,
50
+ created_at: null,
47
51
  batch_id: null,
48
- user_id: null,
49
- data: null,
50
52
  badge: null,
51
53
  sound: null,
52
54
  image_url: null,
55
+ content_available: null,
56
+ action_buttons: null,
53
57
  status_reason: null,
54
58
  provider_message_id: null,
55
- tags: null,
56
59
  metadata: null,
57
- queued_at: null,
58
60
  failed_at: null,
59
61
  events: null
60
62
  )
@@ -0,0 +1,24 @@
1
+ # Zyphr::PushMessageDetailAllOfActionButtons
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **title** | **String** | | [optional] |
9
+ | **action** | **String** | | [optional] |
10
+ | **deep_link** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::PushMessageDetailAllOfActionButtons.new(
18
+ id: null,
19
+ title: null,
20
+ action: null,
21
+ deep_link: null
22
+ )
23
+ ```
24
+
@@ -4,15 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **subscriber_id** | **String** | | [optional] |
8
- | **external_user_id** | **String** | External ID to look up subscriber | [optional] |
7
+ | **user_id** | **String** | User or subscriber ID to associate with the device | |
9
8
  | **platform** | **String** | | |
10
9
  | **token** | **String** | Push notification token from the device | |
11
- | **app_version** | **String** | | [optional] |
12
- | **device_model** | **String** | | [optional] |
13
- | **os_version** | **String** | | [optional] |
14
- | **timezone** | **String** | | [optional] |
15
- | **locale** | **String** | | [optional] |
10
+ | **metadata** | **Hash<String, Object>** | Additional device metadata | [optional] |
16
11
 
17
12
  ## Example
18
13
 
@@ -20,15 +15,10 @@
20
15
  require 'zyphr'
21
16
 
22
17
  instance = Zyphr::RegisterDeviceRequest.new(
23
- subscriber_id: null,
24
- external_user_id: null,
18
+ user_id: null,
25
19
  platform: null,
26
20
  token: null,
27
- app_version: 1.2.3,
28
- device_model: iPhone 14 Pro,
29
- os_version: 16.1,
30
- timezone: null,
31
- locale: null
21
+ metadata: null
32
22
  )
33
23
  ```
34
24
 
@@ -4,15 +4,25 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **device_id** | **String** | Send to specific device | [optional] |
8
- | **device_ids** | **Array<String>** | Send to multiple devices | [optional] |
9
- | **subscriber_id** | **String** | Send to all subscriber devices | [optional] |
10
- | **topic** | **String** | Send to topic subscribers | [optional] |
11
- | **payload** | [**PushPayload**](PushPayload.md) | | |
12
- | **priority** | **String** | | [optional][default to 'normal'] |
13
- | **ttl** | **Integer** | Time-to-live in seconds | [optional] |
7
+ | **user_id** | **String** | Send to all devices for a user | [optional] |
8
+ | **device_id** | **String** | Send to a specific device | [optional] |
9
+ | **title** | **String** | Push notification title | [optional] |
10
+ | **body** | **String** | Push notification body text | [optional] |
11
+ | **data** | **Hash<String, Object>** | Custom data payload | [optional] |
12
+ | **badge** | **Integer** | Badge count (iOS) | [optional] |
13
+ | **sound** | **String** | Notification sound | [optional] |
14
+ | **image_url** | **String** | Image URL for rich notifications | [optional] |
15
+ | **content_available** | **Boolean** | Silent/background push notification | [optional] |
16
+ | **action_buttons** | [**Array<SendPushRequestActionButtonsInner>**](SendPushRequestActionButtonsInner.md) | Interactive notification buttons (max 3) | [optional] |
17
+ | **tags** | **Array<String>** | | [optional] |
18
+ | **metadata** | **Hash<String, Object>** | | [optional] |
14
19
  | **collapse_key** | **String** | Replace previous notification with same key | [optional] |
15
- | **scheduled_at** | **Time** | | [optional] |
20
+ | **subscriber_id** | **String** | Subscriber ID for preference checking | [optional] |
21
+ | **subscriber_external_id** | **String** | Subscriber external ID for preference checking | [optional] |
22
+ | **category** | **String** | Notification category for preference checking | [optional] |
23
+ | **force** | **Boolean** | Skip subscriber preference checks | [optional] |
24
+ | **send_at** | **Time** | Schedule for future delivery (ISO 8601) | [optional] |
25
+ | **delay** | **Integer** | Delay in seconds before sending | [optional] |
16
26
 
17
27
  ## Example
18
28
 
@@ -20,15 +30,25 @@
20
30
  require 'zyphr'
21
31
 
22
32
  instance = Zyphr::SendPushRequest.new(
33
+ user_id: null,
23
34
  device_id: null,
24
- device_ids: null,
25
- subscriber_id: null,
26
- topic: null,
27
- payload: null,
28
- priority: null,
29
- ttl: null,
35
+ title: New Message,
36
+ body: You have a new notification,
37
+ data: null,
38
+ badge: null,
39
+ sound: default,
40
+ image_url: null,
41
+ content_available: null,
42
+ action_buttons: null,
43
+ tags: null,
44
+ metadata: null,
30
45
  collapse_key: null,
31
- scheduled_at: null
46
+ subscriber_id: null,
47
+ subscriber_external_id: null,
48
+ category: null,
49
+ force: null,
50
+ send_at: null,
51
+ delay: null
32
52
  )
33
53
  ```
34
54
 
@@ -0,0 +1,24 @@
1
+ # Zyphr::SendPushRequestActionButtonsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **title** | **String** | | |
9
+ | **action** | **String** | | [optional] |
10
+ | **deep_link** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zyphr'
16
+
17
+ instance = Zyphr::SendPushRequestActionButtonsInner.new(
18
+ id: null,
19
+ title: null,
20
+ action: null,
21
+ deep_link: null
22
+ )
23
+ ```
24
+
@@ -17,21 +17,19 @@ module Zyphr
17
17
  class Device
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :subscriber_id
20
+ attr_accessor :user_id
21
21
 
22
22
  attr_accessor :platform
23
23
 
24
- attr_accessor :app_version
24
+ attr_accessor :token
25
25
 
26
- attr_accessor :device_model
26
+ attr_accessor :metadata
27
27
 
28
- attr_accessor :os_version
29
-
30
- attr_accessor :status
28
+ attr_accessor :last_active_at
31
29
 
32
30
  attr_accessor :created_at
33
31
 
34
- attr_accessor :last_seen_at
32
+ attr_accessor :updated_at
35
33
 
36
34
  class EnumAttributeValidator
37
35
  attr_reader :datatype
@@ -59,14 +57,13 @@ module Zyphr
59
57
  def self.attribute_map
60
58
  {
61
59
  :'id' => :'id',
62
- :'subscriber_id' => :'subscriber_id',
60
+ :'user_id' => :'user_id',
63
61
  :'platform' => :'platform',
64
- :'app_version' => :'app_version',
65
- :'device_model' => :'device_model',
66
- :'os_version' => :'os_version',
67
- :'status' => :'status',
62
+ :'token' => :'token',
63
+ :'metadata' => :'metadata',
64
+ :'last_active_at' => :'last_active_at',
68
65
  :'created_at' => :'created_at',
69
- :'last_seen_at' => :'last_seen_at'
66
+ :'updated_at' => :'updated_at'
70
67
  }
71
68
  end
72
69
 
@@ -84,25 +81,20 @@ module Zyphr
84
81
  def self.openapi_types
85
82
  {
86
83
  :'id' => :'String',
87
- :'subscriber_id' => :'String',
84
+ :'user_id' => :'String',
88
85
  :'platform' => :'String',
89
- :'app_version' => :'String',
90
- :'device_model' => :'String',
91
- :'os_version' => :'String',
92
- :'status' => :'String',
86
+ :'token' => :'String',
87
+ :'metadata' => :'Hash<String, Object>',
88
+ :'last_active_at' => :'Time',
93
89
  :'created_at' => :'Time',
94
- :'last_seen_at' => :'Time'
90
+ :'updated_at' => :'Time'
95
91
  }
96
92
  end
97
93
 
98
94
  # List of attributes with nullable: true
99
95
  def self.openapi_nullable
100
96
  Set.new([
101
- :'subscriber_id',
102
- :'app_version',
103
- :'device_model',
104
- :'os_version',
105
- :'last_seen_at'
97
+ :'last_active_at',
106
98
  ])
107
99
  end
108
100
 
@@ -126,36 +118,34 @@ module Zyphr
126
118
  self.id = attributes[:'id']
127
119
  end
128
120
 
129
- if attributes.key?(:'subscriber_id')
130
- self.subscriber_id = attributes[:'subscriber_id']
121
+ if attributes.key?(:'user_id')
122
+ self.user_id = attributes[:'user_id']
131
123
  end
132
124
 
133
125
  if attributes.key?(:'platform')
134
126
  self.platform = attributes[:'platform']
135
127
  end
136
128
 
137
- if attributes.key?(:'app_version')
138
- self.app_version = attributes[:'app_version']
139
- end
140
-
141
- if attributes.key?(:'device_model')
142
- self.device_model = attributes[:'device_model']
129
+ if attributes.key?(:'token')
130
+ self.token = attributes[:'token']
143
131
  end
144
132
 
145
- if attributes.key?(:'os_version')
146
- self.os_version = attributes[:'os_version']
133
+ if attributes.key?(:'metadata')
134
+ if (value = attributes[:'metadata']).is_a?(Hash)
135
+ self.metadata = value
136
+ end
147
137
  end
148
138
 
149
- if attributes.key?(:'status')
150
- self.status = attributes[:'status']
139
+ if attributes.key?(:'last_active_at')
140
+ self.last_active_at = attributes[:'last_active_at']
151
141
  end
152
142
 
153
143
  if attributes.key?(:'created_at')
154
144
  self.created_at = attributes[:'created_at']
155
145
  end
156
146
 
157
- if attributes.key?(:'last_seen_at')
158
- self.last_seen_at = attributes[:'last_seen_at']
147
+ if attributes.key?(:'updated_at')
148
+ self.updated_at = attributes[:'updated_at']
159
149
  end
160
150
  end
161
151
 
@@ -173,8 +163,6 @@ module Zyphr
173
163
  warn '[DEPRECATED] the `valid?` method is obsolete'
174
164
  platform_validator = EnumAttributeValidator.new('String', ["ios", "android", "web"])
175
165
  return false unless platform_validator.valid?(@platform)
176
- status_validator = EnumAttributeValidator.new('String', ["active", "inactive"])
177
- return false unless status_validator.valid?(@status)
178
166
  true
179
167
  end
180
168
 
@@ -188,30 +176,19 @@ module Zyphr
188
176
  @platform = platform
189
177
  end
190
178
 
191
- # Custom attribute writer method checking allowed values (enum).
192
- # @param [Object] status Object to be assigned
193
- def status=(status)
194
- validator = EnumAttributeValidator.new('String', ["active", "inactive"])
195
- unless validator.valid?(status)
196
- fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
197
- end
198
- @status = status
199
- end
200
-
201
179
  # Checks equality by comparing each attribute.
202
180
  # @param [Object] Object to be compared
203
181
  def ==(o)
204
182
  return true if self.equal?(o)
205
183
  self.class == o.class &&
206
184
  id == o.id &&
207
- subscriber_id == o.subscriber_id &&
185
+ user_id == o.user_id &&
208
186
  platform == o.platform &&
209
- app_version == o.app_version &&
210
- device_model == o.device_model &&
211
- os_version == o.os_version &&
212
- status == o.status &&
187
+ token == o.token &&
188
+ metadata == o.metadata &&
189
+ last_active_at == o.last_active_at &&
213
190
  created_at == o.created_at &&
214
- last_seen_at == o.last_seen_at
191
+ updated_at == o.updated_at
215
192
  end
216
193
 
217
194
  # @see the `==` method
@@ -223,7 +200,7 @@ module Zyphr
223
200
  # Calculates hash code according to all attributes.
224
201
  # @return [Integer] Hash code
225
202
  def hash
226
- [id, subscriber_id, platform, app_version, device_model, os_version, status, created_at, last_seen_at].hash
203
+ [id, user_id, platform, token, metadata, last_active_at, created_at, updated_at].hash
227
204
  end
228
205
 
229
206
  # Builds the object from hash
@@ -19,11 +19,14 @@ module Zyphr
19
19
 
20
20
  attr_accessor :by_platform
21
21
 
22
+ attr_accessor :active30_days
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'total' => :'total',
26
- :'by_platform' => :'by_platform'
28
+ :'by_platform' => :'byPlatform',
29
+ :'active30_days' => :'active30Days'
27
30
  }
28
31
  end
29
32
 
@@ -41,7 +44,8 @@ module Zyphr
41
44
  def self.openapi_types
42
45
  {
43
46
  :'total' => :'Integer',
44
- :'by_platform' => :'Hash<String, Integer>'
47
+ :'by_platform' => :'Hash<String, Integer>',
48
+ :'active30_days' => :'Integer'
45
49
  }
46
50
  end
47
51
 
@@ -76,6 +80,10 @@ module Zyphr
76
80
  self.by_platform = value
77
81
  end
78
82
  end
83
+
84
+ if attributes.key?(:'active30_days')
85
+ self.active30_days = attributes[:'active30_days']
86
+ end
79
87
  end
80
88
 
81
89
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +107,8 @@ module Zyphr
99
107
  return true if self.equal?(o)
100
108
  self.class == o.class &&
101
109
  total == o.total &&
102
- by_platform == o.by_platform
110
+ by_platform == o.by_platform &&
111
+ active30_days == o.active30_days
103
112
  end
104
113
 
105
114
  # @see the `==` method
@@ -111,7 +120,7 @@ module Zyphr
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Integer] Hash code
113
122
  def hash
114
- [total, by_platform].hash
123
+ [total, by_platform, active30_days].hash
115
124
  end
116
125
 
117
126
  # Builds the object from hash