Skip to content

Commit a0eb0ac

Browse files
committed
update customer
1 parent 010b39f commit a0eb0ac

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

src/Interfaces/Customer.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Bavix\Wallet\Interfaces;
44

55
use Bavix\Wallet\Models\Transfer;
6+
use Bavix\Wallet\Objects\Cart;
67

78
interface Customer extends Wallet
89
{
@@ -60,4 +61,51 @@ public function safeRefund(Product $product, bool $force = null, bool $gifts = n
6061
* @return bool
6162
*/
6263
public function forceRefund(Product $product, bool $gifts = null): bool;
64+
65+
/**
66+
* @param Cart $cart
67+
* @param bool $force
68+
* @return Transfer[]
69+
* @throws
70+
*/
71+
public function payCart(Cart $cart, bool $force = null): array;
72+
73+
/**
74+
* @param Cart $cart
75+
* @param bool $force
76+
* @return Transfer[]
77+
* @throws
78+
*/
79+
public function safePayCart(Cart $cart, bool $force = null): array;
80+
81+
/**
82+
* @param Cart $cart
83+
* @return Transfer[]
84+
* @throws
85+
*/
86+
public function forcePayCart(Cart $cart): array;
87+
88+
/**
89+
* @param Cart $cart
90+
* @param bool $force
91+
* @param bool $gifts
92+
* @return bool
93+
* @throws
94+
*/
95+
public function refundCart(Cart $cart, bool $force = null, bool $gifts = null): bool;
96+
97+
/**
98+
* @param Cart $cart
99+
* @param bool $force
100+
* @param bool $gifts
101+
* @return bool
102+
*/
103+
public function safeRefundCart(Cart $cart, bool $force = null, bool $gifts = null): bool;
104+
105+
/**
106+
* @param Cart $cart
107+
* @param bool $gifts
108+
* @return bool
109+
*/
110+
public function forceRefundCart(Cart $cart, bool $gifts = null): bool;
63111
}

0 commit comments

Comments
 (0)