| @@ 181-201 (lines=21) @@ | ||
| 178 | * @param int $pageNumber |
|
| 179 | * @return Customers |
|
| 180 | */ |
|
| 181 | public function linkedpeople(int $itemsPerPage = 50, string $pageNavigationToken = null, int $pageNumber = 1): self |
|
| 182 | { |
|
| 183 | if (null !== $itemsPerPage) { |
|
| 184 | $this->appendToQuery('itemsPerPage', $itemsPerPage); |
|
| 185 | } |
|
| 186 | ||
| 187 | if (null !== $pageNavigationToken) { |
|
| 188 | $this->appendToQuery('pageNavigationToken', $pageNavigationToken); |
|
| 189 | } |
|
| 190 | ||
| 191 | if (null !== $pageNumber) { |
|
| 192 | $this->appendToQuery('pageNumber', $pageNumber); |
|
| 193 | } |
|
| 194 | ||
| 195 | // Set HTTP params |
|
| 196 | $this->type = 'get'; |
|
| 197 | $this->endpoint = '/customers/' . $this->customer_id . '/linkedpeople?' . $this->getQuery(); |
|
| 198 | $this->response = LinkedPersonList::class; |
|
| 199 | ||
| 200 | return $this; |
|
| 201 | } |
|
| 202 | } |
|
| 203 | ||
| @@ 70-90 (lines=21) @@ | ||
| 67 | * |
|
| 68 | * @return $this |
|
| 69 | */ |
|
| 70 | public function all(int $itemsPerPage = 100, string $pageNavigationToken = null, int $pageNumber = 1): self |
|
| 71 | { |
|
| 72 | if (null !== $itemsPerPage) { |
|
| 73 | $this->appendToQuery('itemsPerPage', $itemsPerPage); |
|
| 74 | } |
|
| 75 | ||
| 76 | if (null !== $pageNavigationToken) { |
|
| 77 | $this->appendToQuery('pageNumber', $pageNumber); |
|
| 78 | } |
|
| 79 | ||
| 80 | if (null !== $pageNumber) { |
|
| 81 | $this->appendToQuery('pageNumber', $pageNumber); |
|
| 82 | } |
|
| 83 | ||
| 84 | // Set HTTP params |
|
| 85 | $this->type = 'get'; |
|
| 86 | $this->endpoint = '/subaccounts' . '?' . $this->getQuery(); |
|
| 87 | $this->response = PortalSubaccountsList::class; |
|
| 88 | ||
| 89 | return $this; |
|
| 90 | } |
|
| 91 | } |
|
| 92 | ||