From d70b1ba27a8997a8ea18493e5da68c4c607041a8 Mon Sep 17 00:00:00 2001 From: gnongsie Date: Wed, 5 Nov 2025 11:29:32 +0530 Subject: [PATCH 1/4] Sample code changes to match class names for inline responses as per SDK v0.0.82 Added functionality to parse capture context --- pom.xml | 2 +- .../AccountUpdater/RetrieveBatchReport.java | 4 +- .../AccountUpdater/RetrieveBatchStatus.java | 4 +- .../samples/BinLookup/BINLookupWithCard.java | 2 +- .../BINLookupWithHealthcareCard.java | 2 +- .../BinLookup/BINLookupWithTMSCustomerID.java | 2 +- .../BINLookupWithTMSInstrumentIdentifier.java | 4 +- .../GenerateCaptureContextAcceptCard.java | 10 +++ .../GenerateCaptureContextAcceptCheck.java | 9 ++ .../MerchantBoarding/CreateRegistration.java | 86 +++++++++--------- .../MerchantBoardingAmexDirect.java | 86 +++++++++--------- .../MerchantBoardingBarclays.java | 88 +++++++++---------- .../MerchantBoardingBinLookup.java | 32 +++---- .../MerchantBoarding/MerchantBoardingCUP.java | 74 ++++++++-------- .../MerchantBoardingEFTPOS.java | 48 +++++----- .../MerchantBoardingFDIGlobal.java | 58 ++++++------ .../MerchantBoarding/MerchantBoardingGPX.java | 88 +++++++++---------- .../MerchantBoardingSmartFDC.java | 70 +++++++-------- .../MerchantBoardingTSYS.java | 80 ++++++++--------- ...teCaptureContextForClickToPayDropInUI.java | 9 ++ ...GenerateUnifiedCheckoutCaptureContext.java | 9 ++ ...tCaptureContextPassingBillingShipping.java | 9 ++ 22 files changed, 409 insertions(+), 367 deletions(-) diff --git a/pom.xml b/pom.xml index d48ebe3..f801971 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.cybersource cybersource-rest-client-java - 0.0.82 + 0.0.83 diff --git a/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java b/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java index 665dd6d..58acccb 100644 --- a/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java +++ b/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java @@ -4,9 +4,7 @@ import Data.Configuration; import Invokers.ApiClient; import Invokers.ApiException; -import Model.InlineResponse20011; -import Model.InlineResponse20012; -import Model.InlineResponse2009; +import Model.*; import com.cybersource.authsdk.core.MerchantConfig; import java.lang.invoke.MethodHandles; diff --git a/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java b/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java index 40f8b64..fc8dbb1 100644 --- a/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java +++ b/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java @@ -4,9 +4,7 @@ import Data.Configuration; import Invokers.ApiClient; import Invokers.ApiException; -import Model.InlineResponse2008; -import Model.InlineResponse20010; -import Model.InlineResponse20011; +import Model.*; import com.cybersource.authsdk.core.MerchantConfig; diff --git a/src/main/java/samples/BinLookup/BINLookupWithCard.java b/src/main/java/samples/BinLookup/BINLookupWithCard.java index df927ef..94788f8 100644 --- a/src/main/java/samples/BinLookup/BINLookupWithCard.java +++ b/src/main/java/samples/BinLookup/BINLookupWithCard.java @@ -48,7 +48,7 @@ public static InlineResponse2012 run() { requestObj.paymentInformation(paymentInformation); - InlineResponse2012 result=null; + InlineResponse2012 result = null; try { merchantProp = Configuration.getMerchantDetails(); ApiClient apiClient = new ApiClient(); diff --git a/src/main/java/samples/BinLookup/BINLookupWithHealthcareCard.java b/src/main/java/samples/BinLookup/BINLookupWithHealthcareCard.java index 503ed4a..a207c25 100644 --- a/src/main/java/samples/BinLookup/BINLookupWithHealthcareCard.java +++ b/src/main/java/samples/BinLookup/BINLookupWithHealthcareCard.java @@ -45,7 +45,7 @@ public static InlineResponse2012 run() { requestObj.paymentInformation(paymentInformation); - InlineResponse2012 result=null; + InlineResponse2012 result = null; try { merchantProp = Configuration.getMerchantDetails(); ApiClient apiClient = new ApiClient(); diff --git a/src/main/java/samples/BinLookup/BINLookupWithTMSCustomerID.java b/src/main/java/samples/BinLookup/BINLookupWithTMSCustomerID.java index 7663edf..6503eb5 100644 --- a/src/main/java/samples/BinLookup/BINLookupWithTMSCustomerID.java +++ b/src/main/java/samples/BinLookup/BINLookupWithTMSCustomerID.java @@ -53,7 +53,7 @@ public static InlineResponse2012 run() { apiClient.merchantConfig = merchantConfig; BinLookupApi apiInstance = new BinLookupApi(apiClient); - result= apiInstance.getAccountInfo(requestObj); + result = apiInstance.getAccountInfo(requestObj); responseCode = apiClient.responseCode; status = apiClient.status; diff --git a/src/main/java/samples/BinLookup/BINLookupWithTMSInstrumentIdentifier.java b/src/main/java/samples/BinLookup/BINLookupWithTMSInstrumentIdentifier.java index d08bfde..ff7c9b8 100644 --- a/src/main/java/samples/BinLookup/BINLookupWithTMSInstrumentIdentifier.java +++ b/src/main/java/samples/BinLookup/BINLookupWithTMSInstrumentIdentifier.java @@ -45,7 +45,7 @@ public static InlineResponse2012 run() { requestObj.paymentInformation(paymentInformation); - InlineResponse2012 result=null; + InlineResponse2012 result = null; try { merchantProp = Configuration.getMerchantDetails(); ApiClient apiClient = new ApiClient(); @@ -53,7 +53,7 @@ public static InlineResponse2012 run() { apiClient.merchantConfig = merchantConfig; BinLookupApi apiInstance = new BinLookupApi(apiClient); - result=apiInstance.getAccountInfo(requestObj); + result = apiInstance.getAccountInfo(requestObj); responseCode = apiClient.responseCode; status = apiClient.status; diff --git a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java index ae907a5..ef44000 100644 --- a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java +++ b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java @@ -6,6 +6,8 @@ import Data.Configuration; import Invokers.ApiClient; import Model.*; +import com.google.gson.JsonObject; +import utilities.capturecontext.utility.CaptureContextParsingUtility; public class GenerateCaptureContextAcceptCard { private static String responseCode = null; @@ -62,6 +64,14 @@ public static void run() { System.out.println("ResponseCode :" + responseCode); System.out.println("ResponseMessage :" + status); System.out.println("Response Body :" + response); + System.out.println("\n\n"); + + try { + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + System.out.println(payload.toString()); + } catch (Exception e) { + System.out.println(e.getMessage()); + } } catch (Exception e) { e.printStackTrace(); } diff --git a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java index 0b2821b..ce4dffa 100644 --- a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java +++ b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java @@ -6,6 +6,8 @@ import Data.Configuration; import Invokers.ApiClient; import Model.*; +import com.google.gson.JsonObject; +import utilities.capturecontext.utility.CaptureContextParsingUtility; public class GenerateCaptureContextAcceptCheck { private static String responseCode = null; @@ -44,6 +46,13 @@ public static void run() { System.out.println("ResponseCode :" + responseCode); System.out.println("ResponseMessage :" + status); System.out.println("Response Body :" + response); + + try { + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + System.out.println(payload.toString()); + } catch (Exception e) { + System.out.println(e.getMessage()); + } } catch (Exception e) { e.printStackTrace(); } diff --git a/src/main/java/samples/MerchantBoarding/CreateRegistration.java b/src/main/java/samples/MerchantBoarding/CreateRegistration.java index d76b923..4bf8264 100644 --- a/src/main/java/samples/MerchantBoarding/CreateRegistration.java +++ b/src/main/java/samples/MerchantBoarding/CreateRegistration.java @@ -31,16 +31,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -50,7 +50,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -62,23 +62,23 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsPayerAuthentication payerAuthentication=new PaymentsProductsPayerAuthentication(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsPayerAuthentication payerAuthentication = new PaymentsProductsPayerAuthentication(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation.enabled(true); // payerAuthentication.subscriptionInformation(subscriptionInformation); - PaymentsProductsPayerAuthenticationConfigurationInformation configurationInformation=new PaymentsProductsPayerAuthenticationConfigurationInformation(); - PayerAuthConfig configurations=new PayerAuthConfig(); - PayerAuthConfigCardTypes cardTypes=new PayerAuthConfigCardTypes(); - PayerAuthConfigCardTypesVerifiedByVisa verifiedByVisa=new PayerAuthConfigCardTypesVerifiedByVisa(); - List currencies=new ArrayList<>(); - PayerAuthConfigCardTypesVerifiedByVisaCurrencies currency1=new PayerAuthConfigCardTypesVerifiedByVisaCurrencies(); - List currencyCodes=new ArrayList<>(); + PaymentsProductsPayerAuthenticationConfigurationInformation configurationInformation = new PaymentsProductsPayerAuthenticationConfigurationInformation(); + PayerAuthConfig configurations = new PayerAuthConfig(); + PayerAuthConfigCardTypes cardTypes = new PayerAuthConfigCardTypes(); + PayerAuthConfigCardTypesVerifiedByVisa verifiedByVisa = new PayerAuthConfigCardTypesVerifiedByVisa(); + List currencies = new ArrayList<>(); + PayerAuthConfigCardTypesVerifiedByVisaCurrencies currency1 = new PayerAuthConfigCardTypesVerifiedByVisaCurrencies(); + List currencyCodes = new ArrayList<>(); currencyCodes.add("ALL"); currency1.currencyCodes(currencyCodes); currency1.acquirerId("469216"); @@ -92,22 +92,22 @@ public static InlineResponse2013 run() { payerAuthentication.configurationInformation(configurationInformation); payments.payerAuthentication(payerAuthentication); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation2=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation2 = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation2.enabled(true); - Map features=new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + Map features = new HashMap<>(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj.enabled(true); features.put("cardNotPresent",obj); subscriptionInformation2.features(features); cardProcessing.subscriptionInformation(subscriptionInformation2); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation2=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation2 = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations2=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations2 = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("1234"); - CardProcessingConfigCommonMerchantDescriptorInformation merchantDescriptorInformation=new CardProcessingConfigCommonMerchantDescriptorInformation(); + CardProcessingConfigCommonMerchantDescriptorInformation merchantDescriptorInformation = new CardProcessingConfigCommonMerchantDescriptorInformation(); merchantDescriptorInformation.name("r4ef"); merchantDescriptorInformation.city("Bellevue"); @@ -119,8 +119,8 @@ public static InlineResponse2013 run() { common.merchantDescriptorInformation(merchantDescriptorInformation); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj2=new CardProcessingConfigCommonProcessors(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj2 = new CardProcessingConfigCommonProcessors(); obj2.merchantId("123456789101"); obj2.terminalId("1231"); obj2.industryCode("D"); @@ -133,8 +133,8 @@ public static InlineResponse2013 run() { common.processors(processors); configurations2.common(common); - CardProcessingConfigFeatures features2=new CardProcessingConfigFeatures(); - CardProcessingConfigFeaturesCardNotPresent cardNotPresent=new CardProcessingConfigFeaturesCardNotPresent(); + CardProcessingConfigFeatures features2 = new CardProcessingConfigFeatures(); + CardProcessingConfigFeaturesCardNotPresent cardNotPresent = new CardProcessingConfigFeaturesCardNotPresent(); cardNotPresent.visaStraightThroughProcessingOnly(true); features2.cardNotPresent(cardNotPresent); @@ -143,46 +143,46 @@ public static InlineResponse2013 run() { cardProcessing.configurationInformation(configurationInformation2); payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation3.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation3); payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation4=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation4 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation4.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation4); payments.customerInvoicing(customerInvoicing); - PaymentsProductsPayouts payouts=new PaymentsProductsPayouts(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsPayouts payouts = new PaymentsProductsPayouts(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation5.enabled(true); // payouts.subscriptionInformation(subscriptionInformation5); payments.payouts(payouts); selectedProducts.payments(payments); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation6.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation6); commerceSolutions.tokenManagement(tokenManagement); selectedProducts.commerceSolutions(commerceSolutions); - RiskProducts risk=new RiskProducts(); - RiskProductsFraudManagementEssentials fraudManagementEssentials=new RiskProductsFraudManagementEssentials(); + RiskProducts risk = new RiskProducts(); + RiskProductsFraudManagementEssentials fraudManagementEssentials = new RiskProductsFraudManagementEssentials(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation7.enabled(true); // fraudManagementEssentials.subscriptionInformation(subscriptionInformation7); - RiskProductsFraudManagementEssentialsConfigurationInformation configurationInformation5=new RiskProductsFraudManagementEssentialsConfigurationInformation(); + RiskProductsFraudManagementEssentialsConfigurationInformation configurationInformation5 = new RiskProductsFraudManagementEssentialsConfigurationInformation(); configurationInformation5.templateId("E4EDB280-9DAC-4698-9EB9-9434D40FF60C"); fraudManagementEssentials.configurationInformation(configurationInformation5); @@ -195,7 +195,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingAmexDirect.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingAmexDirect.java index 4f078ea..aedecb9 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingAmexDirect.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingAmexDirect.java @@ -31,16 +31,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -50,7 +50,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -62,29 +62,29 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); subscriptionInformation.features(features); cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("1799"); - CardProcessingConfigCommonMerchantDescriptorInformation merchantDescriptorInformation=new CardProcessingConfigCommonMerchantDescriptorInformation(); + CardProcessingConfigCommonMerchantDescriptorInformation merchantDescriptorInformation = new CardProcessingConfigCommonMerchantDescriptorInformation(); merchantDescriptorInformation.city("Cupertino"); merchantDescriptorInformation.country("USA"); merchantDescriptorInformation.name("Mer name"); @@ -99,13 +99,13 @@ public static InlineResponse2013 run() { common.subMerchantId("123457"); common.subMerchantBusinessName("bus name"); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj2=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj2 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); obj2.acquirer(acquirer); - Map currencies=new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj3=new CardProcessingConfigCommonCurrencies1(); + Map currencies = new HashMap<>(); + CardProcessingConfigCommonCurrencies1 obj3 = new CardProcessingConfigCommonCurrencies1(); obj3.enabled(true); obj3.enabledCardPresent(false); obj3.enabledCardPresent(true); @@ -117,8 +117,8 @@ public static InlineResponse2013 run() { obj2.currencies(currencies); - Map paymentTypes=new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj4=new CardProcessingConfigCommonPaymentTypes(); + Map paymentTypes = new HashMap<>(); + CardProcessingConfigCommonPaymentTypes obj4 = new CardProcessingConfigCommonPaymentTypes(); obj4.enabled(true); paymentTypes.put("AMERICAN_EXPRESS",obj4); @@ -135,11 +135,11 @@ public static InlineResponse2013 run() { common.processors(processors); configurations.common(common); - CardProcessingConfigFeatures features2=new CardProcessingConfigFeatures(); - CardProcessingConfigFeaturesCardNotPresent cardNotPresent=new CardProcessingConfigFeaturesCardNotPresent(); + CardProcessingConfigFeatures features2 = new CardProcessingConfigFeatures(); + CardProcessingConfigFeaturesCardNotPresent cardNotPresent = new CardProcessingConfigFeaturesCardNotPresent(); - Map processors3=new HashMap<>(); - CardProcessingConfigFeaturesCardNotPresentProcessors obj5=new CardProcessingConfigFeaturesCardNotPresentProcessors(); + Map processors3 = new HashMap<>(); + CardProcessingConfigFeaturesCardNotPresentProcessors obj5 = new CardProcessingConfigFeaturesCardNotPresentProcessors(); obj5.relaxAddressVerificationSystem(true); obj5.relaxAddressVerificationSystemAllowExpiredCard(true); obj5.relaxAddressVerificationSystemAllowZipWithoutCountry(false); @@ -153,53 +153,53 @@ public static InlineResponse2013 run() { cardProcessing.configurationInformation(configurationInformation); payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation2=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation2 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation2.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation2); - PaymentsProductsVirtualTerminalConfigurationInformation configurationInformation3=new PaymentsProductsVirtualTerminalConfigurationInformation(); + PaymentsProductsVirtualTerminalConfigurationInformation configurationInformation3 = new PaymentsProductsVirtualTerminalConfigurationInformation(); configurationInformation3.templateId("9FA1BB94-5119-48D3-B2E5-A81FD3C657B5"); virtualTerminal.configurationInformation(configurationInformation3); payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation6.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation6); payments.customerInvoicing(customerInvoicing); selectedProducts.payments(payments); - RiskProducts risk=new RiskProducts(); + RiskProducts risk = new RiskProducts(); selectedProducts.risk(risk); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation7.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation7); - CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation4=new CommerceSolutionsProductsTokenManagementConfigurationInformation(); + CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation4 = new CommerceSolutionsProductsTokenManagementConfigurationInformation(); configurationInformation4.templateId("D62BEE20-DCFD-4AA2-8723-BA3725958ABA"); tokenManagement.configurationInformation(configurationInformation4); commerceSolutions.tokenManagement(tokenManagement); selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); - PaymentsProductsTax transactionSearch=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation8=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); + PaymentsProductsTax transactionSearch = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation8 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation8.enabled(true); // transactionSearch.subscriptionInformation(subscriptionInformation8); valueAddedServices.transactionSearch(transactionSearch); - PaymentsProductsTax reporting=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax reporting = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation9.enabled(true); // reporting.subscriptionInformation(subscriptionInformation9); @@ -209,7 +209,7 @@ public static InlineResponse2013 run() { productInformation.selectedProducts(selectedProducts); reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingBarclays.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingBarclays.java index a8f7d92..8be0c5a 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingBarclays.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingBarclays.java @@ -31,16 +31,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -50,7 +50,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -62,17 +62,17 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); @@ -80,28 +80,28 @@ public static InlineResponse2013 run() { cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); + CardProcessingConfig configurations = new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("5999"); organizationInformation.type("MERCHANT"); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj2=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj2 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); obj2.acquirer(acquirer); - Map currencies=new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj3=new CardProcessingConfigCommonCurrencies1(); + Map currencies = new HashMap<>(); + CardProcessingConfigCommonCurrencies1 obj3 = new CardProcessingConfigCommonCurrencies1(); obj3.enabled(true); obj3.enabledCardPresent(false); obj3.enabledCardNotPresent(true); obj3.merchantId("1234"); obj3.serviceEnablementNumber(""); - List terminalIds=new ArrayList<>(); + List terminalIds = new ArrayList<>(); terminalIds.add("12351245"); obj3.terminalIds(terminalIds); @@ -112,9 +112,9 @@ public static InlineResponse2013 run() { obj2.currencies(currencies); - Map paymentTypes=new HashMap<>(); + Map paymentTypes = new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj4=new CardProcessingConfigCommonPaymentTypes(); + CardProcessingConfigCommonPaymentTypes obj4 = new CardProcessingConfigCommonPaymentTypes(); obj4.enabled(true); paymentTypes.put("MASTERCARD",obj4); paymentTypes.put("VISA",obj4); @@ -131,14 +131,14 @@ public static InlineResponse2013 run() { common.processors(processors); configurations.common(common); - CardProcessingConfigFeatures features3=new CardProcessingConfigFeatures(); + CardProcessingConfigFeatures features3 = new CardProcessingConfigFeatures(); - CardProcessingConfigFeaturesCardNotPresent cardNotPresent=new CardProcessingConfigFeaturesCardNotPresent(); + CardProcessingConfigFeaturesCardNotPresent cardNotPresent = new CardProcessingConfigFeaturesCardNotPresent(); - Map processors4=new HashMap<>(); - CardProcessingConfigFeaturesCardNotPresentProcessors obj6=new CardProcessingConfigFeaturesCardNotPresentProcessors(); + Map processors4 = new HashMap<>(); + CardProcessingConfigFeaturesCardNotPresentProcessors obj6 = new CardProcessingConfigFeaturesCardNotPresentProcessors(); - CardProcessingConfigFeaturesCardNotPresentPayouts payouts=new CardProcessingConfigFeaturesCardNotPresentPayouts(); + CardProcessingConfigFeaturesCardNotPresentPayouts payouts = new CardProcessingConfigFeaturesCardNotPresentPayouts(); payouts.merchantId("1233"); payouts.terminalId("1244"); @@ -156,21 +156,21 @@ public static InlineResponse2013 run() { payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation2=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation2 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation2.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation2); - PaymentsProductsVirtualTerminalConfigurationInformation configurationInformation2=new PaymentsProductsVirtualTerminalConfigurationInformation(); + PaymentsProductsVirtualTerminalConfigurationInformation configurationInformation2 = new PaymentsProductsVirtualTerminalConfigurationInformation(); configurationInformation2.templateId("E4EDB280-9DAC-4698-9EB9-9434D40FF60C"); virtualTerminal.configurationInformation(configurationInformation2); payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation3.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation3); @@ -179,37 +179,37 @@ public static InlineResponse2013 run() { selectedProducts.payments(payments); - RiskProducts risk2=new RiskProducts(); + RiskProducts risk2 = new RiskProducts(); selectedProducts.risk(risk2); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation5.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation5); - CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation5=new CommerceSolutionsProductsTokenManagementConfigurationInformation(); + CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation5 = new CommerceSolutionsProductsTokenManagementConfigurationInformation(); configurationInformation5.templateId("D62BEE20-DCFD-4AA2-8723-BA3725958ABA"); tokenManagement.configurationInformation(configurationInformation5); commerceSolutions.tokenManagement(tokenManagement); selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); - PaymentsProductsTax transactionSearch=new PaymentsProductsTax(); + PaymentsProductsTax transactionSearch = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation6.enabled(true); // transactionSearch.subscriptionInformation(subscriptionInformation6); // valueAddedServices.transactionSearch(transactionSearch); - PaymentsProductsTax reporting=new PaymentsProductsTax(); + PaymentsProductsTax reporting = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation7.enabled(true); // reporting.subscriptionInformation(subscriptionInformation7); valueAddedServices.reporting(reporting); @@ -218,7 +218,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingBinLookup.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingBinLookup.java index 4108b9d..2ab74c0 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingBinLookup.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingBinLookup.java @@ -33,16 +33,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -52,7 +52,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -64,24 +64,24 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); + PaymentsProducts payments = new PaymentsProducts(); selectedProducts.payments(payments); - RiskProducts risk=new RiskProducts(); + RiskProducts risk = new RiskProducts(); selectedProducts.risk(risk); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); - CommerceSolutionsProductsBinLookup binLookup=new CommerceSolutionsProductsBinLookup(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); + CommerceSolutionsProductsBinLookup binLookup = new CommerceSolutionsProductsBinLookup(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation.enabled(true); // binLookup.subscriptionInformation(subscriptionInformation); - CommerceSolutionsProductsBinLookupConfigurationInformation configurationInformation=new CommerceSolutionsProductsBinLookupConfigurationInformation(); + CommerceSolutionsProductsBinLookupConfigurationInformation configurationInformation = new CommerceSolutionsProductsBinLookupConfigurationInformation(); - CommerceSolutionsProductsBinLookupConfigurationInformationConfigurations configurations=new CommerceSolutionsProductsBinLookupConfigurationInformationConfigurations(); + CommerceSolutionsProductsBinLookupConfigurationInformationConfigurations configurations = new CommerceSolutionsProductsBinLookupConfigurationInformationConfigurations(); configurations.isPayoutOptionsEnabled(false); configurations.isAccountPrefixEnabled(true); @@ -92,14 +92,14 @@ public static InlineResponse2013 run() { commerceSolutions.binLookup(binLookup); selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); selectedProducts.valueAddedServices(valueAddedServices); productInformation.selectedProducts(selectedProducts); reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingCUP.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingCUP.java index efae87c..7f019a8 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingCUP.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingCUP.java @@ -30,16 +30,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -49,7 +49,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -61,18 +61,18 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); @@ -81,23 +81,23 @@ public static InlineResponse2013 run() { cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("1799"); - Map processors=new HashMap<>(); + Map processors = new HashMap<>(); - CardProcessingConfigCommonProcessors obj2=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + CardProcessingConfigCommonProcessors obj2 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); acquirer.countryCode("344_hongkong"); acquirer.institutionId("22344"); obj2.acquirer(acquirer); - Map currencies=new HashMap<>(); + Map currencies = new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj3=new CardProcessingConfigCommonCurrencies1(); + CardProcessingConfigCommonCurrencies1 obj3 = new CardProcessingConfigCommonCurrencies1(); obj3.enabled(true); obj3.enabledCardPresent(false); obj3.enabledCardNotPresent(true); @@ -110,9 +110,9 @@ public static InlineResponse2013 run() { obj2.currencies(currencies); - Map paymentTypes=new HashMap<>(); + Map paymentTypes = new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj4=new CardProcessingConfigCommonPaymentTypes(); + CardProcessingConfigCommonPaymentTypes obj4 = new CardProcessingConfigCommonPaymentTypes(); obj4.enabled(true); paymentTypes.put("CUP",obj4); obj2.paymentTypes(paymentTypes); @@ -126,39 +126,39 @@ public static InlineResponse2013 run() { cardProcessing.configurationInformation(configurationInformation); payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation2=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation2 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation2.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation2); - PaymentsProductsVirtualTerminalConfigurationInformation configurationInformation2=new PaymentsProductsVirtualTerminalConfigurationInformation(); + PaymentsProductsVirtualTerminalConfigurationInformation configurationInformation2 = new PaymentsProductsVirtualTerminalConfigurationInformation(); configurationInformation2.templateId("9FA1BB94-5119-48D3-B2E5-A81FD3C657B5"); virtualTerminal.configurationInformation(configurationInformation2); payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation3.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation3); payments.customerInvoicing(customerInvoicing); selectedProducts.payments(payments); - RiskProducts risk=new RiskProducts(); + RiskProducts risk = new RiskProducts(); selectedProducts.risk(risk); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation4=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation4 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation4.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation4); - CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation3=new CommerceSolutionsProductsTokenManagementConfigurationInformation(); + CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation3 = new CommerceSolutionsProductsTokenManagementConfigurationInformation(); configurationInformation3.templateId("9FA1BB94-5119-48D3-B2E5-A81FD3C657B5"); tokenManagement.configurationInformation(configurationInformation3); @@ -166,15 +166,15 @@ public static InlineResponse2013 run() { selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); - PaymentsProductsTax transactionSearch=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax transactionSearch = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation5.enabled(true); // transactionSearch.subscriptionInformation(subscriptionInformation5); valueAddedServices.transactionSearch(transactionSearch); - PaymentsProductsTax reporting=new PaymentsProductsTax(); + PaymentsProductsTax reporting = new PaymentsProductsTax(); // reporting.subscriptionInformation(subscriptionInformation5); valueAddedServices.reporting(reporting); selectedProducts.valueAddedServices(valueAddedServices); @@ -182,7 +182,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingEFTPOS.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingEFTPOS.java index 5525e74..d4a4297 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingEFTPOS.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingEFTPOS.java @@ -33,16 +33,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -52,7 +52,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -63,17 +63,17 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); obj1.enabled(false); @@ -81,34 +81,34 @@ public static InlineResponse2013 run() { subscriptionInformation.features(features); cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("5999"); common.preferCobadgedSecondaryBrand(true); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj5=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj5 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); acquirer.countryCode("344_hongkong"); acquirer.institutionId("22344"); obj5.acquirer(acquirer); - Map currencies=new HashMap<>(); + Map currencies = new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj6=new CardProcessingConfigCommonCurrencies1(); + CardProcessingConfigCommonCurrencies1 obj6 = new CardProcessingConfigCommonCurrencies1(); obj6.enabled(true); obj6.merchantId("12345612344"); obj6.terminalId("12121212"); currencies.put("AUD",obj6); obj5.currencies(currencies); - Map paymentTypes=new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj7=new CardProcessingConfigCommonPaymentTypes(); + Map paymentTypes = new HashMap<>(); + CardProcessingConfigCommonPaymentTypes obj7 = new CardProcessingConfigCommonPaymentTypes(); obj7.enabled(true); paymentTypes.put("EFTPOS",obj7); @@ -123,7 +123,7 @@ public static InlineResponse2013 run() { common.processors(processors); configurations.common(common); - CardProcessingConfigFeatures features2=new CardProcessingConfigFeatures(); + CardProcessingConfigFeatures features2 = new CardProcessingConfigFeatures(); configurations.features(features2); configurationInformation.configurations(configurations); @@ -137,7 +137,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingFDIGlobal.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingFDIGlobal.java index 7b47199..6ca29a9 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingFDIGlobal.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingFDIGlobal.java @@ -33,16 +33,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -52,7 +52,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -63,43 +63,43 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); subscriptionInformation.features(features); cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("0742"); common.defaultAuthTypeCode("PRE"); common.processLevel3Data("ignored"); common.masterCardAssignedId("123456789"); common.enablePartialAuth(true); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj5=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj5 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); obj5.acquirer(acquirer); - Map currencies=new HashMap<>(); + Map currencies = new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj6=new CardProcessingConfigCommonCurrencies1(); + CardProcessingConfigCommonCurrencies1 obj6 = new CardProcessingConfigCommonCurrencies1(); obj6.enabled(true); obj6.enabledCardPresent(false); obj6.enabledCardNotPresent(true); @@ -113,8 +113,8 @@ public static InlineResponse2013 run() { obj5.currencies(currencies); - Map paymentTypes=new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj7=new CardProcessingConfigCommonPaymentTypes(); + Map paymentTypes = new HashMap<>(); + CardProcessingConfigCommonPaymentTypes obj7 = new CardProcessingConfigCommonPaymentTypes(); obj7.enabled(true); paymentTypes.put("MASTERCARD",obj7); paymentTypes.put("DISCOVER",obj7); @@ -123,8 +123,8 @@ public static InlineResponse2013 run() { paymentTypes.put("AMERICAN_EXPRESS",obj7); paymentTypes.put("DINERS_CLUB",obj7); paymentTypes.put("CUP",obj7); - Map currencies2=new HashMap<>(); - CardProcessingConfigCommonCurrencies ob1=new CardProcessingConfigCommonCurrencies(); + Map currencies2 = new HashMap<>(); + CardProcessingConfigCommonCurrencies ob1 = new CardProcessingConfigCommonCurrencies(); ob1.enabled(true); ob1.terminalId("pint123"); ob1.merchantId("pinm123"); @@ -145,12 +145,12 @@ public static InlineResponse2013 run() { common.processors(processors); configurations.common(common); - CardProcessingConfigFeatures features2=new CardProcessingConfigFeatures(); + CardProcessingConfigFeatures features2 = new CardProcessingConfigFeatures(); - CardProcessingConfigFeaturesCardNotPresent cardNotPresent=new CardProcessingConfigFeaturesCardNotPresent(); + CardProcessingConfigFeaturesCardNotPresent cardNotPresent = new CardProcessingConfigFeaturesCardNotPresent(); - Map processors3=new HashMap<>(); - CardProcessingConfigFeaturesCardNotPresentProcessors obj9=new CardProcessingConfigFeaturesCardNotPresentProcessors(); + Map processors3 = new HashMap<>(); + CardProcessingConfigFeaturesCardNotPresentProcessors obj9 = new CardProcessingConfigFeaturesCardNotPresentProcessors(); obj9.relaxAddressVerificationSystem(true); obj9.relaxAddressVerificationSystemAllowExpiredCard(true); @@ -176,7 +176,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingGPX.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingGPX.java index 2f421f8..ece706b 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingGPX.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingGPX.java @@ -33,16 +33,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -52,7 +52,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -64,17 +64,17 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); @@ -82,10 +82,10 @@ public static InlineResponse2013 run() { cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("1799"); organizationInformation.type("MERCHANT"); common.foodAndConsumerServiceId("1456"); @@ -98,9 +98,9 @@ public static InlineResponse2013 run() { common.businessCenterCreditCardRefundLimitPercent("3"); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj5=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj5 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); acquirer.countryCode("840_usa"); acquirer.fileDestinationBin("123456"); @@ -110,9 +110,9 @@ public static InlineResponse2013 run() { obj5.acquirer(acquirer); - Map currencies=new HashMap<>(); + Map currencies = new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj6=new CardProcessingConfigCommonCurrencies1(); + CardProcessingConfigCommonCurrencies1 obj6 = new CardProcessingConfigCommonCurrencies1(); obj6.enabled(true); obj6.enabledCardPresent(false); obj6.enabledCardNotPresent(true); @@ -123,8 +123,8 @@ public static InlineResponse2013 run() { obj5.currencies(currencies); - Map paymentTypes=new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj7=new CardProcessingConfigCommonPaymentTypes(); + Map paymentTypes = new HashMap<>(); + CardProcessingConfigCommonPaymentTypes obj7 = new CardProcessingConfigCommonPaymentTypes(); obj7.enabled(true); paymentTypes.put("MASTERCARD",obj7); @@ -153,12 +153,12 @@ public static InlineResponse2013 run() { configurations.common(common); - CardProcessingConfigFeatures features2=new CardProcessingConfigFeatures(); + CardProcessingConfigFeatures features2 = new CardProcessingConfigFeatures(); - CardProcessingConfigFeaturesCardNotPresent cardNotPresent=new CardProcessingConfigFeaturesCardNotPresent(); + CardProcessingConfigFeaturesCardNotPresent cardNotPresent = new CardProcessingConfigFeaturesCardNotPresent(); - Map processors3=new HashMap<>(); - CardProcessingConfigFeaturesCardNotPresentProcessors obj9=new CardProcessingConfigFeaturesCardNotPresentProcessors(); + Map processors3 = new HashMap<>(); + CardProcessingConfigFeaturesCardNotPresentProcessors obj9 = new CardProcessingConfigFeaturesCardNotPresentProcessors(); obj9.enableEmsTransactionRiskScore(true); obj9.relaxAddressVerificationSystem(true); @@ -173,10 +173,10 @@ public static InlineResponse2013 run() { features2.cardNotPresent(cardNotPresent); - CardProcessingConfigFeaturesCardPresent cardPresent=new CardProcessingConfigFeaturesCardPresent(); + CardProcessingConfigFeaturesCardPresent cardPresent = new CardProcessingConfigFeaturesCardPresent(); - Map processors2=new HashMap<>(); - CardProcessingConfigFeaturesCardPresentProcessors obj4=new CardProcessingConfigFeaturesCardPresentProcessors(); + Map processors2 = new HashMap<>(); + CardProcessingConfigFeaturesCardPresentProcessors obj4 = new CardProcessingConfigFeaturesCardPresentProcessors(); obj4.financialInstitutionId("1347"); obj4.pinDebitNetworkOrder("23456"); @@ -197,8 +197,8 @@ public static InlineResponse2013 run() { cardProcessing.configurationInformation(configurationInformation); payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation5.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation5); @@ -208,9 +208,9 @@ public static InlineResponse2013 run() { payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation6.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation6); @@ -218,19 +218,19 @@ public static InlineResponse2013 run() { selectedProducts.payments(payments); - RiskProducts risk=new RiskProducts(); + RiskProducts risk = new RiskProducts(); selectedProducts.risk(risk); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation7.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation7); - CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation7=new CommerceSolutionsProductsTokenManagementConfigurationInformation(); + CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation7 = new CommerceSolutionsProductsTokenManagementConfigurationInformation(); configurationInformation7.templateId("D62BEE20-DCFD-4AA2-8723-BA3725958ABA"); tokenManagement.configurationInformation(configurationInformation7); @@ -238,17 +238,17 @@ public static InlineResponse2013 run() { commerceSolutions.tokenManagement(tokenManagement); selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); - PaymentsProductsTax transactionSearch=new PaymentsProductsTax(); + PaymentsProductsTax transactionSearch = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation9.enabled(true); // transactionSearch.subscriptionInformation(subscriptionInformation9); valueAddedServices.transactionSearch(transactionSearch); - PaymentsProductsTax reporting=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax reporting = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation3.enabled(true); // reporting.subscriptionInformation(subscriptionInformation3); valueAddedServices.reporting(reporting); @@ -259,7 +259,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingSmartFDC.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingSmartFDC.java index a8bd7d3..d9b8853 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingSmartFDC.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingSmartFDC.java @@ -34,16 +34,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -53,7 +53,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -65,39 +65,39 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); subscriptionInformation.features(features); cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("1799"); organizationInformation.type("MERCHANT"); common.enablePartialAuth(true); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj5=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj5 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); obj5.acquirer(acquirer); - Map paymentTypes=new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj7=new CardProcessingConfigCommonPaymentTypes(); + Map paymentTypes = new HashMap<>(); + CardProcessingConfigCommonPaymentTypes obj7 = new CardProcessingConfigCommonPaymentTypes(); obj7.enabled(true); paymentTypes.put("MASTERCARD",obj7); @@ -127,8 +127,8 @@ public static InlineResponse2013 run() { cardProcessing.configurationInformation(configurationInformation); payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation5.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation5); @@ -138,9 +138,9 @@ public static InlineResponse2013 run() { payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation6.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation6); @@ -148,19 +148,19 @@ public static InlineResponse2013 run() { selectedProducts.payments(payments); - RiskProducts risk=new RiskProducts(); + RiskProducts risk = new RiskProducts(); selectedProducts.risk(risk); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation7.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation7); - CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation7=new CommerceSolutionsProductsTokenManagementConfigurationInformation(); + CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation7 = new CommerceSolutionsProductsTokenManagementConfigurationInformation(); configurationInformation7.templateId("D62BEE20-DCFD-4AA2-8723-BA3725958ABA"); tokenManagement.configurationInformation(configurationInformation7); @@ -168,17 +168,17 @@ public static InlineResponse2013 run() { commerceSolutions.tokenManagement(tokenManagement); selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); - PaymentsProductsTax transactionSearch=new PaymentsProductsTax(); + PaymentsProductsTax transactionSearch = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation9.enabled(true); // transactionSearch.subscriptionInformation(subscriptionInformation9); valueAddedServices.transactionSearch(transactionSearch); - PaymentsProductsTax reporting=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax reporting = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation3.enabled(true); // reporting.subscriptionInformation(subscriptionInformation3); valueAddedServices.reporting(reporting); @@ -189,7 +189,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/MerchantBoarding/MerchantBoardingTSYS.java b/src/main/java/samples/MerchantBoarding/MerchantBoardingTSYS.java index cea818d..2b430f0 100644 --- a/src/main/java/samples/MerchantBoarding/MerchantBoardingTSYS.java +++ b/src/main/java/samples/MerchantBoarding/MerchantBoardingTSYS.java @@ -33,16 +33,16 @@ public static void main(String args[]) throws Exception { public static InlineResponse2013 run() { - PostRegistrationBody reqObj=new PostRegistrationBody(); + PostRegistrationBody reqObj = new PostRegistrationBody(); - Boardingv1registrationsOrganizationInformation organizationInformation=new Boardingv1registrationsOrganizationInformation(); + Boardingv1registrationsOrganizationInformation organizationInformation = new Boardingv1registrationsOrganizationInformation(); organizationInformation.parentOrganizationId("apitester00"); organizationInformation.type("MERCHANT"); organizationInformation.configurable(true); - Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation=new Boardingv1registrationsOrganizationInformationBusinessInformation(); + Boardingv1registrationsOrganizationInformationBusinessInformation businessInformation = new Boardingv1registrationsOrganizationInformationBusinessInformation(); businessInformation.name("StuartWickedFastEatz"); - Boardingv1registrationsOrganizationInformationBusinessInformationAddress address=new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); + Boardingv1registrationsOrganizationInformationBusinessInformationAddress address = new Boardingv1registrationsOrganizationInformationBusinessInformationAddress(); address.country("US"); address.address1("123456 SandMarket"); address.locality("ORMOND BEACH"); @@ -52,7 +52,7 @@ public static InlineResponse2013 run() { businessInformation.websiteUrl("https://www.StuartWickedEats.com"); businessInformation.phoneNumber("6574567813"); - Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact=new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); + Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact businessContact = new Boardingv1registrationsOrganizationInformationBusinessInformationBusinessContact(); businessContact.firstName("Stuart"); businessContact.lastName("Stuart"); businessContact.phoneNumber("6574567813"); @@ -64,17 +64,17 @@ public static InlineResponse2013 run() { reqObj.organizationInformation(organizationInformation); - Boardingv1registrationsProductInformation productInformation=new Boardingv1registrationsProductInformation(); - Boardingv1registrationsProductInformationSelectedProducts selectedProducts=new Boardingv1registrationsProductInformationSelectedProducts(); + Boardingv1registrationsProductInformation productInformation = new Boardingv1registrationsProductInformation(); + Boardingv1registrationsProductInformationSelectedProducts selectedProducts = new Boardingv1registrationsProductInformationSelectedProducts(); - PaymentsProducts payments=new PaymentsProducts(); - PaymentsProductsCardProcessing cardProcessing=new PaymentsProductsCardProcessing(); - PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation=new PaymentsProductsCardProcessingSubscriptionInformation(); + PaymentsProducts payments = new PaymentsProducts(); + PaymentsProductsCardProcessing cardProcessing = new PaymentsProductsCardProcessing(); + PaymentsProductsCardProcessingSubscriptionInformation subscriptionInformation = new PaymentsProductsCardProcessingSubscriptionInformation(); subscriptionInformation.enabled(true); - Map features=new HashMap<>(); + Map features = new HashMap<>(); - PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1=new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); + PaymentsProductsCardProcessingSubscriptionInformationFeatures obj1 = new PaymentsProductsCardProcessingSubscriptionInformationFeatures(); obj1.enabled(true); features.put("cardNotPresent",obj1); features.put("cardPresent",obj1); @@ -82,17 +82,17 @@ public static InlineResponse2013 run() { cardProcessing.subscriptionInformation(subscriptionInformation); - PaymentsProductsCardProcessingConfigurationInformation configurationInformation=new PaymentsProductsCardProcessingConfigurationInformation(); + PaymentsProductsCardProcessingConfigurationInformation configurationInformation = new PaymentsProductsCardProcessingConfigurationInformation(); - CardProcessingConfig configurations=new CardProcessingConfig(); - CardProcessingConfigCommon common=new CardProcessingConfigCommon(); + CardProcessingConfig configurations = new CardProcessingConfig(); + CardProcessingConfigCommon common = new CardProcessingConfigCommon(); common.merchantCategoryCode("5999"); common.processLevel3Data("ignored"); organizationInformation.type("MERCHANT"); common.enablePartialAuth(false); common.amexVendorCode("2233"); - CardProcessingConfigCommonMerchantDescriptorInformation merchantDescriptorInformation=new CardProcessingConfigCommonMerchantDescriptorInformation(); + CardProcessingConfigCommonMerchantDescriptorInformation merchantDescriptorInformation = new CardProcessingConfigCommonMerchantDescriptorInformation(); merchantDescriptorInformation.city("cpertino"); merchantDescriptorInformation.country("USA"); @@ -104,16 +104,16 @@ public static InlineResponse2013 run() { common.merchantDescriptorInformation(merchantDescriptorInformation); - Map processors=new HashMap<>(); - CardProcessingConfigCommonProcessors obj5=new CardProcessingConfigCommonProcessors(); - CardProcessingConfigCommonAcquirer acquirer=new CardProcessingConfigCommonAcquirer(); + Map processors = new HashMap<>(); + CardProcessingConfigCommonProcessors obj5 = new CardProcessingConfigCommonProcessors(); + CardProcessingConfigCommonAcquirer acquirer = new CardProcessingConfigCommonAcquirer(); obj5.acquirer(acquirer); - Map currencies=new HashMap<>(); + Map currencies = new HashMap<>(); - CardProcessingConfigCommonCurrencies1 obj6=new CardProcessingConfigCommonCurrencies1(); + CardProcessingConfigCommonCurrencies1 obj6 = new CardProcessingConfigCommonCurrencies1(); obj6.enabled(true); obj6.enabledCardPresent(true); obj6.enabledCardNotPresent(true); @@ -124,8 +124,8 @@ public static InlineResponse2013 run() { obj5.currencies(currencies); - Map paymentTypes=new HashMap<>(); - CardProcessingConfigCommonPaymentTypes obj7=new CardProcessingConfigCommonPaymentTypes(); + Map paymentTypes = new HashMap<>(); + CardProcessingConfigCommonPaymentTypes obj7 = new CardProcessingConfigCommonPaymentTypes(); obj7.enabled(true); paymentTypes.put("MASTERCARD",obj7); @@ -155,9 +155,9 @@ public static InlineResponse2013 run() { configurations.common(common); - CardProcessingConfigFeatures features2=new CardProcessingConfigFeatures(); + CardProcessingConfigFeatures features2 = new CardProcessingConfigFeatures(); - CardProcessingConfigFeaturesCardNotPresent cardNotPresent=new CardProcessingConfigFeaturesCardNotPresent(); + CardProcessingConfigFeaturesCardNotPresent cardNotPresent = new CardProcessingConfigFeaturesCardNotPresent(); cardNotPresent.visaStraightThroughProcessingOnly(false); cardNotPresent.amexTransactionAdviceAddendum1(null); @@ -172,8 +172,8 @@ public static InlineResponse2013 run() { cardProcessing.configurationInformation(configurationInformation); payments.cardProcessing(cardProcessing); - PaymentsProductsVirtualTerminal virtualTerminal=new PaymentsProductsVirtualTerminal(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsVirtualTerminal virtualTerminal = new PaymentsProductsVirtualTerminal(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation5 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation5.enabled(true); // virtualTerminal.subscriptionInformation(subscriptionInformation5); @@ -183,9 +183,9 @@ public static InlineResponse2013 run() { payments.virtualTerminal(virtualTerminal); - PaymentsProductsTax customerInvoicing=new PaymentsProductsTax(); + PaymentsProductsTax customerInvoicing = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation6 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // // subscriptionInformation6.enabled(true); // customerInvoicing.subscriptionInformation(subscriptionInformation6); @@ -193,19 +193,19 @@ public static InlineResponse2013 run() { selectedProducts.payments(payments); - RiskProducts risk=new RiskProducts(); + RiskProducts risk = new RiskProducts(); selectedProducts.risk(risk); - CommerceSolutionsProducts commerceSolutions=new CommerceSolutionsProducts(); + CommerceSolutionsProducts commerceSolutions = new CommerceSolutionsProducts(); - CommerceSolutionsProductsTokenManagement tokenManagement=new CommerceSolutionsProductsTokenManagement(); + CommerceSolutionsProductsTokenManagement tokenManagement = new CommerceSolutionsProductsTokenManagement(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation7 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation7.enabled(true); // tokenManagement.subscriptionInformation(subscriptionInformation7); - CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation7=new CommerceSolutionsProductsTokenManagementConfigurationInformation(); + CommerceSolutionsProductsTokenManagementConfigurationInformation configurationInformation7 = new CommerceSolutionsProductsTokenManagementConfigurationInformation(); configurationInformation7.templateId("D62BEE20-DCFD-4AA2-8723-BA3725958ABA"); tokenManagement.configurationInformation(configurationInformation7); @@ -213,17 +213,17 @@ public static InlineResponse2013 run() { commerceSolutions.tokenManagement(tokenManagement); selectedProducts.commerceSolutions(commerceSolutions); - ValueAddedServicesProducts valueAddedServices=new ValueAddedServicesProducts(); + ValueAddedServicesProducts valueAddedServices = new ValueAddedServicesProducts(); - PaymentsProductsTax transactionSearch=new PaymentsProductsTax(); + PaymentsProductsTax transactionSearch = new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation9 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation9.enabled(true); // transactionSearch.subscriptionInformation(subscriptionInformation9); valueAddedServices.transactionSearch(transactionSearch); - PaymentsProductsTax reporting=new PaymentsProductsTax(); -// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3=new PaymentsProductsPayerAuthenticationSubscriptionInformation(); + PaymentsProductsTax reporting = new PaymentsProductsTax(); +// PaymentsProductsPayerAuthenticationSubscriptionInformation subscriptionInformation3 = new PaymentsProductsPayerAuthenticationSubscriptionInformation(); // subscriptionInformation3.enabled(true); // reporting.subscriptionInformation(subscriptionInformation3); valueAddedServices.reporting(reporting); @@ -234,7 +234,7 @@ public static InlineResponse2013 run() { reqObj.productInformation(productInformation); - InlineResponse2013 result=null; + InlineResponse2013 result = null; try { //Boarding API support only JWT Auth Type diff --git a/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java b/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java index dca45fe..981938a 100644 --- a/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java +++ b/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java @@ -6,6 +6,8 @@ import Data.Configuration; import Invokers.ApiClient; import Model.*; +import com.google.gson.JsonObject; +import utilities.capturecontext.utility.CaptureContextParsingUtility; public class GenerateCaptureContextForClickToPayDropInUI { private static String responseCode = null; @@ -93,6 +95,13 @@ public static void run() { System.out.println("ResponseCode :" + responseCode); System.out.println("ResponseMessage :" + status); System.out.println("Response Body :" + response); + + try { + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + System.out.println(payload.toString()); + } catch (Exception e) { + System.out.println(e.getMessage()); + } } catch (Exception e) { e.printStackTrace(); } diff --git a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java index bab23d2..fddaa46 100644 --- a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java +++ b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java @@ -6,6 +6,8 @@ import Data.Configuration; import Invokers.ApiClient; import Model.*; +import com.google.gson.JsonObject; +import utilities.capturecontext.utility.CaptureContextParsingUtility; public class GenerateUnifiedCheckoutCaptureContext { private static String responseCode = null; @@ -95,6 +97,13 @@ public static void run() { System.out.println("ResponseCode :" + responseCode); System.out.println("ResponseMessage :" + status); System.out.println("Response Body :" + response); + + try { + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + System.out.println(payload.toString()); + } catch (Exception e) { + System.out.println(e.getMessage()); + } } catch (Exception e) { e.printStackTrace(); } diff --git a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java index 52b2a15..390df77 100644 --- a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java +++ b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java @@ -12,6 +12,8 @@ import Model.Upv1capturecontextsOrderInformationBillToCompany; import Model.Upv1capturecontextsOrderInformationShipTo; import Model.Upv1capturecontextsCompleteMandate; +import com.google.gson.JsonObject; +import utilities.capturecontext.utility.CaptureContextParsingUtility; import java.util.ArrayList; import java.util.List; @@ -158,6 +160,13 @@ public static void run() { System.out.println("ResponseCode :" + responseCode); System.out.println("ResponseMessage :" + status); System.out.println("Response Body :" + response); + + try { + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + System.out.println(payload.toString()); + } catch (Exception e) { + System.out.println(e.getMessage()); + } } catch (Exception e) { e.printStackTrace(); } From dc298fc180504ccf7ec888784ab0187a4eb340fc Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Fri, 21 Nov 2025 15:22:42 +0530 Subject: [PATCH 2/4] updated model names --- .../AccountUpdater/RetrieveBatchReport.java | 2 +- .../AccountUpdater/RetrieveBatchStatus.java | 2 +- .../Subscriptions/CreateSubscription.java | 16 ++++++++-------- .../Subscriptions/UpdateSubscription.java | 10 +++++----- .../TokenManagement/Customer/CreateCustomer.java | 8 ++++---- .../TokenManagement/Customer/UpdateCustomer.java | 8 ++++---- .../UpdateCustomersDefaultPaymentInstrument.java | 2 +- .../UpdateCustomersDefaultShippingAddress.java | 2 +- ...eateCustomerDefaultPaymentInstrumentCard.java | 6 +++--- ...eCustomerNonDefaultPaymentInstrumentCard.java | 6 +++--- ...eateCustomerPaymentInstrumentBankAccount.java | 14 +++++++------- ...ateCustomerPaymentInstrumentPinlessDebit.java | 6 +++--- .../CreateCustomerDefaultShippingAddress.java | 2 +- .../CreateCustomerNonDefaultShippingAddress.java | 2 +- .../CreatePaymentInstrumentBankAccount.java | 14 +++++++------- .../CreatePaymentInstrumentCard.java | 6 +++--- .../CreatePaymentInstrumentPinlessDebit.java | 6 +++--- .../UpdatePaymentInstrument.java | 6 +++--- .../BankAccountValidationValidated.java | 4 ++-- 19 files changed, 61 insertions(+), 61 deletions(-) diff --git a/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java b/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java index 58acccb..9ed9b37 100644 --- a/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java +++ b/src/main/java/samples/AccountUpdater/RetrieveBatchReport.java @@ -26,7 +26,7 @@ public static void main(String args[]) throws Exception { public static void run() { String batchId = "16188390061150001062041064"; - InlineResponse20012 result = null; + InlineResponse20013 result = null; try { merchantProp = Configuration.getMerchantDetails(); ApiClient apiClient = new ApiClient(); diff --git a/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java b/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java index fc8dbb1..1f64f39 100644 --- a/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java +++ b/src/main/java/samples/AccountUpdater/RetrieveBatchStatus.java @@ -27,7 +27,7 @@ public static void main(String args[]) throws Exception { public static void run() { String batchId = "16188390061150001062041064"; - InlineResponse20011 result = null; + InlineResponse20012 result = null; try { merchantProp = Configuration.getMerchantDetails(); ApiClient apiClient = new ApiClient(); diff --git a/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/CreateSubscription.java b/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/CreateSubscription.java index 433da23..47abb30 100644 --- a/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/CreateSubscription.java +++ b/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/CreateSubscription.java @@ -37,15 +37,15 @@ public static CreateSubscriptionResponse run() { CreateSubscriptionRequest requestObj = new CreateSubscriptionRequest(); - Rbsv1subscriptionsClientReferenceInformation clientReferenceInformation = new Rbsv1subscriptionsClientReferenceInformation(); + GetAllSubscriptionsResponseClientReferenceInformation clientReferenceInformation = new GetAllSubscriptionsResponseClientReferenceInformation(); clientReferenceInformation.code("TC501713"); - Rbsv1subscriptionsClientReferenceInformationPartner clientReferenceInformationPartner = new Rbsv1subscriptionsClientReferenceInformationPartner(); - clientReferenceInformationPartner.developerId("ABCD1234"); - clientReferenceInformationPartner.solutionId("GEF1234"); - clientReferenceInformation.partner(clientReferenceInformationPartner); - - clientReferenceInformation.applicationName("CYBS-SDK"); - clientReferenceInformation.applicationVersion("v1"); +// Rbsv1subscriptionsClientReferenceInformationPartner clientReferenceInformationPartner = new Rbsv1subscriptionsClientReferenceInformationPartner(); +// clientReferenceInformationPartner.developerId("ABCD1234"); +// clientReferenceInformationPartner.solutionId("GEF1234"); +// clientReferenceInformation.partner(clientReferenceInformationPartner); +// +// clientReferenceInformation.applicationName("CYBS-SDK"); +// clientReferenceInformation.applicationVersion("v1"); requestObj.clientReferenceInformation(clientReferenceInformation); Rbsv1subscriptionsProcessingInformation processingInformation = new Rbsv1subscriptionsProcessingInformation(); diff --git a/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/UpdateSubscription.java b/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/UpdateSubscription.java index 7507cd8..73ba8fc 100644 --- a/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/UpdateSubscription.java +++ b/src/main/java/samples/RecurringBillingSubscriptions/Subscriptions/UpdateSubscription.java @@ -39,12 +39,12 @@ public static void run() { Model.UpdateSubscription requestObj = new Model.UpdateSubscription(); - Rbsv1subscriptionsClientReferenceInformation clientReferenceInformation = new Rbsv1subscriptionsClientReferenceInformation(); + GetAllSubscriptionsResponseClientReferenceInformation clientReferenceInformation = new GetAllSubscriptionsResponseClientReferenceInformation(); clientReferenceInformation.code("APGHU"); - Rbsv1subscriptionsClientReferenceInformationPartner clientReferenceInformationPartner = new Rbsv1subscriptionsClientReferenceInformationPartner(); - clientReferenceInformationPartner.developerId("ABCD1234"); - clientReferenceInformationPartner.solutionId("GEF1234"); - clientReferenceInformation.partner(clientReferenceInformationPartner); + GetAllSubscriptionsResponseClientReferenceInformation clientReferenceInformationPartner = new GetAllSubscriptionsResponseClientReferenceInformation(); +// clientReferenceInformationPartner.developerId("ABCD1234"); +// clientReferenceInformationPartner.solutionId("GEF1234"); +// clientReferenceInformation.partner(clientReferenceInformationPartner); requestObj.clientReferenceInformation(clientReferenceInformation); diff --git a/src/main/java/samples/TokenManagement/Customer/CreateCustomer.java b/src/main/java/samples/TokenManagement/Customer/CreateCustomer.java index d57b046..9fe66a7 100644 --- a/src/main/java/samples/TokenManagement/Customer/CreateCustomer.java +++ b/src/main/java/samples/TokenManagement/Customer/CreateCustomer.java @@ -29,18 +29,18 @@ public static PostCustomerRequest run() { PostCustomerRequest requestObj = new PostCustomerRequest(); - Tmsv2customersBuyerInformation buyerInformation = new Tmsv2customersBuyerInformation(); + Tmsv2tokenizeTokenInformationCustomerBuyerInformation buyerInformation = new Tmsv2tokenizeTokenInformationCustomerBuyerInformation(); buyerInformation.merchantCustomerID("Your customer identifier"); buyerInformation.email("test@cybs.com"); requestObj.buyerInformation(buyerInformation); - Tmsv2customersClientReferenceInformation clientReferenceInformation = new Tmsv2customersClientReferenceInformation(); + Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation clientReferenceInformation = new Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation(); clientReferenceInformation.code("TC50171_3"); requestObj.clientReferenceInformation(clientReferenceInformation); - List merchantDefinedInformation = new ArrayList (); - Tmsv2customersMerchantDefinedInformation merchantDefinedInformation1 = new Tmsv2customersMerchantDefinedInformation(); + List merchantDefinedInformation = new ArrayList (); + Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation merchantDefinedInformation1 = new Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation(); merchantDefinedInformation1.name("data1"); merchantDefinedInformation1.value("Your customer data"); merchantDefinedInformation.add(merchantDefinedInformation1); diff --git a/src/main/java/samples/TokenManagement/Customer/UpdateCustomer.java b/src/main/java/samples/TokenManagement/Customer/UpdateCustomer.java index e107927..462a7f9 100644 --- a/src/main/java/samples/TokenManagement/Customer/UpdateCustomer.java +++ b/src/main/java/samples/TokenManagement/Customer/UpdateCustomer.java @@ -30,18 +30,18 @@ public static PatchCustomerRequest run() { PatchCustomerRequest requestObj = new PatchCustomerRequest(); - Tmsv2customersBuyerInformation buyerInformation = new Tmsv2customersBuyerInformation(); + Tmsv2tokenizeTokenInformationCustomerBuyerInformation buyerInformation = new Tmsv2tokenizeTokenInformationCustomerBuyerInformation(); buyerInformation.merchantCustomerID("Your customer identifier"); buyerInformation.email("test@cybs.com"); requestObj.buyerInformation(buyerInformation); - Tmsv2customersClientReferenceInformation clientReferenceInformation = new Tmsv2customersClientReferenceInformation(); + Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation clientReferenceInformation = new Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation(); clientReferenceInformation.code("TC50171_3"); requestObj.clientReferenceInformation(clientReferenceInformation); - List merchantDefinedInformation = new ArrayList (); - Tmsv2customersMerchantDefinedInformation merchantDefinedInformation1 = new Tmsv2customersMerchantDefinedInformation(); + List merchantDefinedInformation = new ArrayList (); + Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation merchantDefinedInformation1 = new Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation(); merchantDefinedInformation1.name("data1"); merchantDefinedInformation1.value("Your customer data"); merchantDefinedInformation.add(merchantDefinedInformation1); diff --git a/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultPaymentInstrument.java b/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultPaymentInstrument.java index af3ca2d..a324946 100644 --- a/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultPaymentInstrument.java +++ b/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultPaymentInstrument.java @@ -34,7 +34,7 @@ public static PatchCustomerRequest run() { PatchCustomerRequest requestObj = new PatchCustomerRequest(); - Tmsv2customersDefaultPaymentInstrument defaultPaymentInstrument = new Tmsv2customersDefaultPaymentInstrument(); + Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument defaultPaymentInstrument = new Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument(); defaultPaymentInstrument.id("AB6A54B982A6FCB6E05341588E0A3935"); requestObj.defaultPaymentInstrument(defaultPaymentInstrument); diff --git a/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultShippingAddress.java b/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultShippingAddress.java index 3ceb3fe..d05db2a 100644 --- a/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultShippingAddress.java +++ b/src/main/java/samples/TokenManagement/Customer/UpdateCustomersDefaultShippingAddress.java @@ -30,7 +30,7 @@ public static PatchCustomerRequest run() { PatchCustomerRequest requestObj = new PatchCustomerRequest(); - Tmsv2customersDefaultShippingAddress defaultShippingAddress = new Tmsv2customersDefaultShippingAddress(); + Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress defaultShippingAddress = new Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress(); defaultShippingAddress.id("AB6A54B97C00FCB6E05341588E0A3935"); requestObj.defaultShippingAddress(defaultShippingAddress); diff --git a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerDefaultPaymentInstrumentCard.java b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerDefaultPaymentInstrumentCard.java index 2b566fd..3b89ee3 100644 --- a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerDefaultPaymentInstrumentCard.java +++ b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerDefaultPaymentInstrumentCard.java @@ -30,13 +30,13 @@ public static PostCustomerPaymentInstrumentRequest run() { PostCustomerPaymentInstrumentRequest requestObj = new PostCustomerPaymentInstrumentRequest(); requestObj._default(true); - Tmsv2customersEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2customersEmbeddedDefaultPaymentInstrumentCard(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard(); card.expirationMonth("12"); card.expirationYear("2031"); card.type("001"); requestObj.card(card); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -49,7 +49,7 @@ public static PostCustomerPaymentInstrumentRequest run() { billTo.phoneNumber("4158880000"); requestObj.billTo(billTo); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("7010000000016241111"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerNonDefaultPaymentInstrumentCard.java b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerNonDefaultPaymentInstrumentCard.java index ddd8058..c274326 100644 --- a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerNonDefaultPaymentInstrumentCard.java +++ b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerNonDefaultPaymentInstrumentCard.java @@ -30,13 +30,13 @@ public static PostCustomerPaymentInstrumentRequest run() { PostCustomerPaymentInstrumentRequest requestObj = new PostCustomerPaymentInstrumentRequest(); requestObj._default(false); - Tmsv2customersEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2customersEmbeddedDefaultPaymentInstrumentCard(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard(); card.expirationMonth("12"); card.expirationYear("2031"); card.type("001"); requestObj.card(card); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -49,7 +49,7 @@ public static PostCustomerPaymentInstrumentRequest run() { billTo.phoneNumber("4158880000"); requestObj.billTo(billTo); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("7010000000016241111"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentBankAccount.java b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentBankAccount.java index 3f35622..bd4e7d8 100644 --- a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentBankAccount.java +++ b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentBankAccount.java @@ -31,20 +31,20 @@ public static PostCustomerPaymentInstrumentRequest run() { PostCustomerPaymentInstrumentRequest requestObj = new PostCustomerPaymentInstrumentRequest(); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount bankAccount = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount bankAccount = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount(); bankAccount.type("savings"); requestObj.bankAccount(bankAccount); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation buyerInformation = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation buyerInformation = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation(); buyerInformation.companyTaxID("12345"); buyerInformation.currency("USD"); buyerInformation.dateOfBirth(new LocalDate("2000-12-13")); - List personalIdentification = new ArrayList (); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification personalIdentification1 = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification(); + List personalIdentification = new ArrayList (); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification personalIdentification1 = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification(); personalIdentification1.id("57684432111321"); personalIdentification1.type("driver license"); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy issuedBy1 = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy issuedBy1 = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy(); issuedBy1.administrativeArea("CA"); personalIdentification1.issuedBy(issuedBy1); @@ -54,7 +54,7 @@ public static PostCustomerPaymentInstrumentRequest run() { requestObj.buyerInformation(buyerInformation); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -74,7 +74,7 @@ public static PostCustomerPaymentInstrumentRequest run() { requestObj.processingInformation(processingInformation); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("A7A91A2CA872B272E05340588D0A0699"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentPinlessDebit.java b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentPinlessDebit.java index 58148b0..a64d6b1 100644 --- a/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentPinlessDebit.java +++ b/src/main/java/samples/TokenManagement/CustomerPaymentInstrument/CreateCustomerPaymentInstrumentPinlessDebit.java @@ -29,7 +29,7 @@ public static PostCustomerPaymentInstrumentRequest run() { PostCustomerPaymentInstrumentRequest requestObj = new PostCustomerPaymentInstrumentRequest(); - Tmsv2customersEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2customersEmbeddedDefaultPaymentInstrumentCard(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard(); card.expirationMonth("12"); card.expirationYear("2031"); card.type("001"); @@ -39,7 +39,7 @@ public static PostCustomerPaymentInstrumentRequest run() { card.useAs("pinless debit"); requestObj.card(card); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -52,7 +52,7 @@ public static PostCustomerPaymentInstrumentRequest run() { billTo.phoneNumber("4158880000"); requestObj.billTo(billTo); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("7010000000016241111"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerDefaultShippingAddress.java b/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerDefaultShippingAddress.java index 259a427..9937b83 100644 --- a/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerDefaultShippingAddress.java +++ b/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerDefaultShippingAddress.java @@ -30,7 +30,7 @@ public static PostCustomerShippingAddressRequest run() { PostCustomerShippingAddressRequest requestObj = new PostCustomerShippingAddressRequest(); requestObj._default(true); - Tmsv2customersEmbeddedDefaultShippingAddressShipTo shipTo = new Tmsv2customersEmbeddedDefaultShippingAddressShipTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo shipTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo(); shipTo.firstName("John"); shipTo.lastName("Doe"); shipTo.company("CyberSource"); diff --git a/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerNonDefaultShippingAddress.java b/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerNonDefaultShippingAddress.java index dbddf3b..d6c2b78 100644 --- a/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerNonDefaultShippingAddress.java +++ b/src/main/java/samples/TokenManagement/CustomerShippingAddress/CreateCustomerNonDefaultShippingAddress.java @@ -30,7 +30,7 @@ public static PostCustomerShippingAddressRequest run() { PostCustomerShippingAddressRequest requestObj = new PostCustomerShippingAddressRequest(); requestObj._default(false); - Tmsv2customersEmbeddedDefaultShippingAddressShipTo shipTo = new Tmsv2customersEmbeddedDefaultShippingAddressShipTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo shipTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo(); shipTo.firstName("John"); shipTo.lastName("Doe"); shipTo.company("CyberSource"); diff --git a/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentBankAccount.java b/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentBankAccount.java index e9b1fc8..88ed003 100644 --- a/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentBankAccount.java +++ b/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentBankAccount.java @@ -32,20 +32,20 @@ public static PostPaymentInstrumentRequest run() { PostPaymentInstrumentRequest requestObj = new PostPaymentInstrumentRequest(); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount bankAccount = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount bankAccount = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount(); bankAccount.type("savings"); requestObj.bankAccount(bankAccount); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation buyerInformation = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation buyerInformation = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation(); buyerInformation.companyTaxID("12345"); buyerInformation.currency("USD"); buyerInformation.dateOfBirth(new LocalDate("2000-12-13")); - List personalIdentification = new ArrayList (); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification personalIdentification1 = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification(); + List personalIdentification = new ArrayList (); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification personalIdentification1 = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification(); personalIdentification1.id("57684432111321"); personalIdentification1.type("driver license"); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy issuedBy1 = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy issuedBy1 = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy(); issuedBy1.administrativeArea("CA"); personalIdentification1.issuedBy(issuedBy1); @@ -55,7 +55,7 @@ public static PostPaymentInstrumentRequest run() { requestObj.buyerInformation(buyerInformation); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -75,7 +75,7 @@ public static PostPaymentInstrumentRequest run() { requestObj.processingInformation(processingInformation); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("A7A91A2CA872B272E05340588D0A0699"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentCard.java b/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentCard.java index 946064a..513991b 100644 --- a/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentCard.java +++ b/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentCard.java @@ -30,13 +30,13 @@ public static PostPaymentInstrumentRequest run() { PostPaymentInstrumentRequest requestObj = new PostPaymentInstrumentRequest(); - Tmsv2customersEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2customersEmbeddedDefaultPaymentInstrumentCard(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard(); card.expirationMonth("12"); card.expirationYear("2031"); card.type("visa"); requestObj.card(card); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -49,7 +49,7 @@ public static PostPaymentInstrumentRequest run() { billTo.phoneNumber("4158880000"); requestObj.billTo(billTo); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("7010000000016241111"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentPinlessDebit.java b/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentPinlessDebit.java index aef8e21..58ff374 100644 --- a/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentPinlessDebit.java +++ b/src/main/java/samples/TokenManagement/PaymentInstrument/CreatePaymentInstrumentPinlessDebit.java @@ -30,7 +30,7 @@ public static PostPaymentInstrumentRequest run() { PostPaymentInstrumentRequest requestObj = new PostPaymentInstrumentRequest(); - Tmsv2customersEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2customersEmbeddedDefaultPaymentInstrumentCard(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard(); card.expirationMonth("12"); card.expirationYear("2031"); card.type("visa"); @@ -40,7 +40,7 @@ public static PostPaymentInstrumentRequest run() { card.useAs("pinless debit"); requestObj.card(card); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("John"); billTo.lastName("Doe"); billTo.company("CyberSource"); @@ -53,7 +53,7 @@ public static PostPaymentInstrumentRequest run() { billTo.phoneNumber("4158880000"); requestObj.billTo(billTo); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("7010000000016241111"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/TokenManagement/PaymentInstrument/UpdatePaymentInstrument.java b/src/main/java/samples/TokenManagement/PaymentInstrument/UpdatePaymentInstrument.java index b8c5611..0a8bf7b 100644 --- a/src/main/java/samples/TokenManagement/PaymentInstrument/UpdatePaymentInstrument.java +++ b/src/main/java/samples/TokenManagement/PaymentInstrument/UpdatePaymentInstrument.java @@ -30,13 +30,13 @@ public static PatchPaymentInstrumentRequest run() { PatchPaymentInstrumentRequest requestObj = new PatchPaymentInstrumentRequest(); - Tmsv2customersEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2customersEmbeddedDefaultPaymentInstrumentCard(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard card = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard(); card.expirationMonth("12"); card.expirationYear("2031"); card.type("visa"); requestObj.card(card); - Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo billTo = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo(); billTo.firstName("Jack"); billTo.lastName("Smith"); billTo.company("CyberSource"); @@ -49,7 +49,7 @@ public static PatchPaymentInstrumentRequest run() { billTo.phoneNumber("4158888674"); requestObj.billTo(billTo); - Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); + Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier instrumentIdentifier = new Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier(); instrumentIdentifier.id("7010000000016241111"); requestObj.instrumentIdentifier(instrumentIdentifier); diff --git a/src/main/java/samples/VisaBankAccountValidation/BankAccountValidationValidated.java b/src/main/java/samples/VisaBankAccountValidation/BankAccountValidationValidated.java index cdd3ba0..27636ad 100644 --- a/src/main/java/samples/VisaBankAccountValidation/BankAccountValidationValidated.java +++ b/src/main/java/samples/VisaBankAccountValidation/BankAccountValidationValidated.java @@ -29,7 +29,7 @@ public static void main(String args[]) throws Exception { run(); } - public static InlineResponse20013 run() { + public static InlineResponse20014 run() { AccountValidationsRequest accountValidationRequestObj = new AccountValidationsRequest(); @@ -50,7 +50,7 @@ public static InlineResponse20013 run() { paymentInformation.bank(paymentInformationBank); accountValidationRequestObj.paymentInformation(paymentInformation); - InlineResponse20013 result = null; + InlineResponse20014 result = null; try { merchantProp = ConfigurationForBankAccountValidation.getMerchantDetailsForBankAccountValidation(); ApiClient apiClient = new ApiClient(); From 4f5ce6280a59e7df0aa856649bc447c0e7a23216 Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Fri, 21 Nov 2025 15:23:25 +0530 Subject: [PATCH 3/4] changed client dependency version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f801971..3390ecd 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.cybersource cybersource-rest-client-java - 0.0.83 + 0.0.84 From 93ea85621b76d26c1496aa001aff396ddce6455a Mon Sep 17 00:00:00 2001 From: "Goel, Aastvik" Date: Thu, 27 Nov 2025 16:35:06 +0530 Subject: [PATCH 4/4] changed sample code to match new function signature --- .../samples/FlexMicroform/GenerateCaptureContextAcceptCard.java | 2 +- .../FlexMicroform/GenerateCaptureContextAcceptCheck.java | 2 +- .../GenerateCaptureContextForClickToPayDropInUI.java | 2 +- .../UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java | 2 +- ...rateUnifiedCheckoutCaptureContextPassingBillingShipping.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java index ef44000..0486acc 100644 --- a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java +++ b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCard.java @@ -67,7 +67,7 @@ public static void run() { System.out.println("\n\n"); try { - JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig); System.out.println(payload.toString()); } catch (Exception e) { System.out.println(e.getMessage()); diff --git a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java index ce4dffa..676c709 100644 --- a/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java +++ b/src/main/java/samples/FlexMicroform/GenerateCaptureContextAcceptCheck.java @@ -48,7 +48,7 @@ public static void run() { System.out.println("Response Body :" + response); try { - JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig); System.out.println(payload.toString()); } catch (Exception e) { System.out.println(e.getMessage()); diff --git a/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java b/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java index 981938a..a2bf742 100644 --- a/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java +++ b/src/main/java/samples/UnifiedCheckout/GenerateCaptureContextForClickToPayDropInUI.java @@ -97,7 +97,7 @@ public static void run() { System.out.println("Response Body :" + response); try { - JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig); System.out.println(payload.toString()); } catch (Exception e) { System.out.println(e.getMessage()); diff --git a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java index fddaa46..afaab07 100644 --- a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java +++ b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContext.java @@ -99,7 +99,7 @@ public static void run() { System.out.println("Response Body :" + response); try { - JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig); System.out.println(payload.toString()); } catch (Exception e) { System.out.println(e.getMessage()); diff --git a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java index 31b5455..98ec2fa 100644 --- a/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java +++ b/src/main/java/samples/UnifiedCheckout/GenerateUnifiedCheckoutCaptureContextPassingBillingShipping.java @@ -162,7 +162,7 @@ public static void run() { System.out.println("Response Body :" + response); try { - JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig, true); + JsonObject payload = CaptureContextParsingUtility.parseCaptureContextResponse(response, merchantConfig); System.out.println(payload.toString()); } catch (Exception e) { System.out.println(e.getMessage());