Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update asyncAmd property type to boolean #1036

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/rest/api/v2010/account/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export interface CallListInstanceCreateOptions {
/** The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. */
machineDetectionSilenceTimeout?: number;
/** Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`. */
asyncAmd?: string;
asyncAmd?: boolean;
/** The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. */
asyncAmdStatusCallback?: string;
/** The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
Expand Down Expand Up @@ -1093,7 +1093,8 @@ export function CallListInstance(
if (params["machineDetectionSilenceTimeout"] !== undefined)
data["MachineDetectionSilenceTimeout"] =
params["machineDetectionSilenceTimeout"];
if (params["asyncAmd"] !== undefined) data["AsyncAmd"] = params["asyncAmd"];
if (params["asyncAmd"] !== undefined)
data["AsyncAmd"] = serialize.bool(params["asyncAmd"]);
if (params["asyncAmdStatusCallback"] !== undefined)
data["AsyncAmdStatusCallback"] = params["asyncAmdStatusCallback"];
if (params["asyncAmdStatusCallbackMethod"] !== undefined)
Expand Down
Loading