88use Bavix \Wallet \Exceptions \InsufficientFunds ;
99use Bavix \Wallet \Exceptions \ProductEnded ;
1010use Bavix \Wallet \Internal \Exceptions \ExceptionInterface ;
11+ use Bavix \Wallet \Internal \Exceptions \LockProviderNotFoundException ;
1112use Bavix \Wallet \Internal \Exceptions \ModelNotFoundException ;
13+ use Bavix \Wallet \Internal \Exceptions \RecordNotFoundException ;
1214use Bavix \Wallet \Internal \Exceptions \TransactionFailedException ;
1315use Bavix \Wallet \Models \Transfer ;
1416use Illuminate \Database \RecordsNotFoundException ;
@@ -19,6 +21,8 @@ interface Customer extends Wallet
1921 * @throws ProductEnded
2022 * @throws BalanceIsEmpty
2123 * @throws InsufficientFunds
24+ * @throws LockProviderNotFoundException
25+ * @throws RecordNotFoundException
2226 * @throws RecordsNotFoundException
2327 * @throws TransactionFailedException
2428 * @throws ExceptionInterface
@@ -31,6 +35,8 @@ public function safePay(Product $product, bool $force = false): ?Transfer;
3135 * @throws ProductEnded
3236 * @throws BalanceIsEmpty
3337 * @throws InsufficientFunds
38+ * @throws LockProviderNotFoundException
39+ * @throws RecordNotFoundException
3440 * @throws RecordsNotFoundException
3541 * @throws TransactionFailedException
3642 * @throws ExceptionInterface
@@ -39,6 +45,8 @@ public function pay(Product $product, bool $force = false): Transfer;
3945
4046 /**
4147 * @throws ProductEnded
48+ * @throws LockProviderNotFoundException
49+ * @throws RecordNotFoundException
4250 * @throws RecordsNotFoundException
4351 * @throws TransactionFailedException
4452 * @throws ExceptionInterface
@@ -50,6 +58,8 @@ public function safeRefund(Product $product, bool $force = false, bool $gifts =
5058 /**
5159 * @throws BalanceIsEmpty
5260 * @throws InsufficientFunds
61+ * @throws LockProviderNotFoundException
62+ * @throws RecordNotFoundException
5363 * @throws RecordsNotFoundException
5464 * @throws TransactionFailedException
5565 * @throws ModelNotFoundException
@@ -58,6 +68,8 @@ public function safeRefund(Product $product, bool $force = false, bool $gifts =
5868 public function refund (Product $ product , bool $ force = false , bool $ gifts = false ): bool ;
5969
6070 /**
71+ * @throws LockProviderNotFoundException
72+ * @throws RecordNotFoundException
6173 * @throws RecordsNotFoundException
6274 * @throws TransactionFailedException
6375 * @throws ModelNotFoundException
@@ -70,6 +82,8 @@ public function safeRefundGift(Product $product, bool $force = false): bool;
7082 /**
7183 * @throws BalanceIsEmpty
7284 * @throws InsufficientFunds
85+ * @throws LockProviderNotFoundException
86+ * @throws RecordNotFoundException
7387 * @throws RecordsNotFoundException
7488 * @throws TransactionFailedException
7589 * @throws ModelNotFoundException
@@ -78,6 +92,8 @@ public function safeRefundGift(Product $product, bool $force = false): bool;
7892 public function refundGift (Product $ product , bool $ force = false ): bool ;
7993
8094 /**
95+ * @throws LockProviderNotFoundException
96+ * @throws RecordNotFoundException
8197 * @throws RecordsNotFoundException
8298 * @throws TransactionFailedException
8399 * @throws ModelNotFoundException
@@ -89,6 +105,8 @@ public function forceRefundGift(Product $product): bool;
89105 * @throws ProductEnded
90106 * @throws BalanceIsEmpty
91107 * @throws InsufficientFunds
108+ * @throws LockProviderNotFoundException
109+ * @throws RecordNotFoundException
92110 * @throws RecordsNotFoundException
93111 * @throws TransactionFailedException
94112 * @throws ExceptionInterface
@@ -104,6 +122,8 @@ public function safePayCart(CartInterface $cart, bool $force = false): array;
104122 * @throws ProductEnded
105123 * @throws BalanceIsEmpty
106124 * @throws InsufficientFunds
125+ * @throws LockProviderNotFoundException
126+ * @throws RecordNotFoundException
107127 * @throws RecordsNotFoundException
108128 * @throws TransactionFailedException
109129 * @throws ExceptionInterface
@@ -114,6 +134,8 @@ public function payCart(CartInterface $cart, bool $force = false): array;
114134
115135 /**
116136 * @throws ProductEnded
137+ * @throws LockProviderNotFoundException
138+ * @throws RecordNotFoundException
117139 * @throws RecordsNotFoundException
118140 * @throws TransactionFailedException
119141 * @throws ExceptionInterface
@@ -127,6 +149,8 @@ public function safeRefundCart(CartInterface $cart, bool $force = false, bool $g
127149 /**
128150 * @throws BalanceIsEmpty
129151 * @throws InsufficientFunds
152+ * @throws LockProviderNotFoundException
153+ * @throws RecordNotFoundException
130154 * @throws RecordsNotFoundException
131155 * @throws TransactionFailedException
132156 * @throws ModelNotFoundException
@@ -135,6 +159,8 @@ public function safeRefundCart(CartInterface $cart, bool $force = false, bool $g
135159 public function refundCart (CartInterface $ cart , bool $ force = false , bool $ gifts = false ): bool ;
136160
137161 /**
162+ * @throws LockProviderNotFoundException
163+ * @throws RecordNotFoundException
138164 * @throws RecordsNotFoundException
139165 * @throws TransactionFailedException
140166 * @throws ModelNotFoundException
@@ -147,6 +173,8 @@ public function safeRefundGiftCart(CartInterface $cart, bool $force = false): bo
147173 /**
148174 * @throws BalanceIsEmpty
149175 * @throws InsufficientFunds
176+ * @throws LockProviderNotFoundException
177+ * @throws RecordNotFoundException
150178 * @throws RecordsNotFoundException
151179 * @throws TransactionFailedException
152180 * @throws ModelNotFoundException
@@ -155,6 +183,8 @@ public function safeRefundGiftCart(CartInterface $cart, bool $force = false): bo
155183 public function refundGiftCart (CartInterface $ cart , bool $ force = false ): bool ;
156184
157185 /**
186+ * @throws LockProviderNotFoundException
187+ * @throws RecordNotFoundException
158188 * @throws RecordsNotFoundException
159189 * @throws TransactionFailedException
160190 * @throws ModelNotFoundException
0 commit comments