| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait ManagesShopifyPayments |
||
| 13 | { |
||
| 14 | public function getBalance(): BalanceResource |
||
| 15 | { |
||
| 16 | $response = $this->get('shopify_payments/balance'); |
||
|
|
|||
| 17 | |||
| 18 | return new BalanceResource($response['balance'], $this); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getDisputes(array $params = []): Collection |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getDispute($disputeId): DisputeResource |
||
| 27 | { |
||
| 28 | return $this->getResource('disputes', $disputeId, ['shopify_payments']); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getPayouts(array $params = []): Collection |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getPayout($payoutId): PayoutResource |
||
| 39 | } |
||
| 40 | |||
| 42 |