purecloudplatformclientv2 82.0.0 → 83.0.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/ADFS.md +1 -1
- data/docs/AnalyticsEvaluation.md +1 -1
- data/docs/ArchitectApi.md +16 -16
- data/docs/AuthorizationApi.md +2 -2
- data/docs/CustomerInteractionCenter.md +1 -1
- data/docs/EntityListing.md +1 -5
- data/docs/ExternalContactsApi.md +20 -15
- data/docs/GSuite.md +1 -1
- data/docs/IdentityNow.md +1 -1
- data/docs/Library.md +1 -1
- data/docs/ManagementUnit.md +1 -1
- data/docs/MessagingTemplate.md +1 -3
- data/docs/Okta.md +1 -1
- data/docs/OneLogin.md +1 -1
- data/docs/PingIdentity.md +1 -1
- data/docs/PureEngage.md +1 -1
- data/docs/Response.md +2 -2
- data/docs/ResponseManagementApi.md +3 -1
- data/docs/Salesforce.md +1 -1
- data/docs/UsersApi.md +2 -2
- data/docs/ViewFilter.md +3 -0
- data/docs/WhatsAppDefinition.md +15 -0
- data/lib/purecloudplatformclientv2.rb +1 -1
- data/lib/purecloudplatformclientv2/api/architect_api.rb +6 -6
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +30 -25
- data/lib/purecloudplatformclientv2/api/response_management_api.rb +13 -0
- data/lib/purecloudplatformclientv2/api/users_api.rb +2 -2
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/adfs.rb +12 -12
- data/lib/purecloudplatformclientv2/models/analytics_evaluation.rb +13 -13
- data/lib/purecloudplatformclientv2/models/analytics_flow.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_log_message.rb +6 -6
- data/lib/purecloudplatformclientv2/models/audit_query_execution_status_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/audit_query_request.rb +2 -2
- data/lib/purecloudplatformclientv2/models/customer_interaction_center.rb +12 -12
- data/lib/purecloudplatformclientv2/models/dependency.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dependency_object.rb +2 -2
- data/lib/purecloudplatformclientv2/models/dialer_campaign_config_change_campaign.rb +2 -2
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +4 -104
- data/lib/purecloudplatformclientv2/models/flow.rb +2 -2
- data/lib/purecloudplatformclientv2/models/flow_division_view.rb +2 -2
- data/lib/purecloudplatformclientv2/models/g_suite.rb +12 -12
- data/lib/purecloudplatformclientv2/models/identity_now.rb +12 -12
- data/lib/purecloudplatformclientv2/models/library.rb +1 -1
- data/lib/purecloudplatformclientv2/models/management_unit.rb +13 -13
- data/lib/purecloudplatformclientv2/models/messaging_template.rb +9 -76
- data/lib/purecloudplatformclientv2/models/okta.rb +12 -12
- data/lib/purecloudplatformclientv2/models/one_login.rb +12 -12
- data/lib/purecloudplatformclientv2/models/ping_identity.rb +12 -12
- data/lib/purecloudplatformclientv2/models/pure_engage.rb +12 -12
- data/lib/purecloudplatformclientv2/models/response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/salesforce.rb +12 -12
- data/lib/purecloudplatformclientv2/models/view_filter.rb +86 -4
- data/lib/purecloudplatformclientv2/models/whats_app_definition.rb +270 -0
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +4 -4
- data/docs/MessagingApi.md +0 -84
- data/lib/purecloudplatformclientv2/api/messaging_api.rb +0 -110
@@ -27,10 +27,10 @@ module PureCloud
|
|
27
27
|
|
28
28
|
attr_accessor :certificate
|
29
29
|
|
30
|
-
attr_accessor :issuer_uri
|
31
|
-
|
32
30
|
attr_accessor :sso_target_uri
|
33
31
|
|
32
|
+
attr_accessor :issuer_uri
|
33
|
+
|
34
34
|
attr_accessor :disabled
|
35
35
|
|
36
36
|
# The URI for this object
|
@@ -48,10 +48,10 @@ module PureCloud
|
|
48
48
|
|
49
49
|
:'certificate' => :'certificate',
|
50
50
|
|
51
|
-
:'issuer_uri' => :'issuerURI',
|
52
|
-
|
53
51
|
:'sso_target_uri' => :'ssoTargetURI',
|
54
52
|
|
53
|
+
:'issuer_uri' => :'issuerURI',
|
54
|
+
|
55
55
|
:'disabled' => :'disabled',
|
56
56
|
|
57
57
|
:'self_uri' => :'selfUri'
|
@@ -71,10 +71,10 @@ module PureCloud
|
|
71
71
|
|
72
72
|
:'certificate' => :'String',
|
73
73
|
|
74
|
-
:'issuer_uri' => :'String',
|
75
|
-
|
76
74
|
:'sso_target_uri' => :'String',
|
77
75
|
|
76
|
+
:'issuer_uri' => :'String',
|
77
|
+
|
78
78
|
:'disabled' => :'BOOLEAN',
|
79
79
|
|
80
80
|
:'self_uri' => :'String'
|
@@ -127,19 +127,19 @@ module PureCloud
|
|
127
127
|
end
|
128
128
|
|
129
129
|
|
130
|
-
if attributes.has_key?(:'
|
130
|
+
if attributes.has_key?(:'ssoTargetURI')
|
131
131
|
|
132
132
|
|
133
|
-
self.
|
133
|
+
self.sso_target_uri = attributes[:'ssoTargetURI']
|
134
134
|
|
135
135
|
|
136
136
|
end
|
137
137
|
|
138
138
|
|
139
|
-
if attributes.has_key?(:'
|
139
|
+
if attributes.has_key?(:'issuerURI')
|
140
140
|
|
141
141
|
|
142
|
-
self.
|
142
|
+
self.issuer_uri = attributes[:'issuerURI']
|
143
143
|
|
144
144
|
|
145
145
|
end
|
@@ -262,8 +262,8 @@ module PureCloud
|
|
262
262
|
name == o.name &&
|
263
263
|
relying_party_identifier == o.relying_party_identifier &&
|
264
264
|
certificate == o.certificate &&
|
265
|
-
issuer_uri == o.issuer_uri &&
|
266
265
|
sso_target_uri == o.sso_target_uri &&
|
266
|
+
issuer_uri == o.issuer_uri &&
|
267
267
|
disabled == o.disabled &&
|
268
268
|
self_uri == o.self_uri
|
269
269
|
end
|
@@ -277,7 +277,7 @@ module PureCloud
|
|
277
277
|
# Calculates hash code according to all attributes.
|
278
278
|
# @return [Fixnum] Hash code
|
279
279
|
def hash
|
280
|
-
[id, name, relying_party_identifier, certificate,
|
280
|
+
[id, name, relying_party_identifier, certificate, sso_target_uri, issuer_uri, disabled, self_uri].hash
|
281
281
|
end
|
282
282
|
|
283
283
|
# build the object from hash
|
@@ -27,10 +27,10 @@ module PureCloud
|
|
27
27
|
|
28
28
|
attr_accessor :certificate
|
29
29
|
|
30
|
-
attr_accessor :issuer_uri
|
31
|
-
|
32
30
|
attr_accessor :sso_target_uri
|
33
31
|
|
32
|
+
attr_accessor :issuer_uri
|
33
|
+
|
34
34
|
attr_accessor :disabled
|
35
35
|
|
36
36
|
# The URI for this object
|
@@ -48,10 +48,10 @@ module PureCloud
|
|
48
48
|
|
49
49
|
:'certificate' => :'certificate',
|
50
50
|
|
51
|
-
:'issuer_uri' => :'issuerURI',
|
52
|
-
|
53
51
|
:'sso_target_uri' => :'ssoTargetURI',
|
54
52
|
|
53
|
+
:'issuer_uri' => :'issuerURI',
|
54
|
+
|
55
55
|
:'disabled' => :'disabled',
|
56
56
|
|
57
57
|
:'self_uri' => :'selfUri'
|
@@ -71,10 +71,10 @@ module PureCloud
|
|
71
71
|
|
72
72
|
:'certificate' => :'String',
|
73
73
|
|
74
|
-
:'issuer_uri' => :'String',
|
75
|
-
|
76
74
|
:'sso_target_uri' => :'String',
|
77
75
|
|
76
|
+
:'issuer_uri' => :'String',
|
77
|
+
|
78
78
|
:'disabled' => :'BOOLEAN',
|
79
79
|
|
80
80
|
:'self_uri' => :'String'
|
@@ -127,19 +127,19 @@ module PureCloud
|
|
127
127
|
end
|
128
128
|
|
129
129
|
|
130
|
-
if attributes.has_key?(:'
|
130
|
+
if attributes.has_key?(:'ssoTargetURI')
|
131
131
|
|
132
132
|
|
133
|
-
self.
|
133
|
+
self.sso_target_uri = attributes[:'ssoTargetURI']
|
134
134
|
|
135
135
|
|
136
136
|
end
|
137
137
|
|
138
138
|
|
139
|
-
if attributes.has_key?(:'
|
139
|
+
if attributes.has_key?(:'issuerURI')
|
140
140
|
|
141
141
|
|
142
|
-
self.
|
142
|
+
self.issuer_uri = attributes[:'issuerURI']
|
143
143
|
|
144
144
|
|
145
145
|
end
|
@@ -262,8 +262,8 @@ module PureCloud
|
|
262
262
|
name == o.name &&
|
263
263
|
auto_provision_users == o.auto_provision_users &&
|
264
264
|
certificate == o.certificate &&
|
265
|
-
issuer_uri == o.issuer_uri &&
|
266
265
|
sso_target_uri == o.sso_target_uri &&
|
266
|
+
issuer_uri == o.issuer_uri &&
|
267
267
|
disabled == o.disabled &&
|
268
268
|
self_uri == o.self_uri
|
269
269
|
end
|
@@ -277,7 +277,7 @@ module PureCloud
|
|
277
277
|
# Calculates hash code according to all attributes.
|
278
278
|
# @return [Fixnum] Hash code
|
279
279
|
def hash
|
280
|
-
[id, name, auto_provision_users, certificate,
|
280
|
+
[id, name, auto_provision_users, certificate, sso_target_uri, issuer_uri, disabled, self_uri].hash
|
281
281
|
end
|
282
282
|
|
283
283
|
# build the object from hash
|
@@ -48,10 +48,10 @@ module PureCloud
|
|
48
48
|
# Metadata about the text substitutions in json schema format.
|
49
49
|
attr_accessor :substitutions_schema
|
50
50
|
|
51
|
-
# The response type represented by the response
|
51
|
+
# The response type represented by the response.
|
52
52
|
attr_accessor :response_type
|
53
53
|
|
54
|
-
#
|
54
|
+
# An optional messaging template definition for responseType.MessagingTemplate.
|
55
55
|
attr_accessor :messaging_template
|
56
56
|
|
57
57
|
# The URI for this object
|
@@ -25,10 +25,10 @@ module PureCloud
|
|
25
25
|
|
26
26
|
attr_accessor :certificate
|
27
27
|
|
28
|
-
attr_accessor :issuer_uri
|
29
|
-
|
30
28
|
attr_accessor :sso_target_uri
|
31
29
|
|
30
|
+
attr_accessor :issuer_uri
|
31
|
+
|
32
32
|
attr_accessor :disabled
|
33
33
|
|
34
34
|
# The URI for this object
|
@@ -44,10 +44,10 @@ module PureCloud
|
|
44
44
|
|
45
45
|
:'certificate' => :'certificate',
|
46
46
|
|
47
|
-
:'issuer_uri' => :'issuerURI',
|
48
|
-
|
49
47
|
:'sso_target_uri' => :'ssoTargetURI',
|
50
48
|
|
49
|
+
:'issuer_uri' => :'issuerURI',
|
50
|
+
|
51
51
|
:'disabled' => :'disabled',
|
52
52
|
|
53
53
|
:'self_uri' => :'selfUri'
|
@@ -65,10 +65,10 @@ module PureCloud
|
|
65
65
|
|
66
66
|
:'certificate' => :'String',
|
67
67
|
|
68
|
-
:'issuer_uri' => :'String',
|
69
|
-
|
70
68
|
:'sso_target_uri' => :'String',
|
71
69
|
|
70
|
+
:'issuer_uri' => :'String',
|
71
|
+
|
72
72
|
:'disabled' => :'BOOLEAN',
|
73
73
|
|
74
74
|
:'self_uri' => :'String'
|
@@ -112,19 +112,19 @@ module PureCloud
|
|
112
112
|
end
|
113
113
|
|
114
114
|
|
115
|
-
if attributes.has_key?(:'
|
115
|
+
if attributes.has_key?(:'ssoTargetURI')
|
116
116
|
|
117
117
|
|
118
|
-
self.
|
118
|
+
self.sso_target_uri = attributes[:'ssoTargetURI']
|
119
119
|
|
120
120
|
|
121
121
|
end
|
122
122
|
|
123
123
|
|
124
|
-
if attributes.has_key?(:'
|
124
|
+
if attributes.has_key?(:'issuerURI')
|
125
125
|
|
126
126
|
|
127
|
-
self.
|
127
|
+
self.issuer_uri = attributes[:'issuerURI']
|
128
128
|
|
129
129
|
|
130
130
|
end
|
@@ -237,8 +237,8 @@ module PureCloud
|
|
237
237
|
id == o.id &&
|
238
238
|
name == o.name &&
|
239
239
|
certificate == o.certificate &&
|
240
|
-
issuer_uri == o.issuer_uri &&
|
241
240
|
sso_target_uri == o.sso_target_uri &&
|
241
|
+
issuer_uri == o.issuer_uri &&
|
242
242
|
disabled == o.disabled &&
|
243
243
|
self_uri == o.self_uri
|
244
244
|
end
|
@@ -252,7 +252,7 @@ module PureCloud
|
|
252
252
|
# Calculates hash code according to all attributes.
|
253
253
|
# @return [Fixnum] Hash code
|
254
254
|
def hash
|
255
|
-
[id, name, certificate,
|
255
|
+
[id, name, certificate, sso_target_uri, issuer_uri, disabled, self_uri].hash
|
256
256
|
end
|
257
257
|
|
258
258
|
# build the object from hash
|
@@ -126,6 +126,9 @@ module PureCloud
|
|
126
126
|
# Indicates filtering for abandons
|
127
127
|
attr_accessor :abandoned
|
128
128
|
|
129
|
+
# Indicates filtering for answered interactions
|
130
|
+
attr_accessor :answered
|
131
|
+
|
129
132
|
# The message media types used to filter the view
|
130
133
|
attr_accessor :message_types
|
131
134
|
|
@@ -243,6 +246,12 @@ module PureCloud
|
|
243
246
|
# The location Ids used to filter the view
|
244
247
|
attr_accessor :location_ids
|
245
248
|
|
249
|
+
# A list of flow out types
|
250
|
+
attr_accessor :flow_out_types
|
251
|
+
|
252
|
+
# A list of providers
|
253
|
+
attr_accessor :provider_list
|
254
|
+
|
246
255
|
# Attribute mapping from ruby-style variable name to JSON key.
|
247
256
|
def self.attribute_map
|
248
257
|
{
|
@@ -319,6 +328,8 @@ module PureCloud
|
|
319
328
|
|
320
329
|
:'abandoned' => :'abandoned',
|
321
330
|
|
331
|
+
:'answered' => :'answered',
|
332
|
+
|
322
333
|
:'message_types' => :'messageTypes',
|
323
334
|
|
324
335
|
:'division_ids' => :'divisionIds',
|
@@ -395,7 +406,11 @@ module PureCloud
|
|
395
406
|
|
396
407
|
:'reports_tos' => :'reportsTos',
|
397
408
|
|
398
|
-
:'location_ids' => :'locationIds'
|
409
|
+
:'location_ids' => :'locationIds',
|
410
|
+
|
411
|
+
:'flow_out_types' => :'flowOutTypes',
|
412
|
+
|
413
|
+
:'provider_list' => :'providerList'
|
399
414
|
|
400
415
|
}
|
401
416
|
end
|
@@ -476,6 +491,8 @@ module PureCloud
|
|
476
491
|
|
477
492
|
:'abandoned' => :'BOOLEAN',
|
478
493
|
|
494
|
+
:'answered' => :'BOOLEAN',
|
495
|
+
|
479
496
|
:'message_types' => :'Array<String>',
|
480
497
|
|
481
498
|
:'division_ids' => :'Array<String>',
|
@@ -552,7 +569,11 @@ module PureCloud
|
|
552
569
|
|
553
570
|
:'reports_tos' => :'Array<String>',
|
554
571
|
|
555
|
-
:'location_ids' => :'Array<String>'
|
572
|
+
:'location_ids' => :'Array<String>',
|
573
|
+
|
574
|
+
:'flow_out_types' => :'Array<String>',
|
575
|
+
|
576
|
+
:'provider_list' => :'Array<String>'
|
556
577
|
|
557
578
|
}
|
558
579
|
end
|
@@ -954,6 +975,15 @@ module PureCloud
|
|
954
975
|
end
|
955
976
|
|
956
977
|
|
978
|
+
if attributes.has_key?(:'answered')
|
979
|
+
|
980
|
+
|
981
|
+
self.answered = attributes[:'answered']
|
982
|
+
|
983
|
+
|
984
|
+
end
|
985
|
+
|
986
|
+
|
957
987
|
if attributes.has_key?(:'messageTypes')
|
958
988
|
|
959
989
|
if (value = attributes[:'messageTypes']).is_a?(Array)
|
@@ -1351,6 +1381,28 @@ module PureCloud
|
|
1351
1381
|
end
|
1352
1382
|
|
1353
1383
|
|
1384
|
+
if attributes.has_key?(:'flowOutTypes')
|
1385
|
+
|
1386
|
+
if (value = attributes[:'flowOutTypes']).is_a?(Array)
|
1387
|
+
self.flow_out_types = value
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
|
1395
|
+
if attributes.has_key?(:'providerList')
|
1396
|
+
|
1397
|
+
if (value = attributes[:'providerList']).is_a?(Array)
|
1398
|
+
self.provider_list = value
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
|
1402
|
+
|
1403
|
+
end
|
1404
|
+
|
1405
|
+
|
1354
1406
|
end
|
1355
1407
|
|
1356
1408
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1653,6 +1705,18 @@ module PureCloud
|
|
1653
1705
|
|
1654
1706
|
|
1655
1707
|
|
1708
|
+
|
1709
|
+
|
1710
|
+
|
1711
|
+
|
1712
|
+
|
1713
|
+
|
1714
|
+
|
1715
|
+
|
1716
|
+
|
1717
|
+
|
1718
|
+
|
1719
|
+
|
1656
1720
|
|
1657
1721
|
|
1658
1722
|
|
@@ -2028,6 +2092,21 @@ module PureCloud
|
|
2028
2092
|
|
2029
2093
|
|
2030
2094
|
|
2095
|
+
|
2096
|
+
|
2097
|
+
|
2098
|
+
|
2099
|
+
|
2100
|
+
|
2101
|
+
|
2102
|
+
|
2103
|
+
|
2104
|
+
|
2105
|
+
|
2106
|
+
|
2107
|
+
|
2108
|
+
|
2109
|
+
|
2031
2110
|
|
2032
2111
|
|
2033
2112
|
|
@@ -2085,6 +2164,7 @@ module PureCloud
|
|
2085
2164
|
evaluator_ids == o.evaluator_ids &&
|
2086
2165
|
transferred == o.transferred &&
|
2087
2166
|
abandoned == o.abandoned &&
|
2167
|
+
answered == o.answered &&
|
2088
2168
|
message_types == o.message_types &&
|
2089
2169
|
division_ids == o.division_ids &&
|
2090
2170
|
survey_form_ids == o.survey_form_ids &&
|
@@ -2123,7 +2203,9 @@ module PureCloud
|
|
2123
2203
|
has_media == o.has_media &&
|
2124
2204
|
role_ids == o.role_ids &&
|
2125
2205
|
reports_tos == o.reports_tos &&
|
2126
|
-
location_ids == o.location_ids
|
2206
|
+
location_ids == o.location_ids &&
|
2207
|
+
flow_out_types == o.flow_out_types &&
|
2208
|
+
provider_list == o.provider_list
|
2127
2209
|
end
|
2128
2210
|
|
2129
2211
|
# @see the `==` method
|
@@ -2135,7 +2217,7 @@ module PureCloud
|
|
2135
2217
|
# Calculates hash code according to all attributes.
|
2136
2218
|
# @return [Fixnum] Hash code
|
2137
2219
|
def hash
|
2138
|
-
[media_types, queue_ids, skill_ids, skill_groups, language_ids, language_groups, directions, originating_directions, wrap_up_codes, dnis_list, session_dnis_list, filter_queues_by_user_ids, filter_users_by_queue_ids, user_ids, address_tos, address_froms, outbound_campaign_ids, outbound_contact_list_ids, contact_ids, external_contact_ids, external_org_ids, ani_list, durations_milliseconds, acd_durations_milliseconds, talk_durations_milliseconds, acw_durations_milliseconds, handle_durations_milliseconds, hold_durations_milliseconds, abandon_durations_milliseconds, evaluation_score, evaluation_critical_score, evaluation_form_ids, evaluated_agent_ids, evaluator_ids, transferred, abandoned, message_types, division_ids, survey_form_ids, survey_total_score, survey_nps_score, mos, survey_question_group_score, survey_promoter_score, survey_form_context_ids, conversation_ids, sip_call_ids, is_ended, is_surveyed, survey_scores, promoter_scores, is_campaign, survey_statuses, conversation_properties, is_blind_transferred, is_consulted, is_consult_transferred, remote_participants, flow_ids, flow_outcome_ids, flow_outcome_values, flow_destination_types, flow_disconnect_reasons, flow_types, flow_entry_types, flow_entry_reasons, flow_versions, group_ids, has_journey_customer_id, has_journey_action_map_id, has_journey_visit_id, has_media, role_ids, reports_tos, location_ids].hash
|
2220
|
+
[media_types, queue_ids, skill_ids, skill_groups, language_ids, language_groups, directions, originating_directions, wrap_up_codes, dnis_list, session_dnis_list, filter_queues_by_user_ids, filter_users_by_queue_ids, user_ids, address_tos, address_froms, outbound_campaign_ids, outbound_contact_list_ids, contact_ids, external_contact_ids, external_org_ids, ani_list, durations_milliseconds, acd_durations_milliseconds, talk_durations_milliseconds, acw_durations_milliseconds, handle_durations_milliseconds, hold_durations_milliseconds, abandon_durations_milliseconds, evaluation_score, evaluation_critical_score, evaluation_form_ids, evaluated_agent_ids, evaluator_ids, transferred, abandoned, answered, message_types, division_ids, survey_form_ids, survey_total_score, survey_nps_score, mos, survey_question_group_score, survey_promoter_score, survey_form_context_ids, conversation_ids, sip_call_ids, is_ended, is_surveyed, survey_scores, promoter_scores, is_campaign, survey_statuses, conversation_properties, is_blind_transferred, is_consulted, is_consult_transferred, remote_participants, flow_ids, flow_outcome_ids, flow_outcome_values, flow_destination_types, flow_disconnect_reasons, flow_types, flow_entry_types, flow_entry_reasons, flow_versions, group_ids, has_journey_customer_id, has_journey_action_map_id, has_journey_visit_id, has_media, role_ids, reports_tos, location_ids, flow_out_types, provider_list].hash
|
2139
2221
|
end
|
2140
2222
|
|
2141
2223
|
# build the object from hash
|
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: UNLICENSED
|
11
|
+
https://help.mypurecloud.com/articles/terms-and-conditions/
|
12
|
+
|
13
|
+
Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
# A WhatsApp messaging template definition as defined in the WhatsApp Business Manager
|
21
|
+
class WhatsAppDefinition
|
22
|
+
# The messaging template name.
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# The messaging template namespace.
|
26
|
+
attr_accessor :namespace
|
27
|
+
|
28
|
+
# The messaging template language configured for this template. This is a WhatsApp specific value. For example, 'en_US'
|
29
|
+
attr_accessor :language
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
|
35
|
+
:'name' => :'name',
|
36
|
+
|
37
|
+
:'namespace' => :'namespace',
|
38
|
+
|
39
|
+
:'language' => :'language'
|
40
|
+
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.swagger_types
|
46
|
+
{
|
47
|
+
|
48
|
+
:'name' => :'String',
|
49
|
+
|
50
|
+
:'namespace' => :'String',
|
51
|
+
|
52
|
+
:'language' => :'String'
|
53
|
+
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
return unless attributes.is_a?(Hash)
|
61
|
+
|
62
|
+
# convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
|
+
|
65
|
+
|
66
|
+
if attributes.has_key?(:'name')
|
67
|
+
|
68
|
+
|
69
|
+
self.name = attributes[:'name']
|
70
|
+
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
|
75
|
+
if attributes.has_key?(:'namespace')
|
76
|
+
|
77
|
+
|
78
|
+
self.namespace = attributes[:'namespace']
|
79
|
+
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
|
84
|
+
if attributes.has_key?(:'language')
|
85
|
+
|
86
|
+
|
87
|
+
self.language = attributes[:'language']
|
88
|
+
|
89
|
+
|
90
|
+
end
|
91
|
+
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
+
# @return Array for valid properies with the reasons
|
97
|
+
def list_invalid_properties
|
98
|
+
invalid_properties = Array.new
|
99
|
+
|
100
|
+
|
101
|
+
return invalid_properties
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
def valid?
|
107
|
+
|
108
|
+
|
109
|
+
if @name.nil?
|
110
|
+
return false
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
if @namespace.nil?
|
119
|
+
return false
|
120
|
+
end
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
if @language.nil?
|
128
|
+
return false
|
129
|
+
end
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
end
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
# Checks equality by comparing each attribute.
|
154
|
+
# @param [Object] Object to be compared
|
155
|
+
def ==(o)
|
156
|
+
return true if self.equal?(o)
|
157
|
+
self.class == o.class &&
|
158
|
+
name == o.name &&
|
159
|
+
namespace == o.namespace &&
|
160
|
+
language == o.language
|
161
|
+
end
|
162
|
+
|
163
|
+
# @see the `==` method
|
164
|
+
# @param [Object] Object to be compared
|
165
|
+
def eql?(o)
|
166
|
+
self == o
|
167
|
+
end
|
168
|
+
|
169
|
+
# Calculates hash code according to all attributes.
|
170
|
+
# @return [Fixnum] Hash code
|
171
|
+
def hash
|
172
|
+
[name, namespace, language].hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# build the object from hash
|
176
|
+
def build_from_hash(attributes)
|
177
|
+
return nil unless attributes.is_a?(Hash)
|
178
|
+
self.class.swagger_types.each_pair do |key, type|
|
179
|
+
if type =~ /^Array<(.*)>/i
|
180
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
182
|
+
else
|
183
|
+
#TODO show warning in debug mode
|
184
|
+
end
|
185
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
186
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
187
|
+
else
|
188
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
self
|
193
|
+
end
|
194
|
+
|
195
|
+
def _deserialize(type, value)
|
196
|
+
case type.to_sym
|
197
|
+
when :DateTime
|
198
|
+
DateTime.parse(value)
|
199
|
+
when :Date
|
200
|
+
Date.parse(value)
|
201
|
+
when :String
|
202
|
+
value.to_s
|
203
|
+
when :Integer
|
204
|
+
value.to_i
|
205
|
+
when :Float
|
206
|
+
value.to_f
|
207
|
+
when :BOOLEAN
|
208
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
209
|
+
true
|
210
|
+
else
|
211
|
+
false
|
212
|
+
end
|
213
|
+
when :Object
|
214
|
+
# generic object (usually a Hash), return directly
|
215
|
+
value
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
219
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each do |k, v|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
else # model
|
228
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
229
|
+
_model.build_from_hash(value)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
def to_s
|
234
|
+
to_hash.to_s
|
235
|
+
end
|
236
|
+
|
237
|
+
# to_body is an alias to to_body (backward compatibility))
|
238
|
+
def to_body
|
239
|
+
to_hash
|
240
|
+
end
|
241
|
+
|
242
|
+
# return the object in the form of hash
|
243
|
+
def to_hash
|
244
|
+
hash = {}
|
245
|
+
self.class.attribute_map.each_pair do |attr, param|
|
246
|
+
value = self.send(attr)
|
247
|
+
next if value.nil?
|
248
|
+
hash[param] = _to_hash(value)
|
249
|
+
end
|
250
|
+
hash
|
251
|
+
end
|
252
|
+
|
253
|
+
# Method to output non-array value in the form of hash
|
254
|
+
# For object, use to_hash. Otherwise, just return the value
|
255
|
+
def _to_hash(value)
|
256
|
+
if value.is_a?(Array)
|
257
|
+
value.compact.map{ |v| _to_hash(v) }
|
258
|
+
elsif value.is_a?(Hash)
|
259
|
+
{}.tap do |hash|
|
260
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
261
|
+
end
|
262
|
+
elsif value.respond_to? :to_hash
|
263
|
+
value.to_hash
|
264
|
+
else
|
265
|
+
value
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
end
|
270
|
+
end
|