-
Notifications
You must be signed in to change notification settings - Fork 12
/
createcallbackcommand.go
62 lines (38 loc) · 2.47 KB
/
createcallbackcommand.go
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
package platformclientv2
import (
"time"
"encoding/json"
"strconv"
"strings"
)
// Createcallbackcommand
type Createcallbackcommand struct {
// ScriptId - The identifier of the script to be used for the callback
ScriptId *string `json:"scriptId,omitempty"`
// QueueId - The identifier of the queue to be used for the callback. Either queueId or routingData is required.
QueueId *string `json:"queueId,omitempty"`
// RoutingData - The routing data to be used for the callback. Either queueId or routingData is required.
RoutingData *Routingdata `json:"routingData,omitempty"`
// CallbackUserName - The name of the party to be called back.
CallbackUserName *string `json:"callbackUserName,omitempty"`
// CallbackNumbers - A list of phone numbers for the callback.
CallbackNumbers *[]string `json:"callbackNumbers,omitempty"`
// CallbackScheduledTime - The scheduled date-time for the callback as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
CallbackScheduledTime *time.Time `json:"callbackScheduledTime,omitempty"`
// CountryCode - The country code to be associated with the callback numbers.
CountryCode *string `json:"countryCode,omitempty"`
// ValidateCallbackNumbers - Whether or not to validate the callback numbers for phone number format.
ValidateCallbackNumbers *bool `json:"validateCallbackNumbers,omitempty"`
// Data - A map of key-value pairs containing additional data that can be associated to the callback. These values will appear in the attributes property on the conversation participant. Example: { \"notes\": \"ready to close the deal!\", \"customerPreferredName\": \"Doc\" }
Data *map[string]string `json:"data,omitempty"`
// CallerId - The phone number displayed to recipients when a phone call is placed as part of the callback. Must conform to the E.164 format. May be overridden by other settings in the system such as external trunk settings. Telco support for \"callerId\" varies.
CallerId *string `json:"callerId,omitempty"`
// CallerIdName - The name displayed to recipients when a phone call is placed as part of the callback. May be overridden by other settings in the system such as external trunk settings. Telco support for \"callerIdName\" varies.
CallerIdName *string `json:"callerIdName,omitempty"`
}
// String returns a JSON representation of the model
func (o *Createcallbackcommand) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}