// This is Generated Source. import GetCountryInfoDictionaryResponse from "../definitions/GetCountryInfoDictionaryResponse"; import GetCountryListResponse from "../definitions/GetCountryListResponse"; import PathSegment from "../PathSegment"; export default class Country extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("country", id, prv, service); } /** *

Since 1.0.10 (Release 6.2)

Returns all the countries available for calling.

Usage Plan Group

Light

*/ list(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }).then((res) => { return res.json(); }); } /** *

Since 1.0.10 (Release 6.2)

Returns all the countries available for calling.

Usage Plan Group

Light

* return {ApiResponse} */ listRaw(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }); } /** *

Since 1.0.10 (Release 6.2)

Returns the information on the required country.

Usage Plan Group

Light

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

Since 1.0.10 (Release 6.2)

Returns the information on the required country.

Usage Plan Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } } export interface ListQuery { /** * Specifies whether login with the phone numbers of this country is enabled or not */ loginAllowed?: boolean; /** * Indicates whether signup/billing is allowed for a country. If not specified all countries are returned (according to other filters specified if any) */ signupAllowed?: boolean; /** * Specifies if RingCentral sells phone numbers of this country */ numberSelling?: boolean; /** * Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1' */ page?: number; /** * Indicates the page size (number of items). If not specified, the value is '100' by default */ perPage?: number; /** * Specifies if free phone line for softphone is available for a country or not */ freeSoftphoneLine?: boolean; }