pingram 1.0.19 → 1.0.22
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 +3 -3
- data/lib/pingram/api/account_api.rb +70 -66
- data/lib/pingram/api/email_api.rb +61 -0
- data/lib/pingram/api/members_api.rb +2 -2
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +0 -10
- data/lib/pingram/models/{push_settings_fcm_response.rb → campaign_webhook_response.rb} +20 -19
- data/lib/pingram/models/create_account_request.rb +150 -0
- data/lib/pingram/models/create_account_response.rb +30 -30
- data/lib/pingram/models/{create_account_request_body.rb → create_personal_access_token_request.rb} +18 -7
- data/lib/pingram/models/create_personal_access_token_response.rb +313 -0
- data/lib/pingram/models/{apn_config.rb → delete_email_suppressions_response.rb} +36 -86
- data/lib/pingram/models/get_members_response_inner.rb +29 -1
- data/lib/pingram/models/intercom_webhook_data_item_any_of.rb +1 -0
- data/lib/pingram/models/list_invoices_response.rb +194 -0
- data/lib/pingram/models/list_invoices_response_invoices_inner.rb +389 -0
- data/lib/pingram/models/{push_settings_fcm_put_request.rb → list_personal_access_tokens_response.rb} +21 -19
- data/lib/pingram/models/list_personal_access_tokens_response_tokens_inner.rb +287 -0
- data/lib/pingram/models/member_update_request.rb +1 -0
- data/lib/pingram/models/sender_post_body.rb +1 -11
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +14 -14
- data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +457 -0
- data/lib/pingram/models/ten_dlc_campaign_update_request.rb +363 -0
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +11 -5
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/reline-0.7.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/gem_make.out +15 -14
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/mkmf.log +112 -109
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/Makefile +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/console.c +521 -28
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/extconf.rb +13 -14
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/win32_vk.inc +313 -165
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/ansi.rb +6 -4
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/windows.rb +49 -23
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io.rb +8 -2
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/line_editor.rb +49 -21
- data/vendor/bundle/ruby/3.2.0/gems/reline-0.7.0/lib/reline/version.rb +3 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline.rb +10 -9
- data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.8.2.gemspec → io-console-0.9.2.gemspec} +3 -3
- data/vendor/bundle/ruby/3.2.0/specifications/{reline-0.6.3.gemspec → reline-0.7.0.gemspec} +2 -2
- metadata +55 -49
- data/lib/pingram/api/push_settings_api.rb +0 -374
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.8.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/reline-0.6.3.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.8.2/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/reline-0.6.3/lib/reline/version.rb +0 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/.document +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/BSDL +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/COPYING +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/lib/io/console/size.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/BSDL +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/COPYING +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/config.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/face.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/history.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/dumb.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/base.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/composite.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/emacs.rb +2 -2
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/vi_command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/vi_insert.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_stroke.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/kill_ring.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/unicode/east_asian_width.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/unicode.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/license_of_rb-readline +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pingram
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
# Public metadata returned by list/create (no tokenHash).
|
|
18
|
+
class ListPersonalAccessTokensResponseTokensInner < ApiModelBase
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
attr_accessor :name
|
|
22
|
+
|
|
23
|
+
attr_accessor :token_prefix
|
|
24
|
+
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
|
+
attr_accessor :expires_at
|
|
28
|
+
|
|
29
|
+
attr_accessor :last_used_at
|
|
30
|
+
|
|
31
|
+
attr_accessor :revoked
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'id' => :'id',
|
|
37
|
+
:'name' => :'name',
|
|
38
|
+
:'token_prefix' => :'tokenPrefix',
|
|
39
|
+
:'created_at' => :'createdAt',
|
|
40
|
+
:'expires_at' => :'expiresAt',
|
|
41
|
+
:'last_used_at' => :'lastUsedAt',
|
|
42
|
+
:'revoked' => :'revoked'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns attribute mapping this model knows about
|
|
47
|
+
def self.acceptable_attribute_map
|
|
48
|
+
attribute_map
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
acceptable_attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'id' => :'String',
|
|
60
|
+
:'name' => :'String',
|
|
61
|
+
:'token_prefix' => :'String',
|
|
62
|
+
:'created_at' => :'String',
|
|
63
|
+
:'expires_at' => :'String',
|
|
64
|
+
:'last_used_at' => :'String',
|
|
65
|
+
:'revoked' => :'Boolean'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# List of attributes with nullable: true
|
|
70
|
+
def self.openapi_nullable
|
|
71
|
+
Set.new([
|
|
72
|
+
])
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Initializes the object
|
|
76
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
77
|
+
def initialize(attributes = {})
|
|
78
|
+
if (!attributes.is_a?(Hash))
|
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListPersonalAccessTokensResponseTokensInner` initialize method"
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
83
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListPersonalAccessTokensResponseTokensInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
87
|
+
end
|
|
88
|
+
h[k.to_sym] = v
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'id')
|
|
92
|
+
self.id = attributes[:'id']
|
|
93
|
+
else
|
|
94
|
+
self.id = nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'name')
|
|
98
|
+
self.name = attributes[:'name']
|
|
99
|
+
else
|
|
100
|
+
self.name = nil
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'token_prefix')
|
|
104
|
+
self.token_prefix = attributes[:'token_prefix']
|
|
105
|
+
else
|
|
106
|
+
self.token_prefix = nil
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'created_at')
|
|
110
|
+
self.created_at = attributes[:'created_at']
|
|
111
|
+
else
|
|
112
|
+
self.created_at = nil
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'expires_at')
|
|
116
|
+
self.expires_at = attributes[:'expires_at']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'last_used_at')
|
|
120
|
+
self.last_used_at = attributes[:'last_used_at']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'revoked')
|
|
124
|
+
self.revoked = attributes[:'revoked']
|
|
125
|
+
else
|
|
126
|
+
self.revoked = nil
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
131
|
+
# @return Array for valid properties with the reasons
|
|
132
|
+
def list_invalid_properties
|
|
133
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
134
|
+
invalid_properties = Array.new
|
|
135
|
+
if @id.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if @name.nil?
|
|
140
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if @token_prefix.nil?
|
|
144
|
+
invalid_properties.push('invalid value for "token_prefix", token_prefix cannot be nil.')
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if @created_at.nil?
|
|
148
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if @revoked.nil?
|
|
152
|
+
invalid_properties.push('invalid value for "revoked", revoked cannot be nil.')
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
invalid_properties
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Check to see if the all the properties in the model are valid
|
|
159
|
+
# @return true if the model is valid
|
|
160
|
+
def valid?
|
|
161
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
162
|
+
return false if @id.nil?
|
|
163
|
+
return false if @name.nil?
|
|
164
|
+
return false if @token_prefix.nil?
|
|
165
|
+
return false if @created_at.nil?
|
|
166
|
+
return false if @revoked.nil?
|
|
167
|
+
true
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Custom attribute writer method with validation
|
|
171
|
+
# @param [Object] id Value to be assigned
|
|
172
|
+
def id=(id)
|
|
173
|
+
if id.nil?
|
|
174
|
+
fail ArgumentError, 'id cannot be nil'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
@id = id
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Custom attribute writer method with validation
|
|
181
|
+
# @param [Object] name Value to be assigned
|
|
182
|
+
def name=(name)
|
|
183
|
+
if name.nil?
|
|
184
|
+
fail ArgumentError, 'name cannot be nil'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
@name = name
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Custom attribute writer method with validation
|
|
191
|
+
# @param [Object] token_prefix Value to be assigned
|
|
192
|
+
def token_prefix=(token_prefix)
|
|
193
|
+
if token_prefix.nil?
|
|
194
|
+
fail ArgumentError, 'token_prefix cannot be nil'
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
@token_prefix = token_prefix
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Custom attribute writer method with validation
|
|
201
|
+
# @param [Object] created_at Value to be assigned
|
|
202
|
+
def created_at=(created_at)
|
|
203
|
+
if created_at.nil?
|
|
204
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
@created_at = created_at
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] revoked Value to be assigned
|
|
212
|
+
def revoked=(revoked)
|
|
213
|
+
if revoked.nil?
|
|
214
|
+
fail ArgumentError, 'revoked cannot be nil'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@revoked = revoked
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Checks equality by comparing each attribute.
|
|
221
|
+
# @param [Object] Object to be compared
|
|
222
|
+
def ==(o)
|
|
223
|
+
return true if self.equal?(o)
|
|
224
|
+
self.class == o.class &&
|
|
225
|
+
id == o.id &&
|
|
226
|
+
name == o.name &&
|
|
227
|
+
token_prefix == o.token_prefix &&
|
|
228
|
+
created_at == o.created_at &&
|
|
229
|
+
expires_at == o.expires_at &&
|
|
230
|
+
last_used_at == o.last_used_at &&
|
|
231
|
+
revoked == o.revoked
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# @see the `==` method
|
|
235
|
+
# @param [Object] Object to be compared
|
|
236
|
+
def eql?(o)
|
|
237
|
+
self == o
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Calculates hash code according to all attributes.
|
|
241
|
+
# @return [Integer] Hash code
|
|
242
|
+
def hash
|
|
243
|
+
[id, name, token_prefix, created_at, expires_at, last_used_at, revoked].hash
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Builds the object from hash
|
|
247
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
248
|
+
# @return [Object] Returns the model itself
|
|
249
|
+
def self.build_from_hash(attributes)
|
|
250
|
+
return nil unless attributes.is_a?(Hash)
|
|
251
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
252
|
+
transformed_hash = {}
|
|
253
|
+
openapi_types.each_pair do |key, type|
|
|
254
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
255
|
+
transformed_hash["#{key}"] = nil
|
|
256
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
257
|
+
# check to ensure the input is an array given that the attribute
|
|
258
|
+
# is documented as an array but the input is not
|
|
259
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
260
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
261
|
+
end
|
|
262
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
263
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
new(transformed_hash)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Returns the object in the form of hash
|
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
|
271
|
+
def to_hash
|
|
272
|
+
hash = {}
|
|
273
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
274
|
+
value = self.send(attr)
|
|
275
|
+
if value.nil?
|
|
276
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
277
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
hash[param] = _to_hash(value)
|
|
281
|
+
end
|
|
282
|
+
hash
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
end
|
|
@@ -33,9 +33,6 @@ module Pingram
|
|
|
33
33
|
# Key-value pairs for template merge tags. Replaces placeholders like {{firstName}} in templates.
|
|
34
34
|
attr_accessor :parameters
|
|
35
35
|
|
|
36
|
-
# Optional sub-notification identifier for grouping or tracking.
|
|
37
|
-
attr_accessor :secondary_id
|
|
38
|
-
|
|
39
36
|
# Specific template ID to use. If omitted, uses the default template for each channel.
|
|
40
37
|
attr_accessor :template_id
|
|
41
38
|
|
|
@@ -70,7 +67,6 @@ module Pingram
|
|
|
70
67
|
:'to' => :'to',
|
|
71
68
|
:'force_channels' => :'forceChannels',
|
|
72
69
|
:'parameters' => :'parameters',
|
|
73
|
-
:'secondary_id' => :'secondaryId',
|
|
74
70
|
:'template_id' => :'templateId',
|
|
75
71
|
:'sub_notification_id' => :'subNotificationId',
|
|
76
72
|
:'options' => :'options',
|
|
@@ -105,7 +101,6 @@ module Pingram
|
|
|
105
101
|
:'to' => :'SenderPostBodyTo',
|
|
106
102
|
:'force_channels' => :'Array<ChannelsEnum>',
|
|
107
103
|
:'parameters' => :'Hash<String, Object>',
|
|
108
|
-
:'secondary_id' => :'String',
|
|
109
104
|
:'template_id' => :'String',
|
|
110
105
|
:'sub_notification_id' => :'String',
|
|
111
106
|
:'options' => :'SenderPostBodyOptions',
|
|
@@ -174,10 +169,6 @@ module Pingram
|
|
|
174
169
|
end
|
|
175
170
|
end
|
|
176
171
|
|
|
177
|
-
if attributes.key?(:'secondary_id')
|
|
178
|
-
self.secondary_id = attributes[:'secondary_id']
|
|
179
|
-
end
|
|
180
|
-
|
|
181
172
|
if attributes.key?(:'template_id')
|
|
182
173
|
self.template_id = attributes[:'template_id']
|
|
183
174
|
end
|
|
@@ -250,7 +241,6 @@ module Pingram
|
|
|
250
241
|
to == o.to &&
|
|
251
242
|
force_channels == o.force_channels &&
|
|
252
243
|
parameters == o.parameters &&
|
|
253
|
-
secondary_id == o.secondary_id &&
|
|
254
244
|
template_id == o.template_id &&
|
|
255
245
|
sub_notification_id == o.sub_notification_id &&
|
|
256
246
|
options == o.options &&
|
|
@@ -273,7 +263,7 @@ module Pingram
|
|
|
273
263
|
# Calculates hash code according to all attributes.
|
|
274
264
|
# @return [Integer] Hash code
|
|
275
265
|
def hash
|
|
276
|
-
[notification_id, user, merge_tags, type, to, force_channels, parameters,
|
|
266
|
+
[notification_id, user, merge_tags, type, to, force_channels, parameters, template_id, sub_notification_id, options, schedule, email, inapp, sms, call, web_push, mobile_push, slack].hash
|
|
277
267
|
end
|
|
278
268
|
|
|
279
269
|
# Builds the object from hash
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
#
|
|
17
|
+
# Admin GET response; includes carrier-assigned IDs and admin-only fields.
|
|
18
18
|
class TenDlcBrandRegistrationDetails < ApiModelBase
|
|
19
19
|
attr_accessor :account_id
|
|
20
20
|
|
|
@@ -67,9 +67,9 @@ module Pingram
|
|
|
67
67
|
# Legacy only when businessType is Other.
|
|
68
68
|
attr_accessor :entity_type
|
|
69
69
|
|
|
70
|
-
attr_accessor :
|
|
70
|
+
attr_accessor :profile_id
|
|
71
71
|
|
|
72
|
-
attr_accessor :
|
|
72
|
+
attr_accessor :brand_id
|
|
73
73
|
|
|
74
74
|
class EnumAttributeValidator
|
|
75
75
|
attr_reader :datatype
|
|
@@ -119,8 +119,8 @@ module Pingram
|
|
|
119
119
|
:'updated_at' => :'updatedAt',
|
|
120
120
|
:'vertical' => :'vertical',
|
|
121
121
|
:'entity_type' => :'entityType',
|
|
122
|
-
:'
|
|
123
|
-
:'
|
|
122
|
+
:'profile_id' => :'profileId',
|
|
123
|
+
:'brand_id' => :'brandId'
|
|
124
124
|
}
|
|
125
125
|
end
|
|
126
126
|
|
|
@@ -160,8 +160,8 @@ module Pingram
|
|
|
160
160
|
:'updated_at' => :'String',
|
|
161
161
|
:'vertical' => :'String',
|
|
162
162
|
:'entity_type' => :'String',
|
|
163
|
-
:'
|
|
164
|
-
:'
|
|
163
|
+
:'profile_id' => :'String',
|
|
164
|
+
:'brand_id' => :'String'
|
|
165
165
|
}
|
|
166
166
|
end
|
|
167
167
|
|
|
@@ -303,12 +303,12 @@ module Pingram
|
|
|
303
303
|
self.entity_type = attributes[:'entity_type']
|
|
304
304
|
end
|
|
305
305
|
|
|
306
|
-
if attributes.key?(:'
|
|
307
|
-
self.
|
|
306
|
+
if attributes.key?(:'profile_id')
|
|
307
|
+
self.profile_id = attributes[:'profile_id']
|
|
308
308
|
end
|
|
309
309
|
|
|
310
|
-
if attributes.key?(:'
|
|
311
|
-
self.
|
|
310
|
+
if attributes.key?(:'brand_id')
|
|
311
|
+
self.brand_id = attributes[:'brand_id']
|
|
312
312
|
end
|
|
313
313
|
end
|
|
314
314
|
|
|
@@ -539,8 +539,8 @@ module Pingram
|
|
|
539
539
|
updated_at == o.updated_at &&
|
|
540
540
|
vertical == o.vertical &&
|
|
541
541
|
entity_type == o.entity_type &&
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
profile_id == o.profile_id &&
|
|
543
|
+
brand_id == o.brand_id
|
|
544
544
|
end
|
|
545
545
|
|
|
546
546
|
# @see the `==` method
|
|
@@ -552,7 +552,7 @@ module Pingram
|
|
|
552
552
|
# Calculates hash code according to all attributes.
|
|
553
553
|
# @return [Integer] Hash code
|
|
554
554
|
def hash
|
|
555
|
-
[account_id, scenario_id, business_type, legal_name, display_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, full_address, compliance_contact_email, compliance_contact_phone, brand_status, campaign_status, created_at, updated_at, vertical, entity_type,
|
|
555
|
+
[account_id, scenario_id, business_type, legal_name, display_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, full_address, compliance_contact_email, compliance_contact_phone, brand_status, campaign_status, created_at, updated_at, vertical, entity_type, profile_id, brand_id].hash
|
|
556
556
|
end
|
|
557
557
|
|
|
558
558
|
# Builds the object from hash
|