@@ 31-41 (lines=11) @@ | ||
28 | $this->assertEquals('PARTIAL', $refund->getType()); |
|
29 | } |
|
30 | ||
31 | public function testRefundOrderBankAccountFull() |
|
32 | { |
|
33 | $order = $this->paymentBoleto(false); |
|
34 | ||
35 | $this->mockHttpSession($this->body_order_refund_full_bankaccount); |
|
36 | $refund = $order->refunds() |
|
37 | ->bankAccountFull('CHECKING', '001', '1584', '9', '00210169', '6', $order->getCustomer()); |
|
38 | ||
39 | $this->assertNotEmpty($refund->getId()); |
|
40 | $this->assertEquals('FULL', $refund->getType()); |
|
41 | } |
|
42 | ||
43 | public function testRefundOrderBankAccountPartial() |
|
44 | { |
|
@@ 43-53 (lines=11) @@ | ||
40 | $this->assertEquals('FULL', $refund->getType()); |
|
41 | } |
|
42 | ||
43 | public function testRefundOrderBankAccountPartial() |
|
44 | { |
|
45 | $order = $this->paymentBoleto(false); |
|
46 | ||
47 | $this->mockHttpSession($this->body_payment_refund_partial_bankaccount); |
|
48 | $refund = $order->refunds() |
|
49 | ->bankAccountPartial(20000, 'SAVING', '001', '1584', '9', '00210169', '6', $order->getCustomer()); |
|
50 | ||
51 | $this->assertNotEmpty($refund->getId()); |
|
52 | $this->assertEquals('PARTIAL', $refund->getType()); |
|
53 | } |
|
54 | ||
55 | public function testRefundPaymentCreditCardFull() |
|
56 | { |
|
@@ 77-87 (lines=11) @@ | ||
74 | $this->assertEquals('PARTIAL', $refund->getType()); |
|
75 | } |
|
76 | ||
77 | public function testRefundPaymentBankAccountFull() |
|
78 | { |
|
79 | $payment = $this->paymentBoleto(); |
|
80 | ||
81 | $this->mockHttpSession($this->body_payment_refund_full_bankaccount); |
|
82 | $refund = $payment->refunds() |
|
83 | ->bankAccountFull('CHECKING', '001', '1584', '9', '00210169', '6', $payment->getOrder()->getCustomer()); |
|
84 | ||
85 | $this->assertNotEmpty($refund->getId()); |
|
86 | $this->assertEquals('FULL', $refund->getType()); |
|
87 | } |
|
88 | ||
89 | public function testRefundPaymentBankAccountPartial() |
|
90 | { |
|
@@ 89-99 (lines=11) @@ | ||
86 | $this->assertEquals('FULL', $refund->getType()); |
|
87 | } |
|
88 | ||
89 | public function testRefundPaymentBankAccountPartial() |
|
90 | { |
|
91 | $payment = $this->paymentBoleto(); |
|
92 | ||
93 | $this->mockHttpSession($this->body_payment_refund_partial_bankaccount); |
|
94 | $refund = $payment->refunds() |
|
95 | ->bankAccountPartial(20000, 'SAVING', '001', '1584', '9', '00210169', '6', $payment->getOrder()->getCustomer()); |
|
96 | ||
97 | $this->assertNotEmpty($refund->getId()); |
|
98 | $this->assertEquals('PARTIAL', $refund->getType()); |
|
99 | } |
|
100 | ||
101 | public function testRefundCCFullWithResourceId() |
|
102 | { |