modern-events-calendar-lite/app/api/Twilio/Rest/Lookups/V2/PhoneNumberOptions.php

274 lines
13 KiB
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Lookups
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace Twilio\Rest\Lookups\V2;
use Twilio\Options;
use Twilio\Values;
abstract class PhoneNumberOptions
{
/**
* @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.
* @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.
* @param string $firstName Users first name. This query parameter is only used (optionally) for identity_match package requests.
* @param string $lastName Users last name. This query parameter is only used (optionally) for identity_match package requests.
* @param string $addressLine1 Users first address line. This query parameter is only used (optionally) for identity_match package requests.
* @param string $addressLine2 Users second address line. This query parameter is only used (optionally) for identity_match package requests.
* @param string $city Users city. This query parameter is only used (optionally) for identity_match package requests.
* @param string $state Users country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
* @param string $postalCode Users postal zip code. This query parameter is only used (optionally) for identity_match package requests.
* @param string $addressCountryCode Users country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
* @param string $nationalId Users national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
* @param string $dateOfBirth Users date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
* @return FetchPhoneNumberOptions Options builder
*/
public static function fetch(
string $fields = Values::NONE,
string $countryCode = Values::NONE,
string $firstName = Values::NONE,
string $lastName = Values::NONE,
string $addressLine1 = Values::NONE,
string $addressLine2 = Values::NONE,
string $city = Values::NONE,
string $state = Values::NONE,
string $postalCode = Values::NONE,
string $addressCountryCode = Values::NONE,
string $nationalId = Values::NONE,
string $dateOfBirth = Values::NONE
): FetchPhoneNumberOptions
{
return new FetchPhoneNumberOptions(
$fields,
$countryCode,
$firstName,
$lastName,
$addressLine1,
$addressLine2,
$city,
$state,
$postalCode,
$addressCountryCode,
$nationalId,
$dateOfBirth
);
}
}
class FetchPhoneNumberOptions extends Options
{
/**
* @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.
* @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.
* @param string $firstName Users first name. This query parameter is only used (optionally) for identity_match package requests.
* @param string $lastName Users last name. This query parameter is only used (optionally) for identity_match package requests.
* @param string $addressLine1 Users first address line. This query parameter is only used (optionally) for identity_match package requests.
* @param string $addressLine2 Users second address line. This query parameter is only used (optionally) for identity_match package requests.
* @param string $city Users city. This query parameter is only used (optionally) for identity_match package requests.
* @param string $state Users country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
* @param string $postalCode Users postal zip code. This query parameter is only used (optionally) for identity_match package requests.
* @param string $addressCountryCode Users country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
* @param string $nationalId Users national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
* @param string $dateOfBirth Users date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
*/
public function __construct(
string $fields = Values::NONE,
string $countryCode = Values::NONE,
string $firstName = Values::NONE,
string $lastName = Values::NONE,
string $addressLine1 = Values::NONE,
string $addressLine2 = Values::NONE,
string $city = Values::NONE,
string $state = Values::NONE,
string $postalCode = Values::NONE,
string $addressCountryCode = Values::NONE,
string $nationalId = Values::NONE,
string $dateOfBirth = Values::NONE
) {
$this->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;
}
/**
* Users first name. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $firstName Users 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;
}
/**
* Users last name. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $lastName Users 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;
}
/**
* Users first address line. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $addressLine1 Users 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;
}
/**
* Users second address line. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $addressLine2 Users 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;
}
/**
* Users city. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $city Users 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;
}
/**
* Users country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $state Users 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;
}
/**
* Users postal zip code. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $postalCode Users 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;
}
/**
* Users country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $addressCountryCode Users 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;
}
/**
* Users national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $nationalId Users 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;
}
/**
* Users date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
*
* @param string $dateOfBirth Users 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 . ']';
}
}