twilio
Version:
A Twilio helper library
121 lines (120 loc) • 5.18 kB
TypeScript
import { inspect, InspectOptions } from "util";
import V1 from "../V1";
/**
* Describe how a user opts-in to text messages.
*/
export type ComplianceTollfreeInquiriesOptInType = "VERBAL" | "WEB_FORM" | "PAPER_FORM" | "VIA_TEXT" | "MOBILE_QR_CODE";
/**
* Options to pass to create a ComplianceTollfreeInquiriesInstance
*/
export interface ComplianceTollfreeInquiriesListInstanceCreateOptions {
/** The Tollfree phone number to be verified */
tollfreePhoneNumber: string;
/** The email address to receive the notification about the verification result. */
notificationEmail: string;
/** The Customer Profile Sid associated with the Account. */
customerProfileSid?: string;
/** The name of the business or organization using the Tollfree number. */
businessName?: string;
/** The website of the business or organization using the Tollfree number. */
businessWebsite?: string;
/** The category of the use case for the Tollfree Number. List as many are applicable.. */
useCaseCategories?: Array<string>;
/** Use this to further explain how messaging is used by the business or organization. */
useCaseSummary?: string;
/** An example of message content, i.e. a sample message. */
productionMessageSample?: string;
/** Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. */
optInImageUrls?: Array<string>;
/** */
optInType?: ComplianceTollfreeInquiriesOptInType;
/** Estimate monthly volume of messages from the Tollfree Number. */
messageVolume?: string;
/** The address of the business or organization using the Tollfree number. */
businessStreetAddress?: string;
/** The address of the business or organization using the Tollfree number. */
businessStreetAddress2?: string;
/** The city of the business or organization using the Tollfree number. */
businessCity?: string;
/** The state/province/region of the business or organization using the Tollfree number. */
businessStateProvinceRegion?: string;
/** The postal code of the business or organization using the Tollfree number. */
businessPostalCode?: string;
/** The country of the business or organization using the Tollfree number. */
businessCountry?: string;
/** Additional information to be provided for verification. */
additionalInformation?: string;
/** The first name of the contact for the business or organization using the Tollfree number. */
businessContactFirstName?: string;
/** The last name of the contact for the business or organization using the Tollfree number. */
businessContactLastName?: string;
/** The email address of the contact for the business or organization using the Tollfree number. */
businessContactEmail?: string;
/** The phone number of the contact for the business or organization using the Tollfree number. */
businessContactPhone?: string;
/** Theme id for styling the inquiry form. */
themeSetId?: string;
/** Skip the messaging use case screen of the inquiry form. */
skipMessagingUseCase?: boolean;
}
export interface ComplianceTollfreeInquiriesSolution {
}
export interface ComplianceTollfreeInquiriesListInstance {
_version: V1;
_solution: ComplianceTollfreeInquiriesSolution;
_uri: string;
/**
* Create a ComplianceTollfreeInquiriesInstance
*
* @param params - Parameter for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed ComplianceTollfreeInquiriesInstance
*/
create(params: ComplianceTollfreeInquiriesListInstanceCreateOptions, callback?: (error: Error | null, item?: ComplianceTollfreeInquiriesInstance) => any): Promise<ComplianceTollfreeInquiriesInstance>;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
[inspect.custom](_depth: any, options: InspectOptions): any;
}
export declare function ComplianceTollfreeInquiriesListInstance(version: V1): ComplianceTollfreeInquiriesListInstance;
interface ComplianceTollfreeInquiriesResource {
inquiry_id: string;
inquiry_session_token: string;
registration_id: string;
url: string;
}
export declare class ComplianceTollfreeInquiriesInstance {
protected _version: V1;
constructor(_version: V1, payload: ComplianceTollfreeInquiriesResource);
/**
* The unique ID used to start an embedded compliance registration session.
*/
inquiryId: string;
/**
* The session token used to start an embedded compliance registration session.
*/
inquirySessionToken: string;
/**
* The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.
*/
registrationId: string;
/**
* The URL of this resource.
*/
url: string;
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON(): {
inquiryId: string;
inquirySessionToken: string;
registrationId: string;
url: string;
};
[inspect.custom](_depth: any, options: InspectOptions): string;
}
export {};