Skip to content

Add mle flag #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generator/cybersource-php-template/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ use \Exception;
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = {{#vendorExtensions.x-devcenter-metaData.isMLEsupported}}true;{{/vendorExtensions.x-devcenter-metaData.isMLEsupported}}{{^vendorExtensions.x-devcenter-metaData.isMLEsupported}}false;{{/vendorExtensions.x-devcenter-metaData.isMLEsupported}}
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "{{operationId}},{{operationId}}WithHttpInfo")) {
$inboundMLEStatus = '{{#vendorExtensions.x-devcenter-metaData.inboundMLEStatus}}{{vendorExtensions.x-devcenter-metaData.inboundMLEStatus}}{{/vendorExtensions.x-devcenter-metaData.inboundMLEStatus}}{{^vendorExtensions.x-devcenter-metaData.inboundMLEStatus}}false{{/vendorExtensions.x-devcenter-metaData.inboundMLEStatus}}';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "{{operationId}},{{operationId}}WithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
16 changes: 8 additions & 8 deletions lib/Api/BatchesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public function getBatchReportWithHttpInfo($batchId)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getBatchReport,getBatchReportWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getBatchReport,getBatchReportWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -288,8 +288,8 @@ public function getBatchStatusWithHttpInfo($batchId)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getBatchStatus,getBatchStatusWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getBatchStatus,getBatchStatusWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -421,8 +421,8 @@ public function getBatchesListWithHttpInfo($offset = '0', $limit = '20', $fromDa
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getBatchesList,getBatchesListWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getBatchesList,getBatchesListWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -552,8 +552,8 @@ public function postBatchWithHttpInfo($body)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "postBatch,postBatchWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "postBatch,postBatchWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/BillingAgreementsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ public function billingAgreementsDeRegistrationWithHttpInfo($modifyBillingAgreem
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = true;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "billingAgreementsDeRegistration,billingAgreementsDeRegistrationWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "billingAgreementsDeRegistration,billingAgreementsDeRegistrationWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -320,8 +320,8 @@ public function billingAgreementsIntimationWithHttpInfo($intimateBillingAgreemen
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = true;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "billingAgreementsIntimation,billingAgreementsIntimationWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "billingAgreementsIntimation,billingAgreementsIntimationWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -447,8 +447,8 @@ public function billingAgreementsRegistrationWithHttpInfo($createBillingAgreemen
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = true;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "billingAgreementsRegistration,billingAgreementsRegistrationWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "billingAgreementsRegistration,billingAgreementsRegistrationWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/BinLookupApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public function getAccountInfoWithHttpInfo($createBinLookupRequest)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getAccountInfo,getAccountInfoWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getAccountInfo,getAccountInfoWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/CaptureApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ public function capturePaymentWithHttpInfo($capturePaymentRequest, $id)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = true;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "capturePayment,capturePaymentWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "capturePayment,capturePaymentWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/ChargebackDetailsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ public function getChargebackDetailsWithHttpInfo($startTime, $endTime, $organiza
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getChargebackDetails,getChargebackDetailsWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getChargebackDetails,getChargebackDetailsWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/ChargebackSummariesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ public function getChargebackSummariesWithHttpInfo($startTime, $endTime, $organi
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getChargebackSummaries,getChargebackSummariesWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getChargebackSummaries,getChargebackSummariesWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/ConversionDetailsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ public function getConversionDetailWithHttpInfo($startTime, $endTime, $organizat
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getConversionDetail,getConversionDetailWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getConversionDetail,getConversionDetailWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
12 changes: 6 additions & 6 deletions lib/Api/CreateNewWebhooksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ public function findProductsToSubscribeWithHttpInfo($organizationId)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "findProductsToSubscribe,findProductsToSubscribeWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "findProductsToSubscribe,findProductsToSubscribeWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -278,8 +278,8 @@ public function notificationSubscriptionsV2WebhooksPostWithHttpInfo($createWebho
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "notificationSubscriptionsV2WebhooksPost,notificationSubscriptionsV2WebhooksPostWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "notificationSubscriptionsV2WebhooksPost,notificationSubscriptionsV2WebhooksPostWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -420,8 +420,8 @@ public function saveSymEgressKeyWithHttpInfo($vCSenderOrganizationId, $vCPermiss
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "saveSymEgressKey,saveSymEgressKeyWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "saveSymEgressKey,saveSymEgressKeyWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/CreditApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public function createCreditWithHttpInfo($createCreditRequest)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = true;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "createCredit,createCreditWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "createCredit,createCreditWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
16 changes: 8 additions & 8 deletions lib/Api/CustomerApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public function deleteCustomerWithHttpInfo($customerId, $profileId = null)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "deleteCustomer,deleteCustomerWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "deleteCustomer,deleteCustomerWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -316,8 +316,8 @@ public function getCustomerWithHttpInfo($customerId, $profileId = null)
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getCustomer,getCustomerWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getCustomer,getCustomerWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -486,8 +486,8 @@ public function patchCustomerWithHttpInfo($customerId, $patchCustomerRequest, $p
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "patchCustomer,patchCustomerWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "patchCustomer,patchCustomerWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -639,8 +639,8 @@ public function postCustomerWithHttpInfo($postCustomerRequest, $profileId = null
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "postCustomer,postCustomerWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "postCustomer,postCustomerWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
20 changes: 10 additions & 10 deletions lib/Api/CustomerPaymentInstrumentApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ public function deleteCustomerPaymentInstrumentWithHttpInfo($customerId, $paymen
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "deleteCustomerPaymentInstrument,deleteCustomerPaymentInstrumentWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "deleteCustomerPaymentInstrument,deleteCustomerPaymentInstrumentWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -350,8 +350,8 @@ public function getCustomerPaymentInstrumentWithHttpInfo($customerId, $paymentIn
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getCustomerPaymentInstrument,getCustomerPaymentInstrumentWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getCustomerPaymentInstrument,getCustomerPaymentInstrumentWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -512,8 +512,8 @@ public function getCustomerPaymentInstrumentsListWithHttpInfo($customerId, $prof
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "getCustomerPaymentInstrumentsList,getCustomerPaymentInstrumentsListWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "getCustomerPaymentInstrumentsList,getCustomerPaymentInstrumentsListWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -699,8 +699,8 @@ public function patchCustomersPaymentInstrumentWithHttpInfo($customerId, $paymen
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "patchCustomersPaymentInstrument,patchCustomersPaymentInstrumentWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "patchCustomersPaymentInstrument,patchCustomersPaymentInstrumentWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down Expand Up @@ -867,8 +867,8 @@ public function postCustomerPaymentInstrumentWithHttpInfo($customerId, $postCust
}

//MLE check and mle encryption for req body
$isMLESupportedByCybsForApi = false;
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $isMLESupportedByCybsForApi, "postCustomerPaymentInstrument,postCustomerPaymentInstrumentWithHttpInfo")) {
$inboundMLEStatus = 'false';
if (MLEUtility::checkIsMLEForAPI($this->apiClient->merchantConfig, $inboundMLEStatus, "postCustomerPaymentInstrument,postCustomerPaymentInstrumentWithHttpInfo")) {
try {
$httpBody = MLEUtility::encryptRequestPayload($this->apiClient->merchantConfig, $httpBody);
} catch (Exception $e) {
Expand Down
Loading