pingram 1.0.25 → 1.0.27

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.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api/environments_api.rb +0 -66
  4. data/lib/pingram/api/registrations_api.rb +121 -0
  5. data/lib/pingram/api_client.rb +1 -1
  6. data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +1 -1
  7. data/lib/pingram/models/ten_dlc_brand_registration.rb +2 -2
  8. data/lib/pingram/models/ten_dlc_brand_registration_details.rb +2 -2
  9. data/lib/pingram/models/ten_dlc_campaign_admin_update_request.rb +363 -0
  10. data/lib/pingram/models/ten_dlc_campaign_registration.rb +448 -0
  11. data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +14 -14
  12. data/lib/pingram/models/ten_dlc_campaign_update_request.rb +5 -49
  13. data/lib/pingram/version.rb +1 -1
  14. data/lib/pingram.rb +2 -1
  15. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  16. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  17. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
  18. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
  19. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  23. metadata +4 -3
  24. data/lib/pingram/models/environment_create_request.rb +0 -164
@@ -0,0 +1,448 @@
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 response type for 10DLC campaign registration
18
+ class TenDlcCampaignRegistration < ApiModelBase
19
+ attr_accessor :account_id
20
+
21
+ # Pingram-side 10DLC registration workflow status (brand or campaign). - not_started: no customer submission yet - pending_review: customer submitted; Pingram has not submitted to carriers - in_progress: submitted for carrier review - approved | rejected | info_needed: review outcome
22
+ attr_accessor :campaign_status
23
+
24
+ attr_accessor :campaign_description
25
+
26
+ attr_accessor :campaign_sample1
27
+
28
+ attr_accessor :campaign_sample2
29
+
30
+ attr_accessor :campaign_sample3
31
+
32
+ attr_accessor :campaign_sample4
33
+
34
+ attr_accessor :campaign_message_flow
35
+
36
+ attr_accessor :campaign_optin_keywords
37
+
38
+ attr_accessor :campaign_optin_message
39
+
40
+ attr_accessor :campaign_optout_keywords
41
+
42
+ attr_accessor :campaign_optout_message
43
+
44
+ attr_accessor :campaign_help_keywords
45
+
46
+ attr_accessor :campaign_help_message
47
+
48
+ attr_accessor :campaign_embedded_link
49
+
50
+ attr_accessor :campaign_embedded_link_url
51
+
52
+ attr_accessor :campaign_embedded_phone
53
+
54
+ attr_accessor :campaign_age_gated
55
+
56
+ attr_accessor :campaign_direct_lending
57
+
58
+ attr_accessor :campaign_privacy_policy_link
59
+
60
+ attr_accessor :campaign_terms_and_conditions_link
61
+
62
+ attr_accessor :campaign_usecase
63
+
64
+ attr_accessor :created_at
65
+
66
+ attr_accessor :updated_at
67
+
68
+ class EnumAttributeValidator
69
+ attr_reader :datatype
70
+ attr_reader :allowable_values
71
+
72
+ def initialize(datatype, allowable_values)
73
+ @allowable_values = allowable_values.map do |value|
74
+ case datatype.to_s
75
+ when /Integer/i
76
+ value.to_i
77
+ when /Float/i
78
+ value.to_f
79
+ else
80
+ value
81
+ end
82
+ end
83
+ end
84
+
85
+ def valid?(value)
86
+ !value || allowable_values.include?(value)
87
+ end
88
+ end
89
+
90
+ # Attribute mapping from ruby-style variable name to JSON key.
91
+ def self.attribute_map
92
+ {
93
+ :'account_id' => :'accountId',
94
+ :'campaign_status' => :'campaignStatus',
95
+ :'campaign_description' => :'campaignDescription',
96
+ :'campaign_sample1' => :'campaignSample1',
97
+ :'campaign_sample2' => :'campaignSample2',
98
+ :'campaign_sample3' => :'campaignSample3',
99
+ :'campaign_sample4' => :'campaignSample4',
100
+ :'campaign_message_flow' => :'campaignMessageFlow',
101
+ :'campaign_optin_keywords' => :'campaignOptinKeywords',
102
+ :'campaign_optin_message' => :'campaignOptinMessage',
103
+ :'campaign_optout_keywords' => :'campaignOptoutKeywords',
104
+ :'campaign_optout_message' => :'campaignOptoutMessage',
105
+ :'campaign_help_keywords' => :'campaignHelpKeywords',
106
+ :'campaign_help_message' => :'campaignHelpMessage',
107
+ :'campaign_embedded_link' => :'campaignEmbeddedLink',
108
+ :'campaign_embedded_link_url' => :'campaignEmbeddedLinkUrl',
109
+ :'campaign_embedded_phone' => :'campaignEmbeddedPhone',
110
+ :'campaign_age_gated' => :'campaignAgeGated',
111
+ :'campaign_direct_lending' => :'campaignDirectLending',
112
+ :'campaign_privacy_policy_link' => :'campaignPrivacyPolicyLink',
113
+ :'campaign_terms_and_conditions_link' => :'campaignTermsAndConditionsLink',
114
+ :'campaign_usecase' => :'campaignUsecase',
115
+ :'created_at' => :'createdAt',
116
+ :'updated_at' => :'updatedAt'
117
+ }
118
+ end
119
+
120
+ # Returns attribute mapping this model knows about
121
+ def self.acceptable_attribute_map
122
+ attribute_map
123
+ end
124
+
125
+ # Returns all the JSON keys this model knows about
126
+ def self.acceptable_attributes
127
+ acceptable_attribute_map.values
128
+ end
129
+
130
+ # Attribute type mapping.
131
+ def self.openapi_types
132
+ {
133
+ :'account_id' => :'String',
134
+ :'campaign_status' => :'String',
135
+ :'campaign_description' => :'String',
136
+ :'campaign_sample1' => :'String',
137
+ :'campaign_sample2' => :'String',
138
+ :'campaign_sample3' => :'String',
139
+ :'campaign_sample4' => :'String',
140
+ :'campaign_message_flow' => :'String',
141
+ :'campaign_optin_keywords' => :'String',
142
+ :'campaign_optin_message' => :'String',
143
+ :'campaign_optout_keywords' => :'String',
144
+ :'campaign_optout_message' => :'String',
145
+ :'campaign_help_keywords' => :'String',
146
+ :'campaign_help_message' => :'String',
147
+ :'campaign_embedded_link' => :'Boolean',
148
+ :'campaign_embedded_link_url' => :'String',
149
+ :'campaign_embedded_phone' => :'Boolean',
150
+ :'campaign_age_gated' => :'Boolean',
151
+ :'campaign_direct_lending' => :'Boolean',
152
+ :'campaign_privacy_policy_link' => :'String',
153
+ :'campaign_terms_and_conditions_link' => :'String',
154
+ :'campaign_usecase' => :'String',
155
+ :'created_at' => :'String',
156
+ :'updated_at' => :'String'
157
+ }
158
+ end
159
+
160
+ # List of attributes with nullable: true
161
+ def self.openapi_nullable
162
+ Set.new([
163
+ ])
164
+ end
165
+
166
+ # Initializes the object
167
+ # @param [Hash] attributes Model attributes in the form of hash
168
+ def initialize(attributes = {})
169
+ if (!attributes.is_a?(Hash))
170
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::TenDlcCampaignRegistration` initialize method"
171
+ end
172
+
173
+ # check to see if the attribute exists and convert string to symbol for hash key
174
+ acceptable_attribute_map = self.class.acceptable_attribute_map
175
+ attributes = attributes.each_with_object({}) { |(k, v), h|
176
+ if (!acceptable_attribute_map.key?(k.to_sym))
177
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::TenDlcCampaignRegistration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
178
+ end
179
+ h[k.to_sym] = v
180
+ }
181
+
182
+ if attributes.key?(:'account_id')
183
+ self.account_id = attributes[:'account_id']
184
+ else
185
+ self.account_id = nil
186
+ end
187
+
188
+ if attributes.key?(:'campaign_status')
189
+ self.campaign_status = attributes[:'campaign_status']
190
+ else
191
+ self.campaign_status = nil
192
+ end
193
+
194
+ if attributes.key?(:'campaign_description')
195
+ self.campaign_description = attributes[:'campaign_description']
196
+ end
197
+
198
+ if attributes.key?(:'campaign_sample1')
199
+ self.campaign_sample1 = attributes[:'campaign_sample1']
200
+ end
201
+
202
+ if attributes.key?(:'campaign_sample2')
203
+ self.campaign_sample2 = attributes[:'campaign_sample2']
204
+ end
205
+
206
+ if attributes.key?(:'campaign_sample3')
207
+ self.campaign_sample3 = attributes[:'campaign_sample3']
208
+ end
209
+
210
+ if attributes.key?(:'campaign_sample4')
211
+ self.campaign_sample4 = attributes[:'campaign_sample4']
212
+ end
213
+
214
+ if attributes.key?(:'campaign_message_flow')
215
+ self.campaign_message_flow = attributes[:'campaign_message_flow']
216
+ end
217
+
218
+ if attributes.key?(:'campaign_optin_keywords')
219
+ self.campaign_optin_keywords = attributes[:'campaign_optin_keywords']
220
+ end
221
+
222
+ if attributes.key?(:'campaign_optin_message')
223
+ self.campaign_optin_message = attributes[:'campaign_optin_message']
224
+ end
225
+
226
+ if attributes.key?(:'campaign_optout_keywords')
227
+ self.campaign_optout_keywords = attributes[:'campaign_optout_keywords']
228
+ end
229
+
230
+ if attributes.key?(:'campaign_optout_message')
231
+ self.campaign_optout_message = attributes[:'campaign_optout_message']
232
+ end
233
+
234
+ if attributes.key?(:'campaign_help_keywords')
235
+ self.campaign_help_keywords = attributes[:'campaign_help_keywords']
236
+ end
237
+
238
+ if attributes.key?(:'campaign_help_message')
239
+ self.campaign_help_message = attributes[:'campaign_help_message']
240
+ end
241
+
242
+ if attributes.key?(:'campaign_embedded_link')
243
+ self.campaign_embedded_link = attributes[:'campaign_embedded_link']
244
+ end
245
+
246
+ if attributes.key?(:'campaign_embedded_link_url')
247
+ self.campaign_embedded_link_url = attributes[:'campaign_embedded_link_url']
248
+ end
249
+
250
+ if attributes.key?(:'campaign_embedded_phone')
251
+ self.campaign_embedded_phone = attributes[:'campaign_embedded_phone']
252
+ end
253
+
254
+ if attributes.key?(:'campaign_age_gated')
255
+ self.campaign_age_gated = attributes[:'campaign_age_gated']
256
+ end
257
+
258
+ if attributes.key?(:'campaign_direct_lending')
259
+ self.campaign_direct_lending = attributes[:'campaign_direct_lending']
260
+ end
261
+
262
+ if attributes.key?(:'campaign_privacy_policy_link')
263
+ self.campaign_privacy_policy_link = attributes[:'campaign_privacy_policy_link']
264
+ end
265
+
266
+ if attributes.key?(:'campaign_terms_and_conditions_link')
267
+ self.campaign_terms_and_conditions_link = attributes[:'campaign_terms_and_conditions_link']
268
+ end
269
+
270
+ if attributes.key?(:'campaign_usecase')
271
+ self.campaign_usecase = attributes[:'campaign_usecase']
272
+ end
273
+
274
+ if attributes.key?(:'created_at')
275
+ self.created_at = attributes[:'created_at']
276
+ else
277
+ self.created_at = nil
278
+ end
279
+
280
+ if attributes.key?(:'updated_at')
281
+ self.updated_at = attributes[:'updated_at']
282
+ else
283
+ self.updated_at = nil
284
+ end
285
+ end
286
+
287
+ # Show invalid properties with the reasons. Usually used together with valid?
288
+ # @return Array for valid properties with the reasons
289
+ def list_invalid_properties
290
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
291
+ invalid_properties = Array.new
292
+ if @account_id.nil?
293
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
294
+ end
295
+
296
+ if @campaign_status.nil?
297
+ invalid_properties.push('invalid value for "campaign_status", campaign_status cannot be nil.')
298
+ end
299
+
300
+ if @created_at.nil?
301
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
302
+ end
303
+
304
+ if @updated_at.nil?
305
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
306
+ end
307
+
308
+ invalid_properties
309
+ end
310
+
311
+ # Check to see if the all the properties in the model are valid
312
+ # @return true if the model is valid
313
+ def valid?
314
+ warn '[DEPRECATED] the `valid?` method is obsolete'
315
+ return false if @account_id.nil?
316
+ return false if @campaign_status.nil?
317
+ campaign_status_validator = EnumAttributeValidator.new('String', ["not_started", "in_progress", "pending_review", "approved", "rejected", "info_needed"])
318
+ return false unless campaign_status_validator.valid?(@campaign_status)
319
+ return false if @created_at.nil?
320
+ return false if @updated_at.nil?
321
+ true
322
+ end
323
+
324
+ # Custom attribute writer method with validation
325
+ # @param [Object] account_id Value to be assigned
326
+ def account_id=(account_id)
327
+ if account_id.nil?
328
+ fail ArgumentError, 'account_id cannot be nil'
329
+ end
330
+
331
+ @account_id = account_id
332
+ end
333
+
334
+ # Custom attribute writer method checking allowed values (enum).
335
+ # @param [Object] campaign_status Object to be assigned
336
+ def campaign_status=(campaign_status)
337
+ validator = EnumAttributeValidator.new('String', ["not_started", "in_progress", "pending_review", "approved", "rejected", "info_needed"])
338
+ unless validator.valid?(campaign_status)
339
+ fail ArgumentError, "invalid value for \"campaign_status\", must be one of #{validator.allowable_values}."
340
+ end
341
+ @campaign_status = campaign_status
342
+ end
343
+
344
+ # Custom attribute writer method with validation
345
+ # @param [Object] created_at Value to be assigned
346
+ def created_at=(created_at)
347
+ if created_at.nil?
348
+ fail ArgumentError, 'created_at cannot be nil'
349
+ end
350
+
351
+ @created_at = created_at
352
+ end
353
+
354
+ # Custom attribute writer method with validation
355
+ # @param [Object] updated_at Value to be assigned
356
+ def updated_at=(updated_at)
357
+ if updated_at.nil?
358
+ fail ArgumentError, 'updated_at cannot be nil'
359
+ end
360
+
361
+ @updated_at = updated_at
362
+ end
363
+
364
+ # Checks equality by comparing each attribute.
365
+ # @param [Object] Object to be compared
366
+ def ==(o)
367
+ return true if self.equal?(o)
368
+ self.class == o.class &&
369
+ account_id == o.account_id &&
370
+ campaign_status == o.campaign_status &&
371
+ campaign_description == o.campaign_description &&
372
+ campaign_sample1 == o.campaign_sample1 &&
373
+ campaign_sample2 == o.campaign_sample2 &&
374
+ campaign_sample3 == o.campaign_sample3 &&
375
+ campaign_sample4 == o.campaign_sample4 &&
376
+ campaign_message_flow == o.campaign_message_flow &&
377
+ campaign_optin_keywords == o.campaign_optin_keywords &&
378
+ campaign_optin_message == o.campaign_optin_message &&
379
+ campaign_optout_keywords == o.campaign_optout_keywords &&
380
+ campaign_optout_message == o.campaign_optout_message &&
381
+ campaign_help_keywords == o.campaign_help_keywords &&
382
+ campaign_help_message == o.campaign_help_message &&
383
+ campaign_embedded_link == o.campaign_embedded_link &&
384
+ campaign_embedded_link_url == o.campaign_embedded_link_url &&
385
+ campaign_embedded_phone == o.campaign_embedded_phone &&
386
+ campaign_age_gated == o.campaign_age_gated &&
387
+ campaign_direct_lending == o.campaign_direct_lending &&
388
+ campaign_privacy_policy_link == o.campaign_privacy_policy_link &&
389
+ campaign_terms_and_conditions_link == o.campaign_terms_and_conditions_link &&
390
+ campaign_usecase == o.campaign_usecase &&
391
+ created_at == o.created_at &&
392
+ updated_at == o.updated_at
393
+ end
394
+
395
+ # @see the `==` method
396
+ # @param [Object] Object to be compared
397
+ def eql?(o)
398
+ self == o
399
+ end
400
+
401
+ # Calculates hash code according to all attributes.
402
+ # @return [Integer] Hash code
403
+ def hash
404
+ [account_id, campaign_status, campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase, created_at, updated_at].hash
405
+ end
406
+
407
+ # Builds the object from hash
408
+ # @param [Hash] attributes Model attributes in the form of hash
409
+ # @return [Object] Returns the model itself
410
+ def self.build_from_hash(attributes)
411
+ return nil unless attributes.is_a?(Hash)
412
+ attributes = attributes.transform_keys(&:to_sym)
413
+ transformed_hash = {}
414
+ openapi_types.each_pair do |key, type|
415
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
416
+ transformed_hash["#{key}"] = nil
417
+ elsif type =~ /\AArray<(.*)>/i
418
+ # check to ensure the input is an array given that the attribute
419
+ # is documented as an array but the input is not
420
+ if attributes[attribute_map[key]].is_a?(Array)
421
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
422
+ end
423
+ elsif !attributes[attribute_map[key]].nil?
424
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
425
+ end
426
+ end
427
+ new(transformed_hash)
428
+ end
429
+
430
+ # Returns the object in the form of hash
431
+ # @return [Hash] Returns the object in the form of hash
432
+ def to_hash
433
+ hash = {}
434
+ self.class.attribute_map.each_pair do |attr, param|
435
+ value = self.send(attr)
436
+ if value.nil?
437
+ is_nullable = self.class.openapi_nullable.include?(attr)
438
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
439
+ end
440
+
441
+ hash[param] = _to_hash(value)
442
+ end
443
+ hash
444
+ end
445
+
446
+ end
447
+
448
+ end
@@ -18,7 +18,7 @@ module Pingram
18
18
  class TenDlcCampaignRegistrationDetails < ApiModelBase
19
19
  attr_accessor :account_id
20
20
 
21
- # Pingram-side brand registration workflow status. - not_started: no customer submission yet - pending_review: customer submitted; Pingram has not submitted to carriers - in_progress: submitted for carrier review - approved | rejected | info_needed: review outcome
21
+ # Pingram-side 10DLC registration workflow status (brand or campaign). - not_started: no customer submission yet - pending_review: customer submitted; Pingram has not submitted to carriers - in_progress: submitted for carrier review - approved | rejected | info_needed: review outcome
22
22
  attr_accessor :campaign_status
23
23
 
24
24
  attr_accessor :campaign_description
@@ -61,12 +61,12 @@ module Pingram
61
61
 
62
62
  attr_accessor :campaign_usecase
63
63
 
64
- attr_accessor :campaign_id
65
-
66
64
  attr_accessor :created_at
67
65
 
68
66
  attr_accessor :updated_at
69
67
 
68
+ attr_accessor :campaign_id
69
+
70
70
  class EnumAttributeValidator
71
71
  attr_reader :datatype
72
72
  attr_reader :allowable_values
@@ -114,9 +114,9 @@ module Pingram
114
114
  :'campaign_privacy_policy_link' => :'campaignPrivacyPolicyLink',
115
115
  :'campaign_terms_and_conditions_link' => :'campaignTermsAndConditionsLink',
116
116
  :'campaign_usecase' => :'campaignUsecase',
117
- :'campaign_id' => :'campaignId',
118
117
  :'created_at' => :'createdAt',
119
- :'updated_at' => :'updatedAt'
118
+ :'updated_at' => :'updatedAt',
119
+ :'campaign_id' => :'campaignId'
120
120
  }
121
121
  end
122
122
 
@@ -155,9 +155,9 @@ module Pingram
155
155
  :'campaign_privacy_policy_link' => :'String',
156
156
  :'campaign_terms_and_conditions_link' => :'String',
157
157
  :'campaign_usecase' => :'String',
158
- :'campaign_id' => :'String',
159
158
  :'created_at' => :'String',
160
- :'updated_at' => :'String'
159
+ :'updated_at' => :'String',
160
+ :'campaign_id' => :'String'
161
161
  }
162
162
  end
163
163
 
@@ -275,10 +275,6 @@ module Pingram
275
275
  self.campaign_usecase = attributes[:'campaign_usecase']
276
276
  end
277
277
 
278
- if attributes.key?(:'campaign_id')
279
- self.campaign_id = attributes[:'campaign_id']
280
- end
281
-
282
278
  if attributes.key?(:'created_at')
283
279
  self.created_at = attributes[:'created_at']
284
280
  else
@@ -290,6 +286,10 @@ module Pingram
290
286
  else
291
287
  self.updated_at = nil
292
288
  end
289
+
290
+ if attributes.key?(:'campaign_id')
291
+ self.campaign_id = attributes[:'campaign_id']
292
+ end
293
293
  end
294
294
 
295
295
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -396,9 +396,9 @@ module Pingram
396
396
  campaign_privacy_policy_link == o.campaign_privacy_policy_link &&
397
397
  campaign_terms_and_conditions_link == o.campaign_terms_and_conditions_link &&
398
398
  campaign_usecase == o.campaign_usecase &&
399
- campaign_id == o.campaign_id &&
400
399
  created_at == o.created_at &&
401
- updated_at == o.updated_at
400
+ updated_at == o.updated_at &&
401
+ campaign_id == o.campaign_id
402
402
  end
403
403
 
404
404
  # @see the `==` method
@@ -410,7 +410,7 @@ module Pingram
410
410
  # Calculates hash code according to all attributes.
411
411
  # @return [Integer] Hash code
412
412
  def hash
413
- [account_id, campaign_status, campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase, campaign_id, created_at, updated_at].hash
413
+ [account_id, campaign_status, campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase, created_at, updated_at, campaign_id].hash
414
414
  end
415
415
 
416
416
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
- # Request body for PATCH /registrations/us/10dlc/campaign (admin only)
17
+ # Request body for PATCH /registrations/us/10dlc/campaign
18
18
  class TenDlcCampaignUpdateRequest < ApiModelBase
19
19
  attr_accessor :campaign_description
20
20
 
@@ -56,31 +56,6 @@ module Pingram
56
56
 
57
57
  attr_accessor :campaign_usecase
58
58
 
59
- # Pingram-side brand registration workflow status. - not_started: no customer submission yet - pending_review: customer submitted; Pingram has not submitted to carriers - in_progress: submitted for carrier review - approved | rejected | info_needed: review outcome
60
- attr_accessor :campaign_status
61
-
62
- class EnumAttributeValidator
63
- attr_reader :datatype
64
- attr_reader :allowable_values
65
-
66
- def initialize(datatype, allowable_values)
67
- @allowable_values = allowable_values.map do |value|
68
- case datatype.to_s
69
- when /Integer/i
70
- value.to_i
71
- when /Float/i
72
- value.to_f
73
- else
74
- value
75
- end
76
- end
77
- end
78
-
79
- def valid?(value)
80
- !value || allowable_values.include?(value)
81
- end
82
- end
83
-
84
59
  # Attribute mapping from ruby-style variable name to JSON key.
85
60
  def self.attribute_map
86
61
  {
@@ -103,8 +78,7 @@ module Pingram
103
78
  :'campaign_direct_lending' => :'campaignDirectLending',
104
79
  :'campaign_privacy_policy_link' => :'campaignPrivacyPolicyLink',
105
80
  :'campaign_terms_and_conditions_link' => :'campaignTermsAndConditionsLink',
106
- :'campaign_usecase' => :'campaignUsecase',
107
- :'campaign_status' => :'campaignStatus'
81
+ :'campaign_usecase' => :'campaignUsecase'
108
82
  }
109
83
  end
110
84
 
@@ -140,8 +114,7 @@ module Pingram
140
114
  :'campaign_direct_lending' => :'Boolean',
141
115
  :'campaign_privacy_policy_link' => :'String',
142
116
  :'campaign_terms_and_conditions_link' => :'String',
143
- :'campaign_usecase' => :'String',
144
- :'campaign_status' => :'String'
117
+ :'campaign_usecase' => :'String'
145
118
  }
146
119
  end
147
120
 
@@ -246,10 +219,6 @@ module Pingram
246
219
  if attributes.key?(:'campaign_usecase')
247
220
  self.campaign_usecase = attributes[:'campaign_usecase']
248
221
  end
249
-
250
- if attributes.key?(:'campaign_status')
251
- self.campaign_status = attributes[:'campaign_status']
252
- end
253
222
  end
254
223
 
255
224
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -264,21 +233,9 @@ module Pingram
264
233
  # @return true if the model is valid
265
234
  def valid?
266
235
  warn '[DEPRECATED] the `valid?` method is obsolete'
267
- campaign_status_validator = EnumAttributeValidator.new('String', ["not_started", "in_progress", "pending_review", "approved", "rejected", "info_needed"])
268
- return false unless campaign_status_validator.valid?(@campaign_status)
269
236
  true
270
237
  end
271
238
 
272
- # Custom attribute writer method checking allowed values (enum).
273
- # @param [Object] campaign_status Object to be assigned
274
- def campaign_status=(campaign_status)
275
- validator = EnumAttributeValidator.new('String', ["not_started", "in_progress", "pending_review", "approved", "rejected", "info_needed"])
276
- unless validator.valid?(campaign_status)
277
- fail ArgumentError, "invalid value for \"campaign_status\", must be one of #{validator.allowable_values}."
278
- end
279
- @campaign_status = campaign_status
280
- end
281
-
282
239
  # Checks equality by comparing each attribute.
283
240
  # @param [Object] Object to be compared
284
241
  def ==(o)
@@ -303,8 +260,7 @@ module Pingram
303
260
  campaign_direct_lending == o.campaign_direct_lending &&
304
261
  campaign_privacy_policy_link == o.campaign_privacy_policy_link &&
305
262
  campaign_terms_and_conditions_link == o.campaign_terms_and_conditions_link &&
306
- campaign_usecase == o.campaign_usecase &&
307
- campaign_status == o.campaign_status
263
+ campaign_usecase == o.campaign_usecase
308
264
  end
309
265
 
310
266
  # @see the `==` method
@@ -316,7 +272,7 @@ module Pingram
316
272
  # Calculates hash code according to all attributes.
317
273
  # @return [Integer] Hash code
318
274
  def hash
319
- [campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase, campaign_status].hash
275
+ [campaign_description, campaign_sample1, campaign_sample2, campaign_sample3, campaign_sample4, campaign_message_flow, campaign_optin_keywords, campaign_optin_message, campaign_optout_keywords, campaign_optout_message, campaign_help_keywords, campaign_help_message, campaign_embedded_link, campaign_embedded_link_url, campaign_embedded_phone, campaign_age_gated, campaign_direct_lending, campaign_privacy_policy_link, campaign_terms_and_conditions_link, campaign_usecase].hash
320
276
  end
321
277
 
322
278
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Pingram
14
- VERSION = '1.0.25'
14
+ VERSION = '1.0.27'
15
15
  end
data/lib/pingram.rb CHANGED
@@ -75,7 +75,6 @@ require 'pingram/models/email_component_post_request'
75
75
  require 'pingram/models/email_component_response'
76
76
  require 'pingram/models/email_component_response_referenced_by_inner'
77
77
  require 'pingram/models/environment'
78
- require 'pingram/models/environment_create_request'
79
78
  require 'pingram/models/environment_patch_request'
80
79
  require 'pingram/models/events_webhook_response'
81
80
  require 'pingram/models/events_webhook_upsert_request'
@@ -275,6 +274,8 @@ require 'pingram/models/ten_dlc_brand_create_request'
275
274
  require 'pingram/models/ten_dlc_brand_registration'
276
275
  require 'pingram/models/ten_dlc_brand_registration_details'
277
276
  require 'pingram/models/ten_dlc_brand_update_request'
277
+ require 'pingram/models/ten_dlc_campaign_admin_update_request'
278
+ require 'pingram/models/ten_dlc_campaign_registration'
278
279
  require 'pingram/models/ten_dlc_campaign_registration_details'
279
280
  require 'pingram/models/ten_dlc_campaign_update_request'
280
281
  require 'pingram/models/transfer'