// This is Generated Source. import ParsePhoneNumberRequest from "../definitions/ParsePhoneNumberRequest"; import ParsePhoneNumberResponse from "../definitions/ParsePhoneNumberResponse"; import PathSegment from "../PathSegment"; export default class Parse extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("parse", id, prv, service); } /** *

Since 1.0.13 (Release 6.5)

Returns one or more parsed and/or formatted phone numbers that are passed as a string.

Usage Plan Group

Light

*/ post(body: ParsePhoneNumberRequest, query?: PostQuery): Promise { return this._send({ body: body, ignoreId: true, method: "post", query: query, }).then((res) => { return res.json(); }); } /** *

Since 1.0.13 (Release 6.5)

Returns one or more parsed and/or formatted phone numbers that are passed as a string.

Usage Plan Group

Light

* return {ApiResponse} */ postRaw(body: ParsePhoneNumberRequest, query?: PostQuery): Promise { return this._send({ body: body, ignoreId: true, method: "post", query: query, }); } } export interface PostQuery { /** * Internal identifier of a home country. The default value is ISO code (ISO 3166) of the user's home country or brand country, if the user is undefined */ homeCountry?: string; /** * The default value is 'False'. If 'True', the numbers that are closer to the home country are given higher priority */ nationalAsPriority?: boolean; }