Module Values.SearchAvailablePhoneNumbersRequestSource

Searches for phone numbers that can be ordered. For US numbers, provide at least one of the following search filters: AreaCode, City, State, or TollFreePrefix. If you provide City, you must also provide State. Numbers outside the US only support the PhoneNumberType filter, which you must use.

Sourcetype nonrec t = {
  1. areaCode : String_.t option;
    (*

    The area code used to filter results. Only applies to the US.

    *)
  2. city : String_.t option;
    (*

    The city used to filter results. Only applies to the US.

    *)
  3. country : Alpha2CountryCode.t option;
    (*

    The country used to filter results. Defaults to the US Format: ISO 3166-1 alpha-2.

    *)
  4. state : String_.t option;
    (*

    The state used to filter results. Required only if you provide City. Only applies to the US.

    *)
  5. tollFreePrefix : TollFreePrefix.t option;
    (*

    The toll-free prefix that you use to filter results. Only applies to the US.

    *)
  6. phoneNumberType : PhoneNumberType.t option;
    (*

    The phone number type used to filter results. Required for non-US numbers.

    *)
  7. maxResults : PhoneNumberMaxResults.t option;
    (*

    The maximum number of results to return in a single call.

    *)
  8. nextToken : String_.t option;
    (*

    The token used to retrieve the next page of results.

    *)
}
Sourceval make : ?areaCode:??? -> ?city:??? -> ?country:??? -> ?state:??? -> ?tollFreePrefix:??? -> ?phoneNumberType:??? -> ?maxResults:??? -> ?nextToken:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of PhoneNumberMaxResults.t | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t