import { inspect, InspectOptions } from "util"; import V3 from "../V3"; import { ApiResponse } from "../../../base/ApiResponse"; /** * Options to pass to update a IsoCountryCodeInstance */ export interface IsoCountryCodeContextUpdateOptions { /** The Processing Region used for this short code for messaging */ messagingRegion?: string; /** A human readable description of this resource, up to 64 characters. */ friendlyName?: string; } export interface IsoCountryCodeContext { /** * Fetch a IsoCountryCodeInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance */ fetch(callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; /** * Fetch a IsoCountryCodeInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance with HTTP metadata */ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Update a IsoCountryCodeInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance */ update(callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; /** * Update a IsoCountryCodeInstance * * @param params - Parameter for request * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance */ update(params: IsoCountryCodeContextUpdateOptions, callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; /** * Update a IsoCountryCodeInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance with HTTP metadata */ updateWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Update a IsoCountryCodeInstance and return HTTP info * * @param params - Parameter for request * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance with HTTP metadata */ updateWithHttpInfo(params: IsoCountryCodeContextUpdateOptions, callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export interface IsoCountryCodeContextSolution { isoCountryCode: string; shortCode: string; } export declare class IsoCountryCodeContextImpl implements IsoCountryCodeContext { protected _version: V3; protected _solution: IsoCountryCodeContextSolution; protected _uri: string; constructor(_version: V3, isoCountryCode: string, shortCode: string); fetch(callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; update(params?: IsoCountryCodeContextUpdateOptions | ((error: Error | null, item?: IsoCountryCodeInstance) => any), callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; updateWithHttpInfo(params?: IsoCountryCodeContextUpdateOptions | ((error: Error | null, item?: ApiResponse) => any), callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): IsoCountryCodeContextSolution; [inspect.custom](_depth: any, options: InspectOptions): string; } interface IsoCountryCodeResource { isoCountryCode: string; shortCode: string; url: string; accountSid: string; friendlyName: string; messagingRegion: string; dateCreated: Date; dateUpdated: Date; } export declare class IsoCountryCodeInstance { protected _version: V3; protected _solution: IsoCountryCodeContextSolution; protected _context?: IsoCountryCodeContext; constructor(_version: V3, _payload: IsoCountryCodeResource, isoCountryCode?: string, shortCode?: string); /** * The ISO country code of the short code */ isoCountryCode: string; /** * The short code */ shortCode: string; /** * The absolute URL of the resource. */ url: string; /** * The unique SID identifier of the Account. */ accountSid: string; /** * A human readable description of the Inbound Processing Region assignment for this short code, up to 64 characters. */ friendlyName: string; /** * The Inbound Processing Region used for this short code for messaging. */ messagingRegion: string; /** * The date that this short code was assigned an Inbound Processing Region, given in ISO 8601 format. */ dateCreated: Date; /** * The date that the Inbound Processing Region was updated for this short code, given in ISO 8601 format. */ dateUpdated: Date; private get _proxy(); /** * Fetch a IsoCountryCodeInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance */ fetch(callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; /** * Fetch a IsoCountryCodeInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance with HTTP metadata */ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Update a IsoCountryCodeInstance * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance */ update(callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; /** * Update a IsoCountryCodeInstance * * @param params - Parameter for request * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance */ update(params: IsoCountryCodeContextUpdateOptions, callback?: (error: Error | null, item?: IsoCountryCodeInstance) => any): Promise; /** * Update a IsoCountryCodeInstance and return HTTP info * * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance with HTTP metadata */ updateWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Update a IsoCountryCodeInstance and return HTTP info * * @param params - Parameter for request * @param callback - Callback to handle processed record * * @returns Resolves to processed IsoCountryCodeInstance with HTTP metadata */ updateWithHttpInfo(params: IsoCountryCodeContextUpdateOptions, callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { isoCountryCode: string; shortCode: string; url: string; accountSid: string; friendlyName: string; messagingRegion: string; dateCreated: Date; dateUpdated: Date; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export interface IsoCountryCodeSolution { } export interface IsoCountryCodeListInstance { _version: V3; _solution: IsoCountryCodeSolution; _uri: string; (isoCountryCode: string, shortCode: string): IsoCountryCodeContext; get(isoCountryCode: string, shortCode: string): IsoCountryCodeContext; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export declare function IsoCountryCodeListInstance(version: V3): IsoCountryCodeListInstance; export {};