public static RiskV1AuthenticationSetupsPost201Response Run() { string clientReferenceInformationCode = "cybs_test"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string tokenInformationTransientToken = "1D5ZX4HMOV20FKEBE3IO240JWYJ0NJ90B4V9XQ6SCK4BDN0W96E65E2A39052056"; Riskv1authenticationsetupsTokenInformation tokenInformation = new Riskv1authenticationsetupsTokenInformation( TransientToken: tokenInformationTransientToken ); var requestObj = new PayerAuthSetupRequest( ClientReferenceInformation: clientReferenceInformation, TokenInformation: tokenInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationSetupsPost201Response result = apiInstance.PayerAuthSetup(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1DecisionsPost201Response Run() { var requestObj = new CreateDecisionManagerCaseRequest(); var clientReferenceInformation = new Riskv1decisionsClientReferenceInformation(); clientReferenceInformation.Code = "54323007"; requestObj.ClientReferenceInformation = clientReferenceInformation; var paymentInformation = new Riskv1decisionsPaymentInformation(); var card = new Riskv1decisionsPaymentInformationCard(); card.Number = "4444444444444448"; card.ExpirationMonth = "12"; card.ExpirationYear = "2020"; paymentInformation.Card = card; requestObj.PaymentInformation = paymentInformation; var orderInformation = new Riskv1decisionsOrderInformation(); var amountDetails = new Riskv1decisionsOrderInformationAmountDetails("USD"); amountDetails.Currency = "USD"; amountDetails.TotalAmount = "144.14"; orderInformation.AmountDetails = amountDetails; var billTo = new Riskv1decisionsOrderInformationBillTo(); billTo.Address1 = "96, powers street"; billTo.AdministrativeArea = "NH"; billTo.Country = "US"; billTo.Locality = "Clearwater milford"; billTo.FirstName = "James"; billTo.LastName = "Smith"; billTo.PhoneNumber = "7606160717"; billTo.Email = "*****@*****.**"; billTo.PostalCode = "03055"; orderInformation.BillTo = billTo; requestObj.OrderInformation = orderInformation; try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new DecisionManagerApi(clientConfig); var result = apiInstance.CreateDecisionManagerCase(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1UpdatePost201Response Run() { string id = "5825489395116729903003"; string riskInformationMarkingDetailsNotes = "Adding this transaction as suspect"; string riskInformationMarkingDetailsReason = "suspected"; List <string> riskInformationMarkingDetailsFieldsIncluded = new List <string>(); riskInformationMarkingDetailsFieldsIncluded.Add("customer_email"); riskInformationMarkingDetailsFieldsIncluded.Add("customer_phone"); string riskInformationMarkingDetailsAction = "add"; Riskv1decisionsidmarkingRiskInformationMarkingDetails riskInformationMarkingDetails = new Riskv1decisionsidmarkingRiskInformationMarkingDetails( Notes: riskInformationMarkingDetailsNotes, Reason: riskInformationMarkingDetailsReason, FieldsIncluded: riskInformationMarkingDetailsFieldsIncluded, Action: riskInformationMarkingDetailsAction ); Riskv1decisionsidmarkingRiskInformation riskInformation = new Riskv1decisionsidmarkingRiskInformation( MarkingDetails: riskInformationMarkingDetails ); string clientReferenceInformationCode = "12345"; string clientReferenceInformationPartnerDeveloperId = "1234"; string clientReferenceInformationPartnerSolutionId = "3321"; Riskv1decisionsClientReferenceInformationPartner clientReferenceInformationPartner = new Riskv1decisionsClientReferenceInformationPartner( DeveloperId: clientReferenceInformationPartnerDeveloperId, SolutionId: clientReferenceInformationPartnerSolutionId ); Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Partner: clientReferenceInformationPartner ); var requestObj = new FraudMarkingActionRequest( RiskInformation: riskInformation, ClientReferenceInformation: clientReferenceInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new DecisionManagerApi(clientConfig); RiskV1UpdatePost201Response result = apiInstance.FraudUpdate(id, requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationSetupsPost201Response Run() { string clientReferenceInformationCode = "cybs_test"; string clientReferenceInformationPartnerDeveloperId = "7891234"; string clientReferenceInformationPartnerSolutionId = "89012345"; Riskv1decisionsClientReferenceInformationPartner clientReferenceInformationPartner = new Riskv1decisionsClientReferenceInformationPartner( DeveloperId: clientReferenceInformationPartnerDeveloperId, SolutionId: clientReferenceInformationPartnerSolutionId ); Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Partner: clientReferenceInformationPartner ); string paymentInformationCardType = "001"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2025"; string paymentInformationCardNumber = "4000000000000101"; Riskv1authenticationsetupsPaymentInformationCard paymentInformationCard = new Riskv1authenticationsetupsPaymentInformationCard( Type: paymentInformationCardType, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear, Number: paymentInformationCardNumber ); Riskv1authenticationsetupsPaymentInformation paymentInformation = new Riskv1authenticationsetupsPaymentInformation( Card: paymentInformationCard ); var requestObj = new PayerAuthSetupRequest( ClientReferenceInformation: clientReferenceInformation, PaymentInformation: paymentInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationSetupsPost201Response result = apiInstance.PayerAuthSetup(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AddressVerificationsPost201Response Run() { string clientReferenceInformationCode = "addressEg"; string clientReferenceInformationComments = "dav-error response check"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Comments: clientReferenceInformationComments ); string orderInformationBillToAddress1 = "Apt C "; string orderInformationBillToAddress2 = ""; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "Glendale"; string orderInformationBillToPostalCode = "91204"; Riskv1addressverificationsOrderInformationBillTo orderInformationBillTo = new Riskv1addressverificationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, PostalCode: orderInformationBillToPostalCode ); Riskv1addressverificationsOrderInformation orderInformation = new Riskv1addressverificationsOrderInformation( BillTo: orderInformationBillTo ); var requestObj = new VerifyCustomerAddressRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new VerificationApi(clientConfig); RiskV1AddressVerificationsPost201Response result = apiInstance.VerifyCustomerAddress(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationSetupsPost201Response Run() { string clientReferenceInformationCode = "cybs_test"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string paymentInformationFluidDataValue = "eyJkYXRhIjoiOFJTK2o1a2ZLRjZkTnkzNVwvOTluR3ZEVis0WUVlaStBb2VmUUNMXC9SNTN0TnVMeHJxTzh4b1g2SnBScm9WWUVUOUNvUkhIWFZMRjJNSVNIZlVtM25UczltdGFPTUdqcW1oeWdjTFpWVWI3OHhxYVVUT2JwWUxLelY0dFR1QmhvRkV4UVJ1d2lvTmo2bXJsRlRjUm5LNzdcL2lCR01yYVlZcXZTVnhGK3ViK1JXK3BGeTRDNUVUOVhmcHBkS2xHYXVpODdzcTBtYVlYVk9qOGFaNTFMWjZvS1NKZkR1clhvWEtLNHRqd1wvaDVRK1dcL0x2dnJxSUhmZmVhK21MZXVRY3RHK0k3UUN6MTRpVmdROUFEMW1oWFUrbVdwZXRUQWZ5WXhoVituZlh1NlpISGRDWFV1cUp6djQydHg4UlwvN0lvdld5OWx6Z0N3YnpuclVsY3pUcThkb3JtV3A4eXhYQklDNnJHRTdlTVJrS3oxZFwvUFFDXC9DS2J1NDhNK0R4XC9VejNoUFwvZ1NnRGoxakJNcUllUUZiRWFzcTRWTUV1ZG9FNUh1UjBcLzRQMXJmdG9EVlpwNnhFdnF1STY5dkt2YnZHcXpmTkpUNjVnPT0iLCJ2ZXJzaW9uIjoiRUNfdjEiLCJoZWFkZXIiOnsiYXBwbGljYXRpb25EYXRhIjoiNzQ2NTczNzQ2MTcwNzA2QzY5NjM2MTc0Njk2RjZFNjQ2MTc0NjEiLCJ0cmFuc2FjdGlvbklkIjoiNzQ2NTczNzQ3NDcyNjE2RTczNjE2Mzc0Njk2RjZFNjk2NCIsImVwaGVtZXJhbFB1YmxpY0tleSI6Ik1JSUJTekNDQVFNR0J5cUdTTTQ5QWdFd2dmY0NBUUV3TEFZSEtvWkl6ajBCQVFJaEFQXC9cL1wvXC84QUFBQUJBQUFBQUFBQUFBQUFBQUFBXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9NRnNFSVBcL1wvXC9cLzhBQUFBQkFBQUFBQUFBQUFBQUFBQUFcL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC9cL1wvXC84QkNCYXhqWFlxanFUNTdQcnZWVjJtSWE4WlIwR3NNeFRzUFk3emp3K0o5SmdTd01WQU1TZE5naUc1d1NUYW1aNDRST2RKcmVCbjM2UUJFRUVheGZSOHVFc1FrZjR2T2JsWTZSQThuY0RmWUV0NnpPZzlLRTVSZGlZd3BaUDQwTGlcL2hwXC9tNDduNjBwOEQ1NFdLODR6VjJzeFhzN0x0a0JvTjc5UjlRSWhBUFwvXC9cL1wvOEFBQUFBXC9cL1wvXC9cL1wvXC9cL1wvXC8rODV2cXRweGVlaFBPNXlzTDhZeVZSQWdFQkEwSUFCQmJHK2xtTHJIWWtKSVwvSUUwcTU3dEN0bE5jK2pBWHNudVMrSnFlOFVcLzc0cSs5NVRnbzVFRjBZNks3b01LTUt5cTMwY3VQbmtIenkwMjVpU1BGdWczRT0iLCJwdWJsaWNLZXlIYXNoIjoieCtQbUhHMzdUNjdBWUFIenVqbGJyaW1JdzZZaFlYaVpjYjV3WnJCNGpRdz0ifSwic2lnbmF0dXJlIjoiTUlJRFFnWUpLb1pJaHZjTkFRY0NvSUlETXpDQ0F5OENBUUV4Q3pBSkJnVXJEZ01DR2dVQU1Bc0dDU3FHU0liM0RRRUhBYUNDQWlzd2dnSW5NSUlCbEtBREFnRUNBaEJjbCtQZjMrVTRwazEzblZEOW53UVFNQWtHQlNzT0F3SWRCUUF3SnpFbE1DTUdBMVVFQXg0Y0FHTUFhQUJ0QUdFQWFRQkFBSFlBYVFCekFHRUFMZ0JqQUc4QWJUQWVGdzB4TkRBeE1ERXdOakF3TURCYUZ3MHlOREF4TURFd05qQXdNREJhTUNjeEpUQWpCZ05WQkFNZUhBQmpBR2dBYlFCaEFHa0FRQUIyQUdrQWN3QmhBQzRBWXdCdkFHMHdnWjh3RFFZSktvWklodmNOQVFFQkJRQURnWTBBTUlHSkFvR0JBTkM4K2tndGdtdldGMU96amdETnJqVEVCUnVvXC81TUt2bE0xNDZwQWY3R3g0MWJsRTl3NGZJWEpBRDdGZk83UUtqSVhZTnQzOXJMeXk3eER3YlwvNUlrWk02MFRaMmlJMXBqNTVVYzhmZDRmek9wazNmdFphUUdYTkxZcHRHMWQ5VjdJUzgyT3VwOU1NbzFCUFZyWFRQSE5jc005OUVQVW5QcWRiZUdjODdtMHJBZ01CQUFHalhEQmFNRmdHQTFVZEFRUlJNRStBRUhaV1ByV3RKZDdZWjQzMWhDZzdZRlNoS1RBbk1TVXdJd1lEVlFRREhod0FZd0JvQUcwQVlRQnBBRUFBZGdCcEFITUFZUUF1QUdNQWJ3QnRnaEJjbCtQZjMrVTRwazEzblZEOW53UVFNQWtHQlNzT0F3SWRCUUFEZ1lFQWJVS1lDa3VJS1M5UVEybUZjTVlSRUltMmwrWGc4XC9KWHYrR0JWUUprT0tvc2NZNGlOREZBXC9iUWxvZ2Y5TExVODRUSHdOUm5zdlYzUHJ2N1JUWTgxZ3EwZHRDOHpZY0FhQWtDSElJM3lxTW5KNEFPdTZFT1c5a0prMjMyZ1NFN1dsQ3RIYmZMU0tmdVNnUVg4S1hRWXVaTGsyUnI2M044QXBYc1h3QkwzY0oweGdlQXdnZDBDQVFFd096QW5NU1V3SXdZRFZRUURIaHdBWXdCb0FHMEFZUUJwQUVBQWRnQnBBSE1BWVFBdUFHTUFid0J0QWhCY2wrUGYzK1U0cGsxM25WRDlud1FRTUFrR0JTc09Bd0lhQlFBd0RRWUpLb1pJaHZjTkFRRUJCUUFFZ1lBMG9MXC9KSWFTN0tra1RFNG1pOGRmU2tQVVwvdlp2cVwva2NYZ1pUdGJZbENtTFM4YzNuS2VZNVE0c2s4MXJnZkI1ampBMWJRZldhUHBKc05tVWNSS3gzS0FGUEtpNzE0WWVYdGUrcmc2V1k4MnVxcnlwRERiTkhqSWVpNjVqV0dvcGRZUEx6TEk5c1Z3NDh5OHlqSXY3SjFaQVlycnp6YjBwNzUzcUJUQ0ZEN1p3PT0ifQ=="; Riskv1authenticationsetupsPaymentInformationFluidData paymentInformationFluidData = new Riskv1authenticationsetupsPaymentInformationFluidData( Value: paymentInformationFluidDataValue ); Riskv1authenticationsetupsPaymentInformation paymentInformation = new Riskv1authenticationsetupsPaymentInformation( FluidData: paymentInformationFluidData ); string processingInformationPaymentSolution = "001"; Riskv1authenticationsetupsProcessingInformation processingInformation = new Riskv1authenticationsetupsProcessingInformation( PaymentSolution: processingInformationPaymentSolution ); var requestObj = new PayerAuthSetupRequest( ClientReferenceInformation: clientReferenceInformation, PaymentInformation: paymentInformation, ProcessingInformation: processingInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationSetupsPost201Response result = apiInstance.PayerAuthSetup(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationSetupsPost201Response Run() { string clientReferenceInformationCode = "cybs_test"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string paymentInformationCustomerCustomerId = "AB695DA801DD1BB6E05341588E0A3BDC"; Riskv1authenticationsetupsPaymentInformationCustomer paymentInformationCustomer = new Riskv1authenticationsetupsPaymentInformationCustomer( CustomerId: paymentInformationCustomerCustomerId ); Riskv1authenticationsetupsPaymentInformation paymentInformation = new Riskv1authenticationsetupsPaymentInformation( Customer: paymentInformationCustomer ); var requestObj = new PayerAuthSetupRequest( ClientReferenceInformation: clientReferenceInformation, PaymentInformation: paymentInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationSetupsPost201Response result = apiInstance.PayerAuthSetup(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationsPost201Response Run() { string clientReferenceInformationCode = "cybs_test"; string clientReferenceInformationPartnerDeveloperId = "7891234"; string clientReferenceInformationPartnerSolutionId = "89012345"; Riskv1decisionsClientReferenceInformationPartner clientReferenceInformationPartner = new Riskv1decisionsClientReferenceInformationPartner( DeveloperId: clientReferenceInformationPartnerDeveloperId, SolutionId: clientReferenceInformationPartnerSolutionId ); Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Partner: clientReferenceInformationPartner ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "10.99"; Riskv1authenticationsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1authenticationsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationBillToAddress1 = "1 Market St"; string orderInformationBillToAddress2 = "Address 2"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "san francisco"; string orderInformationBillToFirstName = "John"; string orderInformationBillToLastName = "Doe"; string orderInformationBillToPhoneNumber = "4158880000"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "94105"; Riskv1authenticationsOrderInformationBillTo orderInformationBillTo = new Riskv1authenticationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1authenticationsOrderInformation orderInformation = new Riskv1authenticationsOrderInformation( AmountDetails: orderInformationAmountDetails, BillTo: orderInformationBillTo ); string paymentInformationCardType = "001"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2025"; string paymentInformationCardNumber = "4000990000000004"; Riskv1authenticationsPaymentInformationCard paymentInformationCard = new Riskv1authenticationsPaymentInformationCard( Type: paymentInformationCardType, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear, Number: paymentInformationCardNumber ); Riskv1authenticationsPaymentInformation paymentInformation = new Riskv1authenticationsPaymentInformation( Card: paymentInformationCard ); var requestObj = new CheckPayerAuthEnrollmentRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, PaymentInformation: paymentInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationsPost201Response result = apiInstance.CheckPayerAuthEnrollment(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1DecisionsPost201Response Run() { string clientReferenceInformationCode = "54323007"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string paymentInformationCardNumber = "4444444444444448"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2020"; Riskv1decisionsPaymentInformationCard paymentInformationCard = new Riskv1decisionsPaymentInformationCard( Number: paymentInformationCardNumber, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear ); Riskv1decisionsPaymentInformation paymentInformation = new Riskv1decisionsPaymentInformation( Card: paymentInformationCard ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "144.14"; Riskv1decisionsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1decisionsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationShipToAddress1 = "96, powers street"; string orderInformationShipToAddress2 = ""; string orderInformationShipToAdministrativeArea = "KA"; string orderInformationShipToCountry = "IN"; string orderInformationShipToLocality = "Clearwater milford"; string orderInformationShipToFirstName = "James"; string orderInformationShipToLastName = "Smith"; string orderInformationShipToPhoneNumber = "7606160717"; string orderInformationShipToPostalCode = "560056"; Riskv1decisionsOrderInformationShipTo orderInformationShipTo = new Riskv1decisionsOrderInformationShipTo( Address1: orderInformationShipToAddress1, Address2: orderInformationShipToAddress2, AdministrativeArea: orderInformationShipToAdministrativeArea, Country: orderInformationShipToCountry, Locality: orderInformationShipToLocality, FirstName: orderInformationShipToFirstName, LastName: orderInformationShipToLastName, PhoneNumber: orderInformationShipToPhoneNumber, PostalCode: orderInformationShipToPostalCode ); string orderInformationBillToAddress1 = "96, powers street"; string orderInformationBillToAdministrativeArea = "NH"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "Clearwater milford"; string orderInformationBillToFirstName = "James"; string orderInformationBillToLastName = "Smith"; string orderInformationBillToPhoneNumber = "7606160717"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "03055"; Riskv1decisionsOrderInformationBillTo orderInformationBillTo = new Riskv1decisionsOrderInformationBillTo( Address1: orderInformationBillToAddress1, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1decisionsOrderInformation orderInformation = new Riskv1decisionsOrderInformation( AmountDetails: orderInformationAmountDetails, ShipTo: orderInformationShipTo, BillTo: orderInformationBillTo ); var requestObj = new CreateBundledDecisionManagerCaseRequest( ClientReferenceInformation: clientReferenceInformation, PaymentInformation: paymentInformation, OrderInformation: orderInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new DecisionManagerApi(clientConfig); RiskV1DecisionsPost201Response result = apiInstance.CreateBundledDecisionManagerCase(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationResultsPost201Response Run() { string clientReferenceInformationCode = "pavalidatecheck"; string clientReferenceInformationPartnerDeveloperId = "7891234"; string clientReferenceInformationPartnerSolutionId = "89012345"; Riskv1decisionsClientReferenceInformationPartner clientReferenceInformationPartner = new Riskv1decisionsClientReferenceInformationPartner( DeveloperId: clientReferenceInformationPartnerDeveloperId, SolutionId: clientReferenceInformationPartnerSolutionId ); Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Partner: clientReferenceInformationPartner ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "200.00"; Riskv1authenticationresultsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1authenticationresultsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); List <Riskv1authenticationresultsOrderInformationLineItems> orderInformationLineItems = new List <Riskv1authenticationresultsOrderInformationLineItems>(); string orderInformationLineItemsUnitPrice1 = "10"; int orderInformationLineItemsQuantity1 = 2; string orderInformationLineItemsTaxAmount1 = "32.40"; orderInformationLineItems.Add(new Riskv1authenticationresultsOrderInformationLineItems( UnitPrice: orderInformationLineItemsUnitPrice1, Quantity: orderInformationLineItemsQuantity1, TaxAmount: orderInformationLineItemsTaxAmount1 )); Riskv1authenticationresultsOrderInformation orderInformation = new Riskv1authenticationresultsOrderInformation( AmountDetails: orderInformationAmountDetails, LineItems: orderInformationLineItems ); string paymentInformationCardType = "002"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2025"; string paymentInformationCardNumber = "5200000000000007"; Riskv1authenticationresultsPaymentInformationCard paymentInformationCard = new Riskv1authenticationresultsPaymentInformationCard( Type: paymentInformationCardType, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear, Number: paymentInformationCardNumber ); Riskv1authenticationresultsPaymentInformation paymentInformation = new Riskv1authenticationresultsPaymentInformation( Card: paymentInformationCard ); string consumerAuthenticationInformationAuthenticationTransactionId = "PYffv9G3sa1e0CQr5fV0"; string consumerAuthenticationInformationSignedPares = "eNqdmFmT4jgSgN+J4D90zD4yMz45PEFVhHzgA2zwjXnzhQ984Nvw61dAV1"; Riskv1authenticationresultsConsumerAuthenticationInformation consumerAuthenticationInformation = new Riskv1authenticationresultsConsumerAuthenticationInformation( AuthenticationTransactionId: consumerAuthenticationInformationAuthenticationTransactionId, SignedPares: consumerAuthenticationInformationSignedPares ); var requestObj = new ValidateRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, PaymentInformation: paymentInformation, ConsumerAuthenticationInformation: consumerAuthenticationInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationResultsPost201Response result = apiInstance.ValidateAuthenticationResults(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1ExportComplianceInquiriesPost201Response Run() { string clientReferenceInformationCode = "verification example"; string clientReferenceInformationComments = "Export -fields"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Comments: clientReferenceInformationComments ); string orderInformationBillToAddress1 = "901 Metro Centre Blvd"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "Foster City"; string orderInformationBillToPostalCode = "94404"; string orderInformationBillToCompanyName = "A & C International Trade, Inc"; Riskv1exportcomplianceinquiriesOrderInformationBillToCompany orderInformationBillToCompany = new Riskv1exportcomplianceinquiriesOrderInformationBillToCompany( Name: orderInformationBillToCompanyName ); string orderInformationBillToFirstName = "ANDREE"; string orderInformationBillToLastName = "AGNESE"; string orderInformationBillToEmail = "*****@*****.**"; Riskv1exportcomplianceinquiriesOrderInformationBillTo orderInformationBillTo = new Riskv1exportcomplianceinquiriesOrderInformationBillTo( Address1: orderInformationBillToAddress1, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, PostalCode: orderInformationBillToPostalCode, Company: orderInformationBillToCompany, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, Email: orderInformationBillToEmail ); string orderInformationShipToCountry = "IN"; string orderInformationShipToFirstName = "DumbelDore"; string orderInformationShipToLastName = "Albus"; Riskv1exportcomplianceinquiriesOrderInformationShipTo orderInformationShipTo = new Riskv1exportcomplianceinquiriesOrderInformationShipTo( Country: orderInformationShipToCountry, FirstName: orderInformationShipToFirstName, LastName: orderInformationShipToLastName ); List <Riskv1exportcomplianceinquiriesOrderInformationLineItems> orderInformationLineItems = new List <Riskv1exportcomplianceinquiriesOrderInformationLineItems>(); string orderInformationLineItemsUnitPrice1 = "120.50"; int orderInformationLineItemsQuantity1 = 3; string orderInformationLineItemsProductSKU1 = "123456"; string orderInformationLineItemsProductName1 = "Qwe"; string orderInformationLineItemsProductCode1 = "physical_software"; orderInformationLineItems.Add(new Riskv1exportcomplianceinquiriesOrderInformationLineItems( UnitPrice: orderInformationLineItemsUnitPrice1, Quantity: orderInformationLineItemsQuantity1, ProductSKU: orderInformationLineItemsProductSKU1, ProductName: orderInformationLineItemsProductName1, ProductCode: orderInformationLineItemsProductCode1 )); Riskv1exportcomplianceinquiriesOrderInformation orderInformation = new Riskv1exportcomplianceinquiriesOrderInformation( BillTo: orderInformationBillTo, ShipTo: orderInformationShipTo, LineItems: orderInformationLineItems ); string exportComplianceInformationAddressOperator = "and"; string exportComplianceInformationWeightsAddress = "low"; string exportComplianceInformationWeightsCompany = "exact"; string exportComplianceInformationWeightsName = "exact"; Riskv1exportcomplianceinquiriesExportComplianceInformationWeights exportComplianceInformationWeights = new Riskv1exportcomplianceinquiriesExportComplianceInformationWeights( Address: exportComplianceInformationWeightsAddress, Company: exportComplianceInformationWeightsCompany, Name: exportComplianceInformationWeightsName ); List <string> exportComplianceInformationSanctionLists = new List <string>(); exportComplianceInformationSanctionLists.Add("Bureau Of Industry and Security"); Riskv1exportcomplianceinquiriesExportComplianceInformation exportComplianceInformation = new Riskv1exportcomplianceinquiriesExportComplianceInformation( AddressOperator: exportComplianceInformationAddressOperator, Weights: exportComplianceInformationWeights, SanctionLists: exportComplianceInformationSanctionLists ); var requestObj = new ValidateExportComplianceRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, ExportComplianceInformation: exportComplianceInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new VerificationApi(clientConfig); RiskV1ExportComplianceInquiriesPost201Response result = apiInstance.ValidateExportCompliance(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationsPost201Response Run() { string clientReferenceInformationCode = "UNKNOWN"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "10.99"; Riskv1authenticationsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1authenticationsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationBillToAddress1 = "1 Market St"; string orderInformationBillToAddress2 = "Address 2"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "san francisco"; string orderInformationBillToFirstName = "John"; string orderInformationBillToLastName = "Doe"; string orderInformationBillToPhoneNumber = "4158880000"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "94105"; Riskv1authenticationsOrderInformationBillTo orderInformationBillTo = new Riskv1authenticationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1authenticationsOrderInformation orderInformation = new Riskv1authenticationsOrderInformation( AmountDetails: orderInformationAmountDetails, BillTo: orderInformationBillTo ); string tokenInformationTransientToken = "1D5ZX4HMOV20FKEBE3IO240JWYJ0NJ90B4V9XQ6SCK4BDN0W96E65E2A39052056"; Riskv1authenticationsetupsTokenInformation tokenInformation = new Riskv1authenticationsetupsTokenInformation( TransientToken: tokenInformationTransientToken ); var requestObj = new CheckPayerAuthEnrollmentRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, TokenInformation: tokenInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationsPost201Response result = apiInstance.CheckPayerAuthEnrollment(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationsPost201Response Run() { string clientReferenceInformationCode = "New Account"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "10.99"; Riskv1authenticationsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1authenticationsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationBillToAddress1 = "1 Market St"; string orderInformationBillToAddress2 = "Address 2"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "san francisco"; string orderInformationBillToFirstName = "John"; string orderInformationBillToLastName = "Doe"; string orderInformationBillToPhoneNumber = "4158880000"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "94105"; Riskv1authenticationsOrderInformationBillTo orderInformationBillTo = new Riskv1authenticationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1authenticationsOrderInformation orderInformation = new Riskv1authenticationsOrderInformation( AmountDetails: orderInformationAmountDetails, BillTo: orderInformationBillTo ); string paymentInformationCardType = "001"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2025"; string paymentInformationCardNumber = "4000990000000004"; Riskv1authenticationsPaymentInformationCard paymentInformationCard = new Riskv1authenticationsPaymentInformationCard( Type: paymentInformationCardType, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear, Number: paymentInformationCardNumber ); Riskv1authenticationsPaymentInformation paymentInformation = new Riskv1authenticationsPaymentInformation( Card: paymentInformationCard ); string consumerAuthenticationInformationTransactionMode = "MOTO"; Riskv1decisionsConsumerAuthenticationInformation consumerAuthenticationInformation = new Riskv1decisionsConsumerAuthenticationInformation( TransactionMode: consumerAuthenticationInformationTransactionMode ); string riskInformationBuyerHistoryCustomerAccountCreationHistory = "NEW_ACCOUNT"; Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount riskInformationBuyerHistoryCustomerAccount = new Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount( CreationHistory: riskInformationBuyerHistoryCustomerAccountCreationHistory ); bool riskInformationBuyerHistoryAccountHistoryFirstUseOfShippingAddress = false; Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory riskInformationBuyerHistoryAccountHistory = new Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory( FirstUseOfShippingAddress: riskInformationBuyerHistoryAccountHistoryFirstUseOfShippingAddress ); Ptsv2paymentsRiskInformationBuyerHistory riskInformationBuyerHistory = new Ptsv2paymentsRiskInformationBuyerHistory( CustomerAccount: riskInformationBuyerHistoryCustomerAccount, AccountHistory: riskInformationBuyerHistoryAccountHistory ); Riskv1authenticationsRiskInformation riskInformation = new Riskv1authenticationsRiskInformation( BuyerHistory: riskInformationBuyerHistory ); var requestObj = new CheckPayerAuthEnrollmentRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, PaymentInformation: paymentInformation, ConsumerAuthenticationInformation: consumerAuthenticationInformation, RiskInformation: riskInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationsPost201Response result = apiInstance.CheckPayerAuthEnrollment(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1ExportComplianceInquiriesPost201Response Run() { string clientReferenceInformationCode = "verification example"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string orderInformationBillToAddress1 = "901 Metro Centre Blvd"; string orderInformationBillToAddress2 = "2"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "Foster City"; string orderInformationBillToPostalCode = "94404"; string orderInformationBillToFirstName = "Suman"; string orderInformationBillToLastName = "Kumar"; string orderInformationBillToEmail = "*****@*****.**"; Riskv1exportcomplianceinquiriesOrderInformationBillTo orderInformationBillTo = new Riskv1exportcomplianceinquiriesOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, PostalCode: orderInformationBillToPostalCode, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, Email: orderInformationBillToEmail ); string orderInformationShipToCountry = "be"; string orderInformationShipToFirstName = "DumbelDore"; string orderInformationShipToLastName = "Albus"; Riskv1exportcomplianceinquiriesOrderInformationShipTo orderInformationShipTo = new Riskv1exportcomplianceinquiriesOrderInformationShipTo( Country: orderInformationShipToCountry, FirstName: orderInformationShipToFirstName, LastName: orderInformationShipToLastName ); List <Riskv1exportcomplianceinquiriesOrderInformationLineItems> orderInformationLineItems = new List <Riskv1exportcomplianceinquiriesOrderInformationLineItems>(); string orderInformationLineItemsUnitPrice1 = "19.00"; orderInformationLineItems.Add(new Riskv1exportcomplianceinquiriesOrderInformationLineItems( UnitPrice: orderInformationLineItemsUnitPrice1 )); Riskv1exportcomplianceinquiriesOrderInformation orderInformation = new Riskv1exportcomplianceinquiriesOrderInformation( BillTo: orderInformationBillTo, ShipTo: orderInformationShipTo, LineItems: orderInformationLineItems ); string buyerInformationMerchantCustomerId = "87789"; Riskv1addressverificationsBuyerInformation buyerInformation = new Riskv1addressverificationsBuyerInformation( MerchantCustomerId: buyerInformationMerchantCustomerId ); var requestObj = new ValidateExportComplianceRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, BuyerInformation: buyerInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new VerificationApi(clientConfig); RiskV1ExportComplianceInquiriesPost201Response result = apiInstance.ValidateExportCompliance(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationsPost201Response Run() { string clientReferenceInformationCode = "cybs_test"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "10.99"; Riskv1authenticationsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1authenticationsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationBillToAddress1 = "1 Market St"; string orderInformationBillToAddress2 = "Address 2"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "san francisco"; string orderInformationBillToFirstName = "John"; string orderInformationBillToLastName = "Doe"; string orderInformationBillToPhoneNumber = "4158880000"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "94105"; Riskv1authenticationsOrderInformationBillTo orderInformationBillTo = new Riskv1authenticationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1authenticationsOrderInformation orderInformation = new Riskv1authenticationsOrderInformation( AmountDetails: orderInformationAmountDetails, BillTo: orderInformationBillTo ); string paymentInformationCardType = "002"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2025"; string paymentInformationCardNumber = "5200340000000015"; Riskv1authenticationsPaymentInformationCard paymentInformationCard = new Riskv1authenticationsPaymentInformationCard( Type: paymentInformationCardType, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear, Number: paymentInformationCardNumber ); Riskv1authenticationsPaymentInformation paymentInformation = new Riskv1authenticationsPaymentInformation( Card: paymentInformationCard ); int buyerInformationMobilePhone = 1245789632; Riskv1authenticationsBuyerInformation buyerInformation = new Riskv1authenticationsBuyerInformation( MobilePhone: buyerInformationMobilePhone ); string consumerAuthenticationInformationTransactionMode = "MOTO"; Riskv1decisionsConsumerAuthenticationInformation consumerAuthenticationInformation = new Riskv1decisionsConsumerAuthenticationInformation( TransactionMode: consumerAuthenticationInformationTransactionMode ); List <Riskv1decisionsTravelInformationLegs> travelInformationLegs = new List <Riskv1decisionsTravelInformationLegs>(); string travelInformationLegsDestination1 = "DEF"; string travelInformationLegsCarrierCode1 = "UA"; string travelInformationLegsDepartureDate1 = "2019-01-01"; travelInformationLegs.Add(new Riskv1decisionsTravelInformationLegs( Destination: travelInformationLegsDestination1, CarrierCode: travelInformationLegsCarrierCode1, DepartureDate: travelInformationLegsDepartureDate1 )); string travelInformationLegsDestination2 = "RES"; string travelInformationLegsCarrierCode2 = "AS"; string travelInformationLegsDepartureDate2 = "2019-02-21"; travelInformationLegs.Add(new Riskv1decisionsTravelInformationLegs( Destination: travelInformationLegsDestination2, CarrierCode: travelInformationLegsCarrierCode2, DepartureDate: travelInformationLegsDepartureDate2 )); int travelInformationNumberOfPassengers = 2; List <Riskv1decisionsTravelInformationPassengers> travelInformationPassengers = new List <Riskv1decisionsTravelInformationPassengers>(); string travelInformationPassengersFirstName1 = "Raj"; string travelInformationPassengersLastName1 = "Charles"; travelInformationPassengers.Add(new Riskv1decisionsTravelInformationPassengers( FirstName: travelInformationPassengersFirstName1, LastName: travelInformationPassengersLastName1 )); string travelInformationPassengersFirstName2 = "Potter"; string travelInformationPassengersLastName2 = "Suhember"; travelInformationPassengers.Add(new Riskv1decisionsTravelInformationPassengers( FirstName: travelInformationPassengersFirstName2, LastName: travelInformationPassengersLastName2 )); Riskv1authenticationsTravelInformation travelInformation = new Riskv1authenticationsTravelInformation( Legs: travelInformationLegs, NumberOfPassengers: travelInformationNumberOfPassengers, Passengers: travelInformationPassengers ); var requestObj = new CheckPayerAuthEnrollmentRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, PaymentInformation: paymentInformation, BuyerInformation: buyerInformation, ConsumerAuthenticationInformation: consumerAuthenticationInformation, TravelInformation: travelInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationsPost201Response result = apiInstance.CheckPayerAuthEnrollment(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AuthenticationsPost201Response Run() { string clientReferenceInformationCode = "UNKNOWN"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "10.99"; Riskv1authenticationsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1authenticationsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationBillToAddress1 = "1 Market St"; string orderInformationBillToAddress2 = "Address 2"; string orderInformationBillToAdministrativeArea = "CA"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "san francisco"; string orderInformationBillToFirstName = "John"; string orderInformationBillToLastName = "Doe"; string orderInformationBillToPhoneNumber = "4158880000"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "94105"; Riskv1authenticationsOrderInformationBillTo orderInformationBillTo = new Riskv1authenticationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1authenticationsOrderInformation orderInformation = new Riskv1authenticationsOrderInformation( AmountDetails: orderInformationAmountDetails, BillTo: orderInformationBillTo ); string paymentInformationCustomerCustomerId = "AB695DA801DD1BB6E05341588E0A3BDC"; Ptsv2paymentsPaymentInformationCustomer paymentInformationCustomer = new Ptsv2paymentsPaymentInformationCustomer( CustomerId: paymentInformationCustomerCustomerId ); Riskv1authenticationsPaymentInformation paymentInformation = new Riskv1authenticationsPaymentInformation( Customer: paymentInformationCustomer ); var requestObj = new CheckPayerAuthEnrollmentRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, PaymentInformation: paymentInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new PayerAuthenticationApi(clientConfig); RiskV1AuthenticationsPost201Response result = apiInstance.CheckPayerAuthEnrollment(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AddressVerificationsPost201Response Run() { string clientReferenceInformationCode = "addressEg"; string clientReferenceInformationComments = "dav-All fields"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Comments: clientReferenceInformationComments ); string orderInformationBillToAddress1 = "1650 Burton Ave"; string orderInformationBillToAddress2 = ""; string orderInformationBillToAddress3 = ""; string orderInformationBillToAddress4 = ""; string orderInformationBillToAdministrativeArea = "BC"; string orderInformationBillToCountry = "CA"; string orderInformationBillToLocality = "VICTORIA"; string orderInformationBillToPostalCode = "V8T 2N6"; Riskv1addressverificationsOrderInformationBillTo orderInformationBillTo = new Riskv1addressverificationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, Address3: orderInformationBillToAddress3, Address4: orderInformationBillToAddress4, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, PostalCode: orderInformationBillToPostalCode ); List <Riskv1addressverificationsOrderInformationLineItems> orderInformationLineItems = new List <Riskv1addressverificationsOrderInformationLineItems>(); string orderInformationLineItemsUnitPrice1 = "120.50"; int orderInformationLineItemsQuantity1 = 3; string orderInformationLineItemsProductSKU1 = "9966223"; string orderInformationLineItemsProductName1 = "headset"; string orderInformationLineItemsProductCode1 = "electronic"; orderInformationLineItems.Add(new Riskv1addressverificationsOrderInformationLineItems( UnitPrice: orderInformationLineItemsUnitPrice1, Quantity: orderInformationLineItemsQuantity1, ProductSKU: orderInformationLineItemsProductSKU1, ProductName: orderInformationLineItemsProductName1, ProductCode: orderInformationLineItemsProductCode1 )); Riskv1addressverificationsOrderInformation orderInformation = new Riskv1addressverificationsOrderInformation( BillTo: orderInformationBillTo, LineItems: orderInformationLineItems ); string buyerInformationMerchantCustomerId = "ABCD"; Riskv1addressverificationsBuyerInformation buyerInformation = new Riskv1addressverificationsBuyerInformation( MerchantCustomerId: buyerInformationMerchantCustomerId ); var requestObj = new VerifyCustomerAddressRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, BuyerInformation: buyerInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new VerificationApi(clientConfig); RiskV1AddressVerificationsPost201Response result = apiInstance.VerifyCustomerAddress(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AddressVerificationsPost201Response Run() { string clientReferenceInformationCode = "addressEg"; string clientReferenceInformationComments = "dav-All fields"; string clientReferenceInformationPartnerDeveloperId = "7891234"; string clientReferenceInformationPartnerSolutionId = "89012345"; Riskv1decisionsClientReferenceInformationPartner clientReferenceInformationPartner = new Riskv1decisionsClientReferenceInformationPartner( DeveloperId: clientReferenceInformationPartnerDeveloperId, SolutionId: clientReferenceInformationPartnerSolutionId ); Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Comments: clientReferenceInformationComments, Partner: clientReferenceInformationPartner ); string orderInformationBillToAddress1 = "12301 research st"; string orderInformationBillToAddress2 = "1"; string orderInformationBillToAddress3 = "2"; string orderInformationBillToAddress4 = "3"; string orderInformationBillToAdministrativeArea = "TX"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "Austin"; string orderInformationBillToPostalCode = "78759"; Riskv1addressverificationsOrderInformationBillTo orderInformationBillTo = new Riskv1addressverificationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, Address3: orderInformationBillToAddress3, Address4: orderInformationBillToAddress4, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, PostalCode: orderInformationBillToPostalCode ); string orderInformationShipToAddress1 = "1715 oaks apt # 7"; string orderInformationShipToAddress2 = " "; string orderInformationShipToAddress3 = ""; string orderInformationShipToAddress4 = ""; string orderInformationShipToAdministrativeArea = "WI"; string orderInformationShipToCountry = "US"; string orderInformationShipToLocality = "SUPERIOR"; string orderInformationShipToPostalCode = "29681"; Riskv1addressverificationsOrderInformationShipTo orderInformationShipTo = new Riskv1addressverificationsOrderInformationShipTo( Address1: orderInformationShipToAddress1, Address2: orderInformationShipToAddress2, Address3: orderInformationShipToAddress3, Address4: orderInformationShipToAddress4, AdministrativeArea: orderInformationShipToAdministrativeArea, Country: orderInformationShipToCountry, Locality: orderInformationShipToLocality, PostalCode: orderInformationShipToPostalCode ); List <Riskv1addressverificationsOrderInformationLineItems> orderInformationLineItems = new List <Riskv1addressverificationsOrderInformationLineItems>(); string orderInformationLineItemsUnitPrice1 = "120.50"; int orderInformationLineItemsQuantity1 = 3; string orderInformationLineItemsProductSKU1 = "9966223"; string orderInformationLineItemsProductName1 = "headset"; string orderInformationLineItemsProductCode1 = "electronic"; orderInformationLineItems.Add(new Riskv1addressverificationsOrderInformationLineItems( UnitPrice: orderInformationLineItemsUnitPrice1, Quantity: orderInformationLineItemsQuantity1, ProductSKU: orderInformationLineItemsProductSKU1, ProductName: orderInformationLineItemsProductName1, ProductCode: orderInformationLineItemsProductCode1 )); Riskv1addressverificationsOrderInformation orderInformation = new Riskv1addressverificationsOrderInformation( BillTo: orderInformationBillTo, ShipTo: orderInformationShipTo, LineItems: orderInformationLineItems ); string buyerInformationMerchantCustomerId = "ABCD"; Riskv1addressverificationsBuyerInformation buyerInformation = new Riskv1addressverificationsBuyerInformation( MerchantCustomerId: buyerInformationMerchantCustomerId ); var requestObj = new VerifyCustomerAddressRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation, BuyerInformation: buyerInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new VerificationApi(clientConfig); RiskV1AddressVerificationsPost201Response result = apiInstance.VerifyCustomerAddress(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1DecisionsPost201Response Run() { string clientReferenceInformationCode = "54323007"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string paymentInformationCardNumber = "4444444444444448"; string paymentInformationCardExpirationMonth = "12"; string paymentInformationCardExpirationYear = "2020"; Riskv1decisionsPaymentInformationCard paymentInformationCard = new Riskv1decisionsPaymentInformationCard( Number: paymentInformationCardNumber, ExpirationMonth: paymentInformationCardExpirationMonth, ExpirationYear: paymentInformationCardExpirationYear ); Riskv1decisionsPaymentInformation paymentInformation = new Riskv1decisionsPaymentInformation( Card: paymentInformationCard ); string orderInformationAmountDetailsCurrency = "USD"; string orderInformationAmountDetailsTotalAmount = "144.14"; Riskv1decisionsOrderInformationAmountDetails orderInformationAmountDetails = new Riskv1decisionsOrderInformationAmountDetails( Currency: orderInformationAmountDetailsCurrency, TotalAmount: orderInformationAmountDetailsTotalAmount ); string orderInformationBillToAddress1 = "96, powers street"; string orderInformationBillToAdministrativeArea = "NH"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "Clearwater milford"; string orderInformationBillToFirstName = "James"; string orderInformationBillToLastName = "Smith"; string orderInformationBillToPhoneNumber = "7606160717"; string orderInformationBillToEmail = "*****@*****.**"; string orderInformationBillToPostalCode = "03055"; Riskv1decisionsOrderInformationBillTo orderInformationBillTo = new Riskv1decisionsOrderInformationBillTo( Address1: orderInformationBillToAddress1, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, PhoneNumber: orderInformationBillToPhoneNumber, Email: orderInformationBillToEmail, PostalCode: orderInformationBillToPostalCode ); Riskv1decisionsOrderInformation orderInformation = new Riskv1decisionsOrderInformation( AmountDetails: orderInformationAmountDetails, BillTo: orderInformationBillTo ); string travelInformationCompleteRoute = "SFO-JFK:JFK-BLR"; string travelInformationDepartureTime = "2011-03-20 11:30pm GMT"; string travelInformationJourneyType = "One way"; List <Riskv1decisionsTravelInformationLegs> travelInformationLegs = new List <Riskv1decisionsTravelInformationLegs>(); string travelInformationLegsOrigination1 = "SFO"; string travelInformationLegsDestination1 = "JFK"; travelInformationLegs.Add(new Riskv1decisionsTravelInformationLegs( Origination: travelInformationLegsOrigination1, Destination: travelInformationLegsDestination1 )); string travelInformationLegsOrigination2 = "JFK"; string travelInformationLegsDestination2 = "BLR"; travelInformationLegs.Add(new Riskv1decisionsTravelInformationLegs( Origination: travelInformationLegsOrigination2, Destination: travelInformationLegsDestination2 )); Riskv1decisionsTravelInformation travelInformation = new Riskv1decisionsTravelInformation( CompleteRoute: travelInformationCompleteRoute, DepartureTime: travelInformationDepartureTime, JourneyType: travelInformationJourneyType, Legs: travelInformationLegs ); var requestObj = new CreateBundledDecisionManagerCaseRequest( ClientReferenceInformation: clientReferenceInformation, PaymentInformation: paymentInformation, OrderInformation: orderInformation, TravelInformation: travelInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new DecisionManagerApi(clientConfig); RiskV1DecisionsPost201Response result = apiInstance.CreateBundledDecisionManagerCase(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1UpdatePost201Response Run() { string type = "positive"; string orderInformationAddressAddress1 = "1234 Sample St."; string orderInformationAddressAddress2 = "Mountain View"; string orderInformationAddressLocality = "California"; string orderInformationAddressCountry = "US"; string orderInformationAddressAdministrativeArea = "CA"; string orderInformationAddressPostalCode = "94043"; Riskv1liststypeentriesOrderInformationAddress orderInformationAddress = new Riskv1liststypeentriesOrderInformationAddress( Address1: orderInformationAddressAddress1, Address2: orderInformationAddressAddress2, Locality: orderInformationAddressLocality, Country: orderInformationAddressCountry, AdministrativeArea: orderInformationAddressAdministrativeArea, PostalCode: orderInformationAddressPostalCode ); string orderInformationBillToFirstName = "John"; string orderInformationBillToLastName = "Doe"; string orderInformationBillToEmail = "*****@*****.**"; Riskv1liststypeentriesOrderInformationBillTo orderInformationBillTo = new Riskv1liststypeentriesOrderInformationBillTo( FirstName: orderInformationBillToFirstName, LastName: orderInformationBillToLastName, Email: orderInformationBillToEmail ); Riskv1liststypeentriesOrderInformation orderInformation = new Riskv1liststypeentriesOrderInformation( Address: orderInformationAddress, BillTo: orderInformationBillTo ); Riskv1liststypeentriesPaymentInformation paymentInformation = new Riskv1liststypeentriesPaymentInformation( ); string clientReferenceInformationCode = "54323007"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode ); string riskInformationMarkingDetailsAction = "add"; Riskv1liststypeentriesRiskInformationMarkingDetails riskInformationMarkingDetails = new Riskv1liststypeentriesRiskInformationMarkingDetails( Action: riskInformationMarkingDetailsAction ); Riskv1liststypeentriesRiskInformation riskInformation = new Riskv1liststypeentriesRiskInformation( MarkingDetails: riskInformationMarkingDetails ); var requestObj = new AddNegativeListRequest( OrderInformation: orderInformation, PaymentInformation: paymentInformation, ClientReferenceInformation: clientReferenceInformation, RiskInformation: riskInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new DecisionManagerApi(clientConfig); RiskV1UpdatePost201Response result = apiInstance.AddNegative(type, requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }
public static RiskV1AddressVerificationsPost201Response Run() { string clientReferenceInformationCode = "addressEg"; string clientReferenceInformationComments = "dav-error response check"; Riskv1decisionsClientReferenceInformation clientReferenceInformation = new Riskv1decisionsClientReferenceInformation( Code: clientReferenceInformationCode, Comments: clientReferenceInformationComments ); string orderInformationBillToAddress1 = "6th 4th ave"; string orderInformationBillToAddress2 = ""; string orderInformationBillToAdministrativeArea = "NY"; string orderInformationBillToCountry = "US"; string orderInformationBillToLocality = "rensslaer"; string orderInformationBillToPostalCode = "12144"; Riskv1addressverificationsOrderInformationBillTo orderInformationBillTo = new Riskv1addressverificationsOrderInformationBillTo( Address1: orderInformationBillToAddress1, Address2: orderInformationBillToAddress2, AdministrativeArea: orderInformationBillToAdministrativeArea, Country: orderInformationBillToCountry, Locality: orderInformationBillToLocality, PostalCode: orderInformationBillToPostalCode ); List <Riskv1addressverificationsOrderInformationLineItems> orderInformationLineItems = new List <Riskv1addressverificationsOrderInformationLineItems>(); string orderInformationLineItemsUnitPrice1 = "120.50"; int orderInformationLineItemsQuantity1 = 3; string orderInformationLineItemsProductSKU1 = "996633"; string orderInformationLineItemsProductName1 = "qwerty"; string orderInformationLineItemsProductCode1 = "handling"; orderInformationLineItems.Add(new Riskv1addressverificationsOrderInformationLineItems( UnitPrice: orderInformationLineItemsUnitPrice1, Quantity: orderInformationLineItemsQuantity1, ProductSKU: orderInformationLineItemsProductSKU1, ProductName: orderInformationLineItemsProductName1, ProductCode: orderInformationLineItemsProductCode1 )); Riskv1addressverificationsOrderInformation orderInformation = new Riskv1addressverificationsOrderInformation( BillTo: orderInformationBillTo, LineItems: orderInformationLineItems ); var requestObj = new VerifyCustomerAddressRequest( ClientReferenceInformation: clientReferenceInformation, OrderInformation: orderInformation ); try { var configDictionary = new Configuration().GetConfiguration(); var clientConfig = new CyberSource.Client.Configuration(merchConfigDictObj: configDictionary); var apiInstance = new VerificationApi(clientConfig); RiskV1AddressVerificationsPost201Response result = apiInstance.VerifyCustomerAddress(requestObj); Console.WriteLine(result); return(result); } catch (Exception e) { Console.WriteLine("Exception on calling the API : " + e.Message); return(null); } }