GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Checkout::getUserHistory()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace ProtoneMedia\LaravelPaddle\Api;
4
5
class Checkout
6
{
7
    /**
8
     * https://developer.paddle.com/api-reference/checkout-api/order-information/getorder
9
     */
10
    public function getOrderDetails(array $data = [])
11
    {
12
        return new CheckoutRequest('/1.0/order', $data, [], Request::METHOD_GET);
13
    }
14
15
    /**
16
     * https://developer.paddle.com/api-reference/checkout-api/user-history/getuserhistory
17
     */
18
    public function getUserHistory(array $data = [])
19
    {
20
        return new CheckoutRequest('/2.0/user/history', $data, [
21
            'email'      => 'required|email',
22
            'product_id' => 'numeric',
23
        ], Request::METHOD_GET);
24
    }
25
26
    /**
27
     * https://developer.paddle.com/api-reference/checkout-api/prices/getprices
28
     */
29
    public function getPrices(array $data = [])
30
    {
31
        return new CheckoutRequest('/2.0/prices', $data, [
32
            'product_ids' => 'required',
33
        ], Request::METHOD_GET);
34
    }
35
}
36