| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait ManagesShopifyPayments |
||
| 13 | { |
||
| 14 | public function getShopifyPaymentsBalance(): BalanceResource |
||
| 15 | { |
||
| 16 | $response = $this->get('shopify_payments/balance.json'); |
||
|
|
|||
| 17 | |||
| 18 | return new BalanceResource($response['balance'], $this); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getShopifyPaymentsDisputes(array $params = []): Collection |
||
| 22 | { |
||
| 23 | return $this->getResources('disputes', $params, ['shopify_payments']); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getShopifyPaymentsDispute($disputeId): DisputeResource |
||
| 27 | { |
||
| 28 | return $this->getResource('disputes', $disputeId, ['shopify_payments']); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getShopifyPaymentsPayouts(array $params = []): Collection |
||
| 32 | { |
||
| 33 | return $this->getResources('payouts', $params, ['shopify_payments']); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getShopifyPaymentsPayout($payoutId): PayoutResource |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getShopifyPaymentsBalanceTransactions(array $params = []): Collection |
||
| 42 | { |
||
| 44 | } |
||
| 45 | } |
||
| 46 |