1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Manager API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0-dev
* Contact: support@babelforce.com
* Generated by: https://openapi-generator.tech
*/
use crate::gen::manager::models;
use serde::{Deserialize, Serialize};
/// SettingsTelephonyAgentWrapup : The telephony-scope `agent.wrapup` settings.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SettingsTelephonyAgentWrapup {
/// Allow agents to cancel wrap-up on inbound calls.
#[serde(rename = "cancelWrapUp")]
pub cancel_wrap_up: bool,
/// Allow agents to extend wrap-up on inbound calls.
#[serde(rename = "extendWrapUp")]
pub extend_wrap_up: bool,
/// Maximum wrap-up extension for inbound calls, in seconds.
#[serde(rename = "maxExtension")]
pub max_extension: i32,
/// Enable wrap-up for outbound calls.
#[serde(rename = "enabledOutbound")]
pub enabled_outbound: bool,
/// Allow agents to cancel wrap-up on outbound calls.
#[serde(rename = "cancelWrapUpOutbound")]
pub cancel_wrap_up_outbound: bool,
/// Allow agents to extend wrap-up on outbound calls.
#[serde(rename = "extendWrapUpOutbound")]
pub extend_wrap_up_outbound: bool,
/// Maximum wrap-up extension for outbound calls, in seconds.
#[serde(rename = "maxExtensionOutbound")]
pub max_extension_outbound: i32,
/// Default wrap-up time for outbound calls, in seconds.
#[serde(rename = "wrapupTimeOutbound")]
pub wrapup_time_outbound: i32,
}
impl SettingsTelephonyAgentWrapup {
/// The telephony-scope `agent.wrapup` settings.
pub fn new(
cancel_wrap_up: bool,
extend_wrap_up: bool,
max_extension: i32,
enabled_outbound: bool,
cancel_wrap_up_outbound: bool,
extend_wrap_up_outbound: bool,
max_extension_outbound: i32,
wrapup_time_outbound: i32,
) -> SettingsTelephonyAgentWrapup {
SettingsTelephonyAgentWrapup {
cancel_wrap_up,
extend_wrap_up,
max_extension,
enabled_outbound,
cancel_wrap_up_outbound,
extend_wrap_up_outbound,
max_extension_outbound,
wrapup_time_outbound,
}
}
}