Skip to content

Commit 8d4010d

Browse files
committed
removerd pattern check for model fields and required check for path param
1 parent 08e7dd9 commit 8d4010d

File tree

40 files changed

+255
-255
lines changed

40 files changed

+255
-255
lines changed

lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def valid?
8888
# Custom attribute writer method with validation
8989
# @param [Object] id Value to be assigned
9090
def id=(id)
91-
if id.nil?
92-
fail ArgumentError, 'id cannot be nil'
93-
end
91+
#if id.nil?
92+
#fail ArgumentError, 'id cannot be nil'
93+
#end
9494

9595
@id = id
9696
end

lib/cybersource_rest_client/models/boardingv1registrations_integration_information_oauth2.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def valid?
7979
# Custom attribute writer method with validation
8080
# @param [Object] client_id Value to be assigned
8181
def client_id=(client_id)
82-
if client_id.nil?
83-
fail ArgumentError, 'client_id cannot be nil'
84-
end
82+
#if client_id.nil?
83+
#fail ArgumentError, 'client_id cannot be nil'
84+
#end
8585

8686
@client_id = client_id
8787
end

lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def valid?
8585
# Custom attribute writer method with validation
8686
# @param [Object] solution_id Value to be assigned
8787
def solution_id=(solution_id)
88-
if solution_id.nil?
89-
fail ArgumentError, 'solution_id cannot be nil'
90-
end
88+
#if solution_id.nil?
89+
#fail ArgumentError, 'solution_id cannot be nil'
90+
#end
9191

9292
#if solution_id !~ Regexp.new(/^[0-9a-zA-Z_]+$/)
9393
#fail ArgumentError, 'invalid value for "solution_id", must conform to the pattern /^[0-9a-zA-Z_]+$/.'

lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ def valid?
252252
# Custom attribute writer method with validation
253253
# @param [Object] name Value to be assigned
254254
def name=(name)
255-
if name.nil?
256-
fail ArgumentError, 'name cannot be nil'
257-
end
255+
#if name.nil?
256+
#fail ArgumentError, 'name cannot be nil'
257+
#end
258258

259259
#if name !~ Regexp.new(/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/)
260260
#fail ArgumentError, 'invalid value for "name", must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.'

lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_address.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ def valid?
158158
# Custom attribute writer method with validation
159159
# @param [Object] country Value to be assigned
160160
def country=(country)
161-
if country.nil?
162-
fail ArgumentError, 'country cannot be nil'
163-
end
161+
#if country.nil?
162+
#fail ArgumentError, 'country cannot be nil'
163+
#end
164164

165165
#if country !~ Regexp.new(/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/)
166166
#fail ArgumentError, 'invalid value for "country", must conform to the pattern /^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/.'
@@ -172,9 +172,9 @@ def country=(country)
172172
# Custom attribute writer method with validation
173173
# @param [Object] address1 Value to be assigned
174174
def address1=(address1)
175-
if address1.nil?
176-
fail ArgumentError, 'address1 cannot be nil'
177-
end
175+
#if address1.nil?
176+
#fail ArgumentError, 'address1 cannot be nil'
177+
#end
178178

179179
#if address1 !~ Regexp.new(/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/)
180180
#fail ArgumentError, 'invalid value for "address1", must conform to the pattern /^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/.'
@@ -196,9 +196,9 @@ def address2=(address2)
196196
# Custom attribute writer method with validation
197197
# @param [Object] locality Value to be assigned
198198
def locality=(locality)
199-
if locality.nil?
200-
fail ArgumentError, 'locality cannot be nil'
201-
end
199+
#if locality.nil?
200+
#fail ArgumentError, 'locality cannot be nil'
201+
#end
202202

203203
#if locality !~ Regexp.new(/^[0-9a-zA-Z _\\-¡-￿]+$/)
204204
#fail ArgumentError, 'invalid value for "locality", must conform to the pattern /^[0-9a-zA-Z _\\-¡-￿]+$/.'

lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_business_contact.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ def valid?
146146
# Custom attribute writer method with validation
147147
# @param [Object] first_name Value to be assigned
148148
def first_name=(first_name)
149-
if first_name.nil?
150-
fail ArgumentError, 'first_name cannot be nil'
151-
end
149+
#if first_name.nil?
150+
#fail ArgumentError, 'first_name cannot be nil'
151+
#end
152152

153153
#if first_name !~ Regexp.new(/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/)
154154
#fail ArgumentError, 'invalid value for "first_name", must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.'
@@ -170,9 +170,9 @@ def middle_name=(middle_name)
170170
# Custom attribute writer method with validation
171171
# @param [Object] last_name Value to be assigned
172172
def last_name=(last_name)
173-
if last_name.nil?
174-
fail ArgumentError, 'last_name cannot be nil'
175-
end
173+
#if last_name.nil?
174+
#fail ArgumentError, 'last_name cannot be nil'
175+
#end
176176

177177
#if last_name !~ Regexp.new(/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/)
178178
#fail ArgumentError, 'invalid value for "last_name", must conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.'
@@ -184,9 +184,9 @@ def last_name=(last_name)
184184
# Custom attribute writer method with validation
185185
# @param [Object] phone_number Value to be assigned
186186
def phone_number=(phone_number)
187-
if phone_number.nil?
188-
fail ArgumentError, 'phone_number cannot be nil'
189-
end
187+
#if phone_number.nil?
188+
#fail ArgumentError, 'phone_number cannot be nil'
189+
#end
190190

191191
#if phone_number !~ Regexp.new(/^[0-9a-zA-Z\\\\+\\\\-]+$/)
192192
#fail ArgumentError, 'invalid value for "phone_number", must conform to the pattern /^[0-9a-zA-Z\\\\+\\\\-]+$/.'
@@ -198,9 +198,9 @@ def phone_number=(phone_number)
198198
# Custom attribute writer method with validation
199199
# @param [Object] email Value to be assigned
200200
def email=(email)
201-
if email.nil?
202-
fail ArgumentError, 'email cannot be nil'
203-
end
201+
#if email.nil?
202+
#fail ArgumentError, 'email cannot be nil'
203+
#end
204204

205205
#if email !~ Regexp.new(/^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,50}|[0-9]{1,3})(\\]?)$/)
206206
#fail ArgumentError, 'invalid value for "email", must conform to the pattern /^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,50}|[0-9]{1,3})(\\]?)$/.'

lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def valid?
151151
# Custom attribute writer method with validation
152152
# @param [Object] account_holder_name Value to be assigned
153153
def account_holder_name=(account_holder_name)
154-
if account_holder_name.nil?
155-
fail ArgumentError, 'account_holder_name cannot be nil'
156-
end
154+
#if account_holder_name.nil?
155+
#fail ArgumentError, 'account_holder_name cannot be nil'
156+
#end
157157

158158
#if account_holder_name !~ Regexp.new(/^[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/)
159159
#fail ArgumentError, 'invalid value for "account_holder_name", must conform to the pattern /^[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/.'
@@ -175,9 +175,9 @@ def account_type=(account_type)
175175
# Custom attribute writer method with validation
176176
# @param [Object] account_routing_number Value to be assigned
177177
def account_routing_number=(account_routing_number)
178-
if account_routing_number.nil?
179-
fail ArgumentError, 'account_routing_number cannot be nil'
180-
end
178+
#if account_routing_number.nil?
179+
#fail ArgumentError, 'account_routing_number cannot be nil'
180+
#end
181181

182182
#if account_routing_number !~ Regexp.new(/\\d{9}/)
183183
#fail ArgumentError, 'invalid value for "account_routing_number", must conform to the pattern /\\d{9}/.'
@@ -189,9 +189,9 @@ def account_routing_number=(account_routing_number)
189189
# Custom attribute writer method with validation
190190
# @param [Object] account_number Value to be assigned
191191
def account_number=(account_number)
192-
if account_number.nil?
193-
fail ArgumentError, 'account_number cannot be nil'
194-
end
192+
#if account_number.nil?
193+
#fail ArgumentError, 'account_number cannot be nil'
194+
#end
195195

196196
#if account_number !~ Regexp.new(/^\\d{5,17}$/)
197197
#fail ArgumentError, 'invalid value for "account_number", must conform to the pattern /^\\d{5,17}$/.'

lib/cybersource_rest_client/models/boardingv1registrations_organization_information_owners.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ def valid?
283283
# Custom attribute writer method with validation
284284
# @param [Object] first_name Value to be assigned
285285
def first_name=(first_name)
286-
if first_name.nil?
287-
fail ArgumentError, 'first_name cannot be nil'
288-
end
286+
#if first_name.nil?
287+
#fail ArgumentError, 'first_name cannot be nil'
288+
#end
289289

290290
#if first_name !~ Regexp.new(/[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/)
291291
#fail ArgumentError, 'invalid value for "first_name", must conform to the pattern /[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/.'
@@ -307,9 +307,9 @@ def middle_name=(middle_name)
307307
# Custom attribute writer method with validation
308308
# @param [Object] last_name Value to be assigned
309309
def last_name=(last_name)
310-
if last_name.nil?
311-
fail ArgumentError, 'last_name cannot be nil'
312-
end
310+
#if last_name.nil?
311+
#fail ArgumentError, 'last_name cannot be nil'
312+
#end
313313

314314
#if last_name !~ Regexp.new(/[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/)
315315
#fail ArgumentError, 'invalid value for "last_name", must conform to the pattern /[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/.'
@@ -351,9 +351,9 @@ def passport_country=(passport_country)
351351
# Custom attribute writer method with validation
352352
# @param [Object] job_title Value to be assigned
353353
def job_title=(job_title)
354-
if job_title.nil?
355-
fail ArgumentError, 'job_title cannot be nil'
356-
end
354+
#if job_title.nil?
355+
#fail ArgumentError, 'job_title cannot be nil'
356+
#end
357357

358358
#if job_title !~ Regexp.new(/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/)
359359
#fail ArgumentError, 'invalid value for "job_title", must conform to the pattern /^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/.'
@@ -365,9 +365,9 @@ def job_title=(job_title)
365365
# Custom attribute writer method with validation
366366
# @param [Object] phone_number Value to be assigned
367367
def phone_number=(phone_number)
368-
if phone_number.nil?
369-
fail ArgumentError, 'phone_number cannot be nil'
370-
end
368+
#if phone_number.nil?
369+
#fail ArgumentError, 'phone_number cannot be nil'
370+
#end
371371

372372
#if phone_number !~ Regexp.new(/^[0-9a-zA-Z\\\\+\\\\-]+$/)
373373
#fail ArgumentError, 'invalid value for "phone_number", must conform to the pattern /^[0-9a-zA-Z\\\\+\\\\-]+$/.'
@@ -379,9 +379,9 @@ def phone_number=(phone_number)
379379
# Custom attribute writer method with validation
380380
# @param [Object] email Value to be assigned
381381
def email=(email)
382-
if email.nil?
383-
fail ArgumentError, 'email cannot be nil'
384-
end
382+
#if email.nil?
383+
#fail ArgumentError, 'email cannot be nil'
384+
#end
385385

386386
#if email !~ Regexp.new(/^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,50}|[0-9]{1,3})(\\]?)$/)
387387
#fail ArgumentError, 'invalid value for "email", must conform to the pattern /^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,50}|[0-9]{1,3})(\\]?)$/.'

lib/cybersource_rest_client/models/case_management_comments_request.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def valid?
7171
# Custom attribute writer method with validation
7272
# @param [Object] comments Value to be assigned
7373
def comments=(comments)
74-
if comments.nil?
75-
fail ArgumentError, 'comments cannot be nil'
76-
end
74+
#if comments.nil?
75+
#fail ArgumentError, 'comments cannot be nil'
76+
#end
7777

7878
@comments = comments
7979
end

lib/cybersource_rest_client/models/create_report_subscription_request.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ def organization_id=(organization_id)
256256
# Custom attribute writer method with validation
257257
# @param [Object] report_definition_name Value to be assigned
258258
def report_definition_name=(report_definition_name)
259-
if report_definition_name.nil?
260-
fail ArgumentError, 'report_definition_name cannot be nil'
261-
end
259+
#if report_definition_name.nil?
260+
#fail ArgumentError, 'report_definition_name cannot be nil'
261+
#end
262262

263263
#if report_definition_name !~ Regexp.new(/[a-zA-Z0-9-]+/)
264264
#fail ArgumentError, 'invalid value for "report_definition_name", must conform to the pattern /[a-zA-Z0-9-]+/.'
@@ -280,9 +280,9 @@ def report_interval=(report_interval)
280280
# Custom attribute writer method with validation
281281
# @param [Object] report_name Value to be assigned
282282
def report_name=(report_name)
283-
if report_name.nil?
284-
fail ArgumentError, 'report_name cannot be nil'
285-
end
283+
#if report_name.nil?
284+
#fail ArgumentError, 'report_name cannot be nil'
285+
#end
286286

287287
#if report_name !~ Regexp.new(/[a-zA-Z0-9-_ ]+/)
288288
#fail ArgumentError, 'invalid value for "report_name", must conform to the pattern /[a-zA-Z0-9-_ ]+/.'

0 commit comments

Comments
 (0)