@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | /** |
419 | 419 | * Unique identifier of the application that will be carried out the request. |
420 | 420 | * |
421 | - * @return mixed |
|
421 | + * @return string |
|
422 | 422 | */ |
423 | 423 | public function getClientId() |
424 | 424 | { |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | /** |
443 | 443 | * Client Redirect URI. |
444 | 444 | * |
445 | - * @return mixed |
|
445 | + * @return string |
|
446 | 446 | */ |
447 | 447 | public function getRedirectUri() |
448 | 448 | { |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | } |
525 | 525 | |
526 | 526 | /** |
527 | - * @return mixed |
|
527 | + * @return string |
|
528 | 528 | */ |
529 | 529 | public function getClientSecret() |
530 | 530 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | /** |
61 | 61 | * Create a new aurhentication with the endpoint. |
62 | 62 | * |
63 | - * @param \Moip\Auth\MoipAuthentication $moipAuthentication |
|
63 | + * @param Authentication $moipAuthentication |
|
64 | 64 | * @param string $endpoint |
65 | 65 | */ |
66 | 66 | public function __construct(Authentication $moipAuthentication, $endpoint = self::ENDPOINT_PRODUCTION) |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | /** |
356 | 356 | * Set birth date from account. |
357 | 357 | * |
358 | - * @param \DateTime|string $birthDate Date of birth of the credit card holder. |
|
358 | + * @param string $birthDate Date of birth of the credit card holder. |
|
359 | 359 | * |
360 | 360 | * @return \Moip\Resource\Account |
361 | 361 | */ |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | * |
412 | 412 | * @param string $number Número do documento. |
413 | 413 | * @param string $issuer Emissor do documento. |
414 | - * @param $issueDate |
|
414 | + * @param string $issueDate |
|
415 | 415 | * @param string $type Tipo do documento. Valores possíveis: RG. |
416 | 416 | * |
417 | 417 | * @return Account |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | /** |
534 | 534 | * Set company opening date. |
535 | 535 | * |
536 | - * @param \DateTime|string $openingDate . |
|
536 | + * @param string $openingDate . |
|
537 | 537 | * |
538 | 538 | * @return $this |
539 | 539 | */ |
@@ -566,8 +566,9 @@ discard block |
||
566 | 566 | /** |
567 | 567 | * Set company tax document. |
568 | 568 | * |
569 | - * @param string $documentNumber . |
|
570 | 569 | * |
570 | + * @param string $cnae |
|
571 | + * @param string $description |
|
571 | 572 | * @return $this |
572 | 573 | */ |
573 | 574 | public function setCompanyMainActivity($cnae, $description) |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | /** |
447 | 447 | * Create a new Orders list instance. |
448 | 448 | * |
449 | - * @return \Moip\Resource\OrdersList |
|
449 | + * @return stdClass |
|
450 | 450 | */ |
451 | 451 | public function getList(Pagination $pagination = null, Filters $filters = null, $qParam = '') |
452 | 452 | { |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | /** |
485 | 485 | * Set additional value to the item will be added to the value of the items. |
486 | 486 | * |
487 | - * @param int|float $value additional value to the item. |
|
487 | + * @param integer $value additional value to the item. |
|
488 | 488 | * |
489 | 489 | * @return $this |
490 | 490 | */ |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | /** |
619 | 619 | * Set installment settings for checkout preferences. |
620 | 620 | * |
621 | - * @param array $quantity |
|
621 | + * @param integer[] $quantity |
|
622 | 622 | * @param int $discountValue |
623 | 623 | * @param int $additionalValue |
624 | 624 | * |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * Creates a account. |
258 | 258 | * |
259 | - * @return Account |
|
259 | + * @return \stdClass |
|
260 | 260 | */ |
261 | 261 | public function createAccount() |
262 | 262 | { |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | /** |
305 | 305 | * Creates a multiorder. |
306 | 306 | * |
307 | - * @return Multiorders |
|
307 | + * @return \Moip\Resource\Multiorders |
|
308 | 308 | */ |
309 | 309 | public function createMultiorder() |
310 | 310 | { |
@@ -56,9 +56,9 @@ |
||
56 | 56 | 'Bairro', 'Sao Paulo', 'SP', |
57 | 57 | '01234567', 8) |
58 | 58 | ->addAddress('SHIPPING', |
59 | - 'Rua de teste do SHIPPING', 123, |
|
60 | - 'Bairro do SHIPPING', 'Sao Paulo', 'SP', |
|
61 | - '01234567', 8); |
|
59 | + 'Rua de teste do SHIPPING', 123, |
|
60 | + 'Bairro do SHIPPING', 'Sao Paulo', 'SP', |
|
61 | + '01234567', 8); |
|
62 | 62 | |
63 | 63 | // Creating an order and splitting payment using 'addReceiver' method |
64 | 64 | $order = $moipMerchant->orders()->setOwnId(uniqid()) |
@@ -26,9 +26,9 @@ |
||
26 | 26 | 'Bairro', 'Sao Paulo', 'SP', |
27 | 27 | '01234567', 8) |
28 | 28 | ->addAddress('SHIPPING', |
29 | - 'Rua de teste do SHIPPING', 123, |
|
30 | - 'Bairro do SHIPPING', 'Sao Paulo', 'SP', |
|
31 | - '01234567', 8); |
|
29 | + 'Rua de teste do SHIPPING', 123, |
|
30 | + 'Bairro do SHIPPING', 'Sao Paulo', 'SP', |
|
31 | + '01234567', 8); |
|
32 | 32 | |
33 | 33 | // Creating an multiorder and setting receiver for each order with `addReceiver` method |
34 | 34 | $order = $moip->orders()->setOwnId(uniqid()) |
@@ -76,7 +76,7 @@ |
||
76 | 76 | /** |
77 | 77 | * Create a new Entries List instance. |
78 | 78 | * |
79 | - * @return \Moip\Resource\EntriesList |
|
79 | + * @return stdClass |
|
80 | 80 | */ |
81 | 81 | public function getList() |
82 | 82 | { |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
102 | - * @param $key |
|
103 | - * @param $fmt |
|
102 | + * @param string $key |
|
103 | + * @param string $fmt |
|
104 | 104 | * @param stdClass|null $data |
105 | 105 | * |
106 | - * @return bool|\DateTime|null |
|
106 | + * @return \DateTime|null |
|
107 | 107 | */ |
108 | 108 | protected function getIfSetDateFmt($key, $fmt, stdClass $data = null) |
109 | 109 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Generate URL to request. |
165 | 165 | * |
166 | - * @param $action |
|
166 | + * @param string $action |
|
167 | 167 | * @param $id |
168 | 168 | * |
169 | 169 | * @return string |
@@ -223,7 +223,6 @@ discard block |
||
223 | 223 | * @param string $method http method |
224 | 224 | * @param mixed|null $payload request body |
225 | 225 | * @param array $headers request headers |
226 | - * @param string $accept |
|
227 | 226 | * |
228 | 227 | * @throws Exceptions\ValidationException if the API returns a 4xx http status code. Usually means invalid data was sent. |
229 | 228 | * @throws Exceptions\UnautorizedException if the API returns a 401 http status code. Check API token and key. |
@@ -327,9 +326,9 @@ discard block |
||
327 | 326 | /** |
328 | 327 | * Delete a new item in Moip. |
329 | 328 | * |
330 | - * @param $path |
|
329 | + * @param string $path |
|
331 | 330 | * |
332 | - * @return mixed |
|
331 | + * @return stdClass |
|
333 | 332 | */ |
334 | 333 | public function deleteByPath($path) |
335 | 334 | { |