Ejemplo n.º 1
0
        public async void Example()
        {
#pragma warning disable 0168
            using (Client client = GetClient())
            {
                BankAccountBban bankAccountBban = new BankAccountBban();
                bankAccountBban.AccountNumber = "0532013000";
                bankAccountBban.BankCode      = "37040044";
                bankAccountBban.CountryCode   = "DE";

                AmountOfMoney amountOfMoney = new AmountOfMoney();
                amountOfMoney.Amount       = 100L;
                amountOfMoney.CurrencyCode = "EUR";

                Address billingAddress = new Address();
                billingAddress.CountryCode = "US";

                CustomerRiskAssessment customer = new CustomerRiskAssessment();
                customer.BillingAddress = billingAddress;
                customer.Locale         = "en_US";

                OrderRiskAssessment order = new OrderRiskAssessment();
                order.AmountOfMoney = amountOfMoney;
                order.Customer      = customer;

                RiskAssessmentBankAccount body = new RiskAssessmentBankAccount();
                body.BankAccountBban = bankAccountBban;
                body.Order           = order;

                RiskAssessmentResponse response = await client.Merchant("merchantId").Riskassessments().Bankaccounts(body);
            }
#pragma warning restore 0168
        }
        public async void Example()
        {
#pragma warning disable 0168
            using (Client client = GetClient())
            {
                Address billingAddress = new Address();
                billingAddress.AdditionalInfo = "Suite II";
                billingAddress.City           = "Monument Valley";
                billingAddress.CountryCode    = "US";
                billingAddress.HouseNumber    = "1";
                billingAddress.State          = "Utah";
                billingAddress.Street         = "Desertroad";
                billingAddress.Zip            = "84536";

                CompanyInformation companyInformation = new CompanyInformation();
                companyInformation.Name = "Acme Labs";

                PersonalNameToken name = new PersonalNameToken();
                name.FirstName     = "Wile";
                name.Surname       = "Coyote";
                name.SurnamePrefix = "E.";

                PersonalInformationToken personalInformation = new PersonalInformationToken();
                personalInformation.Name = name;

                CustomerToken customer = new CustomerToken();
                customer.BillingAddress      = billingAddress;
                customer.CompanyInformation  = companyInformation;
                customer.MerchantCustomerId  = "1234";
                customer.PersonalInformation = personalInformation;

                BankAccountBban bankAccountBban = new BankAccountBban();
                bankAccountBban.AccountNumber = "000000123456";
                bankAccountBban.BankCode      = "05428";
                bankAccountBban.BranchCode    = "11101";
                bankAccountBban.CheckDigit    = "X";
                bankAccountBban.CountryCode   = "IT";

                TokenNonSepaDirectDebitPaymentProduct705SpecificData paymentProduct705SpecificData = new TokenNonSepaDirectDebitPaymentProduct705SpecificData();
                paymentProduct705SpecificData.AuthorisationId = "123456";
                paymentProduct705SpecificData.BankAccountBban = bankAccountBban;

                MandateNonSepaDirectDebit mandate = new MandateNonSepaDirectDebit();
                mandate.PaymentProduct705SpecificData = paymentProduct705SpecificData;

                TokenNonSepaDirectDebit nonSepaDirectDebit = new TokenNonSepaDirectDebit();
                nonSepaDirectDebit.Customer = customer;
                nonSepaDirectDebit.Mandate  = mandate;

                CreateTokenRequest body = new CreateTokenRequest();
                body.NonSepaDirectDebit = nonSepaDirectDebit;
                body.PaymentProductId   = 705;

                CreateTokenResponse response = await client.Merchant("merchantId").Tokens().Create(body);
            }
#pragma warning restore 0168
        }
        public async void Example()
        {
#pragma warning disable 0168
            using (Client client = GetClient())
            {
                BankAccountBban bankAccountBban = new BankAccountBban();
                bankAccountBban.AccountNumber = "0532013000";
                bankAccountBban.BankCode      = "37040044";
                bankAccountBban.CountryCode   = "DE";

                BankDetailsRequest body = new BankDetailsRequest();
                body.BankAccountBban = bankAccountBban;

                BankDetailsResponse response = await client.Merchant("merchantId").Services().Bankaccount(body);
            }
#pragma warning restore 0168
        }
Ejemplo n.º 4
0
        public async Task Test()
        {
            RiskAssessmentBankAccount body = new RiskAssessmentBankAccount();

            BankAccountBban bankAccountBban = new BankAccountBban();

            bankAccountBban.CountryCode   = ("DE");
            bankAccountBban.AccountNumber = ("0532013000");
            bankAccountBban.BankCode      = ("37040044");
            body.BankAccountBban          = (bankAccountBban);

            OrderRiskAssessment order = new OrderRiskAssessment();

            AmountOfMoney amountOfMoney = new AmountOfMoney();

            amountOfMoney.Amount       = (100L);
            amountOfMoney.CurrencyCode = ("EUR");
            order.AmountOfMoney        = (amountOfMoney);

            CustomerRiskAssessment customer = new CustomerRiskAssessment();

            customer.Locale = ("en_GB");
            order.Customer  = (customer);

            body.Order = (order);

            using (Client client = GetClient())
            {
                RiskAssessmentResponse riskAssessmentResponse = await client
                                                                .Merchant(GetMerchantId())
                                                                .Riskassessments()
                                                                .Bankaccounts(body);

                Assert.That(riskAssessmentResponse.Results, Is.Not.Empty);
            }
        }