pingram 1.0.25 → 1.0.28

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 (25) 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/create_account_response.rb +32 -5
  7. data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +1 -1
  8. data/lib/pingram/models/ten_dlc_brand_registration.rb +2 -2
  9. data/lib/pingram/models/ten_dlc_brand_registration_details.rb +2 -2
  10. data/lib/pingram/models/ten_dlc_campaign_admin_update_request.rb +363 -0
  11. data/lib/pingram/models/ten_dlc_campaign_registration.rb +448 -0
  12. data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +14 -14
  13. data/lib/pingram/models/ten_dlc_campaign_update_request.rb +5 -49
  14. data/lib/pingram/version.rb +1 -1
  15. data/lib/pingram.rb +2 -1
  16. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  17. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/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/gem_make.out +5 -5
  19. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  24. metadata +4 -3
  25. data/lib/pingram/models/environment_create_request.rb +0 -164
@@ -0,0 +1,363 @@
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
+ # Request body for PATCH /registrations/us/10dlc/campaign/admin
18
+ class TenDlcCampaignAdminUpdateRequest < ApiModelBase
19
+ attr_accessor :campaign_description
20
+
21
+ attr_accessor :campaign_sample1
22
+
23
+ attr_accessor :campaign_sample2
24
+
25
+ attr_accessor :campaign_sample3
26
+
27
+ attr_accessor :campaign_sample4
28
+
29
+ attr_accessor :campaign_message_flow
30
+
31
+ attr_accessor :campaign_optin_keywords
32
+
33
+ attr_accessor :campaign_optin_message
34
+
35
+ attr_accessor :campaign_optout_keywords
36
+
37
+ attr_accessor :campaign_optout_message
38
+
39
+ attr_accessor :campaign_help_keywords
40
+
41
+ attr_accessor :campaign_help_message
42
+
43
+ attr_accessor :campaign_embedded_link
44
+
45
+ attr_accessor :campaign_embedded_link_url
46
+
47
+ attr_accessor :campaign_embedded_phone
48
+
49
+ attr_accessor :campaign_age_gated
50
+
51
+ attr_accessor :campaign_direct_lending
52
+
53
+ attr_accessor :campaign_privacy_policy_link
54
+
55
+ attr_accessor :campaign_terms_and_conditions_link
56
+
57
+ attr_accessor :campaign_usecase
58
+
59
+ # 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
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
+ # Attribute mapping from ruby-style variable name to JSON key.
85
+ def self.attribute_map
86
+ {
87
+ :'campaign_description' => :'campaignDescription',
88
+ :'campaign_sample1' => :'campaignSample1',
89
+ :'campaign_sample2' => :'campaignSample2',
90
+ :'campaign_sample3' => :'campaignSample3',
91
+ :'campaign_sample4' => :'campaignSample4',
92
+ :'campaign_message_flow' => :'campaignMessageFlow',
93
+ :'campaign_optin_keywords' => :'campaignOptinKeywords',
94
+ :'campaign_optin_message' => :'campaignOptinMessage',
95
+ :'campaign_optout_keywords' => :'campaignOptoutKeywords',
96
+ :'campaign_optout_message' => :'campaignOptoutMessage',
97
+ :'campaign_help_keywords' => :'campaignHelpKeywords',
98
+ :'campaign_help_message' => :'campaignHelpMessage',
99
+ :'campaign_embedded_link' => :'campaignEmbeddedLink',
100
+ :'campaign_embedded_link_url' => :'campaignEmbeddedLinkUrl',
101
+ :'campaign_embedded_phone' => :'campaignEmbeddedPhone',
102
+ :'campaign_age_gated' => :'campaignAgeGated',
103
+ :'campaign_direct_lending' => :'campaignDirectLending',
104
+ :'campaign_privacy_policy_link' => :'campaignPrivacyPolicyLink',
105
+ :'campaign_terms_and_conditions_link' => :'campaignTermsAndConditionsLink',
106
+ :'campaign_usecase' => :'campaignUsecase',
107
+ :'campaign_status' => :'campaignStatus'
108
+ }
109
+ end
110
+
111
+ # Returns attribute mapping this model knows about
112
+ def self.acceptable_attribute_map
113
+ attribute_map
114
+ end
115
+
116
+ # Returns all the JSON keys this model knows about
117
+ def self.acceptable_attributes
118
+ acceptable_attribute_map.values
119
+ end
120
+
121
+ # Attribute type mapping.
122
+ def self.openapi_types
123
+ {
124
+ :'campaign_description' => :'String',
125
+ :'campaign_sample1' => :'String',
126
+ :'campaign_sample2' => :'String',
127
+ :'campaign_sample3' => :'String',
128
+ :'campaign_sample4' => :'String',
129
+ :'campaign_message_flow' => :'String',
130
+ :'campaign_optin_keywords' => :'String',
131
+ :'campaign_optin_message' => :'String',
132
+ :'campaign_optout_keywords' => :'String',
133
+ :'campaign_optout_message' => :'String',
134
+ :'campaign_help_keywords' => :'String',
135
+ :'campaign_help_message' => :'String',
136
+ :'campaign_embedded_link' => :'Boolean',
137
+ :'campaign_embedded_link_url' => :'String',
138
+ :'campaign_embedded_phone' => :'Boolean',
139
+ :'campaign_age_gated' => :'Boolean',
140
+ :'campaign_direct_lending' => :'Boolean',
141
+ :'campaign_privacy_policy_link' => :'String',
142
+ :'campaign_terms_and_conditions_link' => :'String',
143
+ :'campaign_usecase' => :'String',
144
+ :'campaign_status' => :'String'
145
+ }
146
+ end
147
+
148
+ # List of attributes with nullable: true
149
+ def self.openapi_nullable
150
+ Set.new([
151
+ ])
152
+ end
153
+
154
+ # Initializes the object
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ def initialize(attributes = {})
157
+ if (!attributes.is_a?(Hash))
158
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::TenDlcCampaignAdminUpdateRequest` initialize method"
159
+ end
160
+
161
+ # check to see if the attribute exists and convert string to symbol for hash key
162
+ acceptable_attribute_map = self.class.acceptable_attribute_map
163
+ attributes = attributes.each_with_object({}) { |(k, v), h|
164
+ if (!acceptable_attribute_map.key?(k.to_sym))
165
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::TenDlcCampaignAdminUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
166
+ end
167
+ h[k.to_sym] = v
168
+ }
169
+
170
+ if attributes.key?(:'campaign_description')
171
+ self.campaign_description = attributes[:'campaign_description']
172
+ end
173
+
174
+ if attributes.key?(:'campaign_sample1')
175
+ self.campaign_sample1 = attributes[:'campaign_sample1']
176
+ end
177
+
178
+ if attributes.key?(:'campaign_sample2')
179
+ self.campaign_sample2 = attributes[:'campaign_sample2']
180
+ end
181
+
182
+ if attributes.key?(:'campaign_sample3')
183
+ self.campaign_sample3 = attributes[:'campaign_sample3']
184
+ end
185
+
186
+ if attributes.key?(:'campaign_sample4')
187
+ self.campaign_sample4 = attributes[:'campaign_sample4']
188
+ end
189
+
190
+ if attributes.key?(:'campaign_message_flow')
191
+ self.campaign_message_flow = attributes[:'campaign_message_flow']
192
+ end
193
+
194
+ if attributes.key?(:'campaign_optin_keywords')
195
+ self.campaign_optin_keywords = attributes[:'campaign_optin_keywords']
196
+ end
197
+
198
+ if attributes.key?(:'campaign_optin_message')
199
+ self.campaign_optin_message = attributes[:'campaign_optin_message']
200
+ end
201
+
202
+ if attributes.key?(:'campaign_optout_keywords')
203
+ self.campaign_optout_keywords = attributes[:'campaign_optout_keywords']
204
+ end
205
+
206
+ if attributes.key?(:'campaign_optout_message')
207
+ self.campaign_optout_message = attributes[:'campaign_optout_message']
208
+ end
209
+
210
+ if attributes.key?(:'campaign_help_keywords')
211
+ self.campaign_help_keywords = attributes[:'campaign_help_keywords']
212
+ end
213
+
214
+ if attributes.key?(:'campaign_help_message')
215
+ self.campaign_help_message = attributes[:'campaign_help_message']
216
+ end
217
+
218
+ if attributes.key?(:'campaign_embedded_link')
219
+ self.campaign_embedded_link = attributes[:'campaign_embedded_link']
220
+ end
221
+
222
+ if attributes.key?(:'campaign_embedded_link_url')
223
+ self.campaign_embedded_link_url = attributes[:'campaign_embedded_link_url']
224
+ end
225
+
226
+ if attributes.key?(:'campaign_embedded_phone')
227
+ self.campaign_embedded_phone = attributes[:'campaign_embedded_phone']
228
+ end
229
+
230
+ if attributes.key?(:'campaign_age_gated')
231
+ self.campaign_age_gated = attributes[:'campaign_age_gated']
232
+ end
233
+
234
+ if attributes.key?(:'campaign_direct_lending')
235
+ self.campaign_direct_lending = attributes[:'campaign_direct_lending']
236
+ end
237
+
238
+ if attributes.key?(:'campaign_privacy_policy_link')
239
+ self.campaign_privacy_policy_link = attributes[:'campaign_privacy_policy_link']
240
+ end
241
+
242
+ if attributes.key?(:'campaign_terms_and_conditions_link')
243
+ self.campaign_terms_and_conditions_link = attributes[:'campaign_terms_and_conditions_link']
244
+ end
245
+
246
+ if attributes.key?(:'campaign_usecase')
247
+ self.campaign_usecase = attributes[:'campaign_usecase']
248
+ end
249
+
250
+ if attributes.key?(:'campaign_status')
251
+ self.campaign_status = attributes[:'campaign_status']
252
+ end
253
+ end
254
+
255
+ # Show invalid properties with the reasons. Usually used together with valid?
256
+ # @return Array for valid properties with the reasons
257
+ def list_invalid_properties
258
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
259
+ invalid_properties = Array.new
260
+ invalid_properties
261
+ end
262
+
263
+ # Check to see if the all the properties in the model are valid
264
+ # @return true if the model is valid
265
+ def valid?
266
+ 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
+ true
270
+ end
271
+
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
+ # Checks equality by comparing each attribute.
283
+ # @param [Object] Object to be compared
284
+ def ==(o)
285
+ return true if self.equal?(o)
286
+ self.class == o.class &&
287
+ campaign_description == o.campaign_description &&
288
+ campaign_sample1 == o.campaign_sample1 &&
289
+ campaign_sample2 == o.campaign_sample2 &&
290
+ campaign_sample3 == o.campaign_sample3 &&
291
+ campaign_sample4 == o.campaign_sample4 &&
292
+ campaign_message_flow == o.campaign_message_flow &&
293
+ campaign_optin_keywords == o.campaign_optin_keywords &&
294
+ campaign_optin_message == o.campaign_optin_message &&
295
+ campaign_optout_keywords == o.campaign_optout_keywords &&
296
+ campaign_optout_message == o.campaign_optout_message &&
297
+ campaign_help_keywords == o.campaign_help_keywords &&
298
+ campaign_help_message == o.campaign_help_message &&
299
+ campaign_embedded_link == o.campaign_embedded_link &&
300
+ campaign_embedded_link_url == o.campaign_embedded_link_url &&
301
+ campaign_embedded_phone == o.campaign_embedded_phone &&
302
+ campaign_age_gated == o.campaign_age_gated &&
303
+ campaign_direct_lending == o.campaign_direct_lending &&
304
+ campaign_privacy_policy_link == o.campaign_privacy_policy_link &&
305
+ campaign_terms_and_conditions_link == o.campaign_terms_and_conditions_link &&
306
+ campaign_usecase == o.campaign_usecase &&
307
+ campaign_status == o.campaign_status
308
+ end
309
+
310
+ # @see the `==` method
311
+ # @param [Object] Object to be compared
312
+ def eql?(o)
313
+ self == o
314
+ end
315
+
316
+ # Calculates hash code according to all attributes.
317
+ # @return [Integer] Hash code
318
+ 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
320
+ end
321
+
322
+ # Builds the object from hash
323
+ # @param [Hash] attributes Model attributes in the form of hash
324
+ # @return [Object] Returns the model itself
325
+ def self.build_from_hash(attributes)
326
+ return nil unless attributes.is_a?(Hash)
327
+ attributes = attributes.transform_keys(&:to_sym)
328
+ transformed_hash = {}
329
+ openapi_types.each_pair do |key, type|
330
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
331
+ transformed_hash["#{key}"] = nil
332
+ elsif type =~ /\AArray<(.*)>/i
333
+ # check to ensure the input is an array given that the attribute
334
+ # is documented as an array but the input is not
335
+ if attributes[attribute_map[key]].is_a?(Array)
336
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
337
+ end
338
+ elsif !attributes[attribute_map[key]].nil?
339
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
340
+ end
341
+ end
342
+ new(transformed_hash)
343
+ end
344
+
345
+ # Returns the object in the form of hash
346
+ # @return [Hash] Returns the object in the form of hash
347
+ def to_hash
348
+ hash = {}
349
+ self.class.attribute_map.each_pair do |attr, param|
350
+ value = self.send(attr)
351
+ if value.nil?
352
+ is_nullable = self.class.openapi_nullable.include?(attr)
353
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
354
+ end
355
+
356
+ hash[param] = _to_hash(value)
357
+ end
358
+ hash
359
+ end
360
+
361
+ end
362
+
363
+ end