From 0101ccc10846ca6c455f1fc7a08955127d5a2e14 Mon Sep 17 00:00:00 2001 From: mahmishr Date: Thu, 10 Jul 2025 12:25:43 +0530 Subject: [PATCH 1/5] Update api.mustache --- .../libraries/okhttp-gson/api.mustache | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache index fcc08528..febc72e7 100644 --- a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache +++ b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache @@ -89,8 +89,9 @@ public class {{classname}} { } {{/bodyParam}} - boolean 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(apiClient.merchantConfig, isMLESupportedByCybsForApi, "{{operationId}},{{operationId}}Async,{{operationId}}WithHttpInfo,{{operationId}}Call")) { + String 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(apiClient.merchantConfig, inboundMLEStatus, "{{operationId}},{{operationId}}Async,{{operationId}}WithHttpInfo,{{operationId}}Call")) { try { {{localVariablePrefix}}localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { From 56347e68a965db07c9abfabd93819d3c94872749 Mon Sep 17 00:00:00 2001 From: mahmishr Date: Tue, 29 Jul 2025 11:39:17 +0530 Subject: [PATCH 2/5] auto gen code --- pom.xml | 2 +- src/main/java/Api/BatchesApi.java | 20 ++++++---- src/main/java/Api/BillingAgreementsApi.java | 15 ++++--- src/main/java/Api/BinLookupApi.java | 5 ++- src/main/java/Api/CaptureApi.java | 5 ++- src/main/java/Api/ChargebackDetailsApi.java | 5 ++- src/main/java/Api/ChargebackSummariesApi.java | 5 ++- src/main/java/Api/ConversionDetailsApi.java | 5 ++- src/main/java/Api/CreateNewWebhooksApi.java | 15 ++++--- src/main/java/Api/CreditApi.java | 5 ++- src/main/java/Api/CustomerApi.java | 20 ++++++---- .../Api/CustomerPaymentInstrumentApi.java | 25 +++++++----- .../java/Api/CustomerShippingAddressApi.java | 25 +++++++----- src/main/java/Api/DecisionManagerApi.java | 25 +++++++----- src/main/java/Api/DeviceDeAssociationApi.java | 10 +++-- src/main/java/Api/DeviceSearchApi.java | 10 +++-- src/main/java/Api/DownloadDtdApi.java | 5 ++- src/main/java/Api/DownloadXsdApi.java | 5 ++- src/main/java/Api/EmvTagDetailsApi.java | 10 +++-- src/main/java/Api/FlexApiApi.java | 5 ++- .../java/Api/InstrumentIdentifierApi.java | 30 ++++++++------ .../InterchangeClearingLevelDetailsApi.java | 5 ++- src/main/java/Api/InvoiceSettingsApi.java | 10 +++-- src/main/java/Api/InvoicesApi.java | 30 ++++++++------ src/main/java/Api/ManageWebhooksApi.java | 35 +++++++++------- src/main/java/Api/MerchantBoardingApi.java | 10 +++-- .../java/Api/MicroformIntegrationApi.java | 5 ++- src/main/java/Api/NetFundingsApi.java | 5 ++- .../java/Api/NotificationOfChangesApi.java | 5 ++- src/main/java/Api/OrdersApi.java | 10 +++-- src/main/java/Api/PayerAuthenticationApi.java | 15 ++++--- .../java/Api/PaymentBatchSummariesApi.java | 5 ++- src/main/java/Api/PaymentInstrumentApi.java | 20 ++++++---- src/main/java/Api/PaymentLinksApi.java | 20 ++++++---- src/main/java/Api/PaymentsApi.java | 30 ++++++++------ src/main/java/Api/PayoutsApi.java | 5 ++- src/main/java/Api/PlansApi.java | 40 +++++++++++-------- .../java/Api/PurchaseAndRefundDetailsApi.java | 5 ++- src/main/java/Api/PushFundsApi.java | 5 ++- src/main/java/Api/RefundApi.java | 10 +++-- src/main/java/Api/ReportDefinitionsApi.java | 10 +++-- src/main/java/Api/ReportDownloadsApi.java | 5 ++- src/main/java/Api/ReportSubscriptionsApi.java | 25 +++++++----- src/main/java/Api/ReportsApi.java | 15 ++++--- src/main/java/Api/RetrievalDetailsApi.java | 5 ++- src/main/java/Api/RetrievalSummariesApi.java | 5 ++- src/main/java/Api/ReversalApi.java | 10 +++-- src/main/java/Api/SearchTransactionsApi.java | 10 +++-- src/main/java/Api/SecureFileShareApi.java | 10 +++-- src/main/java/Api/SubscriptionsApi.java | 40 +++++++++++-------- .../java/Api/SubscriptionsFollowOnsApi.java | 10 +++-- src/main/java/Api/TaxesApi.java | 10 +++-- src/main/java/Api/TokenApi.java | 10 +++-- src/main/java/Api/TokenizedCardApi.java | 15 ++++--- src/main/java/Api/TransactionBatchesApi.java | 20 ++++++---- src/main/java/Api/TransactionDetailsApi.java | 5 ++- src/main/java/Api/TransientTokenDataApi.java | 10 +++-- .../Api/UnifiedCheckoutCaptureContextApi.java | 5 ++- src/main/java/Api/UserManagementApi.java | 5 ++- .../java/Api/UserManagementSearchApi.java | 5 ++- src/main/java/Api/VerificationApi.java | 10 +++-- src/main/java/Api/VoidApi.java | 25 +++++++----- src/main/java/Invokers/ApiClient.java | 4 +- 63 files changed, 474 insertions(+), 317 deletions(-) diff --git a/pom.xml b/pom.xml index 08732aab..0dc088a1 100644 --- a/pom.xml +++ b/pom.xml @@ -304,7 +304,7 @@ com.cybersource AuthenticationSdk - 0.0.36 + 0.0.37-SNAPSHOT diff --git a/src/main/java/Api/BatchesApi.java b/src/main/java/Api/BatchesApi.java index ae032513..b6808509 100644 --- a/src/main/java/Api/BatchesApi.java +++ b/src/main/java/Api/BatchesApi.java @@ -83,8 +83,9 @@ public okhttp3.Call getBatchReportCall(String batchId, final ProgressResponseBod localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getBatchReport,getBatchReportAsync,getBatchReportWithHttpInfo,getBatchReportCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getBatchReport,getBatchReportAsync,getBatchReportWithHttpInfo,getBatchReportCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -228,8 +229,9 @@ public okhttp3.Call getBatchStatusCall(String batchId, final ProgressResponseBod localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getBatchStatus,getBatchStatusAsync,getBatchStatusWithHttpInfo,getBatchStatusCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getBatchStatus,getBatchStatusAsync,getBatchStatusWithHttpInfo,getBatchStatusCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -376,8 +378,9 @@ public okhttp3.Call getBatchesListCall(Long offset, Long limit, String fromDate, localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getBatchesList,getBatchesListAsync,getBatchesListWithHttpInfo,getBatchesListCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getBatchesList,getBatchesListAsync,getBatchesListWithHttpInfo,getBatchesListCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -528,8 +531,9 @@ public okhttp3.Call postBatchCall(Body body, final ProgressResponseBody.Progress SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(body, Body.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "postBatch,postBatchAsync,postBatchWithHttpInfo,postBatchCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "postBatch,postBatchAsync,postBatchWithHttpInfo,postBatchCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/BillingAgreementsApi.java b/src/main/java/Api/BillingAgreementsApi.java index 2daeb097..af0cb752 100644 --- a/src/main/java/Api/BillingAgreementsApi.java +++ b/src/main/java/Api/BillingAgreementsApi.java @@ -83,8 +83,9 @@ public okhttp3.Call billingAgreementsDeRegistrationCall(ModifyBillingAgreement m SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(modifyBillingAgreement, ModifyBillingAgreement.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = true; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "billingAgreementsDeRegistration,billingAgreementsDeRegistrationAsync,billingAgreementsDeRegistrationWithHttpInfo,billingAgreementsDeRegistrationCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "billingAgreementsDeRegistration,billingAgreementsDeRegistrationAsync,billingAgreementsDeRegistrationWithHttpInfo,billingAgreementsDeRegistrationCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -235,8 +236,9 @@ public okhttp3.Call billingAgreementsIntimationCall(IntimateBillingAgreement int SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(intimateBillingAgreement, IntimateBillingAgreement.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = true; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "billingAgreementsIntimation,billingAgreementsIntimationAsync,billingAgreementsIntimationWithHttpInfo,billingAgreementsIntimationCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "billingAgreementsIntimation,billingAgreementsIntimationAsync,billingAgreementsIntimationWithHttpInfo,billingAgreementsIntimationCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -386,8 +388,9 @@ public okhttp3.Call billingAgreementsRegistrationCall(CreateBillingAgreement cre SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createBillingAgreement, CreateBillingAgreement.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = true; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "billingAgreementsRegistration,billingAgreementsRegistrationAsync,billingAgreementsRegistrationWithHttpInfo,billingAgreementsRegistrationCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "billingAgreementsRegistration,billingAgreementsRegistrationAsync,billingAgreementsRegistrationWithHttpInfo,billingAgreementsRegistrationCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/BinLookupApi.java b/src/main/java/Api/BinLookupApi.java index 6bf623c4..5f52dcc1 100644 --- a/src/main/java/Api/BinLookupApi.java +++ b/src/main/java/Api/BinLookupApi.java @@ -78,8 +78,9 @@ public okhttp3.Call getAccountInfoCall(CreateBinLookupRequest createBinLookupReq SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createBinLookupRequest, CreateBinLookupRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getAccountInfo,getAccountInfoAsync,getAccountInfoWithHttpInfo,getAccountInfoCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getAccountInfo,getAccountInfoAsync,getAccountInfoWithHttpInfo,getAccountInfoCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/CaptureApi.java b/src/main/java/Api/CaptureApi.java index 5f703632..dc1fade1 100644 --- a/src/main/java/Api/CaptureApi.java +++ b/src/main/java/Api/CaptureApi.java @@ -79,8 +79,9 @@ public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentReque SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(capturePaymentRequest, CapturePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = true; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "capturePayment,capturePaymentAsync,capturePaymentWithHttpInfo,capturePaymentCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "capturePayment,capturePaymentAsync,capturePaymentWithHttpInfo,capturePaymentCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/ChargebackDetailsApi.java b/src/main/java/Api/ChargebackDetailsApi.java index 974ab8ec..f37c4850 100644 --- a/src/main/java/Api/ChargebackDetailsApi.java +++ b/src/main/java/Api/ChargebackDetailsApi.java @@ -81,8 +81,9 @@ public okhttp3.Call getChargebackDetailsCall(DateTime startTime, DateTime endTim localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getChargebackDetails,getChargebackDetailsAsync,getChargebackDetailsWithHttpInfo,getChargebackDetailsCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getChargebackDetails,getChargebackDetailsAsync,getChargebackDetailsWithHttpInfo,getChargebackDetailsCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/ChargebackSummariesApi.java b/src/main/java/Api/ChargebackSummariesApi.java index ada3d0ff..7997d0d3 100644 --- a/src/main/java/Api/ChargebackSummariesApi.java +++ b/src/main/java/Api/ChargebackSummariesApi.java @@ -81,8 +81,9 @@ public okhttp3.Call getChargebackSummariesCall(DateTime startTime, DateTime endT localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getChargebackSummaries,getChargebackSummariesAsync,getChargebackSummariesWithHttpInfo,getChargebackSummariesCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getChargebackSummaries,getChargebackSummariesAsync,getChargebackSummariesWithHttpInfo,getChargebackSummariesCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/ConversionDetailsApi.java b/src/main/java/Api/ConversionDetailsApi.java index b8f1298b..2a8ff9ac 100644 --- a/src/main/java/Api/ConversionDetailsApi.java +++ b/src/main/java/Api/ConversionDetailsApi.java @@ -82,8 +82,9 @@ public okhttp3.Call getConversionDetailCall(DateTime startTime, DateTime endTime localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getConversionDetail,getConversionDetailAsync,getConversionDetailWithHttpInfo,getConversionDetailCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getConversionDetail,getConversionDetailAsync,getConversionDetailWithHttpInfo,getConversionDetailCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/CreateNewWebhooksApi.java b/src/main/java/Api/CreateNewWebhooksApi.java index 37298985..5e914ea4 100644 --- a/src/main/java/Api/CreateNewWebhooksApi.java +++ b/src/main/java/Api/CreateNewWebhooksApi.java @@ -82,8 +82,9 @@ public okhttp3.Call findProductsToSubscribeCall(String organizationId, final Pro localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "findProductsToSubscribe,findProductsToSubscribeAsync,findProductsToSubscribeWithHttpInfo,findProductsToSubscribeCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "findProductsToSubscribe,findProductsToSubscribeAsync,findProductsToSubscribeWithHttpInfo,findProductsToSubscribeCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -224,8 +225,9 @@ public okhttp3.Call notificationSubscriptionsV2WebhooksPostCall(CreateWebhook cr SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createWebhook, CreateWebhook.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "notificationSubscriptionsV2WebhooksPost,notificationSubscriptionsV2WebhooksPostAsync,notificationSubscriptionsV2WebhooksPostWithHttpInfo,notificationSubscriptionsV2WebhooksPostCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "notificationSubscriptionsV2WebhooksPost,notificationSubscriptionsV2WebhooksPostAsync,notificationSubscriptionsV2WebhooksPostWithHttpInfo,notificationSubscriptionsV2WebhooksPostCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -362,8 +364,9 @@ public okhttp3.Call saveSymEgressKeyCall(String vCSenderOrganizationId, String v SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(saveSymEgressKey, SaveSymEgressKey.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "saveSymEgressKey,saveSymEgressKeyAsync,saveSymEgressKeyWithHttpInfo,saveSymEgressKeyCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "saveSymEgressKey,saveSymEgressKeyAsync,saveSymEgressKeyWithHttpInfo,saveSymEgressKeyCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/CreditApi.java b/src/main/java/Api/CreditApi.java index ca1bc8f9..b070e6f8 100644 --- a/src/main/java/Api/CreditApi.java +++ b/src/main/java/Api/CreditApi.java @@ -78,8 +78,9 @@ public okhttp3.Call createCreditCall(CreateCreditRequest createCreditRequest, fi SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createCreditRequest, CreateCreditRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = true; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "createCredit,createCreditAsync,createCreditWithHttpInfo,createCreditCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "createCredit,createCreditAsync,createCreditWithHttpInfo,createCreditCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/CustomerApi.java b/src/main/java/Api/CustomerApi.java index c3e0c961..f65d43c7 100644 --- a/src/main/java/Api/CustomerApi.java +++ b/src/main/java/Api/CustomerApi.java @@ -87,8 +87,9 @@ public okhttp3.Call deleteCustomerCall(String customerId, String profileId, fina localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "deleteCustomer,deleteCustomerAsync,deleteCustomerWithHttpInfo,deleteCustomerCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "deleteCustomer,deleteCustomerAsync,deleteCustomerWithHttpInfo,deleteCustomerCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -234,8 +235,9 @@ public okhttp3.Call getCustomerCall(String customerId, String profileId, final P localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getCustomer,getCustomerAsync,getCustomerWithHttpInfo,getCustomerCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getCustomer,getCustomerAsync,getCustomerWithHttpInfo,getCustomerCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -384,8 +386,9 @@ public okhttp3.Call patchCustomerCall(String customerId, PatchCustomerRequest pa SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerRequest, PatchCustomerRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "patchCustomer,patchCustomerAsync,patchCustomerWithHttpInfo,patchCustomerCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "patchCustomer,patchCustomerAsync,patchCustomerWithHttpInfo,patchCustomerCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -546,8 +549,9 @@ public okhttp3.Call postCustomerCall(PostCustomerRequest postCustomerRequest, St SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerRequest, PostCustomerRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "postCustomer,postCustomerAsync,postCustomerWithHttpInfo,postCustomerCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "postCustomer,postCustomerAsync,postCustomerWithHttpInfo,postCustomerCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/CustomerPaymentInstrumentApi.java b/src/main/java/Api/CustomerPaymentInstrumentApi.java index e4ea7790..7f2385ec 100644 --- a/src/main/java/Api/CustomerPaymentInstrumentApi.java +++ b/src/main/java/Api/CustomerPaymentInstrumentApi.java @@ -89,8 +89,9 @@ public okhttp3.Call deleteCustomerPaymentInstrumentCall(String customerId, Strin localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "deleteCustomerPaymentInstrument,deleteCustomerPaymentInstrumentAsync,deleteCustomerPaymentInstrumentWithHttpInfo,deleteCustomerPaymentInstrumentCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "deleteCustomerPaymentInstrument,deleteCustomerPaymentInstrumentAsync,deleteCustomerPaymentInstrumentWithHttpInfo,deleteCustomerPaymentInstrumentCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -247,8 +248,9 @@ public okhttp3.Call getCustomerPaymentInstrumentCall(String customerId, String p localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getCustomerPaymentInstrument,getCustomerPaymentInstrumentAsync,getCustomerPaymentInstrumentWithHttpInfo,getCustomerPaymentInstrumentCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getCustomerPaymentInstrument,getCustomerPaymentInstrumentAsync,getCustomerPaymentInstrumentWithHttpInfo,getCustomerPaymentInstrumentCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -410,8 +412,9 @@ public okhttp3.Call getCustomerPaymentInstrumentsListCall(String customerId, Str localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getCustomerPaymentInstrumentsList,getCustomerPaymentInstrumentsListAsync,getCustomerPaymentInstrumentsListWithHttpInfo,getCustomerPaymentInstrumentsListCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getCustomerPaymentInstrumentsList,getCustomerPaymentInstrumentsListAsync,getCustomerPaymentInstrumentsListWithHttpInfo,getCustomerPaymentInstrumentsListCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -571,8 +574,9 @@ public okhttp3.Call patchCustomersPaymentInstrumentCall(String customerId, Strin SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerPaymentInstrumentRequest, PatchCustomerPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "patchCustomersPaymentInstrument,patchCustomersPaymentInstrumentAsync,patchCustomersPaymentInstrumentWithHttpInfo,patchCustomersPaymentInstrumentCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "patchCustomersPaymentInstrument,patchCustomersPaymentInstrumentAsync,patchCustomersPaymentInstrumentWithHttpInfo,patchCustomersPaymentInstrumentCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -744,8 +748,9 @@ public okhttp3.Call postCustomerPaymentInstrumentCall(String customerId, PostCus SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerPaymentInstrumentRequest, PostCustomerPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "postCustomerPaymentInstrument,postCustomerPaymentInstrumentAsync,postCustomerPaymentInstrumentWithHttpInfo,postCustomerPaymentInstrumentCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "postCustomerPaymentInstrument,postCustomerPaymentInstrumentAsync,postCustomerPaymentInstrumentWithHttpInfo,postCustomerPaymentInstrumentCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/CustomerShippingAddressApi.java b/src/main/java/Api/CustomerShippingAddressApi.java index 3a0afe67..7373d29b 100644 --- a/src/main/java/Api/CustomerShippingAddressApi.java +++ b/src/main/java/Api/CustomerShippingAddressApi.java @@ -89,8 +89,9 @@ public okhttp3.Call deleteCustomerShippingAddressCall(String customerId, String localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "deleteCustomerShippingAddress,deleteCustomerShippingAddressAsync,deleteCustomerShippingAddressWithHttpInfo,deleteCustomerShippingAddressCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "deleteCustomerShippingAddress,deleteCustomerShippingAddressAsync,deleteCustomerShippingAddressWithHttpInfo,deleteCustomerShippingAddressCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -247,8 +248,9 @@ public okhttp3.Call getCustomerShippingAddressCall(String customerId, String shi localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getCustomerShippingAddress,getCustomerShippingAddressAsync,getCustomerShippingAddressWithHttpInfo,getCustomerShippingAddressCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getCustomerShippingAddress,getCustomerShippingAddressAsync,getCustomerShippingAddressWithHttpInfo,getCustomerShippingAddressCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -410,8 +412,9 @@ public okhttp3.Call getCustomerShippingAddressesListCall(String customerId, Stri localVarPostBody = "{}"; } - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getCustomerShippingAddressesList,getCustomerShippingAddressesListAsync,getCustomerShippingAddressesListWithHttpInfo,getCustomerShippingAddressesListCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "getCustomerShippingAddressesList,getCustomerShippingAddressesListAsync,getCustomerShippingAddressesListWithHttpInfo,getCustomerShippingAddressesListCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -571,8 +574,9 @@ public okhttp3.Call patchCustomersShippingAddressCall(String customerId, String SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerShippingAddressRequest, PatchCustomerShippingAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "patchCustomersShippingAddress,patchCustomersShippingAddressAsync,patchCustomersShippingAddressWithHttpInfo,patchCustomersShippingAddressCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "patchCustomersShippingAddress,patchCustomersShippingAddressAsync,patchCustomersShippingAddressWithHttpInfo,patchCustomersShippingAddressCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -744,8 +748,9 @@ public okhttp3.Call postCustomerShippingAddressCall(String customerId, PostCusto SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerShippingAddressRequest, PostCustomerShippingAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "postCustomerShippingAddress,postCustomerShippingAddressAsync,postCustomerShippingAddressWithHttpInfo,postCustomerShippingAddressCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "postCustomerShippingAddress,postCustomerShippingAddressAsync,postCustomerShippingAddressWithHttpInfo,postCustomerShippingAddressCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/DecisionManagerApi.java b/src/main/java/Api/DecisionManagerApi.java index bd7f4bf4..e598e19e 100644 --- a/src/main/java/Api/DecisionManagerApi.java +++ b/src/main/java/Api/DecisionManagerApi.java @@ -93,8 +93,9 @@ public okhttp3.Call actionDecisionManagerCaseCall(String id, CaseManagementActio SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(caseManagementActionsRequest, CaseManagementActionsRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "actionDecisionManagerCase,actionDecisionManagerCaseAsync,actionDecisionManagerCaseWithHttpInfo,actionDecisionManagerCaseCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "actionDecisionManagerCase,actionDecisionManagerCaseAsync,actionDecisionManagerCaseWithHttpInfo,actionDecisionManagerCaseCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -245,8 +246,9 @@ public okhttp3.Call addNegativeCall(String type, AddNegativeListRequest addNegat SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(addNegativeListRequest, AddNegativeListRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "addNegative,addNegativeAsync,addNegativeWithHttpInfo,addNegativeCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "addNegative,addNegativeAsync,addNegativeWithHttpInfo,addNegativeCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -397,8 +399,9 @@ public okhttp3.Call commentDecisionManagerCaseCall(String id, CaseManagementComm SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(caseManagementCommentsRequest, CaseManagementCommentsRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "commentDecisionManagerCase,commentDecisionManagerCaseAsync,commentDecisionManagerCaseWithHttpInfo,commentDecisionManagerCaseCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "commentDecisionManagerCase,commentDecisionManagerCaseAsync,commentDecisionManagerCaseWithHttpInfo,commentDecisionManagerCaseCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -548,8 +551,9 @@ public okhttp3.Call createBundledDecisionManagerCaseCall(CreateBundledDecisionMa SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createBundledDecisionManagerCaseRequest, CreateBundledDecisionManagerCaseRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "createBundledDecisionManagerCase,createBundledDecisionManagerCaseAsync,createBundledDecisionManagerCaseWithHttpInfo,createBundledDecisionManagerCaseCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "createBundledDecisionManagerCase,createBundledDecisionManagerCaseAsync,createBundledDecisionManagerCaseWithHttpInfo,createBundledDecisionManagerCaseCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -690,8 +694,9 @@ public okhttp3.Call fraudUpdateCall(String id, FraudMarkingActionRequest fraudMa SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(fraudMarkingActionRequest, FraudMarkingActionRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "fraudUpdate,fraudUpdateAsync,fraudUpdateWithHttpInfo,fraudUpdateCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "fraudUpdate,fraudUpdateAsync,fraudUpdateWithHttpInfo,fraudUpdateCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { diff --git a/src/main/java/Api/DeviceDeAssociationApi.java b/src/main/java/Api/DeviceDeAssociationApi.java index da7c91fe..a3d59914 100644 --- a/src/main/java/Api/DeviceDeAssociationApi.java +++ b/src/main/java/Api/DeviceDeAssociationApi.java @@ -83,8 +83,9 @@ public okhttp3.Call deleteTerminalAssociationCall(DeAssociationRequestBody deAss SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(deAssociationRequestBody, DeAssociationRequestBody.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId()); - boolean isMLESupportedByCybsForApi = false; - if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "deleteTerminalAssociation,deleteTerminalAssociationAsync,deleteTerminalAssociationWithHttpInfo,deleteTerminalAssociationCall")) { + String inboundMLEStatus = "false"; + + if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "deleteTerminalAssociation,deleteTerminalAssociationAsync,deleteTerminalAssociationWithHttpInfo,deleteTerminalAssociationCall")) { try { localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody); } catch (MLEException e) { @@ -220,8 +221,9 @@ public okhttp3.Call postDeAssociateV3TerminalCall(List Date: Tue, 29 Jul 2025 11:42:34 +0530 Subject: [PATCH 3/5] Delete pom.xml --- pom.xml | 331 -------------------------------------------------------- 1 file changed, 331 deletions(-) delete mode 100644 pom.xml diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 0dc088a1..00000000 --- a/pom.xml +++ /dev/null @@ -1,331 +0,0 @@ - - 4.0.0 - - com.cybersource - cybersource-rest-client-java - jar - cybersource-rest-client-java - 0.0.79-SNAPSHOT - http://developer.cybersource.com - Cybersource Rest Client SDK - - - scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git - scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git - https://github.com/CyberSource/cybersource-rest-client-java.git - - - - - SDK License Agreement - https://github.com/CyberSource/cybersource-rest-client-java.git - https://github.com/CyberSource/cybersource-rest-client-java/tree/master/LICENSE.txt - - - - - - CyberSource - CyberSource Developer - Cybersource - developer@cybersource.com - - - - - - - src/main/resources - true - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M1 - - - enforce-maven - - enforce - - - - - 2.2.0 - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12 - - - - loggerPath - conf/log4j.properties - - - -Xms512m -Xmx1500m - methods - never - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory}/lib - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.2 - - - - jar - test-jar - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.0.0 - - - add-source - generate-sources - - add-source - - - - src/main/java - - - - - add_test_sources - generate-test-sources - - add-test-source - - - - src/test/java - - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 - - - attach-javadocs - - jar - - - - - - - - - - release - - false - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M1 - - - enforce-maven - - enforce - - - - - 2.2.0 - - - - - - - - org.sonatype.central - central-publishing-maven-plugin - 0.7.0 - true - - required - false - sonatype-nexus-staging - - - - - - - - - - - io.swagger - swagger-annotations - ${swagger-core-version} - - - com.squareup.okhttp3 - okhttp - ${okhttp-version} - - - - com.squareup.okhttp3 - logging-interceptor - ${okhttp-version} - - - - com.google.code.gson - gson - ${gson-version} - - - io.gsonfire - gson-fire - ${gson-fire-version} - - - joda-time - joda-time - ${jodatime-version} - - - org.apache.logging.log4j - log4j - ${log4j.version} - pom - - - - org.apache.logging.log4j - log4j-api - ${log4j.version} - - - - org.apache.logging.log4j - log4j-core - ${log4j.version} - - - - org.apache.logging.log4j - log4j-1.2-api - ${log4j.version} - - - - - commons-io - commons-io - 2.15.1 - - - - - junit - junit - ${junit-version} - test - - - - - com.cybersource - AuthenticationSdk - 0.0.37-SNAPSHOT - - - - org.bouncycastle - bcpg-jdk18on - 1.81 - - - - - 1.8 - ${java.version} - ${java.version} - 1.9.0 - 1.5.18 - 4.12.0 - 2.12.1 - 2.12.5 - 1.0.0 - 4.13.2 - UTF-8 - 2.22.0 - - From 35c7e64c7539e54ad77ace14529cea60ffba3abe Mon Sep 17 00:00:00 2001 From: mahmishr Date: Tue, 29 Jul 2025 12:03:27 +0530 Subject: [PATCH 4/5] minor fix --- pom.xml | 331 ++++++++++++++++++++++++++ src/main/java/Invokers/ApiClient.java | 4 +- 2 files changed, 333 insertions(+), 2 deletions(-) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..08732aab --- /dev/null +++ b/pom.xml @@ -0,0 +1,331 @@ + + 4.0.0 + + com.cybersource + cybersource-rest-client-java + jar + cybersource-rest-client-java + 0.0.79-SNAPSHOT + http://developer.cybersource.com + Cybersource Rest Client SDK + + + scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git + scm:git:https://github.com/CyberSource/cybersource-rest-client-java.git + https://github.com/CyberSource/cybersource-rest-client-java.git + + + + + SDK License Agreement + https://github.com/CyberSource/cybersource-rest-client-java.git + https://github.com/CyberSource/cybersource-rest-client-java/tree/master/LICENSE.txt + + + + + + CyberSource + CyberSource Developer + Cybersource + developer@cybersource.com + + + + + + + src/main/resources + true + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + never + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + jar + test-jar + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.0.0 + + + add-source + generate-sources + + add-source + + + + src/main/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + + attach-javadocs + + jar + + + + + + + + + + release + + false + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + required + false + sonatype-nexus-staging + + + + + + + + + + + io.swagger + swagger-annotations + ${swagger-core-version} + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} + + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + joda-time + joda-time + ${jodatime-version} + + + org.apache.logging.log4j + log4j + ${log4j.version} + pom + + + + org.apache.logging.log4j + log4j-api + ${log4j.version} + + + + org.apache.logging.log4j + log4j-core + ${log4j.version} + + + + org.apache.logging.log4j + log4j-1.2-api + ${log4j.version} + + + + + commons-io + commons-io + 2.15.1 + + + + + junit + junit + ${junit-version} + test + + + + + com.cybersource + AuthenticationSdk + 0.0.36 + + + + org.bouncycastle + bcpg-jdk18on + 1.81 + + + + + 1.8 + ${java.version} + ${java.version} + 1.9.0 + 1.5.18 + 4.12.0 + 2.12.1 + 2.12.5 + 1.0.0 + 4.13.2 + UTF-8 + 2.22.0 + + diff --git a/src/main/java/Invokers/ApiClient.java b/src/main/java/Invokers/ApiClient.java index a20e6855..e365b1d0 100644 --- a/src/main/java/Invokers/ApiClient.java +++ b/src/main/java/Invokers/ApiClient.java @@ -1452,8 +1452,8 @@ public void callAuthenticationHeader(String method, String path, RequestBody req if (versionInfo != null && !versionInfo.isEmpty()) { requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-" + versionInfo); } else { - requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-VERSIONUNKNOWN"); - } + requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-VERSIONUNKNOWN"); + } } catch (ConfigException | IOException e) { logger.error(e.getMessage()); From 19c724f2d25f1df0647fc9ba722c38ef65df95c9 Mon Sep 17 00:00:00 2001 From: Bansal Date: Tue, 19 Aug 2025 12:29:47 +0530 Subject: [PATCH 5/5] corrected the variable name from spec- mleForRequest --- .../libraries/okhttp-gson/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache index febc72e7..f373593a 100644 --- a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache +++ b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache @@ -89,7 +89,7 @@ public class {{classname}} { } {{/bodyParam}} - String 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}}"; + String inboundMLEStatus = "{{#vendorExtensions.x-devcenter-metaData.mleForRequest}}{{vendorExtensions.x-devcenter-metaData.mleForRequest}}{{/vendorExtensions.x-devcenter-metaData.mleForRequest}}{{^vendorExtensions.x-devcenter-metaData.mleForRequest}}false{{/vendorExtensions.x-devcenter-metaData.mleForRequest}}"; if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, inboundMLEStatus, "{{operationId}},{{operationId}}Async,{{operationId}}WithHttpInfo,{{operationId}}Call")) { try {