Exemplo n.º 1
0
        public void MockContextPagamentoPorBoleto()
        {
            var billing_addressMock = new Billing_address();

            billing_addressMock.street      = "Av. Brasil";
            billing_addressMock.number      = "1000";
            billing_addressMock.district    = "São Geraldo";
            billing_addressMock.city        = "Porto Alegre";
            billing_addressMock.state       = "RS";
            billing_addressMock.postal_code = "90230060";

            var orderMock = new Order();

            orderMock.order_id = "12345";
            var boletoMock   = new Boleto();
            var customerMock = new Customer();

            customerMock.name            = "JOAO DA SILVA";
            customerMock.document_type   = "CPF";
            customerMock.document_number = "82916868070";
            customerMock.billing_address = billing_addressMock;

            this.seller_id = "d0e5e129-8dc9-4633-b516-1100e2db3749";
            this.amount    = "1000";
            this.order     = orderMock;
            this.boleto    = boletoMock;
            this.customer  = customerMock;
        }
Exemplo n.º 2
0
        public void MockContextPagamentoPorBoletoCompleto()
        {
            var billing_addressMock = new Billing_address();

            billing_addressMock.street      = "Av. Brasil";
            billing_addressMock.number      = "1000";
            billing_addressMock.complement  = "Sala 1";
            billing_addressMock.district    = "São Geraldo";
            billing_addressMock.city        = "Porto Alegre";
            billing_addressMock.state       = "RS";
            billing_addressMock.postal_code = "90230060";

            var orderMock = new Order();

            orderMock.order_id     = "12345";
            orderMock.sales_tax    = 0;
            orderMock.product_type = "service";
            var boletoMock = new Boleto();

            boletoMock.our_number      = "000001946598";
            boletoMock.document_number = "170500000019763";
            boletoMock.expiration_date = "01/01/2077";
            boletoMock.instructions    = "Não receber após o vencimento";
            boletoMock.provider        = "santander";
            var customerMock = new Customer();

            customerMock.name            = "JOAO DA SILVA";
            customerMock.document_type   = "CPF";
            customerMock.document_number = "82916868070";
            customerMock.first_name      = "João";
            customerMock.billing_address = billing_addressMock;

            this.seller_id = "d0e5e129-8dc9-4633-b516-1100e2db3749";
            this.amount    = "1000";
            this.currency  = "BRL";
            this.order     = orderMock;
            this.boleto    = boletoMock;
            this.customer  = customerMock;
        }