Skip to content

Commit 7dd029a

Browse files
Merge remote-tracking branch 'origin/feature/remove-pattern-validation' into July-24-release
2 parents 7fa2e02 + 90e6204 commit 7dd029a

File tree

83 files changed

+0
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+0
-760
lines changed

generator/cybersource-php-template/api.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ use \{{invokerPackage}}\Logging\LogFactory as LogFactory;
142142
throw new \InvalidArgumentException('Missing the required parameter ${{paramName}} when calling {{operationId}}');
143143
}
144144
{{/required}}
145-
146145
{{/allParams}}
147146
// parse inputs
148147
$resourcePath = "{{{path}}}";

generator/cybersource-php-template/model_generic.mustache

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
156156

157157
{{/isContainer}}
158158
{{/isEnum}}
159-
{{#hasValidation}}
160-
{{#pattern}}
161-
if ({{^required}}!is_null($this->container['{{name}}']) && {{/required}}!preg_match("{{{pattern}}}", $this->container['{{name}}'])) {
162-
$invalid_properties[] = "invalid value for '{{name}}', must be conform to the pattern {{{pattern}}}.";
163-
}
164-
165-
{{/pattern}}
166-
{{/hasValidation}}
167159
{{/vars}}
168160
return $invalid_properties;
169161
}
@@ -196,13 +188,6 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
196188
}
197189
{{/isContainer}}
198190
{{/isEnum}}
199-
{{#hasValidation}}
200-
{{#pattern}}
201-
if (!preg_match("{{{pattern}}}", $this->container['{{name}}'])) {
202-
return false;
203-
}
204-
{{/pattern}}
205-
{{/hasValidation}}
206191
{{/vars}}
207192
return true;
208193
}

lib/Api/AsymmetricKeyManagementApi.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public function createP12KeysWithHttpInfo($createP12KeysRequest)
127127
self::$logger->error("InvalidArgumentException : Missing the required parameter $createP12KeysRequest when calling createP12Keys");
128128
throw new \InvalidArgumentException('Missing the required parameter $createP12KeysRequest when calling createP12Keys');
129129
}
130-
131130
// parse inputs
132131
$resourcePath = "/kms/v2/keys-asym";
133132
$httpBody = '';
@@ -241,7 +240,6 @@ public function deleteBulkP12KeysWithHttpInfo($deleteBulkP12KeysRequest)
241240
self::$logger->error("InvalidArgumentException : Missing the required parameter $deleteBulkP12KeysRequest when calling deleteBulkP12Keys");
242241
throw new \InvalidArgumentException('Missing the required parameter $deleteBulkP12KeysRequest when calling deleteBulkP12Keys');
243242
}
244-
245243
// parse inputs
246244
$resourcePath = "/kms/v2/keys-asym/deletes";
247245
$httpBody = '';
@@ -355,7 +353,6 @@ public function getP12KeyDetailsWithHttpInfo($keyId)
355353
self::$logger->error("InvalidArgumentException : Missing the required parameter $keyId when calling getP12KeyDetails");
356354
throw new \InvalidArgumentException('Missing the required parameter $keyId when calling getP12KeyDetails');
357355
}
358-
359356
// parse inputs
360357
$resourcePath = "/kms/v2/keys-asym/{keyId}";
361358
$httpBody = '';
@@ -472,13 +469,11 @@ public function updateAsymKeyWithHttpInfo($keyId, $updateAsymKeysRequest)
472469
self::$logger->error("InvalidArgumentException : Missing the required parameter $keyId when calling updateAsymKey");
473470
throw new \InvalidArgumentException('Missing the required parameter $keyId when calling updateAsymKey');
474471
}
475-
476472
// verify the required parameter 'updateAsymKeysRequest' is set
477473
if ($updateAsymKeysRequest === null) {
478474
self::$logger->error("InvalidArgumentException : Missing the required parameter $updateAsymKeysRequest when calling updateAsymKey");
479475
throw new \InvalidArgumentException('Missing the required parameter $updateAsymKeysRequest when calling updateAsymKey');
480476
}
481-
482477
// parse inputs
483478
$resourcePath = "/kms/v2/keys-asym/{keyId}";
484479
$httpBody = '';

lib/Api/BatchesApi.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public function getBatchReportWithHttpInfo($batchId)
127127
self::$logger->error("InvalidArgumentException : Missing the required parameter $batchId when calling getBatchReport");
128128
throw new \InvalidArgumentException('Missing the required parameter $batchId when calling getBatchReport');
129129
}
130-
131130
// parse inputs
132131
$resourcePath = "/accountupdater/v1/batches/{batchId}/report";
133132
$httpBody = '';
@@ -238,7 +237,6 @@ public function getBatchStatusWithHttpInfo($batchId)
238237
self::$logger->error("InvalidArgumentException : Missing the required parameter $batchId when calling getBatchStatus");
239238
throw new \InvalidArgumentException('Missing the required parameter $batchId when calling getBatchStatus');
240239
}
241-
242240
// parse inputs
243241
$resourcePath = "/accountupdater/v1/batches/{batchId}/status";
244242
$httpBody = '';
@@ -350,10 +348,6 @@ public function getBatchesList($offset = '0', $limit = '20', $fromDate = null, $
350348
*/
351349
public function getBatchesListWithHttpInfo($offset = '0', $limit = '20', $fromDate = null, $toDate = null)
352350
{
353-
354-
355-
356-
357351
// parse inputs
358352
$resourcePath = "/accountupdater/v1/batches";
359353
$httpBody = '';
@@ -480,7 +474,6 @@ public function postBatchWithHttpInfo($body)
480474
self::$logger->error("InvalidArgumentException : Missing the required parameter $body when calling postBatch");
481475
throw new \InvalidArgumentException('Missing the required parameter $body when calling postBatch');
482476
}
483-
484477
// parse inputs
485478
$resourcePath = "/accountupdater/v1/batches";
486479
$httpBody = '';

lib/Api/BillingAgreementsApi.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,11 @@ public function billingAgreementsDeRegistrationWithHttpInfo($modifyBillingAgreem
129129
self::$logger->error("InvalidArgumentException : Missing the required parameter $modifyBillingAgreement when calling billingAgreementsDeRegistration");
130130
throw new \InvalidArgumentException('Missing the required parameter $modifyBillingAgreement when calling billingAgreementsDeRegistration');
131131
}
132-
133132
// verify the required parameter 'id' is set
134133
if ($id === null) {
135134
self::$logger->error("InvalidArgumentException : Missing the required parameter $id when calling billingAgreementsDeRegistration");
136135
throw new \InvalidArgumentException('Missing the required parameter $id when calling billingAgreementsDeRegistration');
137136
}
138-
139137
// parse inputs
140138
$resourcePath = "/pts/v2/billing-agreements/{id}";
141139
$httpBody = '';
@@ -259,13 +257,11 @@ public function billingAgreementsIntimationWithHttpInfo($intimateBillingAgreemen
259257
self::$logger->error("InvalidArgumentException : Missing the required parameter $intimateBillingAgreement when calling billingAgreementsIntimation");
260258
throw new \InvalidArgumentException('Missing the required parameter $intimateBillingAgreement when calling billingAgreementsIntimation');
261259
}
262-
263260
// verify the required parameter 'id' is set
264261
if ($id === null) {
265262
self::$logger->error("InvalidArgumentException : Missing the required parameter $id when calling billingAgreementsIntimation");
266263
throw new \InvalidArgumentException('Missing the required parameter $id when calling billingAgreementsIntimation');
267264
}
268-
269265
// parse inputs
270266
$resourcePath = "/pts/v2/billing-agreements/{id}/intimations";
271267
$httpBody = '';
@@ -387,7 +383,6 @@ public function billingAgreementsRegistrationWithHttpInfo($createBillingAgreemen
387383
self::$logger->error("InvalidArgumentException : Missing the required parameter $createBillingAgreement when calling billingAgreementsRegistration");
388384
throw new \InvalidArgumentException('Missing the required parameter $createBillingAgreement when calling billingAgreementsRegistration');
389385
}
390-
391386
// parse inputs
392387
$resourcePath = "/pts/v2/billing-agreements";
393388
$httpBody = '';

lib/Api/CaptureApi.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,11 @@ public function capturePaymentWithHttpInfo($capturePaymentRequest, $id)
129129
self::$logger->error("InvalidArgumentException : Missing the required parameter $capturePaymentRequest when calling capturePayment");
130130
throw new \InvalidArgumentException('Missing the required parameter $capturePaymentRequest when calling capturePayment');
131131
}
132-
133132
// verify the required parameter 'id' is set
134133
if ($id === null) {
135134
self::$logger->error("InvalidArgumentException : Missing the required parameter $id when calling capturePayment");
136135
throw new \InvalidArgumentException('Missing the required parameter $id when calling capturePayment');
137136
}
138-
139137
// parse inputs
140138
$resourcePath = "/pts/v2/payments/{id}/captures";
141139
$httpBody = '';

lib/Api/ChargebackDetailsApi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,11 @@ public function getChargebackDetailsWithHttpInfo($startTime, $endTime, $organiza
131131
self::$logger->error("InvalidArgumentException : Missing the required parameter $startTime when calling getChargebackDetails");
132132
throw new \InvalidArgumentException('Missing the required parameter $startTime when calling getChargebackDetails');
133133
}
134-
135134
// verify the required parameter 'endTime' is set
136135
if ($endTime === null) {
137136
self::$logger->error("InvalidArgumentException : Missing the required parameter $endTime when calling getChargebackDetails");
138137
throw new \InvalidArgumentException('Missing the required parameter $endTime when calling getChargebackDetails');
139138
}
140-
141-
142139
// parse inputs
143140
$resourcePath = "/reporting/v3/chargeback-details";
144141
$httpBody = '';

lib/Api/ChargebackSummariesApi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,11 @@ public function getChargebackSummariesWithHttpInfo($startTime, $endTime, $organi
131131
self::$logger->error("InvalidArgumentException : Missing the required parameter $startTime when calling getChargebackSummaries");
132132
throw new \InvalidArgumentException('Missing the required parameter $startTime when calling getChargebackSummaries');
133133
}
134-
135134
// verify the required parameter 'endTime' is set
136135
if ($endTime === null) {
137136
self::$logger->error("InvalidArgumentException : Missing the required parameter $endTime when calling getChargebackSummaries");
138137
throw new \InvalidArgumentException('Missing the required parameter $endTime when calling getChargebackSummaries');
139138
}
140-
141-
142139
// parse inputs
143140
$resourcePath = "/reporting/v3/chargeback-summaries";
144141
$httpBody = '';

lib/Api/ConversionDetailsApi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,11 @@ public function getConversionDetailWithHttpInfo($startTime, $endTime, $organizat
131131
self::$logger->error("InvalidArgumentException : Missing the required parameter $startTime when calling getConversionDetail");
132132
throw new \InvalidArgumentException('Missing the required parameter $startTime when calling getConversionDetail');
133133
}
134-
135134
// verify the required parameter 'endTime' is set
136135
if ($endTime === null) {
137136
self::$logger->error("InvalidArgumentException : Missing the required parameter $endTime when calling getConversionDetail");
138137
throw new \InvalidArgumentException('Missing the required parameter $endTime when calling getConversionDetail');
139138
}
140-
141-
142139
// parse inputs
143140
$resourcePath = "/reporting/v3/conversion-details";
144141
$httpBody = '';

lib/Api/CreateNewWebhooksApi.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public function createWebhookSubscription($createWebhookRequest = null)
124124
*/
125125
public function createWebhookSubscriptionWithHttpInfo($createWebhookRequest = null)
126126
{
127-
128127
// parse inputs
129128
$resourcePath = "/notification-subscriptions/v1/webhooks";
130129
$httpBody = '';
@@ -232,7 +231,6 @@ public function findProductsToSubscribeWithHttpInfo($organizationId)
232231
self::$logger->error("InvalidArgumentException : Missing the required parameter $organizationId when calling findProductsToSubscribe");
233232
throw new \InvalidArgumentException('Missing the required parameter $organizationId when calling findProductsToSubscribe');
234233
}
235-
236234
// parse inputs
237235
$resourcePath = "/notification-subscriptions/v1/products/{organizationId}";
238236
$httpBody = '';
@@ -347,15 +345,11 @@ public function saveSymEgressKeyWithHttpInfo($vCSenderOrganizationId, $vCPermiss
347345
self::$logger->error("InvalidArgumentException : Missing the required parameter $vCSenderOrganizationId when calling saveSymEgressKey");
348346
throw new \InvalidArgumentException('Missing the required parameter $vCSenderOrganizationId when calling saveSymEgressKey');
349347
}
350-
351348
// verify the required parameter 'vCPermissions' is set
352349
if ($vCPermissions === null) {
353350
self::$logger->error("InvalidArgumentException : Missing the required parameter $vCPermissions when calling saveSymEgressKey");
354351
throw new \InvalidArgumentException('Missing the required parameter $vCPermissions when calling saveSymEgressKey');
355352
}
356-
357-
358-
359353
// parse inputs
360354
$resourcePath = "/kms/egress/v2/keys-sym";
361355
$httpBody = '';

0 commit comments

Comments
 (0)