@@ 125-134 (lines=10) @@ | ||
122 | * |
|
123 | * @throws Exception |
|
124 | */ |
|
125 | public function getBulkJobs(int $limit = 500) |
|
126 | { |
|
127 | Assert::greaterThan($limit, 0); |
|
128 | ||
129 | $response = $this->httpGet('/v4/address/validate/bulk', [ |
|
130 | 'limit' => $limit, |
|
131 | ]); |
|
132 | ||
133 | return $this->hydrateResponse($response, GetBulkJobsResponse::class); |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * @param int $limit Previews Limit |
|
@@ 143-152 (lines=10) @@ | ||
140 | * |
|
141 | * @throws Exception |
|
142 | */ |
|
143 | public function getBulkPreviews(int $limit = 500) |
|
144 | { |
|
145 | Assert::greaterThan($limit, 0); |
|
146 | ||
147 | $response = $this->httpGet('/v4/address/validate/preview', [ |
|
148 | 'limit' => $limit, |
|
149 | ]); |
|
150 | ||
151 | return $this->hydrateResponse($response, GetBulkPreviewsResponse::class); |
|
152 | } |
|
153 | ||
154 | /** |
|
155 | * @param string $previewId ID given when the list created |