Passed
Pull Request — v3.0 (#594)
by
unknown
02:02
created

MerchantIntegrations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 2
b 0
f 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A showSellerStatus() 0 7 1
1
<?php
2
3
namespace Srmklive\PayPal\Traits\PayPalAPI;
4
5
trait MerchantIntegrations
6
{
7
    /**
8
     * Shows seller status.
9
     *
10
     * @param string $partner_id
11
     * @param string $merchant_id
12
     *
13
     * @return mixed
14
     */
15
    public function showSellerStatus(string $partner_id, string $merchant_id)
16
    {
17
        $this->apiEndPoint = "v1/customer/partners/{$partner_id}/merchant-integrations/{$merchant_id}";
18
19
        $this->verb = 'get';
20
21
        return $this->doPayPalRequest();
22
    }
23
}
24