public MerchantLocatorAPITest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.SSS");

            locatorRequest =
                "{"
                + "\"header\": {"
                + "\"messageDateTime\": \"" + strDate + "\","
                + "\"requestMessageId\": \"Request_001\","
                + "\"startIndex\": \"0\""
                + "},"
                + "\"searchAttrList\": {"
                + "\"merchantName\": \"Starbucks\","
                + "\"merchantCountryCode\": \"840\","
                + "\"latitude\": \"37.363922\","
                + "\"longitude\": \"-121.929163\","
                + "\"distance\": \"2\","
                + "\"distanceUnit\": \"M\""
                + "},"
                + "\"responseAttrList\": ["
                + "\"GNLOCATOR\""
                + "],"
                + "\"searchOptions\": {"
                + "\"maxRecords\": \"5\","
                + "\"matchIndicators\": \"true\","
                + "\"matchScore\": \"true\""
                + "}"
                + "}";
        }
 public PaymentAccountValidationTest()
 {
     visaAPIClient = new VisaAPIClient();
     paymentAccountValidation =
              "{"
                   + "\"acquirerCountryCode\": \"840\","
                   + "\"acquiringBin\": \"408999\","
                   + "\"addressVerificationResults\": {"
                     + "\"postalCode\": \"T4B 3G5\","
                     + "\"street\": \"801 Metro Center Blv\""
                   + "},"
                   + "\"cardAcceptor\": {"
                     + "\"address\": {"
                       + "\"city\": \"San Francisco\","
                       + "\"country\": \"USA\","
                       + "\"county\": \"CA\","
                       + "\"state\": \"CA\","
                       + "\"zipCode\": \"94404\""
                     + "},"
                     + "\"idCode\": \"111111\","
                     + "\"name\": \"rohan\","
                     + "\"terminalId\": \"123\""
                   + "},"
                   + "\"cardCvv2Value\": \"672\","
                   + "\"cardExpiryDate\": \"2018-06\","
                   + "\"primaryAccountNumber\": \"4957030000313108\","
                   + "\"retrievalReferenceNumber\": \"015221743720\","
                   + "\"systemsTraceAuditNumber\": \"743720\""
             + "}";
 }
Example #3
0
 public MVisaTest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");
     cashInPushPayments =
          "{"
          + "\"acquirerCountryCode\": \"643\","
          + "\"acquiringBin\": \"400171\","
          + "\"amount\": \"124.05\","
          + "\"businessApplicationId\": \"CI\","
          + "\"cardAcceptor\": {"
                                  + "\"address\": {"
                                                      + "\"city\": \"Bangalore\","
                                                      + "\"country\": \"IND\""
                                               + "},"
                                  + "\"idCode\": \"ID-Code123\","
                                  + "\"name\": \"Card Accpector ABC\""
                                + "},"
          + "\"localTransactionDateTime\": \""+ strDate + "\","
          + "\"merchantCategoryCode\": \"4829\","
          + "\"recipientPrimaryAccountNumber\": \"4123640062698797\","
          + "\"retrievalReferenceNumber\": \"430000367618\","
          + "\"senderAccountNumber\": \"4541237895236\","
          + "\"senderName\": \"Mohammed Qasim\","
          + "\"senderReference\": \"1234\","
          + "\"systemsTraceAuditNumber\": \"313042\","
          + "\"transactionCurrencyCode\": \"USD\","
          + "\"transactionIdentifier\": \"381228649430015\""
          + "}";
 }
        public MerchantLocatorAPITest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.SSS");

            locatorRequest =
                "{"
                + "\"header\": {"
                + "\"messageDateTime\": \"" + strDate + "\","
                + "\"requestMessageId\": \"VCO_GMR_001\""
                + "},"
                + "\"searchAttrList\": {"
                + "\"merchantName\": \"ALOHA CAFE\","
                + "\"merchantCountryCode\": \"840\","
                + "\"latitude\": \"34.047616\","
                + "\"longitude\": \"-118.239079\","
                + "\"distance\": \"100\","
                + "\"distanceUnit\": \"M\""
                + "},"
                + "\"responseAttrList\": ["
                + "\"GNLOCATOR\""
                + "],"
                + "\"searchOptions\": {"
                + "\"maxRecords\": \"2\","
                + "\"matchIndicators\": \"true\","
                + "\"matchScore\": \"true\""
                + "}"
                + "}";
        }
Example #5
0
 public ForeignExchangeRatesTest()
 {
     visaAPIClient          = new VisaAPIClient();
     foreignExchangeRequest =
         "{"
         + "\"acquirerCountryCode\": \"840\","
         + "\"acquiringBin\": \"408999\","
         + "\"cardAcceptor\": {"
         + "\"address\": {"
         + "\"city\": \"San Francisco\","
         + "\"country\": \"USA\","
         + "\"county\": \"San Mateo\","
         + "\"state\": \"CA\","
         + "\"zipCode\": \"94404\""
         + "},"
         + "\"idCode\": \"ABCD1234ABCD123\","
         + "\"name\": \"ABCD\","
         + "\"terminalId\": \"ABCD1234\""
         + "},"
         + "\"destinationCurrencyCode\": \"826\","
         + "\"markUpRate\": \"1\","
         + "\"retrievalReferenceNumber\": \"201010101031\","
         + "\"sourceAmount\": \"100.00\","
         + "\"sourceCurrencyCode\": \"840\","
         + "\"systemsTraceAuditNumber\": \"350421\""
         + "}";
 }
 public PaymentAccountValidationTest()
 {
     visaAPIClient            = new VisaAPIClient();
     paymentAccountValidation =
         "{"
         + "\"acquirerCountryCode\": \"840\","
         + "\"acquiringBin\": \"408999\","
         + "\"addressVerificationResults\": {"
         + "\"postalCode\": \"T4B 3G5\","
         + "\"street\": \"801 Metro Center Blv\""
         + "},"
         + "\"cardAcceptor\": {"
         + "\"address\": {"
         + "\"city\": \"San Francisco\","
         + "\"country\": \"USA\","
         + "\"county\": \"CA\","
         + "\"state\": \"CA\","
         + "\"zipCode\": \"94404\""
         + "},"
         + "\"idCode\": \"111111\","
         + "\"name\": \"rohan\","
         + "\"terminalId\": \"123\""
         + "},"
         + "\"cardCvv2Value\": \"672\","
         + "\"cardExpiryDate\": \"2018-06\","
         + "\"primaryAccountNumber\": \"4957030000313108\","
         + "\"retrievalReferenceNumber\": \"015221743720\","
         + "\"systemsTraceAuditNumber\": \"743720\""
         + "}";
 }
 public MerchantLocatorAPITest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.SSS");
     locatorRequest =
     "{"
         + "\"header\": {"
         + "\"messageDateTime\": \"" + strDate + "\","
         + "\"requestMessageId\": \"Request_001\","
         + "\"startIndex\": \"0\""
         + "},"
         + "\"searchAttrList\": {"
         + "\"merchantName\": \"Starbucks\","
         + "\"merchantCountryCode\": \"840\","
         + "\"latitude\": \"37.363922\","
         + "\"longitude\": \"-121.929163\","
         + "\"distance\": \"2\","
         + "\"distanceUnit\": \"M\""
         + "},"
         + "\"responseAttrList\": ["
         + "\"GNLOCATOR\""
         + "],"
         + "\"searchOptions\": {"
         + "\"maxRecords\": \"5\","
         + "\"matchIndicators\": \"true\","
         + "\"matchScore\": \"true\""
         + "}"
         + "}";
 }
Example #8
0
        public MVisaTest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");

            cashInPushPayments =
                "{"
                + "\"acquirerCountryCode\": \"643\","
                + "\"acquiringBin\": \"400171\","
                + "\"amount\": \"124.05\","
                + "\"businessApplicationId\": \"CI\","
                + "\"cardAcceptor\": {"
                + "\"address\": {"
                + "\"city\": \"Bangalore\","
                + "\"country\": \"IND\""
                + "},"
                + "\"idCode\": \"ID-Code123\","
                + "\"name\": \"Card Accpector ABC\""
                + "},"
                + "\"localTransactionDateTime\": \"" + strDate + "\","
                + "\"merchantCategoryCode\": \"4829\","
                + "\"recipientPrimaryAccountNumber\": \"4123640062698797\","
                + "\"retrievalReferenceNumber\": \"430000367618\","
                + "\"senderAccountNumber\": \"4541237895236\","
                + "\"senderName\": \"Mohammed Qasim\","
                + "\"senderReference\": \"1234\","
                + "\"systemsTraceAuditNumber\": \"313042\","
                + "\"transactionCurrencyCode\": \"USD\","
                + "\"transactionIdentifier\": \"381228649430015\""
                + "}";
        }
Example #9
0
        public LocationUpdateTest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ssZ");

            locationsRequestBody =
                "{"
                + "\"accuracy\": \"5000\","
                + "\"cloudNotificationKey\": \"03e3ae03-a627-4241-bad6-58f811c18e46\","
                + "\"cloudNotificationProvider\": \"1\","
                + "\"deviceId\": \"" + ConfigurationManager.AppSettings["mlcDeviceId"] + "\","
                + "\"deviceLocationDateTime\": \"" + strDate + "\","
                + "\"geoLocationCoordinate\": {"
                + "\"latitude\": \"37.558546\","
                + "\"longitude\": \"-122.271079\""
                + "},"
                + "\"header\": {"
                + "\"messageDateTime\": \"" + strDate + "\","
                + "\"messageId\": \"" + ConfigurationManager.AppSettings["mlcMessageId"] + "\""
                + "},"
                + "\"issuerId\": \"" + ConfigurationManager.AppSettings["mlcIssuerId"] + "\","
                + "\"provider\": \"1\","
                + "\"source\": \"2\""
                + "}";
        }
        public MerchantSearchAPITest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fff");

            searchRequest =
                "{"
                + "\"header\": {"
                + "\"messageDateTime\": \"" + strDate + "\","
                + "\"requestMessageId\": \"CDISI_GMR_001\","
                + "\"startIndex\": \"1\""
                + "},"
                + "\"searchAttrList\": {"
                + "\"merchantName\": \"ALOHA CAFE\","
                + "\"merchantStreetAddress\": \"410 E 2ND ST\","
                + "\"merchantCity\": \"LOS ANGELES\","
                + "\"merchantState\": \"CA\","
                + "\"merchantPostalCode\": \"90012\","
                + "\"merchantCountryCode\": \"840\","
                + "\"visaMerchantId\": \"11687107\","
                + "\"visaStoreId\": \"125861096\","
                + "\"businessRegistrationId\": \"196007747\","
                + "\"acquirerCardAcceptorId\": \"191642760469222\","
                + "\"acquiringBin\": \"486168\""
                + "},"
                + "\"responseAttrList\": ["
                + "\"GNSTANDARD\""
                + "],"
                + "\"searchOptions\": {"
                + "\"maxRecords\": \"2\","
                + "\"matchIndicators\": \"true\","
                + "\"matchScore\": \"true\""
                + "}"
                + "}";
        }
 public ForeignExchangeRatesTest()
 {
     visaAPIClient = new VisaAPIClient();
     foreignExchangeRequest =
         "{"
                   + "\"acquirerCountryCode\": \"840\","
                   + "\"acquiringBin\": \"408999\","
                   + "\"cardAcceptor\": {"
                       + "\"address\": {"
                           + "\"city\": \"San Francisco\","
                           + "\"country\": \"USA\","
                           + "\"county\": \"San Mateo\","
                           + "\"state\": \"CA\","
                           + "\"zipCode\": \"94404\""
                     + "},"
                     + "\"idCode\": \"ABCD1234ABCD123\","
                     + "\"name\": \"ABCD\","
                     + "\"terminalId\": \"ABCD1234\""
                   + "},"
                   + "\"destinationCurrencyCode\": \"826\","
                   + "\"markUpRate\": \"1\","
                   + "\"retrievalReferenceNumber\": \"201010101031\","
                   + "\"sourceAmount\": \"100.00\","
                   + "\"sourceCurrencyCode\": \"840\","
                   + "\"systemsTraceAuditNumber\": \"350421\""
            + "}";
 }
 public GeneralAttributesInquiryTest()
 {
     visaAPIClient           = new VisaAPIClient();
     generalAttributeInquiry =
         "{"
         + "\"primaryAccountNumber\": \"4856200001123821\""
         + "}";
 }
 public GeneralAttributesInquiryTest()
 {
     visaAPIClient = new VisaAPIClient();
     generalAttributeInquiry =
             "{"
               + "\"primaryAccountNumber\": \"4856200001123821\""
           + "}";
 }
Example #14
0
 public ConsumerRulesTest()
 {
     visaAPIClient = new VisaAPIClient();
     cardRegisterData =
           "{"
              + "\"primaryAccountNumber\": \"" + ConfigurationManager.AppSettings["vctcTestPan"] + "\""
         + "}";
 }
Example #15
0
 public ConsumerRulesTest()
 {
     visaAPIClient    = new VisaAPIClient();
     cardRegisterData =
         "{"
         + "\"primaryAccountNumber\": \"" + ConfigurationManager.AppSettings["vctcTestPan"] + "\""
         + "}";
 }
 public FundsTransferAttributesTest()
 {
     visaAPIClient        = new VisaAPIClient();
     fundsTransferInquiry =
         "{"
         + "\"acquirerCountryCode\": \"840\","
         + "\"acquiringBin\": \"408999\","
         + "\"primaryAccountNumber\": \"4957030420210512\","
         + "\"retrievalReferenceNumber\": \"330000550000\","
         + "\"systemsTraceAuditNumber\": \"451006\""
         + "}";
 }
 public FundsTransferAttributesTest()
 {
     visaAPIClient = new VisaAPIClient();
     fundsTransferInquiry =
            "{"
               + "\"acquirerCountryCode\": \"840\","
               + "\"acquiringBin\": \"408999\","
               + "\"primaryAccountNumber\": \"4957030420210512\","
               + "\"retrievalReferenceNumber\": \"330000550000\","
               + "\"systemsTraceAuditNumber\": \"451006\""
             + "}";
 }
Example #18
0
 public CybersourcePaymentsTest()
 {
     visaAPIClient = new VisaAPIClient();
     paymentAuthorizationRequest =
         "{\"amount\": \"0\","
         + "\"currency\": \"USD\","
         + "\"payment\": {"
         + "\"cardNumber\": \"4111111111111111\","
         + "\"cardExpirationMonth\": \"10\","
         + "\"cardExpirationYear\": \"2016\""
         + "}"
         + "}";
 }
 public CybersourcePaymentsTest()
 {
     visaAPIClient = new VisaAPIClient();
     paymentAuthorizationRequest =
    "{\"amount\": \"0\","
        + "\"currency\": \"USD\","
        + "\"payment\": {"
            + "\"cardNumber\": \"4111111111111111\","
            + "\"cardExpirationMonth\": \"10\","
            + "\"cardExpirationYear\": \"2016\""
            + "}"
        + "}";
 }
Example #20
0
        public ReplaceCardTest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fffZ");

            replaceCardsRequest = "{"
                                  + "\"communityCode\": \"" + ConfigurationManager.AppSettings["vtaCommunityCode"] + "\","
                                  + "\"newCard\": {"
                                  + "\"address\":" + ConfigurationManager.AppSettings["vtaReplaceCardNewAddress"] + ","
                                  + "\"billCycleDay\": \"22\","
                                  + "\"bin\": null,"
                                  + "\"cardEnrollmentDate\": \"2016-06-10T08:36:59+00:00\","
                                  + "\"cardExpiryDate\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardExpiryDate"] + "\","
                                  + "\"cardNickName\": \"My Visa 3\","
                                  + "\"cardNumber\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardNumber"] + "\","
                                  + "\"cardSecurityCode\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardSecurityCode"] + "\","
                                  + "\"isActive\": true,"
                                  + "\"lastFour\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardLastFour"] + "\","
                                  + "\"nameOnCard\": \"Mradul\","
                                  + "\"paused\": false,"
                                  + "\"portfolioNum\": \"" + ConfigurationManager.AppSettings["vtaPortfolioNumber"] + "\","
                                  + "\"previousCardNumber\": null,"
                                  + "\"productId\": null,"
                                  + "\"productIdDescription\": \"Credit\","
                                  + "\"productType\": \"Credit\","
                                  + "\"productTypeExtendedCode\": \"123\","
                                  + "\"rpin\": null"
                                  + "},"
                                  + "\"oldCard\": {"
                                  + "\"address\":" + ConfigurationManager.AppSettings["vtaReplaceCardNewAddress"] + ","
                                  + "\"billCycleDay\": \"22\","
                                  + "\"bin\": null,"
                                  + "\"cardEnrollmentDate\": \"2016-06-10T08:36:59+00:00\","
                                  + "\"cardExpiryDate\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardExpiryDate"] + "\","
                                  + "\"cardNickName\": \"My Visa 3\","
                                  + "\"cardNumber\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardNumber"] + "\","
                                  + "\"cardSecurityCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardSecurityCode"] + "\","
                                  + "\"isActive\": true,"
                                  + "\"lastFour\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerLastFour"] + "\","
                                  + "\"nameOnCard\": \"ddd\","
                                  + "\"paused\": false,"
                                  + "\"portfolioNum\": \"" + ConfigurationManager.AppSettings["vtaPortfolioNumber"] + "\","
                                  + "\"previousCardNumber\": null,"
                                  + "\"productId\": null,"
                                  + "\"productIdDescription\": \"Credit\","
                                  + "\"productType\": \"Credit\","
                                  + "\"productTypeExtendedCode\": \"123\","
                                  + "\"rpin\": null"
                                  + "}"
                                  + "}";
        }
Example #21
0
 public ReplaceCardTest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fffZ");
     replaceCardsRequest = "{"
                  + "\"communityCode\": \"" + ConfigurationManager.AppSettings["vtaCommunityCode"] + "\","
                                  + "\"newCard\": {"
                                      + "\"address\":" + ConfigurationManager.AppSettings["vtaReplaceCardNewAddress"]  + ","
                                      + "\"billCycleDay\": \"22\","
                                      + "\"bin\": null,"
                                      + "\"cardEnrollmentDate\": \"2016-06-10T08:36:59+00:00\","
                                      + "\"cardExpiryDate\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardExpiryDate"] + "\","
                                      + "\"cardNickName\": \"My Visa 3\","
                                      + "\"cardNumber\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardNumber"] + "\","
                                      + "\"cardSecurityCode\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardSecurityCode"] + "\","
                                      + "\"isActive\": true,"
                                      + "\"lastFour\": \"" + ConfigurationManager.AppSettings["vtaReplaceCardLastFour"] + "\","
                                      + "\"nameOnCard\": \"Mradul\","
                                      + "\"paused\": false,"
                                      + "\"portfolioNum\": \"" + ConfigurationManager.AppSettings["vtaPortfolioNumber"] + "\","
                                      + "\"previousCardNumber\": null,"
                                      + "\"productId\": null,"
                                      + "\"productIdDescription\": \"Credit\","
                                      + "\"productType\": \"Credit\","
                                      + "\"productTypeExtendedCode\": \"123\","
                                      + "\"rpin\": null"
                                  + "},"
                                  + "\"oldCard\": {"
                                      + "\"address\":" + ConfigurationManager.AppSettings["vtaReplaceCardNewAddress"] + ","
                                      + "\"billCycleDay\": \"22\","
                                      + "\"bin\": null,"
                                      + "\"cardEnrollmentDate\": \"2016-06-10T08:36:59+00:00\","
                                      + "\"cardExpiryDate\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardExpiryDate"] + "\","
                                      + "\"cardNickName\": \"My Visa 3\","
                                      + "\"cardNumber\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardNumber"] + "\","
                                      + "\"cardSecurityCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardSecurityCode"] + "\","
                                  + "\"isActive\": true,"
                                  + "\"lastFour\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerLastFour"] + "\","
                                  + "\"nameOnCard\": \"ddd\","
                                  + "\"paused\": false,"
                                  + "\"portfolioNum\": \"" + ConfigurationManager.AppSettings["vtaPortfolioNumber"] + "\","
                                  + "\"previousCardNumber\": null,"
                                  + "\"productId\": null,"
                                  + "\"productIdDescription\": \"Credit\","
                                  + "\"productType\": \"Credit\","
                                  + "\"productTypeExtendedCode\": \"123\","
                                  + "\"rpin\": null"
                                + "}"
                      + "}";
 }
Example #22
0
        public FundsTransferTest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");


            //required
            // acquirerCountryCode

            //pushFundsRequest =
            //"{"
            //        + "\"systemsTraceAuditNumber\":350420,"
            //        + "\"retrievalReferenceNumber\":\"401010350420\","
            //        + "\"localTransactionDateTime\":\"" + strDate + "\","
            //        + "\"acquiringBin\":409999,\"acquirerCountryCode\":\"840\","
            //        + "\"senderAccountNumber\":\"1234567890123456\","
            //        + "\"senderCountryCode\":\"USA\","
            //        + "\"transactionCurrencyCode\":\"USD\","
            //        + "\"senderName\":\"John Smith\","
            //        + "\"senderAddress\":\"44 Market St.\","
            //        + "\"senderCity\":\"San Francisco\","
            //        + "\"senderStateCode\":\"CA\","
            //        + "\"recipientName\":\"Adam Smith\","
            //        + "\"recipientPrimaryAccountNumber\":\"4957030420210454\","
            //        + "\"amount\":\"112.00\","
            //        + "\"businessApplicationId\":\"AA\","
            //        + "\"transactionIdentifier\":234234322342343,"
            //        + "\"merchantCategoryCode\":6012,"
            //        + "\"sourceOfFundsCode\":\"03\","
            //        + "\"cardAcceptor\":{"
            //                            + "\"name\":\"John Smith\","
            //                            + "\"terminalId\":\"13655392\","
            //                            + "\"idCode\":\"VMT200911026070\","
            //                            + "\"address\":{"
            //                                            + "\"state\":\"CA\","
            //                                            + "\"county\":\"081\","
            //                                            + "\"country\":\"USA\","
            //                                            + "\"zipCode\":\"94105\""
            //                                + "}"
            //                            + "},"
            //        + "\"feeProgramIndicator\":\"123\""
            //    + "}";

            var requestFile = "PushRequest.json";

            if (File.Exists(requestFile))
            {
                pushFundsRequest = File.ReadAllText(requestFile);
            }
        }
Example #23
0
 public CardholderEnrollmentTest()
 {
     visaAPIClient = new VisaAPIClient();
     enrollementData =
     "{"
      + "\"enrollmentMessageType\": \"enroll\","
      + "\"enrollmentRequest\": {"
      + "\"cardholderMobileNumber\": \"0016504323000\","
      + "\"clientMessageID\": \"" + ConfigurationManager.AppSettings["mlcClientMessageID"] + "\","
      + "\"deviceId\": \"" + ConfigurationManager.AppSettings["mlcDeviceId"] + "\","
      + "\"issuerId\": \"" + ConfigurationManager.AppSettings["mlcIssuerId"] + "\","
      + "\"primaryAccountNumber\": \"" + ConfigurationManager.AppSettings["mlcPrimaryAccountNumber"] + "\""
      + "}"
      + "}";
 }
 public CardholderEnrollmentTest()
 {
     visaAPIClient   = new VisaAPIClient();
     enrollementData =
         "{"
         + "\"enrollmentMessageType\": \"enroll\","
         + "\"enrollmentRequest\": {"
         + "\"cardholderMobileNumber\": \"0016504323000\","
         + "\"clientMessageID\": \"" + ConfigurationManager.AppSettings["mlcClientMessageID"] + "\","
         + "\"deviceId\": \"" + ConfigurationManager.AppSettings["mlcDeviceId"] + "\","
         + "\"issuerId\": \"" + ConfigurationManager.AppSettings["mlcIssuerId"] + "\","
         + "\"primaryAccountNumber\": \"" + ConfigurationManager.AppSettings["mlcPrimaryAccountNumber"] + "\""
         + "}"
         + "}";
 }
Example #25
0
 public WatchListScreeningTest()
 {
     visaAPIClient = new VisaAPIClient();
     watchListInquiry =
    "{"
          + "\"acquirerCountryCode\": \"840\","
          + "\"acquiringBin\": \"408999\","
          + "\"address\": {"
              + "\"city\": \"Bangalore\","
              + "\"cardIssuerCountryCode\": \"IND\""
          + "},"
          + "\"referenceNumber\": \"430000367618\","
          + "\"name\": \"Mohammed Qasim\""
          + "}";
 }
 public WatchListScreeningTest()
 {
     visaAPIClient    = new VisaAPIClient();
     watchListInquiry =
         "{"
         + "\"acquirerCountryCode\": \"840\","
         + "\"acquiringBin\": \"408999\","
         + "\"address\": {"
         + "\"city\": \"Bangalore\","
         + "\"cardIssuerCountryCode\": \"IND\""
         + "},"
         + "\"referenceNumber\": \"430000367618\","
         + "\"name\": \"Mohammed Qasim\""
         + "}";
 }
 public ManageNotificationsTest()
 {
     visaAPIClient = new VisaAPIClient();
     notificationSubscriptionRequest = "{"
                 + "\"contactType\":  \"" + ConfigurationManager.AppSettings["vtaNotificationContactType"] + "\","
                 + "\"contactValue\":  \"[email protected]\","
                 + "\"emailFormat\": \"None\","
                 + "\"last4\":  \"" + ConfigurationManager.AppSettings["vtaCreateCustomerLastFour"] + "\","
                 + "\"phoneCountryCode\": \"en-us\","
                 + "\"platform\": \"None\","
                 + "\"preferredLanguageCode\":  \"" + ConfigurationManager.AppSettings["vtaPreferredLanguageCode"] + "\","
                 + "\"serviceOffering\":  \"WelcomeMessage\","
                 + "\"serviceOfferingSubType\":  \"WelcomeMessage\","
                 + "\"substitutions\": {}"
              + "}";
 }
Example #28
0
 public ManageNotificationsTest()
 {
     visaAPIClient = new VisaAPIClient();
     notificationSubscriptionRequest = "{"
                                       + "\"contactType\":  \"" + ConfigurationManager.AppSettings["vtaNotificationContactType"] + "\","
                                       + "\"contactValue\":  \"[email protected]\","
                                       + "\"emailFormat\": \"None\","
                                       + "\"last4\":  \"" + ConfigurationManager.AppSettings["vtaCreateCustomerLastFour"] + "\","
                                       + "\"phoneCountryCode\": \"en-us\","
                                       + "\"platform\": \"None\","
                                       + "\"preferredLanguageCode\":  \"" + ConfigurationManager.AppSettings["vtaPreferredLanguageCode"] + "\","
                                       + "\"serviceOffering\":  \"WelcomeMessage\","
                                       + "\"serviceOfferingSubType\":  \"WelcomeMessage\","
                                       + "\"substitutions\": {}"
                                       + "}";
 }
Example #29
0
        public MerchantSearchAPITest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fff");

            searchRequest =
                "{"
                + "\"header\": {"
                + "\"messageDateTime\": \"" + strDate + "\","
                + "\"requestMessageId\": \"Request_001\","
                + "\"startIndex\": \"0\""
                + "},"
                + "\"searchAttrList\": {"
                + "\"merchantName\": \"cmu edctn materials cntr\","
                + "\"merchantStreetAddress\": \"802 industrial dr\","
                + "\"merchantCity\": \"Mount Pleasant\","
                + "\"merchantState\": \"MI\","
                + "\"merchantPostalCode\": \"48858\","
                + "\"merchantCountryCode\": \"840\","
                + "\"merchantPhoneNumber\": \"19897747123\","
                + "\"merchantUrl\": \"http://www.emc.cmich.edu\","
                + "\"businessRegistrationId\": \"386004447\","
                + "\"acquirerCardAcceptorId\": \"424295031886\","
                + "\"acquiringBin\": \"476197\""
                + "},"
                + "\"responseAttrList\": ["
                + "\"GNBANKA\""
                + "],"
                + "\"searchOptions\": {"
                + "\"maxRecords\": \"5\","
                + "\"matchIndicators\": \"true\","
                + "\"matchScore\": \"true\","
                + "\"proximity\": ["
                + "\"merchantName\""
                + "],"
                + "\"wildCard\": ["
                + "\"merchantName\""
                + "]"
                + "}"
                + "}";
        }
 public UpdatePaymentInformationTest()
 {
     visaAPIClient = new VisaAPIClient();
     apikey = ConfigurationManager.AppSettings["apiKey"];
     updatePaymentInfoRequest = "{"
                  + "\"orderInfo\": {"
                  + "\"currencyCode\": \"USD\","
                  + "\"discount\": \"5.25\","
                  + "\"eventType\": \"Confirm\","
                  + "\"giftWrap\": \"10.1\","
                  + "\"misc\": \"3.2\","
                  + "\"orderId\": \"testorderID\","
                  + "\"promoCode\": \"testPromoCode\","
                  + "\"reason\": \"Order Successfully Created\","
                  + "\"shippingHandling\": \"5.1\","
                  + "\"subtotal\": \"80.1\","
                  + "\"tax\": \"7.1\","
                  + "\"total\": \"101\""
                + "}"
             + "}";
 }
Example #31
0
 public UpdatePaymentInformationTest()
 {
     visaAPIClient            = new VisaAPIClient();
     apikey                   = ConfigurationManager.AppSettings["apiKey"];
     updatePaymentInfoRequest = "{"
                                + "\"orderInfo\": {"
                                + "\"currencyCode\": \"USD\","
                                + "\"discount\": \"5.25\","
                                + "\"eventType\": \"Confirm\","
                                + "\"giftWrap\": \"10.1\","
                                + "\"misc\": \"3.2\","
                                + "\"orderId\": \"testorderID\","
                                + "\"promoCode\": \"testPromoCode\","
                                + "\"reason\": \"Order Successfully Created\","
                                + "\"shippingHandling\": \"5.1\","
                                + "\"subtotal\": \"80.1\","
                                + "\"tax\": \"7.1\","
                                + "\"total\": \"101\""
                                + "}"
                                + "}";
 }
Example #32
0
 public MerchantSearchAPITest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fff");
     searchRequest =
          "{"
                 + "\"header\": {"
                 + "\"messageDateTime\": \"" + strDate + "\","
                 + "\"requestMessageId\": \"Request_001\","
                 + "\"startIndex\": \"0\""
                 + "},"
                 + "\"searchAttrList\": {"
                 + "\"merchantName\": \"cmu edctn materials cntr\","
                 + "\"merchantStreetAddress\": \"802 industrial dr\","
                 + "\"merchantCity\": \"Mount Pleasant\","
                 + "\"merchantState\": \"MI\","
                 + "\"merchantPostalCode\": \"48858\","
                 + "\"merchantCountryCode\": \"840\","
                 + "\"merchantPhoneNumber\": \"19897747123\","
                 + "\"merchantUrl\": \"http://www.emc.cmich.edu\","
                 + "\"businessRegistrationId\": \"386004447\","
                 + "\"acquirerCardAcceptorId\": \"424295031886\","
                 + "\"acquiringBin\": \"476197\""
                 + "},"
                 + "\"responseAttrList\": ["
                 + "\"GNBANKA\""
                 + "],"
                 + "\"searchOptions\": {"
                 + "\"maxRecords\": \"5\","
                 + "\"matchIndicators\": \"true\","
                 + "\"matchScore\": \"true\","
                 + "\"proximity\": ["
                   + "\"merchantName\""
                 + "],"
                 + "\"wildCard\": ["
                   + "\"merchantName\""
                + "]"
              + "}"
            + "}";
 }
 public VisaTravelNotificationServiceTest()
 {
     visaAPIClient = new VisaAPIClient();
     string departureDate = DateTime.UtcNow.ToString("yyyy-MM-dd");
     string returnDate = DateTime.Now.AddDays(7).ToString("yyyy-MM-dd");
     travelNotificationRequest =
             "{"
                 + "\"addTravelItinerary\": {"
                 + "\"returnDate\": \"" + returnDate + "\","
                 + "\"departureDate\": \"" + departureDate + "\","
                 + "\"destinations\": ["
                   + "{"
                     + "\"state\": \"CA\","
                     + "\"country\": \"840\""
                   + "}"
                 + "],"
                 + "\"primaryAccountNumbers\": " + ConfigurationManager.AppSettings["tnsCardNumbers"] + ","
                 + "\"userId\": \"Rajesh\","
                 + "\"partnerBid\": \"" + ConfigurationManager.AppSettings["tnsPartnerBid"] + "\""
               + "}"
             + "}";
 }
Example #34
0
        public FundsTransferTest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");

            pushFundsRequest =
                "{"
                + "\"systemsTraceAuditNumber\":451000,"
                + "\"retrievalReferenceNumber\":\"330000550000\","
                + "\"localTransactionDateTime\":\"" + strDate + "\","
                + "\"acquiringBin\":408999,\"acquirerCountryCode\":\"840\","
                + "\"senderAccountNumber\":\"4957030420210470\","
                + "\"senderCountryCode\":\"USA\","
                + "\"transactionCurrencyCode\":\"USD\","
                + "\"senderName\":\"John Smith\","
                + "\"senderAddress\":\"44 Market St.\","
                + "\"senderCity\":\"San Francisco\","
                + "\"senderStateCode\":\"CA\","
                + "\"recipientName\":\"Adam Smith\","
                + "\"recipientPrimaryAccountNumber\":\"4761100090708271\","
                + "\"amount\":\"112.00\","
                + "\"businessApplicationId\":\"AA\","
                + "\"transactionIdentifier\":381228649430011,"
                + "\"merchantCategoryCode\":6012,"
                + "\"sourceOfFundsCode\":\"03\","
                + "\"cardAcceptor\":{"
                + "\"name\":\"John Smith\","
                + "\"terminalId\":\"13655392\","
                + "\"idCode\":\"VMT200911026070\","
                + "\"address\":{"
                + "\"state\":\"CA\","
                + "\"county\":\"081\","
                + "\"country\":\"USA\","
                + "\"zipCode\":\"94105\""
                + "}"
                + "},"
                + "\"feeProgramIndicator\":\"123\""
                + "}";
        }
Example #35
0
 public FundsTransferTest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");
     pushFundsRequest =
     "{"
             + "\"systemsTraceAuditNumber\":350420,"
             + "\"retrievalReferenceNumber\":\"401010350420\","
             + "\"localTransactionDateTime\":\"" + strDate + "\","
             + "\"acquiringBin\":409999,\"acquirerCountryCode\":\"101\","
             + "\"senderAccountNumber\":\"1234567890123456\","
             + "\"senderCountryCode\":\"USA\","
             + "\"transactionCurrencyCode\":\"USD\","
             + "\"senderName\":\"John Smith\","
             + "\"senderAddress\":\"44 Market St.\","
             + "\"senderCity\":\"San Francisco\","
             + "\"senderStateCode\":\"CA\","
             + "\"recipientName\":\"Adam Smith\","
             + "\"recipientPrimaryAccountNumber\":\"4957030420210454\","
             + "\"amount\":\"112.00\","
             + "\"businessApplicationId\":\"AA\","
             + "\"transactionIdentifier\":234234322342343,"
             + "\"merchantCategoryCode\":6012,"
             + "\"sourceOfFundsCode\":\"03\","
             + "\"cardAcceptor\":{"
                                 + "\"name\":\"John Smith\","
                                 + "\"terminalId\":\"13655392\","
                                 + "\"idCode\":\"VMT200911026070\","
                                 + "\"address\":{"
                                                 + "\"state\":\"CA\","
                                                 + "\"county\":\"081\","
                                                 + "\"country\":\"USA\","
                                                 + "\"zipCode\":\"94105\""
                                     + "}"
                                 + "},"
             + "\"feeProgramIndicator\":\"123\""
         + "}";
 }
Example #36
0
        public VisaTravelNotificationServiceTest()
        {
            visaAPIClient = new VisaAPIClient();
            string departureDate = DateTime.UtcNow.ToString("yyyy-MM-dd");
            string returnDate    = DateTime.Now.AddDays(7).ToString("yyyy-MM-dd");

            travelNotificationRequest =
                "{"
                + "\"addTravelItinerary\": {"
                + "\"returnDate\": \"" + returnDate + "\","
                + "\"departureDate\": \"" + departureDate + "\","
                + "\"destinations\": ["
                + "{"
                + "\"state\": \"CA\","
                + "\"country\": \"840\""
                + "}"
                + "],"
                + "\"primaryAccountNumbers\": " + ConfigurationManager.AppSettings["tnsCardNumbers"] + ","
                + "\"userId\": \"Rajesh\","
                + "\"partnerBid\": \"" + ConfigurationManager.AppSettings["tnsPartnerBid"] + "\""
                + "}"
                + "}";
        }
Example #37
0
 public LocationUpdateTest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ssZ");
     locationsRequestBody =
        "{"
             + "\"accuracy\": \"5000\","
             + "\"cloudNotificationKey\": \"03e3ae03-a627-4241-bad6-58f811c18e46\","
             + "\"cloudNotificationProvider\": \"1\","
             + "\"deviceId\": \"" + ConfigurationManager.AppSettings["mlcDeviceId"] + "\","
             + "\"deviceLocationDateTime\": \"" + strDate + "\","
             + "\"geoLocationCoordinate\": {"
                   + "\"latitude\": \"37.558546\","
                   + "\"longitude\": \"-122.271079\""
             + "},"
             + "\"header\": {"
                   + "\"messageDateTime\": \"" + strDate + "\","
                   + "\"messageId\": \"" + ConfigurationManager.AppSettings["mlcMessageId"] + "\""
             + "},"
             + "\"issuerId\": \"" + ConfigurationManager.AppSettings["mlcIssuerId"] + "\","
             + "\"provider\": \"1\","
             + "\"source\": \"2\""
         + "}";
 }
Example #38
0
 public ManagePortfoliosTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
Example #39
0
        public LocateATMTest()
        {
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ssZ");

            visaAPIClient     = new VisaAPIClient();
            atmInquiryRequest =
                "{"
                + "\"requestData\": {"
                + "\"culture\": \"en-US\","
                + "\"distance\": \"20\","
                + "\"distanceUnit\": \"mi\","
                + "\"location\": {"
                + "\"address\": null,"
                + "\"geocodes\": null,"
                + "\"placeName\": \"800 metro center , foster city,ca\""
                + "},"
                + "\"metaDataOptions\": 0,"
                + "\"options\": {"
                + "\"findFilters\": ["
                + "{"
                + "\"filterName\": \"PLACE_NAME\","
                + "\"filterValue\": \"FORT FINANCIAL CREDIT UNION|ULTRON INC|U.S. BANK\""
                + "},"
                + "{"
                + "\"filterName\": \"OPER_HRS\","
                + "\"filterValue\": \"C\""
                + "},"
                + "{"
                + "\"filterName\": \"AIRPORT_CD\","
                + "\"filterValue\": \"\""
                + "},"
                + "{"
                + "\"filterName\": \"WHEELCHAIR\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"BRAILLE_AUDIO\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"BALANCE_INQUIRY\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"CHIP_CAPABLE\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"PIN_CHANGE\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"RESTRICTED\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"PLUS_ALLIANCE_NO_SURCHARGE_FEE\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"ACCEPTS_PLUS_SHARED_DEPOSIT\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"V_PAY_CAPABLE\","
                + "\"filterValue\": \"N\""
                + "},"
                + "{"
                + "\"filterName\": \"READY_LINK\","
                + "\"filterValue\": \"N\""
                + "}"
                + "],"
                + "\"operationName\": \"or\","
                + "\"range\": {"
                + "\"count\": 99,"
                + "\"start\": 0"
                + "},"
                + "\"sort\": {"
                + "\"direction\": \"desc\","
                + "\"primary\": \"city\""
                + "},"
                + "\"useFirstAmbiguous\": true"
                + "}"
                + "},"
                + "\"wsRequestHeaderV2\": {"
                + "\"applicationId\": \"VATMLOC\","
                + "\"correlationId\": \"909420141104053819418\","
                + "\"requestMessageId\": \"test12345678\","
                + "\"requestTs\":\"" + strDate + "\","
                + "\"userBid\": \"10000108\","
                + "\"userId\": \"CDISIUserID\""
                + "}"
                + "}";
        }
Example #40
0
 public ProgramAdministrationTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
 public ManagePortfoliosTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
Example #42
0
 public ManageCommunitiesTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
 public GetPaymentDataTest()
 {
     visaAPIClient = new VisaAPIClient();
     apikey        = ConfigurationManager.AppSettings["apiKey"];
 }
Example #44
0
 public GetPaymentDataTest()
 {
     visaAPIClient = new VisaAPIClient();
     apikey = ConfigurationManager.AppSettings["apiKey"];
 }
Example #45
0
 public ValidationTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
Example #46
0
 public ValidationTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
        public ManageCustomersTest()
        {
            visaAPIClient = new VisaAPIClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fffZ");

            createCustomerRequest = "{"
                                    + "\"customer\": {"
                                    + "\"cards\": ["
                                    + "{"
                                    + "\"address\":" + ConfigurationManager.AppSettings["vtaCreateCustomerAddress"] + ","
                                    + "\"billCycleDay\": \"7\","
                                    + "\"bin\": 431263,"
                                    + "\"cardEnrollmentDate\": \"" + strDate + "\","
                                    + "\"cardExpiryDate\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardExpiryDate"] + "\","
                                    + "\"cardNickName\": \"My Card\","
                                    + "\"cardNumber\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardNumber"] + "\","
                                    + "\"cardSecurityCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardSecurityCode"] + "\","
                                    + "\"contactServiceOfferings\": ["
                                    + "{"
                                    + "\"contact\": {"
                                    + "\"contactNickName\": \"testEmail\","
                                    + "\"contactType\": \"Email\","
                                    + "\"contactValue\": \"[email protected]\","
                                    + "\"isVerified\": true,"
                                    + "\"lastUpdateDateTime\": \"" + strDate + "\","
                                    + "\"mobileCountryCode\": null,"
                                    + "\"mobileVerificationCode\": null,"
                                    + "\"mobileVerificationCodeDate\": \"" + strDate + "\","
                                    + "\"platform\": \"None\","
                                    + "\"preferredEmailFormat\": \"Html\","
                                    + "\"securityPhrase\": null,"
                                    + "\"status\": \"Active\""
                                    + "},"
                                    + "\"serviceOfferings\": ["
                                    + "{"
                                    + "\"isActive\": true,"
                                    + "\"offeringId\": \"Threshold\","
                                    + "\"offeringProperties\": ["
                                    + "{"
                                    + "\"key\": \"ThresholdAmount\","
                                    + "\"value\": \"10\""
                                    + "}"
                                    + "]"
                                    + "},"
                                    + "{"
                                    + "\"isActive\": true,"
                                    + "\"offeringId\": \"CrossBorder\","
                                    + "\"offeringProperties\": ["
                                    + "{"
                                    + "\"key\": \"ThresholdAmount\","
                                    + "\"value\": \"10\""
                                    + "}"
                                    + "]"
                                    + "},"
                                    + "{"
                                    + "\"isActive\": true,"
                                    + "\"offeringId\": \"Declined\","
                                    + "\"offeringProperties\": ["
                                    + "{"
                                    + "\"key\": \"ThresholdAmount\","
                                    + "\"value\": \"10\""
                                    + "}"
                                    + "]"
                                    + "},"
                                    + "{"
                                    + "\"isActive\": true,"
                                    + "\"offeringId\": \"CardNotPresent\","
                                    + "\"offeringProperties\": ["
                                    + "{"
                                    + "\"key\": \"ThresholdAmount\","
                                    + "\"value\": \"10\""
                                    + "}"
                                    + "]"
                                    + "}"
                                    + "]"
                                    + "}"
                                    + "],"
                                    + "\"isActive\": " + ConfigurationManager.AppSettings["vtaCreateCustomerIsActive"] + ","
                                    + "\"lastFour\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerLastFour"] + "\","
                                    + "\"nameOnCard\": \"Migration\","
                                    + "\"paused\": false,"
                                    + "\"portfolioNum\": \"" + ConfigurationManager.AppSettings["vtaPortfolioNumber"] + "\","
                                    + "\"previousCardNumber\": null,"
                                    + "\"productId\": null,"
                                    + "\"productIdDescription\": \"Credit\","
                                    + "\"productType\": \"Credit\","
                                    + "\"productTypeExtendedCode\": \"Credit\","
                                    + "\"rpin\": null"
                                    + "}"
                                    + "],"
                                    + "\"communityCode\": \"" + ConfigurationManager.AppSettings["vtaCommunityCode"] + "\","
                                    + "\"contacts\": ["
                                    + "{"
                                    + "\"contactNickName\": \"testEmail\","
                                    + "\"contactType\": \"Email\","
                                    + "\"contactValue\": \"[email protected]\","
                                    + "\"isVerified\": true,"
                                    + "\"lastUpdateDateTime\": \"" + strDate + "\","
                                    + "\"mobileCountryCode\": null,"
                                    + "\"mobileVerificationCode\": null,"
                                    + "\"mobileVerificationCodeDate\": \"" + strDate + "\","
                                    + "\"platform\": \"None\","
                                    + "\"preferredEmailFormat\": \"Html\","
                                    + "\"securityPhrase\": null,"
                                    + "\"status\": \"Active\""
                                    + "}"
                                    + "],"
                                    + "\"customerEnrollmentDate\": \"" + strDate + "\","
                                    + "\"customerId\": \"a1bb6fe1-ea64-4269-b29d-169aebd8780a\","
                                    + "\"firstName\": \"James\","
                                    + "\"isActive\": " + ConfigurationManager.AppSettings["vtaCreateCustomerIsActive"] + ","
                                    + "\"lastName\": \"Bond\","
                                    + "\"preferredCountryCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedCountryCode"] + "\","
                                    + "\"preferredCurrencyCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedCurrencyCode"] + "\","
                                    + "\"preferredFuelAmount\": \"75\","
                                    + "\"preferredLanguage\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedLanguage"] + "\","
                                    + "\"preferredTimeZone\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedTimeZone"] + "\","
                                    + "\"preferredTipPercentage\": \"15\""
                                    + "}"
                                    + "}";
        }
 public ProgramAdministrationTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
Example #49
0
 public LocateATMTest()
 {
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ssZ");
     visaAPIClient = new VisaAPIClient();
     atmInquiryRequest =
     "{"
       + "\"requestData\": {"
       + "\"culture\": \"en-US\","
       + "\"distance\": \"20\","
       + "\"distanceUnit\": \"mi\","
       + "\"location\": {"
       + "\"address\": null,"
       + "\"geocodes\": null,"
       + "\"placeName\": \"800 metro center , foster city,ca\""
       + "},"
       + "\"metaDataOptions\": 0,"
       + "\"options\": {"
       + "\"findFilters\": ["
       + "{"
       + "\"filterName\": \"PLACE_NAME\","
       + "\"filterValue\": \"FORT FINANCIAL CREDIT UNION|ULTRON INC|U.S. BANK\""
       + "},"
       + "{"
       + "\"filterName\": \"OPER_HRS\","
       + "\"filterValue\": \"C\""
       + "},"
       + "{"
       + "\"filterName\": \"AIRPORT_CD\","
       + "\"filterValue\": \"\""
       + "},"
       + "{"
       + "\"filterName\": \"WHEELCHAIR\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"BRAILLE_AUDIO\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"BALANCE_INQUIRY\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"CHIP_CAPABLE\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"PIN_CHANGE\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"RESTRICTED\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"PLUS_ALLIANCE_NO_SURCHARGE_FEE\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"ACCEPTS_PLUS_SHARED_DEPOSIT\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"V_PAY_CAPABLE\","
       + "\"filterValue\": \"N\""
       + "},"
       + "{"
       + "\"filterName\": \"READY_LINK\","
       + "\"filterValue\": \"N\""
       + "}"
       + "],"
       + "\"operationName\": \"or\","
       + "\"range\": {"
       + "\"count\": 99,"
       + "\"start\": 0"
       + "},"
       + "\"sort\": {"
       + "\"direction\": \"desc\","
       + "\"primary\": \"city\""
       + "},"
       + "\"useFirstAmbiguous\": true"
       + "}"
       + "},"
       + "\"wsRequestHeaderV2\": {"
       + "\"applicationId\": \"VATMLOC\","
       + "\"correlationId\": \"909420141104053819418\","
       + "\"requestMessageId\": \"test12345678\","
       + "\"requestTs\":\"" + strDate + "\","
       + "\"userBid\": \"10000108\","
       + "\"userId\": \"CDISIUserID\""
       + "}"
       + "}";
 }
 public ManageCommunitiesTest()
 {
     visaAPIClient = new VisaAPIClient();
 }
Example #51
0
 public ManageCustomersTest()
 {
     visaAPIClient = new VisaAPIClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss.fffZ");
     createCustomerRequest = "{"
                  + "\"customer\": {"
                                  + "\"cards\": ["
                                      + "{"
                                          + "\"address\":"+ ConfigurationManager.AppSettings["vtaCreateCustomerAddress"] + ","
                                          + "\"billCycleDay\": \"7\","
                                          + "\"bin\": 431263,"
                                          + "\"cardEnrollmentDate\": \"" + strDate + "\","
                                          + "\"cardExpiryDate\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardExpiryDate"] + "\","
                                          + "\"cardNickName\": \"My Card\","
                                          + "\"cardNumber\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardNumber"] + "\","
                                          + "\"cardSecurityCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerCardSecurityCode"] + "\","
                                          + "\"contactServiceOfferings\": ["
                                              + "{"
                                                  + "\"contact\": {"
                                                      + "\"contactNickName\": \"testEmail\","
                                                      + "\"contactType\": \"Email\","
                                                      + "\"contactValue\": \"[email protected]\","
                                                      + "\"isVerified\": true,"
                                                      + "\"lastUpdateDateTime\": \"" + strDate + "\","
                                                      + "\"mobileCountryCode\": null,"
                                                      + "\"mobileVerificationCode\": null,"
                                                      + "\"mobileVerificationCodeDate\": \"" + strDate + "\","
                                                      + "\"platform\": \"None\","
                                                      + "\"preferredEmailFormat\": \"Html\","
                                                      + "\"securityPhrase\": null,"
                                                      + "\"status\": \"Active\""
                                                  + "},"
                                                  + "\"serviceOfferings\": ["
                                                      + "{"
                                                          + "\"isActive\": true,"
                                                          + "\"offeringId\": \"Threshold\","
                                                          + "\"offeringProperties\": ["
                                                              + "{"
                                                                  + "\"key\": \"ThresholdAmount\","
                                                                  + "\"value\": \"10\""
                                                              + "}"
                                                          + "]"
                                                      + "},"
                                                      + "{"
                                                          + "\"isActive\": true,"
                                                          + "\"offeringId\": \"CrossBorder\","
                                                          + "\"offeringProperties\": ["
                                                              + "{"
                                                                  + "\"key\": \"ThresholdAmount\","
                                                                  + "\"value\": \"10\""
                                                              + "}"
                                                          + "]"
                                                      + "},"
                                                      + "{"
                                                          + "\"isActive\": true,"
                                                          + "\"offeringId\": \"Declined\","
                                                          + "\"offeringProperties\": ["
                                                              + "{"
                                                                  + "\"key\": \"ThresholdAmount\","
                                                                  + "\"value\": \"10\""
                                                              + "}"
                                                          + "]"
                                                      + "},"
                                                      + "{"
                                                          + "\"isActive\": true,"
                                                          + "\"offeringId\": \"CardNotPresent\","
                                                          + "\"offeringProperties\": ["
                                                              + "{"
                                                                  + "\"key\": \"ThresholdAmount\","
                                                                  + "\"value\": \"10\""
                                                              + "}"
                                                          + "]"
                                                      + "}"
                                                  + "]"
                                              + "}"
                                          + "],"
                                          + "\"isActive\": " + ConfigurationManager.AppSettings["vtaCreateCustomerIsActive"] + ","
                                          + "\"lastFour\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerLastFour"] + "\","
                                          + "\"nameOnCard\": \"Migration\","
                                          + "\"paused\": false,"
                                          + "\"portfolioNum\": \"" + ConfigurationManager.AppSettings["vtaPortfolioNumber"] + "\","
                                          + "\"previousCardNumber\": null,"
                                          + "\"productId\": null,"
                                          + "\"productIdDescription\": \"Credit\","
                                          + "\"productType\": \"Credit\","
                                          + "\"productTypeExtendedCode\": \"Credit\","
                                          + "\"rpin\": null"
                                      + "}"
                                  + "],"
                                  + "\"communityCode\": \"" + ConfigurationManager.AppSettings["vtaCommunityCode"] + "\","
                                  + "\"contacts\": ["
                                      + "{"
                                          + "\"contactNickName\": \"testEmail\","
                                          + "\"contactType\": \"Email\","
                                          + "\"contactValue\": \"[email protected]\","
                                          + "\"isVerified\": true,"
                                          + "\"lastUpdateDateTime\": \"" + strDate + "\","
                                          + "\"mobileCountryCode\": null,"
                                          + "\"mobileVerificationCode\": null,"
                                          + "\"mobileVerificationCodeDate\": \"" + strDate + "\","
                                          + "\"platform\": \"None\","
                                          + "\"preferredEmailFormat\": \"Html\","
                                          + "\"securityPhrase\": null,"
                                          + "\"status\": \"Active\""
                                      + "}"
                                  + "],"
                                  + "\"customerEnrollmentDate\": \"" + strDate + "\","
                                  + "\"customerId\": \"a1bb6fe1-ea64-4269-b29d-169aebd8780a\","
                                  + "\"firstName\": \"James\","
                                  + "\"isActive\": " + ConfigurationManager.AppSettings["vtaCreateCustomerIsActive"] + ","
                                  + "\"lastName\": \"Bond\","
                                  + "\"preferredCountryCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedCountryCode"] + "\","
                                  + "\"preferredCurrencyCode\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedCurrencyCode"] + "\","
                                  + "\"preferredFuelAmount\": \"75\","
                                  + "\"preferredLanguage\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedLanguage"] + "\","
                                  + "\"preferredTimeZone\": \"" + ConfigurationManager.AppSettings["vtaCreateCustomerPreferedTimeZone"] + "\","
                                  + "\"preferredTipPercentage\": \"15\""
                              + "}"
                          + "}";
 }