pingram 1.0.17 → 1.0.19
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pingram/api/account_api.rb +95 -26
- data/lib/pingram/api/members_api.rb +10 -10
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +0 -10
- data/lib/pingram/models/account_get_response.rb +216 -29
- data/lib/pingram/models/auto_join_get_response.rb +16 -16
- data/lib/pingram/models/auto_join_post_response.rb +16 -16
- data/lib/pingram/models/billing_post_response_body.rb +35 -68
- data/lib/pingram/models/{create_organization_request.rb → brand_webhook_response.rb} +28 -13
- data/lib/pingram/models/get_members_response_inner.rb +1 -27
- data/lib/pingram/models/get_usage_history_query.rb +1 -1
- data/lib/pingram/models/{organization_usage_history.rb → get_usage_history_response.rb} +5 -5
- data/lib/pingram/models/{organization_usage_history_items_inner.rb → get_usage_history_response_items_inner.rb} +4 -4
- data/lib/pingram/models/{organization_usage_history_items_inner_counts.rb → get_usage_history_response_items_inner_counts.rb} +3 -3
- data/lib/pingram/models/{organization_usage.rb → get_usage_response.rb} +6 -6
- data/lib/pingram/models/{organization_usage_costs.rb → get_usage_response_costs.rb} +3 -3
- data/lib/pingram/models/{organization_usage_counts.rb → get_usage_response_counts.rb} +3 -3
- data/lib/pingram/models/sender_post_body.rb +1 -13
- data/lib/pingram/models/sender_post_body_options_email.rb +4 -14
- data/lib/pingram/models/ten_dlc_brand_create_request.rb +19 -1
- data/lib/pingram/models/ten_dlc_brand_registration.rb +19 -1
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +599 -0
- data/lib/pingram/models/ten_dlc_brand_update_request.rb +92 -1
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +8 -10
- metadata +10 -12
- data/lib/pingram/api/organization_api.rb +0 -212
- data/lib/pingram/models/create_organization_response.rb +0 -216
- data/lib/pingram/models/organization.rb +0 -463
|
@@ -14,11 +14,11 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# POST /billing response:
|
|
17
|
+
# POST /billing response: account fields + optional Checkout session.
|
|
18
18
|
class BillingPostResponseBody < ApiModelBase
|
|
19
|
-
attr_accessor :
|
|
19
|
+
attr_accessor :account_id
|
|
20
20
|
|
|
21
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :account_type
|
|
22
22
|
|
|
23
23
|
attr_accessor :creator
|
|
24
24
|
|
|
@@ -32,6 +32,7 @@ module Pingram
|
|
|
32
32
|
|
|
33
33
|
attr_accessor :call_cap
|
|
34
34
|
|
|
35
|
+
# When omitted, defaults to LATEST_BILLING_VERSION.
|
|
35
36
|
attr_accessor :billing_version
|
|
36
37
|
|
|
37
38
|
# ISO date (YYYY-MM-DD) when the billing cycle resets.
|
|
@@ -72,8 +73,8 @@ module Pingram
|
|
|
72
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
74
|
def self.attribute_map
|
|
74
75
|
{
|
|
75
|
-
:'
|
|
76
|
-
:'
|
|
76
|
+
:'account_id' => :'accountId',
|
|
77
|
+
:'account_type' => :'accountType',
|
|
77
78
|
:'creator' => :'creator',
|
|
78
79
|
:'name' => :'name',
|
|
79
80
|
:'messages_cap' => :'messagesCap',
|
|
@@ -103,8 +104,8 @@ module Pingram
|
|
|
103
104
|
# Attribute type mapping.
|
|
104
105
|
def self.openapi_types
|
|
105
106
|
{
|
|
106
|
-
:'
|
|
107
|
-
:'
|
|
107
|
+
:'account_id' => :'String',
|
|
108
|
+
:'account_type' => :'String',
|
|
108
109
|
:'creator' => :'String',
|
|
109
110
|
:'name' => :'String',
|
|
110
111
|
:'messages_cap' => :'Float',
|
|
@@ -143,28 +144,24 @@ module Pingram
|
|
|
143
144
|
h[k.to_sym] = v
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
if attributes.key?(:'
|
|
147
|
-
self.
|
|
147
|
+
if attributes.key?(:'account_id')
|
|
148
|
+
self.account_id = attributes[:'account_id']
|
|
148
149
|
else
|
|
149
|
-
self.
|
|
150
|
+
self.account_id = nil
|
|
150
151
|
end
|
|
151
152
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
153
|
+
if attributes.key?(:'account_type')
|
|
154
|
+
self.account_type = attributes[:'account_type']
|
|
154
155
|
else
|
|
155
|
-
self.
|
|
156
|
+
self.account_type = nil
|
|
156
157
|
end
|
|
157
158
|
|
|
158
159
|
if attributes.key?(:'creator')
|
|
159
160
|
self.creator = attributes[:'creator']
|
|
160
|
-
else
|
|
161
|
-
self.creator = nil
|
|
162
161
|
end
|
|
163
162
|
|
|
164
163
|
if attributes.key?(:'name')
|
|
165
164
|
self.name = attributes[:'name']
|
|
166
|
-
else
|
|
167
|
-
self.name = nil
|
|
168
165
|
end
|
|
169
166
|
|
|
170
167
|
if attributes.key?(:'messages_cap')
|
|
@@ -229,20 +226,12 @@ module Pingram
|
|
|
229
226
|
def list_invalid_properties
|
|
230
227
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
231
228
|
invalid_properties = Array.new
|
|
232
|
-
if @
|
|
233
|
-
invalid_properties.push('invalid value for "
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
if @organization_type.nil?
|
|
237
|
-
invalid_properties.push('invalid value for "organization_type", organization_type cannot be nil.')
|
|
229
|
+
if @account_id.nil?
|
|
230
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
|
238
231
|
end
|
|
239
232
|
|
|
240
|
-
if @
|
|
241
|
-
invalid_properties.push('invalid value for "
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
if @name.nil?
|
|
245
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
233
|
+
if @account_type.nil?
|
|
234
|
+
invalid_properties.push('invalid value for "account_type", account_type cannot be nil.')
|
|
246
235
|
end
|
|
247
236
|
|
|
248
237
|
if @messages_cap.nil?
|
|
@@ -276,12 +265,10 @@ module Pingram
|
|
|
276
265
|
# @return true if the model is valid
|
|
277
266
|
def valid?
|
|
278
267
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
279
|
-
return false if @
|
|
280
|
-
return false if @
|
|
281
|
-
|
|
282
|
-
return false unless
|
|
283
|
-
return false if @creator.nil?
|
|
284
|
-
return false if @name.nil?
|
|
268
|
+
return false if @account_id.nil?
|
|
269
|
+
return false if @account_type.nil?
|
|
270
|
+
account_type_validator = EnumAttributeValidator.new('String', ["free", "paid"])
|
|
271
|
+
return false unless account_type_validator.valid?(@account_type)
|
|
285
272
|
return false if @messages_cap.nil?
|
|
286
273
|
return false if @cost_cap.nil?
|
|
287
274
|
billing_version_validator = EnumAttributeValidator.new('Float', [1, 3])
|
|
@@ -294,43 +281,23 @@ module Pingram
|
|
|
294
281
|
end
|
|
295
282
|
|
|
296
283
|
# Custom attribute writer method with validation
|
|
297
|
-
# @param [Object]
|
|
298
|
-
def
|
|
299
|
-
if
|
|
300
|
-
fail ArgumentError, '
|
|
284
|
+
# @param [Object] account_id Value to be assigned
|
|
285
|
+
def account_id=(account_id)
|
|
286
|
+
if account_id.nil?
|
|
287
|
+
fail ArgumentError, 'account_id cannot be nil'
|
|
301
288
|
end
|
|
302
289
|
|
|
303
|
-
@
|
|
290
|
+
@account_id = account_id
|
|
304
291
|
end
|
|
305
292
|
|
|
306
293
|
# Custom attribute writer method checking allowed values (enum).
|
|
307
|
-
# @param [Object]
|
|
308
|
-
def
|
|
294
|
+
# @param [Object] account_type Object to be assigned
|
|
295
|
+
def account_type=(account_type)
|
|
309
296
|
validator = EnumAttributeValidator.new('String', ["free", "paid"])
|
|
310
|
-
unless validator.valid?(
|
|
311
|
-
fail ArgumentError, "invalid value for \"
|
|
312
|
-
end
|
|
313
|
-
@organization_type = organization_type
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
# Custom attribute writer method with validation
|
|
317
|
-
# @param [Object] creator Value to be assigned
|
|
318
|
-
def creator=(creator)
|
|
319
|
-
if creator.nil?
|
|
320
|
-
fail ArgumentError, 'creator cannot be nil'
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
@creator = creator
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
# Custom attribute writer method with validation
|
|
327
|
-
# @param [Object] name Value to be assigned
|
|
328
|
-
def name=(name)
|
|
329
|
-
if name.nil?
|
|
330
|
-
fail ArgumentError, 'name cannot be nil'
|
|
297
|
+
unless validator.valid?(account_type)
|
|
298
|
+
fail ArgumentError, "invalid value for \"account_type\", must be one of #{validator.allowable_values}."
|
|
331
299
|
end
|
|
332
|
-
|
|
333
|
-
@name = name
|
|
300
|
+
@account_type = account_type
|
|
334
301
|
end
|
|
335
302
|
|
|
336
303
|
# Custom attribute writer method with validation
|
|
@@ -408,8 +375,8 @@ module Pingram
|
|
|
408
375
|
def ==(o)
|
|
409
376
|
return true if self.equal?(o)
|
|
410
377
|
self.class == o.class &&
|
|
411
|
-
|
|
412
|
-
|
|
378
|
+
account_id == o.account_id &&
|
|
379
|
+
account_type == o.account_type &&
|
|
413
380
|
creator == o.creator &&
|
|
414
381
|
name == o.name &&
|
|
415
382
|
messages_cap == o.messages_cap &&
|
|
@@ -434,7 +401,7 @@ module Pingram
|
|
|
434
401
|
# Calculates hash code according to all attributes.
|
|
435
402
|
# @return [Integer] Hash code
|
|
436
403
|
def hash
|
|
437
|
-
[
|
|
404
|
+
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, allow_overage, created_at, updated_at, session_id, url].hash
|
|
438
405
|
end
|
|
439
406
|
|
|
440
407
|
# Builds the object from hash
|
|
@@ -14,14 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
attr_accessor :
|
|
17
|
+
# Response for brand Telnyx webhook handler.
|
|
18
|
+
class BrandWebhookResponse < ApiModelBase
|
|
19
|
+
attr_accessor :message
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
22
|
def self.attribute_map
|
|
23
23
|
{
|
|
24
|
-
:'
|
|
24
|
+
:'message' => :'message'
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -38,7 +38,7 @@ module Pingram
|
|
|
38
38
|
# Attribute type mapping.
|
|
39
39
|
def self.openapi_types
|
|
40
40
|
{
|
|
41
|
-
:'
|
|
41
|
+
:'message' => :'String'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,22 +52,22 @@ module Pingram
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::BrandWebhookResponse` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
61
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::BrandWebhookResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
63
|
end
|
|
64
64
|
h[k.to_sym] = v
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
if attributes.key?(:'message')
|
|
68
|
+
self.message = attributes[:'message']
|
|
69
|
+
else
|
|
70
|
+
self.message = nil
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -76,6 +76,10 @@ module Pingram
|
|
|
76
76
|
def list_invalid_properties
|
|
77
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
78
|
invalid_properties = Array.new
|
|
79
|
+
if @message.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
81
|
+
end
|
|
82
|
+
|
|
79
83
|
invalid_properties
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -83,15 +87,26 @@ module Pingram
|
|
|
83
87
|
# @return true if the model is valid
|
|
84
88
|
def valid?
|
|
85
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
+
return false if @message.nil?
|
|
86
91
|
true
|
|
87
92
|
end
|
|
88
93
|
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] message Value to be assigned
|
|
96
|
+
def message=(message)
|
|
97
|
+
if message.nil?
|
|
98
|
+
fail ArgumentError, 'message cannot be nil'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@message = message
|
|
102
|
+
end
|
|
103
|
+
|
|
89
104
|
# Checks equality by comparing each attribute.
|
|
90
105
|
# @param [Object] Object to be compared
|
|
91
106
|
def ==(o)
|
|
92
107
|
return true if self.equal?(o)
|
|
93
108
|
self.class == o.class &&
|
|
94
|
-
|
|
109
|
+
message == o.message
|
|
95
110
|
end
|
|
96
111
|
|
|
97
112
|
# @see the `==` method
|
|
@@ -103,7 +118,7 @@ module Pingram
|
|
|
103
118
|
# Calculates hash code according to all attributes.
|
|
104
119
|
# @return [Integer] Hash code
|
|
105
120
|
def hash
|
|
106
|
-
[
|
|
121
|
+
[message].hash
|
|
107
122
|
end
|
|
108
123
|
|
|
109
124
|
# Builds the object from hash
|
|
@@ -15,8 +15,6 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
class GetMembersResponseInner < ApiModelBase
|
|
18
|
-
attr_accessor :organization_id
|
|
19
|
-
|
|
20
18
|
attr_accessor :account_id
|
|
21
19
|
|
|
22
20
|
attr_accessor :user_id
|
|
@@ -54,7 +52,6 @@ module Pingram
|
|
|
54
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
53
|
def self.attribute_map
|
|
56
54
|
{
|
|
57
|
-
:'organization_id' => :'organizationId',
|
|
58
55
|
:'account_id' => :'accountId',
|
|
59
56
|
:'user_id' => :'userId',
|
|
60
57
|
:'created_at' => :'createdAt',
|
|
@@ -77,7 +74,6 @@ module Pingram
|
|
|
77
74
|
# Attribute type mapping.
|
|
78
75
|
def self.openapi_types
|
|
79
76
|
{
|
|
80
|
-
:'organization_id' => :'String',
|
|
81
77
|
:'account_id' => :'String',
|
|
82
78
|
:'user_id' => :'String',
|
|
83
79
|
:'created_at' => :'String',
|
|
@@ -109,12 +105,6 @@ module Pingram
|
|
|
109
105
|
h[k.to_sym] = v
|
|
110
106
|
}
|
|
111
107
|
|
|
112
|
-
if attributes.key?(:'organization_id')
|
|
113
|
-
self.organization_id = attributes[:'organization_id']
|
|
114
|
-
else
|
|
115
|
-
self.organization_id = nil
|
|
116
|
-
end
|
|
117
|
-
|
|
118
108
|
if attributes.key?(:'account_id')
|
|
119
109
|
self.account_id = attributes[:'account_id']
|
|
120
110
|
else
|
|
@@ -155,10 +145,6 @@ module Pingram
|
|
|
155
145
|
def list_invalid_properties
|
|
156
146
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
157
147
|
invalid_properties = Array.new
|
|
158
|
-
if @organization_id.nil?
|
|
159
|
-
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
160
|
-
end
|
|
161
|
-
|
|
162
148
|
if @account_id.nil?
|
|
163
149
|
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
|
164
150
|
end
|
|
@@ -178,23 +164,12 @@ module Pingram
|
|
|
178
164
|
# @return true if the model is valid
|
|
179
165
|
def valid?
|
|
180
166
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
181
|
-
return false if @organization_id.nil?
|
|
182
167
|
return false if @account_id.nil?
|
|
183
168
|
return false if @user_id.nil?
|
|
184
169
|
return false if @created_at.nil?
|
|
185
170
|
true
|
|
186
171
|
end
|
|
187
172
|
|
|
188
|
-
# Custom attribute writer method with validation
|
|
189
|
-
# @param [Object] organization_id Value to be assigned
|
|
190
|
-
def organization_id=(organization_id)
|
|
191
|
-
if organization_id.nil?
|
|
192
|
-
fail ArgumentError, 'organization_id cannot be nil'
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
@organization_id = organization_id
|
|
196
|
-
end
|
|
197
|
-
|
|
198
173
|
# Custom attribute writer method with validation
|
|
199
174
|
# @param [Object] account_id Value to be assigned
|
|
200
175
|
def account_id=(account_id)
|
|
@@ -230,7 +205,6 @@ module Pingram
|
|
|
230
205
|
def ==(o)
|
|
231
206
|
return true if self.equal?(o)
|
|
232
207
|
self.class == o.class &&
|
|
233
|
-
organization_id == o.organization_id &&
|
|
234
208
|
account_id == o.account_id &&
|
|
235
209
|
user_id == o.user_id &&
|
|
236
210
|
created_at == o.created_at &&
|
|
@@ -248,7 +222,7 @@ module Pingram
|
|
|
248
222
|
# Calculates hash code according to all attributes.
|
|
249
223
|
# @return [Integer] Hash code
|
|
250
224
|
def hash
|
|
251
|
-
[
|
|
225
|
+
[account_id, user_id, created_at, email, groups, enabled_mfas].hash
|
|
252
226
|
end
|
|
253
227
|
|
|
254
228
|
# Builds the object from hash
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Query parameters for GET /
|
|
17
|
+
# Query parameters for GET /account/usage/history
|
|
18
18
|
class GetUsageHistoryQuery < ApiModelBase
|
|
19
19
|
# Start date (YYYY-MM-DD) for the range
|
|
20
20
|
attr_accessor :start_date
|
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Response for GET /
|
|
18
|
-
class
|
|
17
|
+
# Response for GET /account/usage/history
|
|
18
|
+
class GetUsageHistoryResponse < ApiModelBase
|
|
19
19
|
# Array of usage items, one per month in the requested range
|
|
20
20
|
attr_accessor :items
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@ module Pingram
|
|
|
39
39
|
# Attribute type mapping.
|
|
40
40
|
def self.openapi_types
|
|
41
41
|
{
|
|
42
|
-
:'items' => :'Array<
|
|
42
|
+
:'items' => :'Array<GetUsageHistoryResponseItemsInner>'
|
|
43
43
|
}
|
|
44
44
|
end
|
|
45
45
|
|
|
@@ -53,14 +53,14 @@ module Pingram
|
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
54
|
def initialize(attributes = {})
|
|
55
55
|
if (!attributes.is_a?(Hash))
|
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetUsageHistoryResponse` initialize method"
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
60
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
62
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetUsageHistoryResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
64
|
end
|
|
65
65
|
h[k.to_sym] = v
|
|
66
66
|
}
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
# Single usage item in historical response
|
|
18
|
-
class
|
|
18
|
+
class GetUsageHistoryResponseItemsInner < ApiModelBase
|
|
19
19
|
# Year-month (YYYY-MM) for this usage period
|
|
20
20
|
attr_accessor :year_month
|
|
21
21
|
|
|
@@ -43,7 +43,7 @@ module Pingram
|
|
|
43
43
|
def self.openapi_types
|
|
44
44
|
{
|
|
45
45
|
:'year_month' => :'String',
|
|
46
|
-
:'counts' => :'
|
|
46
|
+
:'counts' => :'GetUsageHistoryResponseItemsInnerCounts'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -57,14 +57,14 @@ module Pingram
|
|
|
57
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
58
|
def initialize(attributes = {})
|
|
59
59
|
if (!attributes.is_a?(Hash))
|
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetUsageHistoryResponseItemsInner` initialize method"
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
64
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
66
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetUsageHistoryResponseItemsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
68
|
end
|
|
69
69
|
h[k.to_sym] = v
|
|
70
70
|
}
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
class
|
|
17
|
+
class GetUsageHistoryResponseItemsInnerCounts < ApiModelBase
|
|
18
18
|
attr_accessor :email
|
|
19
19
|
|
|
20
20
|
attr_accessor :inapp_web
|
|
@@ -79,14 +79,14 @@ module Pingram
|
|
|
79
79
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
80
|
def initialize(attributes = {})
|
|
81
81
|
if (!attributes.is_a?(Hash))
|
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetUsageHistoryResponseItemsInnerCounts` initialize method"
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
86
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
88
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetUsageHistoryResponseItemsInnerCounts`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
90
|
end
|
|
91
91
|
h[k.to_sym] = v
|
|
92
92
|
}
|
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Response for GET /account/
|
|
18
|
-
class
|
|
17
|
+
# Response for GET /account/usage
|
|
18
|
+
class GetUsageResponse < ApiModelBase
|
|
19
19
|
attr_accessor :costs
|
|
20
20
|
|
|
21
21
|
attr_accessor :counts
|
|
@@ -49,8 +49,8 @@ module Pingram
|
|
|
49
49
|
# Attribute type mapping.
|
|
50
50
|
def self.openapi_types
|
|
51
51
|
{
|
|
52
|
-
:'costs' => :'
|
|
53
|
-
:'counts' => :'
|
|
52
|
+
:'costs' => :'GetUsageResponseCosts',
|
|
53
|
+
:'counts' => :'GetUsageResponseCounts',
|
|
54
54
|
:'billing_cycle_start' => :'String',
|
|
55
55
|
:'billing_cycle_end' => :'String'
|
|
56
56
|
}
|
|
@@ -66,14 +66,14 @@ module Pingram
|
|
|
66
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
67
|
def initialize(attributes = {})
|
|
68
68
|
if (!attributes.is_a?(Hash))
|
|
69
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetUsageResponse` initialize method"
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
73
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
74
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
75
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetUsageResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
77
77
|
end
|
|
78
78
|
h[k.to_sym] = v
|
|
79
79
|
}
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
# Total costs for the billing cycle (all channel costs + number rent)
|
|
18
|
-
class
|
|
18
|
+
class GetUsageResponseCosts < ApiModelBase
|
|
19
19
|
attr_accessor :number
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -52,14 +52,14 @@ module Pingram
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetUsageResponseCosts` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
61
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetUsageResponseCosts`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
63
|
end
|
|
64
64
|
h[k.to_sym] = v
|
|
65
65
|
}
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
# Per-channel usage breakdown
|
|
18
|
-
class
|
|
18
|
+
class GetUsageResponseCounts < ApiModelBase
|
|
19
19
|
attr_accessor :email
|
|
20
20
|
|
|
21
21
|
attr_accessor :inapp_web
|
|
@@ -80,14 +80,14 @@ module Pingram
|
|
|
80
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
81
81
|
def initialize(attributes = {})
|
|
82
82
|
if (!attributes.is_a?(Hash))
|
|
83
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetUsageResponseCounts` initialize method"
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
87
87
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
88
88
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
89
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
90
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetUsageResponseCounts`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
91
91
|
end
|
|
92
92
|
h[k.to_sym] = v
|
|
93
93
|
}
|
|
@@ -22,9 +22,6 @@ module Pingram
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :merge_tags
|
|
24
24
|
|
|
25
|
-
# @deprecated Use parameters instead
|
|
26
|
-
attr_accessor :replace
|
|
27
|
-
|
|
28
25
|
# ID of the notification type (e.g. \"welcome_email\"). Creates a new notification if it does not exist.
|
|
29
26
|
attr_accessor :type
|
|
30
27
|
|
|
@@ -69,7 +66,6 @@ module Pingram
|
|
|
69
66
|
:'notification_id' => :'notificationId',
|
|
70
67
|
:'user' => :'user',
|
|
71
68
|
:'merge_tags' => :'mergeTags',
|
|
72
|
-
:'replace' => :'replace',
|
|
73
69
|
:'type' => :'type',
|
|
74
70
|
:'to' => :'to',
|
|
75
71
|
:'force_channels' => :'forceChannels',
|
|
@@ -105,7 +101,6 @@ module Pingram
|
|
|
105
101
|
:'notification_id' => :'String',
|
|
106
102
|
:'user' => :'SenderPostBodyUser',
|
|
107
103
|
:'merge_tags' => :'Object',
|
|
108
|
-
:'replace' => :'Hash<String, String>',
|
|
109
104
|
:'type' => :'String',
|
|
110
105
|
:'to' => :'SenderPostBodyTo',
|
|
111
106
|
:'force_channels' => :'Array<ChannelsEnum>',
|
|
@@ -159,12 +154,6 @@ module Pingram
|
|
|
159
154
|
self.merge_tags = attributes[:'merge_tags']
|
|
160
155
|
end
|
|
161
156
|
|
|
162
|
-
if attributes.key?(:'replace')
|
|
163
|
-
if (value = attributes[:'replace']).is_a?(Hash)
|
|
164
|
-
self.replace = value
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
|
|
168
157
|
if attributes.key?(:'type')
|
|
169
158
|
self.type = attributes[:'type']
|
|
170
159
|
end
|
|
@@ -257,7 +246,6 @@ module Pingram
|
|
|
257
246
|
notification_id == o.notification_id &&
|
|
258
247
|
user == o.user &&
|
|
259
248
|
merge_tags == o.merge_tags &&
|
|
260
|
-
replace == o.replace &&
|
|
261
249
|
type == o.type &&
|
|
262
250
|
to == o.to &&
|
|
263
251
|
force_channels == o.force_channels &&
|
|
@@ -285,7 +273,7 @@ module Pingram
|
|
|
285
273
|
# Calculates hash code according to all attributes.
|
|
286
274
|
# @return [Integer] Hash code
|
|
287
275
|
def hash
|
|
288
|
-
[notification_id, user, merge_tags,
|
|
276
|
+
[notification_id, user, merge_tags, type, to, force_channels, parameters, secondary_id, template_id, sub_notification_id, options, schedule, email, inapp, sms, call, web_push, mobile_push, slack].hash
|
|
289
277
|
end
|
|
290
278
|
|
|
291
279
|
# Builds the object from hash
|