postAtClient = $postAtClient; } /** * Call the API endpoint. * * @param ParameterInterface $countries * * @return AllowedServicesResult * @throws PostAtException */ public function call(ParameterInterface $countries) { $this->countries = $countries->getData(); $response = $this->postAtClient->call($this); return new AllowedServicesResult($response); } /** * Get content for the SOAP body element. * * @return array[] */ public function getBody(): array { return [ 'countryList' => $this->countries, ]; } }