twilio 5.10.2 → 5.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rest/accounts/V1.d.ts +5 -0
- package/lib/rest/accounts/V1.js +8 -0
- package/lib/rest/accounts/v1/messagingGeopermissions.d.ts +76 -0
- package/lib/rest/accounts/v1/messagingGeopermissions.js +98 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
- package/lib/rest/api/v2010/account/message.d.ts +6 -6
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +50 -2
- package/lib/rest/messaging/v1/tollfreeVerification.js +54 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -0
- package/lib/rest/numbers/v1/portingPortIn.js +2 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { AuthTokenPromotionListInstance } from "./v1/authTokenPromotion";
|
|
|
4
4
|
import { BulkConsentsListInstance } from "./v1/bulkConsents";
|
|
5
5
|
import { BulkContactsListInstance } from "./v1/bulkContacts";
|
|
6
6
|
import { CredentialListInstance } from "./v1/credential";
|
|
7
|
+
import { MessagingGeopermissionsListInstance } from "./v1/messagingGeopermissions";
|
|
7
8
|
import { SafelistListInstance } from "./v1/safelist";
|
|
8
9
|
import { SecondaryAuthTokenListInstance } from "./v1/secondaryAuthToken";
|
|
9
10
|
export default class V1 extends Version {
|
|
@@ -21,6 +22,8 @@ export default class V1 extends Version {
|
|
|
21
22
|
protected _bulkContacts?: BulkContactsListInstance;
|
|
22
23
|
/** credentials - { Twilio.Accounts.V1.CredentialListInstance } resource */
|
|
23
24
|
protected _credentials?: CredentialListInstance;
|
|
25
|
+
/** messagingGeopermissions - { Twilio.Accounts.V1.MessagingGeopermissionsListInstance } resource */
|
|
26
|
+
protected _messagingGeopermissions?: MessagingGeopermissionsListInstance;
|
|
24
27
|
/** safelist - { Twilio.Accounts.V1.SafelistListInstance } resource */
|
|
25
28
|
protected _safelist?: SafelistListInstance;
|
|
26
29
|
/** secondaryAuthToken - { Twilio.Accounts.V1.SecondaryAuthTokenListInstance } resource */
|
|
@@ -33,6 +36,8 @@ export default class V1 extends Version {
|
|
|
33
36
|
get bulkContacts(): BulkContactsListInstance;
|
|
34
37
|
/** Getter for credentials resource */
|
|
35
38
|
get credentials(): CredentialListInstance;
|
|
39
|
+
/** Getter for messagingGeopermissions resource */
|
|
40
|
+
get messagingGeopermissions(): MessagingGeopermissionsListInstance;
|
|
36
41
|
/** Getter for safelist resource */
|
|
37
42
|
get safelist(): SafelistListInstance;
|
|
38
43
|
/** Getter for secondaryAuthToken resource */
|
package/lib/rest/accounts/V1.js
CHANGED
|
@@ -21,6 +21,7 @@ const authTokenPromotion_1 = require("./v1/authTokenPromotion");
|
|
|
21
21
|
const bulkConsents_1 = require("./v1/bulkConsents");
|
|
22
22
|
const bulkContacts_1 = require("./v1/bulkContacts");
|
|
23
23
|
const credential_1 = require("./v1/credential");
|
|
24
|
+
const messagingGeopermissions_1 = require("./v1/messagingGeopermissions");
|
|
24
25
|
const safelist_1 = require("./v1/safelist");
|
|
25
26
|
const secondaryAuthToken_1 = require("./v1/secondaryAuthToken");
|
|
26
27
|
class V1 extends Version_1.default {
|
|
@@ -53,6 +54,13 @@ class V1 extends Version_1.default {
|
|
|
53
54
|
this._credentials = this._credentials || (0, credential_1.CredentialListInstance)(this);
|
|
54
55
|
return this._credentials;
|
|
55
56
|
}
|
|
57
|
+
/** Getter for messagingGeopermissions resource */
|
|
58
|
+
get messagingGeopermissions() {
|
|
59
|
+
this._messagingGeopermissions =
|
|
60
|
+
this._messagingGeopermissions ||
|
|
61
|
+
(0, messagingGeopermissions_1.MessagingGeopermissionsListInstance)(this);
|
|
62
|
+
return this._messagingGeopermissions;
|
|
63
|
+
}
|
|
56
64
|
/** Getter for safelist resource */
|
|
57
65
|
get safelist() {
|
|
58
66
|
this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import V1 from "../V1";
|
|
3
|
+
/**
|
|
4
|
+
* Options to pass to fetch a MessagingGeopermissionsInstance
|
|
5
|
+
*/
|
|
6
|
+
export interface MessagingGeopermissionsListInstanceFetchOptions {
|
|
7
|
+
/** The country code to filter the geo permissions. If provided, only the geo permission for the specified country will be returned. */
|
|
8
|
+
countryCode?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Options to pass to update a MessagingGeopermissionsInstance
|
|
12
|
+
*/
|
|
13
|
+
export interface MessagingGeopermissionsListInstanceUpdateOptions {
|
|
14
|
+
/** A list of objects where each object represents the Geo Permission to be updated. Each object contains the following fields: `country_code`, unique code for each country of Geo Permission; `type`, permission type of the Geo Permission i.e. country; `enabled`, configure true for enabling the Geo Permission, false for disabling the Geo Permission. */
|
|
15
|
+
permissions: Array<any>;
|
|
16
|
+
}
|
|
17
|
+
export interface MessagingGeopermissionsSolution {
|
|
18
|
+
}
|
|
19
|
+
export interface MessagingGeopermissionsListInstance {
|
|
20
|
+
_version: V1;
|
|
21
|
+
_solution: MessagingGeopermissionsSolution;
|
|
22
|
+
_uri: string;
|
|
23
|
+
/**
|
|
24
|
+
* Fetch a MessagingGeopermissionsInstance
|
|
25
|
+
*
|
|
26
|
+
* @param callback - Callback to handle processed record
|
|
27
|
+
*
|
|
28
|
+
* @returns Resolves to processed MessagingGeopermissionsInstance
|
|
29
|
+
*/
|
|
30
|
+
fetch(callback?: (error: Error | null, item?: MessagingGeopermissionsInstance) => any): Promise<MessagingGeopermissionsInstance>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetch a MessagingGeopermissionsInstance
|
|
33
|
+
*
|
|
34
|
+
* @param params - Parameter for request
|
|
35
|
+
* @param callback - Callback to handle processed record
|
|
36
|
+
*
|
|
37
|
+
* @returns Resolves to processed MessagingGeopermissionsInstance
|
|
38
|
+
*/
|
|
39
|
+
fetch(params: MessagingGeopermissionsListInstanceFetchOptions, callback?: (error: Error | null, item?: MessagingGeopermissionsInstance) => any): Promise<MessagingGeopermissionsInstance>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a MessagingGeopermissionsInstance
|
|
42
|
+
*
|
|
43
|
+
* @param params - Parameter for request
|
|
44
|
+
* @param callback - Callback to handle processed record
|
|
45
|
+
*
|
|
46
|
+
* @returns Resolves to processed MessagingGeopermissionsInstance
|
|
47
|
+
*/
|
|
48
|
+
update(params: MessagingGeopermissionsListInstanceUpdateOptions, callback?: (error: Error | null, item?: MessagingGeopermissionsInstance) => any): Promise<MessagingGeopermissionsInstance>;
|
|
49
|
+
/**
|
|
50
|
+
* Provide a user-friendly representation
|
|
51
|
+
*/
|
|
52
|
+
toJSON(): any;
|
|
53
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
54
|
+
}
|
|
55
|
+
export declare function MessagingGeopermissionsListInstance(version: V1): MessagingGeopermissionsListInstance;
|
|
56
|
+
interface MessagingGeopermissionsResource {
|
|
57
|
+
permissions: any;
|
|
58
|
+
}
|
|
59
|
+
export declare class MessagingGeopermissionsInstance {
|
|
60
|
+
protected _version: V1;
|
|
61
|
+
constructor(_version: V1, payload: MessagingGeopermissionsResource);
|
|
62
|
+
/**
|
|
63
|
+
* A list of objects where each object represents the result of processing a messaging Geo Permission. Each object contains the following fields: `country_code`, the country code of the country for which the permission was updated; `type`, the type of the permission i.e. country; `enabled`, true if the permission is enabled else false; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
|
|
64
|
+
*/
|
|
65
|
+
permissions: any;
|
|
66
|
+
/**
|
|
67
|
+
* Provide a user-friendly representation
|
|
68
|
+
*
|
|
69
|
+
* @returns Object
|
|
70
|
+
*/
|
|
71
|
+
toJSON(): {
|
|
72
|
+
permissions: any;
|
|
73
|
+
};
|
|
74
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Accounts
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MessagingGeopermissionsInstance = void 0;
|
|
17
|
+
exports.MessagingGeopermissionsListInstance = MessagingGeopermissionsListInstance;
|
|
18
|
+
const util_1 = require("util");
|
|
19
|
+
const deserialize = require("../../../base/deserialize");
|
|
20
|
+
const serialize = require("../../../base/serialize");
|
|
21
|
+
function MessagingGeopermissionsListInstance(version) {
|
|
22
|
+
const instance = {};
|
|
23
|
+
instance._version = version;
|
|
24
|
+
instance._solution = {};
|
|
25
|
+
instance._uri = `/Messaging/GeoPermissions`;
|
|
26
|
+
instance.fetch = function fetch(params, callback) {
|
|
27
|
+
if (params instanceof Function) {
|
|
28
|
+
callback = params;
|
|
29
|
+
params = {};
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
params = params || {};
|
|
33
|
+
}
|
|
34
|
+
let data = {};
|
|
35
|
+
if (params["countryCode"] !== undefined)
|
|
36
|
+
data["CountryCode"] = params["countryCode"];
|
|
37
|
+
const headers = {};
|
|
38
|
+
headers["Accept"] = "application/json";
|
|
39
|
+
let operationVersion = version, operationPromise = operationVersion.fetch({
|
|
40
|
+
uri: instance._uri,
|
|
41
|
+
method: "get",
|
|
42
|
+
params: data,
|
|
43
|
+
headers,
|
|
44
|
+
});
|
|
45
|
+
operationPromise = operationPromise.then((payload) => new MessagingGeopermissionsInstance(operationVersion, payload));
|
|
46
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
47
|
+
return operationPromise;
|
|
48
|
+
};
|
|
49
|
+
instance.update = function update(params, callback) {
|
|
50
|
+
if (params === null || params === undefined) {
|
|
51
|
+
throw new Error('Required parameter "params" missing.');
|
|
52
|
+
}
|
|
53
|
+
if (params["permissions"] === null || params["permissions"] === undefined) {
|
|
54
|
+
throw new Error("Required parameter \"params['permissions']\" missing.");
|
|
55
|
+
}
|
|
56
|
+
let data = {};
|
|
57
|
+
data["Permissions"] = serialize.map(params["permissions"], (e) => serialize.object(e));
|
|
58
|
+
const headers = {};
|
|
59
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
60
|
+
headers["Accept"] = "application/json";
|
|
61
|
+
let operationVersion = version, operationPromise = operationVersion.update({
|
|
62
|
+
uri: instance._uri,
|
|
63
|
+
method: "patch",
|
|
64
|
+
data,
|
|
65
|
+
headers,
|
|
66
|
+
});
|
|
67
|
+
operationPromise = operationPromise.then((payload) => new MessagingGeopermissionsInstance(operationVersion, payload));
|
|
68
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
69
|
+
return operationPromise;
|
|
70
|
+
};
|
|
71
|
+
instance.toJSON = function toJSON() {
|
|
72
|
+
return instance._solution;
|
|
73
|
+
};
|
|
74
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
75
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
76
|
+
};
|
|
77
|
+
return instance;
|
|
78
|
+
}
|
|
79
|
+
class MessagingGeopermissionsInstance {
|
|
80
|
+
constructor(_version, payload) {
|
|
81
|
+
this._version = _version;
|
|
82
|
+
this.permissions = payload.permissions;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Provide a user-friendly representation
|
|
86
|
+
*
|
|
87
|
+
* @returns Object
|
|
88
|
+
*/
|
|
89
|
+
toJSON() {
|
|
90
|
+
return {
|
|
91
|
+
permissions: this.permissions,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
[util_1.inspect.custom](_depth, options) {
|
|
95
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.MessagingGeopermissionsInstance = MessagingGeopermissionsInstance;
|
|
@@ -135,7 +135,7 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
135
135
|
trim?: string;
|
|
136
136
|
/** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
|
|
137
137
|
callToken?: string;
|
|
138
|
-
/** The name that
|
|
138
|
+
/** The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address. */
|
|
139
139
|
callerDisplayName?: string;
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
@@ -84,9 +84,9 @@ export interface MessageListInstanceCreateOptions {
|
|
|
84
84
|
* Options to pass to each
|
|
85
85
|
*/
|
|
86
86
|
export interface MessageListInstanceEachOptions {
|
|
87
|
-
/** Filter by recipient. For example: Set this
|
|
87
|
+
/** Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`. */
|
|
88
88
|
to?: string;
|
|
89
|
-
/** Filter by sender. For example: Set this
|
|
89
|
+
/** Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`. */
|
|
90
90
|
from?: string;
|
|
91
91
|
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
92
92
|
dateSent?: Date;
|
|
@@ -107,9 +107,9 @@ export interface MessageListInstanceEachOptions {
|
|
|
107
107
|
* Options to pass to list
|
|
108
108
|
*/
|
|
109
109
|
export interface MessageListInstanceOptions {
|
|
110
|
-
/** Filter by recipient. For example: Set this
|
|
110
|
+
/** Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`. */
|
|
111
111
|
to?: string;
|
|
112
|
-
/** Filter by sender. For example: Set this
|
|
112
|
+
/** Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`. */
|
|
113
113
|
from?: string;
|
|
114
114
|
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
115
115
|
dateSent?: Date;
|
|
@@ -126,9 +126,9 @@ export interface MessageListInstanceOptions {
|
|
|
126
126
|
* Options to pass to page
|
|
127
127
|
*/
|
|
128
128
|
export interface MessageListInstancePageOptions {
|
|
129
|
-
/** Filter by recipient. For example: Set this
|
|
129
|
+
/** Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`. */
|
|
130
130
|
to?: string;
|
|
131
|
-
/** Filter by sender. For example: Set this
|
|
131
|
+
/** Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`. */
|
|
132
132
|
from?: string;
|
|
133
133
|
/** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
|
|
134
134
|
dateSent?: Date;
|
|
@@ -56,6 +56,30 @@ export interface TollfreeVerificationContextUpdateOptions {
|
|
|
56
56
|
businessContactPhone?: string;
|
|
57
57
|
/** Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to \\\'Website fixed\\\'. */
|
|
58
58
|
editReason?: string;
|
|
59
|
+
/** A legaly recognized business registration number */
|
|
60
|
+
businessRegistrationNumber?: string;
|
|
61
|
+
/** The organizational authority for business registrations */
|
|
62
|
+
businessRegistrationAuthority?: string;
|
|
63
|
+
/** Country business is registered in */
|
|
64
|
+
businessRegistrationCountry?: string;
|
|
65
|
+
/** The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT */
|
|
66
|
+
businessType?: string;
|
|
67
|
+
/** The E.164 formatted number associated with the business. */
|
|
68
|
+
businessRegistrationPhoneNumber?: string;
|
|
69
|
+
/** Trade name, sub entity, or downstream business name of business being submitted for verification */
|
|
70
|
+
doingBusinessAs?: string;
|
|
71
|
+
/** The confirmation message sent to users when they opt in to receive messages. */
|
|
72
|
+
optInConfirmationMessage?: string;
|
|
73
|
+
/** A sample help message provided to users. */
|
|
74
|
+
helpMessageSample?: string;
|
|
75
|
+
/** The URL to the privacy policy for the business or organization. */
|
|
76
|
+
privacyPolicyUrl?: string;
|
|
77
|
+
/** The URL to the terms and conditions for the business or organization. */
|
|
78
|
+
termsAndConditionsUrl?: string;
|
|
79
|
+
/** Indicates if the content is age gated. */
|
|
80
|
+
ageGatedContent?: boolean;
|
|
81
|
+
/** List of keywords that users can text in to opt in to receive messages. */
|
|
82
|
+
optInKeywords?: Array<string>;
|
|
59
83
|
}
|
|
60
84
|
/**
|
|
61
85
|
* Options to pass to create a TollfreeVerificationInstance
|
|
@@ -107,6 +131,30 @@ export interface TollfreeVerificationListInstanceCreateOptions {
|
|
|
107
131
|
businessContactPhone?: string;
|
|
108
132
|
/** An optional external reference ID supplied by customer and echoed back on status retrieval. */
|
|
109
133
|
externalReferenceId?: string;
|
|
134
|
+
/** A legally recognized business registration number */
|
|
135
|
+
businessRegistrationNumber?: string;
|
|
136
|
+
/** The organizational authority for business registrations */
|
|
137
|
+
businessRegistrationAuthority?: string;
|
|
138
|
+
/** Country business is registered in */
|
|
139
|
+
businessRegistrationCountry?: string;
|
|
140
|
+
/** The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT */
|
|
141
|
+
businessType?: string;
|
|
142
|
+
/** The E.164 formatted number associated with the business. */
|
|
143
|
+
businessRegistrationPhoneNumber?: string;
|
|
144
|
+
/** Trade name, sub entity, or downstream business name of business being submitted for verification */
|
|
145
|
+
doingBusinessAs?: string;
|
|
146
|
+
/** The confirmation message sent to users when they opt in to receive messages. */
|
|
147
|
+
optInConfirmationMessage?: string;
|
|
148
|
+
/** A sample help message provided to users. */
|
|
149
|
+
helpMessageSample?: string;
|
|
150
|
+
/** The URL to the privacy policy for the business or organization. */
|
|
151
|
+
privacyPolicyUrl?: string;
|
|
152
|
+
/** The URL to the terms and conditions for the business or organization. */
|
|
153
|
+
termsAndConditionsUrl?: string;
|
|
154
|
+
/** Indicates if the content is age gated. */
|
|
155
|
+
ageGatedContent?: boolean;
|
|
156
|
+
/** List of keywords that users can text in to opt in to receive messages. */
|
|
157
|
+
optInKeywords?: Array<string>;
|
|
110
158
|
}
|
|
111
159
|
/**
|
|
112
160
|
* Options to pass to each
|
|
@@ -455,7 +503,7 @@ export declare class TollfreeVerificationInstance {
|
|
|
455
503
|
*/
|
|
456
504
|
privacyPolicyUrl: string;
|
|
457
505
|
/**
|
|
458
|
-
* The URL
|
|
506
|
+
* The URL of the terms and conditions for the business or organization.
|
|
459
507
|
*/
|
|
460
508
|
termsAndConditionsUrl: string;
|
|
461
509
|
/**
|
|
@@ -463,7 +511,7 @@ export declare class TollfreeVerificationInstance {
|
|
|
463
511
|
*/
|
|
464
512
|
ageGatedContent: boolean;
|
|
465
513
|
/**
|
|
466
|
-
* List of keywords that users can
|
|
514
|
+
* List of keywords that users can send to opt in or out of messages.
|
|
467
515
|
*/
|
|
468
516
|
optInKeywords: Array<string>;
|
|
469
517
|
/**
|
|
@@ -108,6 +108,33 @@ class TollfreeVerificationContextImpl {
|
|
|
108
108
|
data["BusinessContactPhone"] = params["businessContactPhone"];
|
|
109
109
|
if (params["editReason"] !== undefined)
|
|
110
110
|
data["EditReason"] = params["editReason"];
|
|
111
|
+
if (params["businessRegistrationNumber"] !== undefined)
|
|
112
|
+
data["BusinessRegistrationNumber"] = params["businessRegistrationNumber"];
|
|
113
|
+
if (params["businessRegistrationAuthority"] !== undefined)
|
|
114
|
+
data["BusinessRegistrationAuthority"] =
|
|
115
|
+
params["businessRegistrationAuthority"];
|
|
116
|
+
if (params["businessRegistrationCountry"] !== undefined)
|
|
117
|
+
data["BusinessRegistrationCountry"] =
|
|
118
|
+
params["businessRegistrationCountry"];
|
|
119
|
+
if (params["businessType"] !== undefined)
|
|
120
|
+
data["BusinessType"] = params["businessType"];
|
|
121
|
+
if (params["businessRegistrationPhoneNumber"] !== undefined)
|
|
122
|
+
data["BusinessRegistrationPhoneNumber"] =
|
|
123
|
+
params["businessRegistrationPhoneNumber"];
|
|
124
|
+
if (params["doingBusinessAs"] !== undefined)
|
|
125
|
+
data["DoingBusinessAs"] = params["doingBusinessAs"];
|
|
126
|
+
if (params["optInConfirmationMessage"] !== undefined)
|
|
127
|
+
data["OptInConfirmationMessage"] = params["optInConfirmationMessage"];
|
|
128
|
+
if (params["helpMessageSample"] !== undefined)
|
|
129
|
+
data["HelpMessageSample"] = params["helpMessageSample"];
|
|
130
|
+
if (params["privacyPolicyUrl"] !== undefined)
|
|
131
|
+
data["PrivacyPolicyUrl"] = params["privacyPolicyUrl"];
|
|
132
|
+
if (params["termsAndConditionsUrl"] !== undefined)
|
|
133
|
+
data["TermsAndConditionsUrl"] = params["termsAndConditionsUrl"];
|
|
134
|
+
if (params["ageGatedContent"] !== undefined)
|
|
135
|
+
data["AgeGatedContent"] = serialize.bool(params["ageGatedContent"]);
|
|
136
|
+
if (params["optInKeywords"] !== undefined)
|
|
137
|
+
data["OptInKeywords"] = serialize.map(params["optInKeywords"], (e) => e);
|
|
111
138
|
const headers = {};
|
|
112
139
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
113
140
|
headers["Accept"] = "application/json";
|
|
@@ -374,6 +401,33 @@ function TollfreeVerificationListInstance(version) {
|
|
|
374
401
|
data["BusinessContactPhone"] = params["businessContactPhone"];
|
|
375
402
|
if (params["externalReferenceId"] !== undefined)
|
|
376
403
|
data["ExternalReferenceId"] = params["externalReferenceId"];
|
|
404
|
+
if (params["businessRegistrationNumber"] !== undefined)
|
|
405
|
+
data["BusinessRegistrationNumber"] = params["businessRegistrationNumber"];
|
|
406
|
+
if (params["businessRegistrationAuthority"] !== undefined)
|
|
407
|
+
data["BusinessRegistrationAuthority"] =
|
|
408
|
+
params["businessRegistrationAuthority"];
|
|
409
|
+
if (params["businessRegistrationCountry"] !== undefined)
|
|
410
|
+
data["BusinessRegistrationCountry"] =
|
|
411
|
+
params["businessRegistrationCountry"];
|
|
412
|
+
if (params["businessType"] !== undefined)
|
|
413
|
+
data["BusinessType"] = params["businessType"];
|
|
414
|
+
if (params["businessRegistrationPhoneNumber"] !== undefined)
|
|
415
|
+
data["BusinessRegistrationPhoneNumber"] =
|
|
416
|
+
params["businessRegistrationPhoneNumber"];
|
|
417
|
+
if (params["doingBusinessAs"] !== undefined)
|
|
418
|
+
data["DoingBusinessAs"] = params["doingBusinessAs"];
|
|
419
|
+
if (params["optInConfirmationMessage"] !== undefined)
|
|
420
|
+
data["OptInConfirmationMessage"] = params["optInConfirmationMessage"];
|
|
421
|
+
if (params["helpMessageSample"] !== undefined)
|
|
422
|
+
data["HelpMessageSample"] = params["helpMessageSample"];
|
|
423
|
+
if (params["privacyPolicyUrl"] !== undefined)
|
|
424
|
+
data["PrivacyPolicyUrl"] = params["privacyPolicyUrl"];
|
|
425
|
+
if (params["termsAndConditionsUrl"] !== undefined)
|
|
426
|
+
data["TermsAndConditionsUrl"] = params["termsAndConditionsUrl"];
|
|
427
|
+
if (params["ageGatedContent"] !== undefined)
|
|
428
|
+
data["AgeGatedContent"] = serialize.bool(params["ageGatedContent"]);
|
|
429
|
+
if (params["optInKeywords"] !== undefined)
|
|
430
|
+
data["OptInKeywords"] = serialize.map(params["optInKeywords"], (e) => e);
|
|
377
431
|
const headers = {};
|
|
378
432
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
379
433
|
headers["Accept"] = "application/json";
|
|
@@ -226,6 +226,7 @@ interface PortingPortInResource {
|
|
|
226
226
|
auto_cancel_approval_numbers: string;
|
|
227
227
|
documents: Array<string>;
|
|
228
228
|
date_created: Date;
|
|
229
|
+
support_ticket_id: number;
|
|
229
230
|
}
|
|
230
231
|
export declare class PortingPortInInstance {
|
|
231
232
|
protected _version: V1;
|
|
@@ -287,6 +288,10 @@ export declare class PortingPortInInstance {
|
|
|
287
288
|
*/
|
|
288
289
|
documents: Array<string>;
|
|
289
290
|
dateCreated: Date;
|
|
291
|
+
/**
|
|
292
|
+
* Unique ID of the request\'s support ticket
|
|
293
|
+
*/
|
|
294
|
+
supportTicketId: number;
|
|
290
295
|
private get _proxy();
|
|
291
296
|
/**
|
|
292
297
|
* Remove a PortingPortInInstance
|
|
@@ -326,6 +331,7 @@ export declare class PortingPortInInstance {
|
|
|
326
331
|
autoCancelApprovalNumbers: string;
|
|
327
332
|
documents: string[];
|
|
328
333
|
dateCreated: Date;
|
|
334
|
+
supportTicketId: number;
|
|
329
335
|
};
|
|
330
336
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
331
337
|
}
|
|
@@ -99,6 +99,7 @@ class PortingPortInInstance {
|
|
|
99
99
|
this.autoCancelApprovalNumbers = payload.auto_cancel_approval_numbers;
|
|
100
100
|
this.documents = payload.documents;
|
|
101
101
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
102
|
+
this.supportTicketId = deserialize.integer(payload.support_ticket_id);
|
|
102
103
|
this._solution = {
|
|
103
104
|
portInRequestSid: portInRequestSid || this.portInRequestSid,
|
|
104
105
|
};
|
|
@@ -152,6 +153,7 @@ class PortingPortInInstance {
|
|
|
152
153
|
autoCancelApprovalNumbers: this.autoCancelApprovalNumbers,
|
|
153
154
|
documents: this.documents,
|
|
154
155
|
dateCreated: this.dateCreated,
|
|
156
|
+
supportTicketId: this.supportTicketId,
|
|
155
157
|
};
|
|
156
158
|
}
|
|
157
159
|
[util_1.inspect.custom](_depth, options) {
|