1 | <?php |
||
5 | class TokenRequest |
||
6 | { |
||
7 | /** |
||
8 | * @var array |
||
9 | */ |
||
10 | protected $data = array(); |
||
11 | |||
12 | /** |
||
13 | * @param int $projectId |
||
14 | * @param string $userId |
||
15 | */ |
||
16 | public function __construct($projectId, $userId) |
||
21 | |||
22 | /** |
||
23 | * @param string $email |
||
24 | * |
||
25 | * @return self |
||
26 | */ |
||
27 | public function setUserEmail($email) |
||
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * |
||
37 | * @return self |
||
38 | */ |
||
39 | public function setUserName($name) |
||
45 | |||
46 | /** |
||
47 | * @param string $currencyIsoCode |
||
48 | * |
||
49 | * @return self |
||
50 | */ |
||
51 | public function setCurrency($currencyIsoCode) |
||
57 | |||
58 | /** |
||
59 | * @param array $customParameters |
||
60 | * |
||
61 | * @return self |
||
62 | */ |
||
63 | public function setCustomParameters(array $customParameters) |
||
69 | |||
70 | /** |
||
71 | * @param string $externalId |
||
72 | * |
||
73 | * @return self |
||
74 | */ |
||
75 | public function setExternalPaymentId($externalId) |
||
81 | |||
82 | /** |
||
83 | * @param bool $isSandbox |
||
84 | * |
||
85 | * @return self |
||
86 | */ |
||
87 | public function setSandboxMode($isSandbox = true) |
||
97 | |||
98 | /** |
||
99 | * @param float $amount |
||
100 | * @param string $currency |
||
101 | * @return $this |
||
102 | */ |
||
103 | public function setPurchase($amount, $currency) |
||
110 | |||
111 | /** |
||
112 | * @return array |
||
113 | */ |
||
114 | public function toArray() |
||
118 | } |
||
119 |