options['fields'] = $fields; $this->options['countryCode'] = $countryCode; $this->options['firstName'] = $firstName; $this->options['lastName'] = $lastName; $this->options['addressLine1'] = $addressLine1; $this->options['addressLine2'] = $addressLine2; $this->options['city'] = $city; $this->options['state'] = $state; $this->options['postalCode'] = $postalCode; $this->options['addressCountryCode'] = $addressCountryCode; $this->options['nationalId'] = $nationalId; $this->options['dateOfBirth'] = $dateOfBirth; } /** * A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match. * * @param string $fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match. * @return $this Fluent Builder */ public function setFields(string $fields): self { $this->options['fields'] = $fields; return $this; } /** * The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. * * @param string $countryCode The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. * @return $this Fluent Builder */ public function setCountryCode(string $countryCode): self { $this->options['countryCode'] = $countryCode; return $this; } /** * User’s first name. This query parameter is only used (optionally) for identity_match package requests. * * @param string $firstName User’s first name. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setFirstName(string $firstName): self { $this->options['firstName'] = $firstName; return $this; } /** * User’s last name. This query parameter is only used (optionally) for identity_match package requests. * * @param string $lastName User’s last name. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setLastName(string $lastName): self { $this->options['lastName'] = $lastName; return $this; } /** * User’s first address line. This query parameter is only used (optionally) for identity_match package requests. * * @param string $addressLine1 User’s first address line. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setAddressLine1(string $addressLine1): self { $this->options['addressLine1'] = $addressLine1; return $this; } /** * User’s second address line. This query parameter is only used (optionally) for identity_match package requests. * * @param string $addressLine2 User’s second address line. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setAddressLine2(string $addressLine2): self { $this->options['addressLine2'] = $addressLine2; return $this; } /** * User’s city. This query parameter is only used (optionally) for identity_match package requests. * * @param string $city User’s city. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setCity(string $city): self { $this->options['city'] = $city; return $this; } /** * User’s country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests. * * @param string $state User’s country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setState(string $state): self { $this->options['state'] = $state; return $this; } /** * User’s postal zip code. This query parameter is only used (optionally) for identity_match package requests. * * @param string $postalCode User’s postal zip code. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setPostalCode(string $postalCode): self { $this->options['postalCode'] = $postalCode; return $this; } /** * User’s country, up to two characters. This query parameter is only used (optionally) for identity_match package requests. * * @param string $addressCountryCode User’s country, up to two characters. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setAddressCountryCode(string $addressCountryCode): self { $this->options['addressCountryCode'] = $addressCountryCode; return $this; } /** * User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests. * * @param string $nationalId User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setNationalId(string $nationalId): self { $this->options['nationalId'] = $nationalId; return $this; } /** * User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests. * * @param string $dateOfBirth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests. * @return $this Fluent Builder */ public function setDateOfBirth(string $dateOfBirth): self { $this->options['dateOfBirth'] = $dateOfBirth; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.Lookups.V2.FetchPhoneNumberOptions ' . $options . ']'; } }