Skip to content

Commit 90e6204

Browse files
committed
removing pattern check in valid function
1 parent 812882d commit 90e6204

21 files changed

+0
-427
lines changed

lib/Model/Boardingv1registrationsIntegrationInformationTenantConfigurations.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ public function listInvalidProperties()
152152
if ($this->container['solutionId'] === null) {
153153
$invalid_properties[] = "'solutionId' can't be null";
154154
}
155-
if (!preg_match("/^[0-9a-zA-Z_]+$/", $this->container['solutionId'])) {
156-
$invalid_properties[] = "invalid value for 'solutionId', must be conform to the pattern /^[0-9a-zA-Z_]+$/.";
157-
}
158-
159155
return $invalid_properties;
160156
}
161157

@@ -171,9 +167,6 @@ public function valid()
171167
if ($this->container['solutionId'] === null) {
172168
return false;
173169
}
174-
if (!preg_match("/^[0-9a-zA-Z_]+$/", $this->container['solutionId'])) {
175-
return false;
176-
}
177170
return true;
178171
}
179172

lib/Model/Boardingv1registrationsOrganizationInformation.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,6 @@ public function listInvalidProperties()
223223
{
224224
$invalid_properties = [];
225225

226-
if (!is_null($this->container['organizationId']) && !preg_match("/^[0-9a-zA-Z_]+$/", $this->container['organizationId'])) {
227-
$invalid_properties[] = "invalid value for 'organizationId', must be conform to the pattern /^[0-9a-zA-Z_]+$/.";
228-
}
229-
230-
if (!is_null($this->container['parentOrganizationId']) && !preg_match("/^[0-9a-zA-Z_]+$/", $this->container['parentOrganizationId'])) {
231-
$invalid_properties[] = "invalid value for 'parentOrganizationId', must be conform to the pattern /^[0-9a-zA-Z_]+$/.";
232-
}
233-
234226
$allowed_values = $this->getTypeAllowableValues();
235227
if (!in_array($this->container['type'], $allowed_values)) {
236228
$invalid_properties[] = sprintf(
@@ -262,12 +254,6 @@ public function listInvalidProperties()
262254
public function valid()
263255
{
264256

265-
if (!preg_match("/^[0-9a-zA-Z_]+$/", $this->container['organizationId'])) {
266-
return false;
267-
}
268-
if (!preg_match("/^[0-9a-zA-Z_]+$/", $this->container['parentOrganizationId'])) {
269-
return false;
270-
}
271257
$allowed_values = $this->getTypeAllowableValues();
272258
if (!in_array($this->container['type'], $allowed_values)) {
273259
return false;

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformation.php

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -436,18 +436,6 @@ public function listInvalidProperties()
436436
if ($this->container['name'] === null) {
437437
$invalid_properties[] = "'name' can't be null";
438438
}
439-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['name'])) {
440-
$invalid_properties[] = "invalid value for 'name', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.";
441-
}
442-
443-
if (!is_null($this->container['doingBusinessAs']) && !preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['doingBusinessAs'])) {
444-
$invalid_properties[] = "invalid value for 'doingBusinessAs', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.";
445-
}
446-
447-
if (!is_null($this->container['description']) && !preg_match("/[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/", $this->container['description'])) {
448-
$invalid_properties[] = "invalid value for 'description', must be conform to the pattern /[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&!?%«»€₣«»€₣ ]{1,}$/.";
449-
}
450-
451439
$allowed_values = $this->getTimeZoneAllowableValues();
452440
if (!in_array($this->container['timeZone'], $allowed_values)) {
453441
$invalid_properties[] = sprintf(
@@ -456,10 +444,6 @@ public function listInvalidProperties()
456444
);
457445
}
458446

459-
if (!is_null($this->container['websiteUrl']) && !preg_match("/\\b((?:https?:\/\/|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))/", $this->container['websiteUrl'])) {
460-
$invalid_properties[] = "invalid value for 'websiteUrl', must be conform to the pattern /\\b((?:https?:\/\/|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))/.";
461-
}
462-
463447
$allowed_values = $this->getTypeAllowableValues();
464448
if (!in_array($this->container['type'], $allowed_values)) {
465449
$invalid_properties[] = sprintf(
@@ -468,18 +452,6 @@ public function listInvalidProperties()
468452
);
469453
}
470454

471-
if (!is_null($this->container['taxId']) && !preg_match("/\\d{9}/", $this->container['taxId'])) {
472-
$invalid_properties[] = "invalid value for 'taxId', must be conform to the pattern /\\d{9}/.";
473-
}
474-
475-
if (!is_null($this->container['phoneNumber']) && !preg_match("/^[0-9a-zA-Z\\\\+\\\\-]+$/", $this->container['phoneNumber'])) {
476-
$invalid_properties[] = "invalid value for 'phoneNumber', must be conform to the pattern /^[0-9a-zA-Z\\\\+\\\\-]+$/.";
477-
}
478-
479-
if (!is_null($this->container['merchantCategoryCode']) && !preg_match("/^\\d{3,4}$/", $this->container['merchantCategoryCode'])) {
480-
$invalid_properties[] = "invalid value for 'merchantCategoryCode', must be conform to the pattern /^\\d{3,4}$/.";
481-
}
482-
483455
return $invalid_properties;
484456
}
485457

@@ -495,35 +467,14 @@ public function valid()
495467
if ($this->container['name'] === null) {
496468
return false;
497469
}
498-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['name'])) {
499-
return false;
500-
}
501-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['doingBusinessAs'])) {
502-
return false;
503-
}
504-
if (!preg_match("/[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿ\\n\\ra-zA-Z0-9().\\-_#,;\/\\\\@$:&amp;!?%«»€₣«»€₣ ]{1,}$/", $this->container['description'])) {
505-
return false;
506-
}
507470
$allowed_values = $this->getTimeZoneAllowableValues();
508471
if (!in_array($this->container['timeZone'], $allowed_values)) {
509472
return false;
510473
}
511-
if (!preg_match("/\\b((?:https?:\/\/|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))/", $this->container['websiteUrl'])) {
512-
return false;
513-
}
514474
$allowed_values = $this->getTypeAllowableValues();
515475
if (!in_array($this->container['type'], $allowed_values)) {
516476
return false;
517477
}
518-
if (!preg_match("/\\d{9}/", $this->container['taxId'])) {
519-
return false;
520-
}
521-
if (!preg_match("/^[0-9a-zA-Z\\\\+\\\\-]+$/", $this->container['phoneNumber'])) {
522-
return false;
523-
}
524-
if (!preg_match("/^\\d{3,4}$/", $this->container['merchantCategoryCode'])) {
525-
return false;
526-
}
527478
return true;
528479
}
529480

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformationAddress.php

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -176,36 +176,12 @@ public function listInvalidProperties()
176176
if ($this->container['country'] === null) {
177177
$invalid_properties[] = "'country' can't be null";
178178
}
179-
if (!preg_match("/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/", $this->container['country'])) {
180-
$invalid_properties[] = "invalid value for 'country', must be conform to the pattern /^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/.";
181-
}
182-
183179
if ($this->container['address1'] === null) {
184180
$invalid_properties[] = "'address1' can't be null";
185181
}
186-
if (!preg_match("/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/", $this->container['address1'])) {
187-
$invalid_properties[] = "invalid value for 'address1', must be conform to the pattern /^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/.";
188-
}
189-
190-
if (!is_null($this->container['address2']) && !preg_match("/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/", $this->container['address2'])) {
191-
$invalid_properties[] = "invalid value for 'address2', must be conform to the pattern /^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/.";
192-
}
193-
194182
if ($this->container['locality'] === null) {
195183
$invalid_properties[] = "'locality' can't be null";
196184
}
197-
if (!preg_match("/^[0-9a-zA-Z _\\-¡-￿]+$/", $this->container['locality'])) {
198-
$invalid_properties[] = "invalid value for 'locality', must be conform to the pattern /^[0-9a-zA-Z _\\-¡-￿]+$/.";
199-
}
200-
201-
if (!is_null($this->container['administrativeArea']) && !preg_match("/^[0-9a-zA-Z¡-￿ ]*$/", $this->container['administrativeArea'])) {
202-
$invalid_properties[] = "invalid value for 'administrativeArea', must be conform to the pattern /^[0-9a-zA-Z¡-￿ ]*$/.";
203-
}
204-
205-
if (!is_null($this->container['postalCode']) && !preg_match("/^[0-9a-zA-Z ]*$/", $this->container['postalCode'])) {
206-
$invalid_properties[] = "invalid value for 'postalCode', must be conform to the pattern /^[0-9a-zA-Z ]*$/.";
207-
}
208-
209185
return $invalid_properties;
210186
}
211187

@@ -221,30 +197,12 @@ public function valid()
221197
if ($this->container['country'] === null) {
222198
return false;
223199
}
224-
if (!preg_match("/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/", $this->container['country'])) {
225-
return false;
226-
}
227200
if ($this->container['address1'] === null) {
228201
return false;
229202
}
230-
if (!preg_match("/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/", $this->container['address1'])) {
231-
return false;
232-
}
233-
if (!preg_match("/^[À-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/@$:!% ]{1,}$/", $this->container['address2'])) {
234-
return false;
235-
}
236203
if ($this->container['locality'] === null) {
237204
return false;
238205
}
239-
if (!preg_match("/^[0-9a-zA-Z _\\-¡-￿]+$/", $this->container['locality'])) {
240-
return false;
241-
}
242-
if (!preg_match("/^[0-9a-zA-Z¡-￿ ]*$/", $this->container['administrativeArea'])) {
243-
return false;
244-
}
245-
if (!preg_match("/^[0-9a-zA-Z ]*$/", $this->container['postalCode'])) {
246-
return false;
247-
}
248206
return true;
249207
}
250208

lib/Model/Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -170,35 +170,15 @@ public function listInvalidProperties()
170170
if ($this->container['firstName'] === null) {
171171
$invalid_properties[] = "'firstName' can't be null";
172172
}
173-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['firstName'])) {
174-
$invalid_properties[] = "invalid value for 'firstName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.";
175-
}
176-
177-
if (!is_null($this->container['middleName']) && !preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['middleName'])) {
178-
$invalid_properties[] = "invalid value for 'middleName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.";
179-
}
180-
181173
if ($this->container['lastName'] === null) {
182174
$invalid_properties[] = "'lastName' can't be null";
183175
}
184-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['lastName'])) {
185-
$invalid_properties[] = "invalid value for 'lastName', must be conform to the pattern /^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/.";
186-
}
187-
188176
if ($this->container['phoneNumber'] === null) {
189177
$invalid_properties[] = "'phoneNumber' can't be null";
190178
}
191-
if (!preg_match("/^[0-9a-zA-Z\\\\+\\\\-]+$/", $this->container['phoneNumber'])) {
192-
$invalid_properties[] = "invalid value for 'phoneNumber', must be conform to the pattern /^[0-9a-zA-Z\\\\+\\\\-]+$/.";
193-
}
194-
195179
if ($this->container['email'] === null) {
196180
$invalid_properties[] = "'email' can't be null";
197181
}
198-
if (!preg_match("/^([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})(\\]?)$/", $this->container['email'])) {
199-
$invalid_properties[] = "invalid value for 'email', must be 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})(\\]?)$/.";
200-
}
201-
202182
return $invalid_properties;
203183
}
204184

@@ -214,30 +194,15 @@ public function valid()
214194
if ($this->container['firstName'] === null) {
215195
return false;
216196
}
217-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['firstName'])) {
218-
return false;
219-
}
220-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['middleName'])) {
221-
return false;
222-
}
223197
if ($this->container['lastName'] === null) {
224198
return false;
225199
}
226-
if (!preg_match("/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-￿]+$/", $this->container['lastName'])) {
227-
return false;
228-
}
229200
if ($this->container['phoneNumber'] === null) {
230201
return false;
231202
}
232-
if (!preg_match("/^[0-9a-zA-Z\\\\+\\\\-]+$/", $this->container['phoneNumber'])) {
233-
return false;
234-
}
235203
if ($this->container['email'] === null) {
236204
return false;
237205
}
238-
if (!preg_match("/^([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})(\\]?)$/", $this->container['email'])) {
239-
return false;
240-
}
241206
return true;
242207
}
243208

lib/Model/Boardingv1registrationsOrganizationInformationKYCDepositBankAccount.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ public function listInvalidProperties()
182182
if ($this->container['accountHolderName'] === null) {
183183
$invalid_properties[] = "'accountHolderName' can't be null";
184184
}
185-
if (!preg_match("/^[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/\\\\@$:&amp;!?%«»€₣«»€₣ ]{1,}$/", $this->container['accountHolderName'])) {
186-
$invalid_properties[] = "invalid value for 'accountHolderName', must be conform to the pattern /^[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/\\\\@$:&amp;!?%«»€₣«»€₣ ]{1,}$/.";
187-
}
188-
189185
if ($this->container['accountType'] === null) {
190186
$invalid_properties[] = "'accountType' can't be null";
191187
}
@@ -200,17 +196,9 @@ public function listInvalidProperties()
200196
if ($this->container['accountRoutingNumber'] === null) {
201197
$invalid_properties[] = "'accountRoutingNumber' can't be null";
202198
}
203-
if (!preg_match("/\\d{9}/", $this->container['accountRoutingNumber'])) {
204-
$invalid_properties[] = "invalid value for 'accountRoutingNumber', must be conform to the pattern /\\d{9}/.";
205-
}
206-
207199
if ($this->container['accountNumber'] === null) {
208200
$invalid_properties[] = "'accountNumber' can't be null";
209201
}
210-
if (!preg_match("/^\\d{5,17}$/", $this->container['accountNumber'])) {
211-
$invalid_properties[] = "invalid value for 'accountNumber', must be conform to the pattern /^\\d{5,17}$/.";
212-
}
213-
214202
return $invalid_properties;
215203
}
216204

@@ -226,9 +214,6 @@ public function valid()
226214
if ($this->container['accountHolderName'] === null) {
227215
return false;
228216
}
229-
if (!preg_match("/^[À-ÖØ-öø-ǿÀ-ÖØ-öø-ǿa-zA-Z0-9().\\-_#,;\/\\\\@$:&amp;!?%«»€₣«»€₣ ]{1,}$/", $this->container['accountHolderName'])) {
230-
return false;
231-
}
232217
if ($this->container['accountType'] === null) {
233218
return false;
234219
}
@@ -239,15 +224,9 @@ public function valid()
239224
if ($this->container['accountRoutingNumber'] === null) {
240225
return false;
241226
}
242-
if (!preg_match("/\\d{9}/", $this->container['accountRoutingNumber'])) {
243-
return false;
244-
}
245227
if ($this->container['accountNumber'] === null) {
246228
return false;
247229
}
248-
if (!preg_match("/^\\d{5,17}$/", $this->container['accountNumber'])) {
249-
return false;
250-
}
251230
return true;
252231
}
253232

0 commit comments

Comments
 (0)