public static Moip.Models.PaymentRequest CreatePaymentWithEscrowRequest()
        {
            Moip.Models.TaxDocument taxDocumentRequest = new Moip.Models.TaxDocument
            {
                Type   = "CPF",
                Number = "33333333333"
            };

            Moip.Models.Phone phoneRequest = new Moip.Models.Phone
            {
                CountryCode = "55",
                AreaCode    = "11",
                Number      = "66778899"
            };

            Moip.Models.HolderRequest holderRequest = new Moip.Models.HolderRequest
            {
                Fullname    = "Jose Goku da Silva",
                Birthdate   = "1988-12-30",
                TaxDocument = taxDocumentRequest,
                Phone       = phoneRequest
            };

            Moip.Models.CreditCardRequest creditCardRequest = new Moip.Models.CreditCardRequest
            {
                ExpirationMonth = "02",
                ExpirationYear  = "20",
                Number          = "5555666677778884",
                Cvc             = "123",
                Holder          = holderRequest
            };

            Moip.Models.FundingInstrumentRequest fundingInstrumentRequest = new Moip.Models.FundingInstrumentRequest
            {
                Method     = "CREDIT_CARD",
                CreditCard = creditCardRequest
            };

            Moip.Models.Escrow escrow = new Moip.Models.Escrow
            {
                Description = "Escrow test"
            };

            Moip.Models.PaymentRequest paymentRequest = new Moip.Models.PaymentRequest
            {
                InstallmentCount    = 1,
                StatementDescriptor = "MyStore",
                FundingInstrument   = fundingInstrumentRequest,
                Escrow = escrow
            };

            return(paymentRequest);
        }
        public static Moip.Models.CustomerCreditCardRequest CreateCustomerCreditCardRequest()
        {
            Moip.Models.ShippingAddress shippingAddressRequest = new Moip.Models.ShippingAddress
            {
                Street       = "Rua test",
                StreetNumber = "123",
                Complement   = "Ap test",
                District     = "Bairro test",
                City         = "TestCity",
                State        = "SP",
                Country      = "BRA",
                ZipCode      = "01234000"
            };

            Moip.Models.TaxDocument taxDocumentRequest = new Moip.Models.TaxDocument
            {
                Type   = "CPF",
                Number = "33333333333"
            };

            Moip.Models.Phone phoneRequest = new Moip.Models.Phone
            {
                CountryCode = "55",
                AreaCode    = "11",
                Number      = "66778899"
            };

            Moip.Models.HolderRequest holderRequest = new Moip.Models.HolderRequest
            {
                Fullname    = "Jose Goku da Silva",
                Birthdate   = "1988-12-30",
                TaxDocument = taxDocumentRequest,
                Phone       = phoneRequest
            };

            Moip.Models.CreditCardRequest creditCardRequest = new Moip.Models.CreditCardRequest
            {
                ExpirationMonth = "02",
                ExpirationYear  = "20",
                Number          = "5555666677778884",
                Cvc             = "123",
                Holder          = holderRequest
            };

            Moip.Models.CustomerCreditCardRequest customerCreditCardRequest = new Moip.Models.CustomerCreditCardRequest
            {
                Method     = "CREDIT_CARD",
                CreditCard = creditCardRequest
            };

            return(customerCreditCardRequest);
        }
        public static Moip.Models.RefundCCRequest CreatePartialCCRefundRequest()
        {
            Moip.Models.Phone phoneRequest = new Moip.Models.Phone
            {
                CountryCode = "55",
                AreaCode    = "11",
                Number      = "66778899"
            };

            Moip.Models.TaxDocument taxDocumentRequest = new Moip.Models.TaxDocument
            {
                Type   = "CPF",
                Number = "33333333333"
            };

            Moip.Models.HolderRequest holderRequest = new Moip.Models.HolderRequest
            {
                Fullname    = "Jose Goku da Silva",
                Birthdate   = "1988-12-30",
                TaxDocument = taxDocumentRequest,
                Phone       = phoneRequest,
            };

            Moip.Models.CreditCardRequest creditCardRequest = new Moip.Models.CreditCardRequest
            {
                Number          = "5555666677778884",
                ExpirationMonth = "02",
                ExpirationYear  = "20",
                Cvc             = "123",
                Holder          = holderRequest
            };

            Moip.Models.RefundingInstrumentCCRequest refundingInstrumentRequest = new Moip.Models.RefundingInstrumentCCRequest
            {
                Method     = "CREDIT_CARD",
                CreditCard = creditCardRequest
            };

            Moip.Models.RefundCCRequest refundRequest = new Moip.Models.RefundCCRequest
            {
                RefundingInstrument = refundingInstrumentRequest,
                Amount = 100
            };

            return(refundRequest);
        }
        public static Moip.Models.CustomerRequest CreateCustomerWithFundingInstrumentRequest(string date)
        {
            Moip.Models.ShippingAddress shippingAddressRequest = new Moip.Models.ShippingAddress
            {
                Street       = "Rua test",
                StreetNumber = "123",
                Complement   = "Ap test",
                District     = "Bairro test",
                City         = "TestCity",
                State        = "SP",
                Country      = "BRA",
                ZipCode      = "01234000"
            };

            Moip.Models.TaxDocument taxDocumentRequest = new Moip.Models.TaxDocument
            {
                Type   = "CPF",
                Number = "33333333333"
            };

            Moip.Models.Phone phoneRequest = new Moip.Models.Phone
            {
                CountryCode = "55",
                AreaCode    = "11",
                Number      = "66778899"
            };

            Moip.Models.HolderRequest holderRequest = new Moip.Models.HolderRequest
            {
                Fullname    = "Jose Goku da Silva",
                Birthdate   = "1988-12-30",
                TaxDocument = taxDocumentRequest,
                Phone       = phoneRequest
            };

            Moip.Models.CreditCardRequest creditCardRequest = new Moip.Models.CreditCardRequest
            {
                ExpirationMonth = "02",
                ExpirationYear  = "20",
                Number          = "5555666677778884",
                Cvc             = "123",
                Holder          = holderRequest
            };

            Moip.Models.FundingInstrumentRequest fundingInstrumentRequest = new Moip.Models.FundingInstrumentRequest
            {
                Method     = "CREDIT_CARD",
                CreditCard = creditCardRequest
            };

            Moip.Models.CustomerRequest customerRequest = new Moip.Models.CustomerRequest
            {
                Fullname          = "Fulano de Tal",
                OwnId             = "OFulanoDeTal" + date,
                BirthDate         = "1990-01-01",
                Email             = "*****@*****.**",
                Phone             = phoneRequest,
                ShippingAddress   = shippingAddressRequest,
                TaxDocument       = taxDocumentRequest,
                FundingInstrument = fundingInstrumentRequest
            };

            return(customerRequest);
        }