twilio 5.1.0 → 5.2.0
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/base/BaseTwilio.js +2 -1
- package/lib/rest/Marketplace.d.ts +4 -0
- package/lib/rest/Marketplace.js +8 -0
- package/lib/rest/MarketplaceBase.d.ts +13 -0
- package/lib/rest/MarketplaceBase.js +31 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +6 -0
- package/lib/rest/api/v2010/account/call.d.ts +1 -1
- package/lib/rest/api/v2010/account/message.d.ts +2 -2
- package/lib/rest/api/v2010/account/recording.d.ts +1 -1
- package/lib/rest/content/v2/content.d.ts +54 -0
- package/lib/rest/content/v2/content.js +18 -0
- package/lib/rest/content/v2/contentAndApprovals.d.ts +54 -0
- package/lib/rest/content/v2/contentAndApprovals.js +18 -0
- package/lib/rest/events/v1/eventType.d.ts +12 -0
- package/lib/rest/events/v1/eventType.js +4 -0
- package/lib/rest/marketplace/V1.d.ts +25 -0
- package/lib/rest/marketplace/V1.js +51 -0
- package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.d.ts +219 -0
- package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.js +187 -0
- package/lib/rest/marketplace/v1/availableAddOn.d.ts +231 -0
- package/lib/rest/marketplace/v1/availableAddOn.js +196 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.d.ts +251 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.js +214 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +84 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +86 -0
- package/lib/rest/marketplace/v1/installedAddOn.d.ts +340 -0
- package/lib/rest/marketplace/v1/installedAddOn.js +294 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +147 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.js +153 -0
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +13 -1
- package/lib/rest/messaging/v1/tollfreeVerification.js +4 -0
- package/lib/rest/numbers/V1.d.ts +5 -0
- package/lib/rest/numbers/V1.js +8 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +3 -0
- package/lib/rest/numbers/v1/portingPortIn.js +2 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +24 -6
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +9 -3
- package/lib/rest/numbers/v1/portingPortability.d.ts +0 -12
- package/lib/rest/numbers/v1/portingPortability.js +0 -4
- package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +100 -0
- package/lib/rest/numbers/v1/signingRequestConfiguration.js +89 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +2 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +2 -0
- package/package.json +1 -1
package/lib/rest/numbers/V1.js
CHANGED
|
@@ -25,6 +25,7 @@ const portingPortability_1 = require("./v1/portingPortability");
|
|
|
25
25
|
const portingWebhookConfiguration_1 = require("./v1/portingWebhookConfiguration");
|
|
26
26
|
const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
|
|
27
27
|
const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
|
|
28
|
+
const signingRequestConfiguration_1 = require("./v1/signingRequestConfiguration");
|
|
28
29
|
class V1 extends Version_1.default {
|
|
29
30
|
/**
|
|
30
31
|
* Initialize the V1 version of Numbers
|
|
@@ -85,5 +86,12 @@ class V1 extends Version_1.default {
|
|
|
85
86
|
(0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
|
|
86
87
|
return this._portingWebhookConfigurationFetch;
|
|
87
88
|
}
|
|
89
|
+
/** Getter for signingRequestConfigurations resource */
|
|
90
|
+
get signingRequestConfigurations() {
|
|
91
|
+
this._signingRequestConfigurations =
|
|
92
|
+
this._signingRequestConfigurations ||
|
|
93
|
+
(0, signingRequestConfiguration_1.SigningRequestConfigurationListInstance)(this);
|
|
94
|
+
return this._signingRequestConfigurations;
|
|
95
|
+
}
|
|
88
96
|
}
|
|
89
97
|
exports.default = V1;
|
|
@@ -61,6 +61,7 @@ interface PortingPortInResource {
|
|
|
61
61
|
losing_carrier_information: any;
|
|
62
62
|
phone_numbers: Array<any>;
|
|
63
63
|
documents: Array<string>;
|
|
64
|
+
date_created: Date;
|
|
64
65
|
}
|
|
65
66
|
export declare class PortingPortInInstance {
|
|
66
67
|
protected _version: V1;
|
|
@@ -111,6 +112,7 @@ export declare class PortingPortInInstance {
|
|
|
111
112
|
* The list of documents SID referencing a utility bills
|
|
112
113
|
*/
|
|
113
114
|
documents: Array<string>;
|
|
115
|
+
dateCreated: Date;
|
|
114
116
|
private get _proxy();
|
|
115
117
|
/**
|
|
116
118
|
* Remove a PortingPortInInstance
|
|
@@ -145,6 +147,7 @@ export declare class PortingPortInInstance {
|
|
|
145
147
|
losingCarrierInformation: any;
|
|
146
148
|
phoneNumbers: any[];
|
|
147
149
|
documents: string[];
|
|
150
|
+
dateCreated: Date;
|
|
148
151
|
};
|
|
149
152
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
150
153
|
}
|
|
@@ -73,6 +73,7 @@ class PortingPortInInstance {
|
|
|
73
73
|
this.losingCarrierInformation = payload.losing_carrier_information;
|
|
74
74
|
this.phoneNumbers = payload.phone_numbers;
|
|
75
75
|
this.documents = payload.documents;
|
|
76
|
+
this.dateCreated = deserialize.iso8601Date(payload.date_created);
|
|
76
77
|
this._solution = {
|
|
77
78
|
portInRequestSid: portInRequestSid || this.portInRequestSid,
|
|
78
79
|
};
|
|
@@ -121,6 +122,7 @@ class PortingPortInInstance {
|
|
|
121
122
|
losingCarrierInformation: this.losingCarrierInformation,
|
|
122
123
|
phoneNumbers: this.phoneNumbers,
|
|
123
124
|
documents: this.documents,
|
|
125
|
+
dateCreated: this.dateCreated,
|
|
124
126
|
};
|
|
125
127
|
}
|
|
126
128
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -52,12 +52,15 @@ interface PortingPortInPhoneNumberResource {
|
|
|
52
52
|
date_created: Date;
|
|
53
53
|
country: string;
|
|
54
54
|
missing_required_fields: boolean;
|
|
55
|
-
|
|
55
|
+
last_updated: Date;
|
|
56
56
|
phone_number: string;
|
|
57
57
|
portable: boolean;
|
|
58
58
|
not_portability_reason: string;
|
|
59
|
-
not_portability_reason_code:
|
|
59
|
+
not_portability_reason_code: number;
|
|
60
60
|
port_in_phone_number_status: string;
|
|
61
|
+
port_out_pin: number;
|
|
62
|
+
rejection_reason: string;
|
|
63
|
+
rejection_reason_code: number;
|
|
61
64
|
}
|
|
62
65
|
export declare class PortingPortInPhoneNumberInstance {
|
|
63
66
|
protected _version: V1;
|
|
@@ -96,7 +99,7 @@ export declare class PortingPortInPhoneNumberInstance {
|
|
|
96
99
|
/**
|
|
97
100
|
* The timestamp when the status was last updated.
|
|
98
101
|
*/
|
|
99
|
-
|
|
102
|
+
lastUpdated: Date;
|
|
100
103
|
/**
|
|
101
104
|
* The phone number.
|
|
102
105
|
*/
|
|
@@ -112,11 +115,23 @@ export declare class PortingPortInPhoneNumberInstance {
|
|
|
112
115
|
/**
|
|
113
116
|
* The code of the reason why the phone number is not portable.
|
|
114
117
|
*/
|
|
115
|
-
notPortabilityReasonCode:
|
|
118
|
+
notPortabilityReasonCode: number;
|
|
116
119
|
/**
|
|
117
120
|
* The status of the phone number in the port in request.
|
|
118
121
|
*/
|
|
119
122
|
portInPhoneNumberStatus: string;
|
|
123
|
+
/**
|
|
124
|
+
* The pin required for the losing carrier to port out the phone number.
|
|
125
|
+
*/
|
|
126
|
+
portOutPin: number;
|
|
127
|
+
/**
|
|
128
|
+
* The rejection reason returned by the vendor.
|
|
129
|
+
*/
|
|
130
|
+
rejectionReason: string;
|
|
131
|
+
/**
|
|
132
|
+
* The rejection reason code returned by the vendor.
|
|
133
|
+
*/
|
|
134
|
+
rejectionReasonCode: number;
|
|
120
135
|
private get _proxy();
|
|
121
136
|
/**
|
|
122
137
|
* Remove a PortingPortInPhoneNumberInstance
|
|
@@ -148,12 +163,15 @@ export declare class PortingPortInPhoneNumberInstance {
|
|
|
148
163
|
dateCreated: Date;
|
|
149
164
|
country: string;
|
|
150
165
|
missingRequiredFields: boolean;
|
|
151
|
-
|
|
166
|
+
lastUpdated: Date;
|
|
152
167
|
phoneNumber: string;
|
|
153
168
|
portable: boolean;
|
|
154
169
|
notPortabilityReason: string;
|
|
155
|
-
notPortabilityReasonCode:
|
|
170
|
+
notPortabilityReasonCode: number;
|
|
156
171
|
portInPhoneNumberStatus: string;
|
|
172
|
+
portOutPin: number;
|
|
173
|
+
rejectionReason: string;
|
|
174
|
+
rejectionReasonCode: number;
|
|
157
175
|
};
|
|
158
176
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
159
177
|
}
|
|
@@ -73,12 +73,15 @@ class PortingPortInPhoneNumberInstance {
|
|
|
73
73
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
74
74
|
this.country = payload.country;
|
|
75
75
|
this.missingRequiredFields = payload.missing_required_fields;
|
|
76
|
-
this.
|
|
76
|
+
this.lastUpdated = deserialize.iso8601DateTime(payload.last_updated);
|
|
77
77
|
this.phoneNumber = payload.phone_number;
|
|
78
78
|
this.portable = payload.portable;
|
|
79
79
|
this.notPortabilityReason = payload.not_portability_reason;
|
|
80
|
-
this.notPortabilityReasonCode = payload.not_portability_reason_code;
|
|
80
|
+
this.notPortabilityReasonCode = deserialize.integer(payload.not_portability_reason_code);
|
|
81
81
|
this.portInPhoneNumberStatus = payload.port_in_phone_number_status;
|
|
82
|
+
this.portOutPin = deserialize.integer(payload.port_out_pin);
|
|
83
|
+
this.rejectionReason = payload.rejection_reason;
|
|
84
|
+
this.rejectionReasonCode = deserialize.integer(payload.rejection_reason_code);
|
|
82
85
|
this._solution = {
|
|
83
86
|
portInRequestSid: portInRequestSid || this.portInRequestSid,
|
|
84
87
|
phoneNumberSid: phoneNumberSid || this.phoneNumberSid,
|
|
@@ -125,12 +128,15 @@ class PortingPortInPhoneNumberInstance {
|
|
|
125
128
|
dateCreated: this.dateCreated,
|
|
126
129
|
country: this.country,
|
|
127
130
|
missingRequiredFields: this.missingRequiredFields,
|
|
128
|
-
|
|
131
|
+
lastUpdated: this.lastUpdated,
|
|
129
132
|
phoneNumber: this.phoneNumber,
|
|
130
133
|
portable: this.portable,
|
|
131
134
|
notPortabilityReason: this.notPortabilityReason,
|
|
132
135
|
notPortabilityReasonCode: this.notPortabilityReasonCode,
|
|
133
136
|
portInPhoneNumberStatus: this.portInPhoneNumberStatus,
|
|
137
|
+
portOutPin: this.portOutPin,
|
|
138
|
+
rejectionReason: this.rejectionReason,
|
|
139
|
+
rejectionReasonCode: this.rejectionReasonCode,
|
|
134
140
|
};
|
|
135
141
|
}
|
|
136
142
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -59,8 +59,6 @@ interface PortingPortabilityResource {
|
|
|
59
59
|
not_portable_reason_code: number;
|
|
60
60
|
number_type: PortingPortabilityNumberType;
|
|
61
61
|
country: string;
|
|
62
|
-
messaging_carrier: string;
|
|
63
|
-
voice_carrier: string;
|
|
64
62
|
url: string;
|
|
65
63
|
}
|
|
66
64
|
export declare class PortingPortabilityInstance {
|
|
@@ -97,14 +95,6 @@ export declare class PortingPortabilityInstance {
|
|
|
97
95
|
* Country the phone number belongs to.
|
|
98
96
|
*/
|
|
99
97
|
country: string;
|
|
100
|
-
/**
|
|
101
|
-
* Current messaging carrier of the phone number
|
|
102
|
-
*/
|
|
103
|
-
messagingCarrier: string;
|
|
104
|
-
/**
|
|
105
|
-
* Current voice carrier of the phone number
|
|
106
|
-
*/
|
|
107
|
-
voiceCarrier: string;
|
|
108
98
|
/**
|
|
109
99
|
* This is the url of the request that you\'re trying to reach out to locate the resource.
|
|
110
100
|
*/
|
|
@@ -141,8 +131,6 @@ export declare class PortingPortabilityInstance {
|
|
|
141
131
|
notPortableReasonCode: number;
|
|
142
132
|
numberType: PortingPortabilityNumberType;
|
|
143
133
|
country: string;
|
|
144
|
-
messagingCarrier: string;
|
|
145
|
-
voiceCarrier: string;
|
|
146
134
|
url: string;
|
|
147
135
|
};
|
|
148
136
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -74,8 +74,6 @@ class PortingPortabilityInstance {
|
|
|
74
74
|
this.notPortableReasonCode = deserialize.integer(payload.not_portable_reason_code);
|
|
75
75
|
this.numberType = payload.number_type;
|
|
76
76
|
this.country = payload.country;
|
|
77
|
-
this.messagingCarrier = payload.messaging_carrier;
|
|
78
|
-
this.voiceCarrier = payload.voice_carrier;
|
|
79
77
|
this.url = payload.url;
|
|
80
78
|
this._solution = { phoneNumber: phoneNumber || this.phoneNumber };
|
|
81
79
|
}
|
|
@@ -103,8 +101,6 @@ class PortingPortabilityInstance {
|
|
|
103
101
|
notPortableReasonCode: this.notPortableReasonCode,
|
|
104
102
|
numberType: this.numberType,
|
|
105
103
|
country: this.country,
|
|
106
|
-
messagingCarrier: this.messagingCarrier,
|
|
107
|
-
voiceCarrier: this.voiceCarrier,
|
|
108
104
|
url: this.url,
|
|
109
105
|
};
|
|
110
106
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V1 from "../V1";
|
|
4
|
+
/**
|
|
5
|
+
* Options to pass to create a SigningRequestConfigurationInstance
|
|
6
|
+
*/
|
|
7
|
+
export interface SigningRequestConfigurationListInstanceCreateOptions {
|
|
8
|
+
/** */
|
|
9
|
+
body?: object;
|
|
10
|
+
}
|
|
11
|
+
export interface SigningRequestConfigurationSolution {
|
|
12
|
+
}
|
|
13
|
+
export interface SigningRequestConfigurationListInstance {
|
|
14
|
+
_version: V1;
|
|
15
|
+
_solution: SigningRequestConfigurationSolution;
|
|
16
|
+
_uri: string;
|
|
17
|
+
/**
|
|
18
|
+
* Create a SigningRequestConfigurationInstance
|
|
19
|
+
*
|
|
20
|
+
* @param callback - Callback to handle processed record
|
|
21
|
+
*
|
|
22
|
+
* @returns Resolves to processed SigningRequestConfigurationInstance
|
|
23
|
+
*/
|
|
24
|
+
create(callback?: (error: Error | null, item?: SigningRequestConfigurationInstance) => any): Promise<SigningRequestConfigurationInstance>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a SigningRequestConfigurationInstance
|
|
27
|
+
*
|
|
28
|
+
* @param params - Body for request
|
|
29
|
+
* @param callback - Callback to handle processed record
|
|
30
|
+
*
|
|
31
|
+
* @returns Resolves to processed SigningRequestConfigurationInstance
|
|
32
|
+
*/
|
|
33
|
+
create(params: object, callback?: (error: Error | null, item?: SigningRequestConfigurationInstance) => any): Promise<SigningRequestConfigurationInstance>;
|
|
34
|
+
/**
|
|
35
|
+
* Provide a user-friendly representation
|
|
36
|
+
*/
|
|
37
|
+
toJSON(): any;
|
|
38
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
39
|
+
}
|
|
40
|
+
export declare function SigningRequestConfigurationListInstance(version: V1): SigningRequestConfigurationListInstance;
|
|
41
|
+
interface SigningRequestConfigurationResource {
|
|
42
|
+
logo_sid: string;
|
|
43
|
+
friendly_name: string;
|
|
44
|
+
product: string;
|
|
45
|
+
country: string;
|
|
46
|
+
email_subject: string;
|
|
47
|
+
email_message: string;
|
|
48
|
+
url_redirection: string;
|
|
49
|
+
url: string;
|
|
50
|
+
}
|
|
51
|
+
export declare class SigningRequestConfigurationInstance {
|
|
52
|
+
protected _version: V1;
|
|
53
|
+
constructor(_version: V1, payload: SigningRequestConfigurationResource);
|
|
54
|
+
/**
|
|
55
|
+
* The SID of the document that includes the logo that will appear in the LOA. To upload documents follow the following guide: https://www.twilio.com/docs/phone-numbers/regulatory/getting-started/create-new-bundle-public-rest-apis#supporting-document-create
|
|
56
|
+
*/
|
|
57
|
+
logoSid: string;
|
|
58
|
+
/**
|
|
59
|
+
* This is the string that you assigned as a friendly name for describing the creation of the configuration.
|
|
60
|
+
*/
|
|
61
|
+
friendlyName: string;
|
|
62
|
+
/**
|
|
63
|
+
* The product or service for which is requesting the signature.
|
|
64
|
+
*/
|
|
65
|
+
product: string;
|
|
66
|
+
/**
|
|
67
|
+
* The country ISO code to apply the configuration.
|
|
68
|
+
*/
|
|
69
|
+
country: string;
|
|
70
|
+
/**
|
|
71
|
+
* Subject of the email that the end client will receive ex: “Twilio Hosting Request”, maximum length of 255 characters.
|
|
72
|
+
*/
|
|
73
|
+
emailSubject: string;
|
|
74
|
+
/**
|
|
75
|
+
* Content of the email that the end client will receive ex: “This is a Hosting request from Twilio, please check the document and sign it”, maximum length of 5,000 characters.
|
|
76
|
+
*/
|
|
77
|
+
emailMessage: string;
|
|
78
|
+
/**
|
|
79
|
+
* Url the end client will be redirected after signing a document.
|
|
80
|
+
*/
|
|
81
|
+
urlRedirection: string;
|
|
82
|
+
url: string;
|
|
83
|
+
/**
|
|
84
|
+
* Provide a user-friendly representation
|
|
85
|
+
*
|
|
86
|
+
* @returns Object
|
|
87
|
+
*/
|
|
88
|
+
toJSON(): {
|
|
89
|
+
logoSid: string;
|
|
90
|
+
friendlyName: string;
|
|
91
|
+
product: string;
|
|
92
|
+
country: string;
|
|
93
|
+
emailSubject: string;
|
|
94
|
+
emailMessage: string;
|
|
95
|
+
urlRedirection: string;
|
|
96
|
+
url: string;
|
|
97
|
+
};
|
|
98
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Numbers
|
|
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.SigningRequestConfigurationInstance = exports.SigningRequestConfigurationListInstance = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../base/serialize");
|
|
20
|
+
function SigningRequestConfigurationListInstance(version) {
|
|
21
|
+
const instance = {};
|
|
22
|
+
instance._version = version;
|
|
23
|
+
instance._solution = {};
|
|
24
|
+
instance._uri = `/SigningRequest/Configuration`;
|
|
25
|
+
instance.create = function create(params, callback) {
|
|
26
|
+
if (params instanceof Function) {
|
|
27
|
+
callback = params;
|
|
28
|
+
params = {};
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
params = params || {};
|
|
32
|
+
}
|
|
33
|
+
let data = {};
|
|
34
|
+
data = params;
|
|
35
|
+
const headers = {};
|
|
36
|
+
headers["Content-Type"] = "application/json";
|
|
37
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
38
|
+
uri: instance._uri,
|
|
39
|
+
method: "post",
|
|
40
|
+
data,
|
|
41
|
+
headers,
|
|
42
|
+
});
|
|
43
|
+
operationPromise = operationPromise.then((payload) => new SigningRequestConfigurationInstance(operationVersion, payload));
|
|
44
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
45
|
+
return operationPromise;
|
|
46
|
+
};
|
|
47
|
+
instance.toJSON = function toJSON() {
|
|
48
|
+
return instance._solution;
|
|
49
|
+
};
|
|
50
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
51
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
52
|
+
};
|
|
53
|
+
return instance;
|
|
54
|
+
}
|
|
55
|
+
exports.SigningRequestConfigurationListInstance = SigningRequestConfigurationListInstance;
|
|
56
|
+
class SigningRequestConfigurationInstance {
|
|
57
|
+
constructor(_version, payload) {
|
|
58
|
+
this._version = _version;
|
|
59
|
+
this.logoSid = payload.logo_sid;
|
|
60
|
+
this.friendlyName = payload.friendly_name;
|
|
61
|
+
this.product = payload.product;
|
|
62
|
+
this.country = payload.country;
|
|
63
|
+
this.emailSubject = payload.email_subject;
|
|
64
|
+
this.emailMessage = payload.email_message;
|
|
65
|
+
this.urlRedirection = payload.url_redirection;
|
|
66
|
+
this.url = payload.url;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Provide a user-friendly representation
|
|
70
|
+
*
|
|
71
|
+
* @returns Object
|
|
72
|
+
*/
|
|
73
|
+
toJSON() {
|
|
74
|
+
return {
|
|
75
|
+
logoSid: this.logoSid,
|
|
76
|
+
friendlyName: this.friendlyName,
|
|
77
|
+
product: this.product,
|
|
78
|
+
country: this.country,
|
|
79
|
+
emailSubject: this.emailSubject,
|
|
80
|
+
emailMessage: this.emailMessage,
|
|
81
|
+
urlRedirection: this.urlRedirection,
|
|
82
|
+
url: this.url,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
[util_1.inspect.custom](_depth, options) {
|
|
86
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.SigningRequestConfigurationInstance = SigningRequestConfigurationInstance;
|
|
@@ -50,6 +50,8 @@ export interface ComplianceTollfreeInquiriesListInstanceCreateOptions {
|
|
|
50
50
|
businessContactPhone?: string;
|
|
51
51
|
/** Theme id for styling the inquiry form. */
|
|
52
52
|
themeSetId?: string;
|
|
53
|
+
/** Skip the messaging use case screen of the inquiry form. */
|
|
54
|
+
skipMessagingUseCase?: boolean;
|
|
53
55
|
}
|
|
54
56
|
export interface ComplianceTollfreeInquiriesSolution {
|
|
55
57
|
}
|
|
@@ -78,6 +78,8 @@ function ComplianceTollfreeInquiriesListInstance(version) {
|
|
|
78
78
|
data["BusinessContactPhone"] = params["businessContactPhone"];
|
|
79
79
|
if (params["themeSetId"] !== undefined)
|
|
80
80
|
data["ThemeSetId"] = params["themeSetId"];
|
|
81
|
+
if (params["skipMessagingUseCase"] !== undefined)
|
|
82
|
+
data["SkipMessagingUseCase"] = serialize.bool(params["skipMessagingUseCase"]);
|
|
81
83
|
const headers = {};
|
|
82
84
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
83
85
|
let operationVersion = version, operationPromise = operationVersion.create({
|