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

MerchantIntegrations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 1
b 0
f 1
dl 0
loc 18
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
     *
12
     * @param string $merchant_id
13
     *
14
     * @return mixed
15
     */
16
    public function showSellerStatus(string $partner_id, string $merchant_id)
17
    {
18
        $this->apiEndPoint = "v1/customer/partners/{$partner_id}/merchant-integrations/{$merchant_id}";
19
20
        $this->verb = 'get';
21
22
        return $this->doPayPalRequest();
23
    }
24
}
25