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

MerchantIntegrations::showSellerStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 7
rs 10
cc 1
nc 1
nop 2
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