twilio-ruby 5.34.0 → 5.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +126 -0
- data/README.md +24 -3
- data/lib/twilio-ruby.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +47 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +38 -3
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +12 -12
- data/lib/twilio-ruby/rest/autopilot.rb +6 -0
- data/lib/twilio-ruby/rest/autopilot/v1.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -16
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +12 -3
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +198 -0
- data/lib/twilio-ruby/rest/client.rb +35 -15
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +28 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service.rb +20 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +26 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +324 -0
- data/lib/twilio-ruby/rest/preview.rb +6 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +193 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
- data/lib/twilio-ruby/rest/{autopilot/v1/assistant/export_assistant.rb → preview/trusted_comms/business/brand.rb} +88 -71
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +194 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +18 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +30 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +63 -16
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
- data/lib/twilio-ruby/rest/{authy/v1/service.rb → supersim/v1/network_access_profile.rb} +95 -121
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/form.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +74 -3
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity.rb +32 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +141 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor.rb +8 -8
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor/challenge.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +425 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
- data/lib/twilio-ruby/rest/voice.rb +36 -0
- data/lib/twilio-ruby/rest/voice/v1.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +513 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +379 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +458 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +366 -0
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +346 -0
- data/lib/twilio-ruby/util/configuration.rb +9 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +5 -5
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +177 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -14
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +12 -4
- data/spec/integration/api/v2010/account/token_spec.rb +23 -11
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -4
- data/spec/integration/autopilot/v1/assistant_spec.rb +4 -8
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +53 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +16 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +623 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +4 -0
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +44 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
- data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
- data/spec/integration/supersim/v1/fleet_spec.rb +16 -7
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +223 -0
- data/spec/integration/supersim/v1/network_spec.rb +139 -0
- data/spec/integration/supersim/v1/sim_spec.rb +78 -6
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
- data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
- data/spec/integration/{authy/v1 → verify/v2}/form_spec.rb +4 -4
- data/spec/integration/verify/v2/service/entity/access_token_spec.rb +46 -0
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor/challenge_spec.rb +73 -73
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor_spec.rb +54 -54
- data/spec/integration/verify/v2/service/entity_spec.rb +204 -0
- data/spec/integration/verify/v2/service/webhook_spec.rb +262 -0
- data/spec/integration/verify/v2/service_spec.rb +32 -4
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +250 -0
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +246 -0
- data/spec/integration/voice/v1/connection_policy_spec.rb +226 -0
- data/spec/integration/voice/v1/ip_record_spec.rb +223 -0
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +219 -0
- data/spec/rest/client_spec.rb +168 -58
- data/spec/util/configuration_spec.rb +12 -0
- data/twilio-ruby.gemspec +1 -1
- metadata +63 -23
- data/lib/twilio-ruby/rest/authy.rb +0 -55
- data/lib/twilio-ruby/rest/authy/v1.rb +0 -59
- data/spec/integration/authy/v1/service/entity_spec.rb +0 -201
- data/spec/integration/authy/v1/service_spec.rb +0 -231
- data/spec/integration/autopilot/v1/assistant/export_assistant_spec.rb +0 -49
@@ -30,12 +30,12 @@ describe 'OutgoingCallerId' do
|
|
30
30
|
200,
|
31
31
|
%q[
|
32
32
|
{
|
33
|
+
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
33
34
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
-
"date_created": "Fri, 21 Aug 2009 00:11:24 +0000",
|
35
|
-
"date_updated": "Fri, 21 Aug 2009 00:11:24 +0000",
|
36
35
|
"friendly_name": "(415) 867-5309",
|
37
36
|
"phone_number": "+141586753096",
|
38
|
-
"
|
37
|
+
"date_created": "Fri, 21 Aug 2009 00:11:24 +0000",
|
38
|
+
"date_updated": "Fri, 21 Aug 2009 00:11:24 +0000",
|
39
39
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
40
40
|
}
|
41
41
|
]
|
@@ -71,7 +71,7 @@ describe 'OutgoingCallerId' do
|
|
71
71
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
72
72
|
"date_created": "Fri, 21 Aug 2009 00:11:24 +0000",
|
73
73
|
"date_updated": "Fri, 21 Aug 2009 00:11:24 +0000",
|
74
|
-
"friendly_name": "
|
74
|
+
"friendly_name": "friendly_name",
|
75
75
|
"phone_number": "+141586753096",
|
76
76
|
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
77
77
|
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
|
@@ -135,10 +135,8 @@ describe 'OutgoingCallerId' do
|
|
135
135
|
%q[
|
136
136
|
{
|
137
137
|
"end": 0,
|
138
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0
|
139
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0&PageSize=50",
|
138
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0",
|
140
139
|
"next_page_uri": null,
|
141
|
-
"num_pages": 1,
|
142
140
|
"outgoing_caller_ids": [
|
143
141
|
{
|
144
142
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
@@ -154,8 +152,7 @@ describe 'OutgoingCallerId' do
|
|
154
152
|
"page_size": 50,
|
155
153
|
"previous_page_uri": null,
|
156
154
|
"start": 0,
|
157
|
-
"
|
158
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json"
|
155
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0"
|
159
156
|
}
|
160
157
|
]
|
161
158
|
))
|
@@ -172,17 +169,14 @@ describe 'OutgoingCallerId' do
|
|
172
169
|
%q[
|
173
170
|
{
|
174
171
|
"end": 0,
|
175
|
-
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0
|
176
|
-
"last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0&PageSize=50",
|
172
|
+
"first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0",
|
177
173
|
"next_page_uri": null,
|
178
|
-
"num_pages": 1,
|
179
174
|
"outgoing_caller_ids": [],
|
180
175
|
"page": 0,
|
181
176
|
"page_size": 50,
|
182
177
|
"previous_page_uri": null,
|
183
178
|
"start": 0,
|
184
|
-
"
|
185
|
-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json"
|
179
|
+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0"
|
186
180
|
}
|
187
181
|
]
|
188
182
|
))
|
@@ -54,7 +54,9 @@ describe 'Domain' do
|
|
54
54
|
"voice_status_callback_url": null,
|
55
55
|
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
|
56
56
|
"emergency_calling_enabled": true,
|
57
|
-
"secure": true
|
57
|
+
"secure": true,
|
58
|
+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
59
|
+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
58
60
|
}
|
59
61
|
],
|
60
62
|
"start": 0,
|
@@ -145,7 +147,9 @@ describe 'Domain' do
|
|
145
147
|
"voice_status_callback_url": null,
|
146
148
|
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
|
147
149
|
"emergency_calling_enabled": true,
|
148
|
-
"secure": true
|
150
|
+
"secure": true,
|
151
|
+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
152
|
+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
149
153
|
}
|
150
154
|
]
|
151
155
|
))
|
@@ -200,7 +204,9 @@ describe 'Domain' do
|
|
200
204
|
"voice_status_callback_url": null,
|
201
205
|
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
|
202
206
|
"emergency_calling_enabled": true,
|
203
|
-
"secure": true
|
207
|
+
"secure": true,
|
208
|
+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
209
|
+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
204
210
|
}
|
205
211
|
]
|
206
212
|
))
|
@@ -255,7 +261,9 @@ describe 'Domain' do
|
|
255
261
|
"voice_status_callback_url": null,
|
256
262
|
"voice_url": "https://dundermifflin.example.com/twilio/app.php",
|
257
263
|
"emergency_calling_enabled": true,
|
258
|
-
"secure": true
|
264
|
+
"secure": true,
|
265
|
+
"byoc_trunk_sid": "BYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
266
|
+
"emergency_caller_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
259
267
|
}
|
260
268
|
]
|
261
269
|
))
|
@@ -30,24 +30,36 @@ describe 'Token' do
|
|
30
30
|
201,
|
31
31
|
%q[
|
32
32
|
{
|
33
|
-
"
|
34
|
-
"date_created": "Fri, 24 Jul 2015 18:43:58 +0000",
|
35
|
-
"date_updated": "Fri, 24 Jul 2015 18:43:58 +0000",
|
33
|
+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
|
36
34
|
"ice_servers": [
|
37
35
|
{
|
38
|
-
"url": "stun:global.stun:3478?transport=udp",
|
39
|
-
"urls": "stun:global.stun:3478?transport=udp"
|
36
|
+
"url": "stun:global.stun.twilio.com:3478?transport=udp",
|
37
|
+
"urls": "stun:global.stun.twilio.com:3478?transport=udp"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
|
41
|
+
"credential": "tE2DajzSJwnsSbc123",
|
42
|
+
"url": "turn:global.turn.twilio.com:3478?transport=udp",
|
43
|
+
"urls": "turn:global.turn.twilio.com:3478?transport=udp"
|
40
44
|
},
|
41
45
|
{
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
|
47
|
+
"credential": "tE2DajzSJwnsSbc123",
|
48
|
+
"url": "turn:global.turn.twilio.com:3478?transport=tcp",
|
49
|
+
"urls": "turn:global.turn.twilio.com:3478?transport=tcp"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"username": "dc2d2894d5a9023620c467b0e71cfa6a35457e6679785ed6ae9856fe5bdfa269",
|
53
|
+
"credential": "tE2DajzSJwnsSbc123",
|
54
|
+
"url": "turn:global.turn.twilio.com:443?transport=tcp",
|
55
|
+
"urls": "turn:global.turn.twilio.com:443?transport=tcp"
|
46
56
|
}
|
47
57
|
],
|
48
|
-
"
|
58
|
+
"date_updated": "Fri, 01 May 2020 01:42:57 +0000",
|
59
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
49
60
|
"ttl": "86400",
|
50
|
-
"
|
61
|
+
"date_created": "Fri, 01 May 2020 01:42:57 +0000",
|
62
|
+
"password": "tE2DajzSJwnsSbc123"
|
51
63
|
}
|
52
64
|
]
|
53
65
|
))
|
@@ -88,10 +88,10 @@ describe 'Query' do
|
|
88
88
|
"meta": {
|
89
89
|
"previous_page_url": null,
|
90
90
|
"next_page_url": null,
|
91
|
-
"first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
91
|
+
"first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
92
92
|
"page": 0,
|
93
93
|
"key": "queries",
|
94
|
-
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
94
|
+
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
95
95
|
"page_size": 50
|
96
96
|
}
|
97
97
|
}
|
@@ -139,10 +139,10 @@ describe 'Query' do
|
|
139
139
|
"meta": {
|
140
140
|
"previous_page_url": null,
|
141
141
|
"next_page_url": null,
|
142
|
-
"first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
142
|
+
"first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
143
143
|
"page": 0,
|
144
144
|
"key": "queries",
|
145
|
-
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
145
|
+
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
|
146
146
|
"page_size": 50
|
147
147
|
}
|
148
148
|
}
|
@@ -47,8 +47,7 @@ describe 'Assistant' do
|
|
47
47
|
"style_sheet": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/StyleSheet",
|
48
48
|
"defaults": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Defaults",
|
49
49
|
"dialogues": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Dialogues",
|
50
|
-
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
51
|
-
"export_assistant": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Export"
|
50
|
+
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
52
51
|
},
|
53
52
|
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
54
53
|
"callback_url": "https://example.com/callback_url",
|
@@ -126,8 +125,7 @@ describe 'Assistant' do
|
|
126
125
|
"style_sheet": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/StyleSheet",
|
127
126
|
"defaults": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Defaults",
|
128
127
|
"dialogues": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Dialogues",
|
129
|
-
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
130
|
-
"export_assistant": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Export"
|
128
|
+
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
131
129
|
},
|
132
130
|
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
133
131
|
"callback_url": "https://example.com/callback_url",
|
@@ -190,8 +188,7 @@ describe 'Assistant' do
|
|
190
188
|
"style_sheet": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/StyleSheet",
|
191
189
|
"defaults": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Defaults",
|
192
190
|
"dialogues": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Dialogues",
|
193
|
-
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
194
|
-
"export_assistant": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Export"
|
191
|
+
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
195
192
|
},
|
196
193
|
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
197
194
|
"callback_url": "https://example.com/callback_url",
|
@@ -243,8 +240,7 @@ describe 'Assistant' do
|
|
243
240
|
"style_sheet": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/StyleSheet",
|
244
241
|
"defaults": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Defaults",
|
245
242
|
"dialogues": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Dialogues",
|
246
|
-
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
247
|
-
"export_assistant": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Export"
|
243
|
+
"webhooks": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks"
|
248
244
|
},
|
249
245
|
"url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
250
246
|
"callback_url": "https://example.com/callback_url",
|
@@ -0,0 +1,53 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'RestoreAssistant' do
|
12
|
+
it "can update" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.autopilot.v1.restore_assistant.update(assistant: 'UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
17
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
18
|
+
|
19
|
+
values = {'Assistant' => 'UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
|
20
|
+
expect(
|
21
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
22
|
+
method: 'post',
|
23
|
+
url: 'https://autopilot.twilio.com/v1/Assistants/Restore',
|
24
|
+
data: values,
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives update responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
200,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"date_created": "2017-07-04T08:34:00Z",
|
36
|
+
"date_updated": "2017-07-04T08:34:00Z",
|
37
|
+
"unique_name": "so-so-unique",
|
38
|
+
"friendly_name": "so so friendly",
|
39
|
+
"needs_model_build": false,
|
40
|
+
"latest_model_build_sid": null,
|
41
|
+
"log_queries": true,
|
42
|
+
"development_stage": "in-development",
|
43
|
+
"callback_url": "https://example.com/callback_url",
|
44
|
+
"callback_events": "model_build_completed model_build_failed"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
))
|
48
|
+
|
49
|
+
actual = @client.autopilot.v1.restore_assistant.update(assistant: 'UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
50
|
+
|
51
|
+
expect(actual).to_not eq(nil)
|
52
|
+
end
|
53
|
+
end
|
@@ -40,6 +40,7 @@ describe 'Participant' do
|
|
40
40
|
"address": "+15558675310",
|
41
41
|
"proxy_address": "+15017122661"
|
42
42
|
},
|
43
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
43
44
|
"date_created": "2015-12-16T22:18:37Z",
|
44
45
|
"date_updated": "2015-12-16T22:18:38Z",
|
45
46
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -64,6 +65,7 @@ describe 'Participant' do
|
|
64
65
|
"identity": "IDENTITY",
|
65
66
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
66
67
|
"messaging_binding": null,
|
68
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
67
69
|
"date_created": "2015-12-16T22:18:37Z",
|
68
70
|
"date_updated": "2015-12-16T22:18:38Z",
|
69
71
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -91,6 +93,7 @@ describe 'Participant' do
|
|
91
93
|
"type": "sms",
|
92
94
|
"projected_address": "+15017122661"
|
93
95
|
},
|
96
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
94
97
|
"date_created": "2015-12-16T22:18:37Z",
|
95
98
|
"date_updated": "2015-12-16T22:18:38Z",
|
96
99
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -135,6 +138,7 @@ describe 'Participant' do
|
|
135
138
|
"address": "+15558675310",
|
136
139
|
"proxy_address": "+15017122661"
|
137
140
|
},
|
141
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
138
142
|
"date_created": "2015-12-16T22:18:37Z",
|
139
143
|
"date_updated": "2015-12-16T22:18:38Z",
|
140
144
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -207,6 +211,7 @@ describe 'Participant' do
|
|
207
211
|
"address": "+15558675310",
|
208
212
|
"proxy_address": "+15017122661"
|
209
213
|
},
|
214
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
210
215
|
"date_created": "2016-03-24T21:05:50Z",
|
211
216
|
"date_updated": "2016-03-24T21:05:50Z",
|
212
217
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -262,6 +267,7 @@ describe 'Participant' do
|
|
262
267
|
"address": "+15558675310",
|
263
268
|
"proxy_address": "+15017122661"
|
264
269
|
},
|
270
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
265
271
|
"date_created": "2016-03-24T21:05:50Z",
|
266
272
|
"date_updated": "2016-03-24T21:05:50Z",
|
267
273
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -273,6 +279,7 @@ describe 'Participant' do
|
|
273
279
|
"identity": "IDENTITY",
|
274
280
|
"attributes": "{ \\"role\\": \\"driver\\" }",
|
275
281
|
"messaging_binding": null,
|
282
|
+
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
276
283
|
"date_created": "2016-03-24T21:05:50Z",
|
277
284
|
"date_updated": "2016-03-24T21:05:50Z",
|
278
285
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
@@ -38,6 +38,10 @@ describe 'Conversation' do
|
|
38
38
|
"date_created": "2015-12-16T22:18:37Z",
|
39
39
|
"date_updated": "2015-12-16T22:18:38Z",
|
40
40
|
"state": "inactive",
|
41
|
+
"timers": {
|
42
|
+
"date_inactive": "2015-12-16T22:19:38Z",
|
43
|
+
"date_closed": "2015-12-16T22:28:38Z"
|
44
|
+
},
|
41
45
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
42
46
|
"links": {
|
43
47
|
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
|
@@ -82,6 +86,10 @@ describe 'Conversation' do
|
|
82
86
|
"date_created": "2015-12-16T22:18:37Z",
|
83
87
|
"date_updated": "2015-12-16T22:18:38Z",
|
84
88
|
"state": "inactive",
|
89
|
+
"timers": {
|
90
|
+
"date_inactive": "2015-12-16T22:19:38Z",
|
91
|
+
"date_closed": "2015-12-16T22:28:38Z"
|
92
|
+
},
|
85
93
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
86
94
|
"links": {
|
87
95
|
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
|
@@ -152,6 +160,10 @@ describe 'Conversation' do
|
|
152
160
|
"date_created": "2015-12-16T22:18:37Z",
|
153
161
|
"date_updated": "2015-12-16T22:18:38Z",
|
154
162
|
"state": "active",
|
163
|
+
"timers": {
|
164
|
+
"date_inactive": "2015-12-16T22:19:38Z",
|
165
|
+
"date_closed": "2015-12-16T22:28:38Z"
|
166
|
+
},
|
155
167
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
156
168
|
"links": {
|
157
169
|
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
|
@@ -198,6 +210,10 @@ describe 'Conversation' do
|
|
198
210
|
"date_created": "2015-12-16T22:18:37Z",
|
199
211
|
"date_updated": "2015-12-16T22:18:38Z",
|
200
212
|
"state": "active",
|
213
|
+
"timers": {
|
214
|
+
"date_inactive": "2015-12-16T22:19:38Z",
|
215
|
+
"date_closed": "2015-12-16T22:28:38Z"
|
216
|
+
},
|
201
217
|
"url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
202
218
|
"links": {
|
203
219
|
"participants": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
|
@@ -96,6 +96,7 @@ describe 'Configuration' do
|
|
96
96
|
"runtime_domain": "https://flex.twilio.com",
|
97
97
|
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
98
98
|
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
99
|
+
"flex_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
99
100
|
"ui_language": "en",
|
100
101
|
"ui_attributes": {},
|
101
102
|
"ui_dependencies": {},
|
@@ -293,6 +294,7 @@ describe 'Configuration' do
|
|
293
294
|
"runtime_domain": "https://flex.twilio.com",
|
294
295
|
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
295
296
|
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
297
|
+
"flex_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
296
298
|
"ui_language": "en",
|
297
299
|
"ui_attributes": {},
|
298
300
|
"ui_dependencies": {},
|
@@ -490,6 +492,7 @@ describe 'Configuration' do
|
|
490
492
|
"runtime_domain": "https://flex.twilio.com",
|
491
493
|
"messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
492
494
|
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
495
|
+
"flex_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
493
496
|
"ui_language": "en",
|
494
497
|
"ui_attributes": {},
|
495
498
|
"ui_dependencies": {},
|
@@ -0,0 +1,623 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'Evaluation' do
|
12
|
+
it "can create" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.numbers.v2.regulatory_compliance \
|
17
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
18
|
+
.evaluations.create()
|
19
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
20
|
+
|
21
|
+
values = {}
|
22
|
+
expect(
|
23
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
24
|
+
method: 'post',
|
25
|
+
url: 'https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Evaluations',
|
26
|
+
))).to eq(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "receives create responses" do
|
30
|
+
@holodeck.mock(Twilio::Response.new(
|
31
|
+
201,
|
32
|
+
%q[
|
33
|
+
{
|
34
|
+
"sid": "ELaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
+
"regulation_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
37
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
38
|
+
"status": "noncompliant",
|
39
|
+
"date_created": "2020-04-28T18:14:01Z",
|
40
|
+
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations/ELaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
41
|
+
"results": [
|
42
|
+
{
|
43
|
+
"friendly_name": "Business",
|
44
|
+
"object_type": "business",
|
45
|
+
"passed": false,
|
46
|
+
"failure_reason": "A Business End-User is missing. Please add one to the regulatory bundle.",
|
47
|
+
"error_code": 22214,
|
48
|
+
"valid": [],
|
49
|
+
"invalid": [
|
50
|
+
{
|
51
|
+
"friendly_name": "Business Name",
|
52
|
+
"object_field": "business_name",
|
53
|
+
"failure_reason": "The Business Name is missing. Please enter in a Business Name on the Business information.",
|
54
|
+
"error_code": 22215
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"friendly_name": "Business Registration Number",
|
58
|
+
"object_field": "business_registration_number",
|
59
|
+
"failure_reason": "The Business Registration Number is missing. Please enter in a Business Registration Number on the Business information.",
|
60
|
+
"error_code": 22215
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"friendly_name": "First Name",
|
64
|
+
"object_field": "first_name",
|
65
|
+
"failure_reason": "The First Name is missing. Please enter in a First Name on the Business information.",
|
66
|
+
"error_code": 22215
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"friendly_name": "Last Name",
|
70
|
+
"object_field": "last_name",
|
71
|
+
"failure_reason": "The Last Name is missing. Please enter in a Last Name on the Business information.",
|
72
|
+
"error_code": 22215
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"requirement_friendly_name": "Business",
|
76
|
+
"requirement_name": "business_info"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"friendly_name": "Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative",
|
80
|
+
"object_type": "commercial_registrar_excerpt",
|
81
|
+
"passed": false,
|
82
|
+
"failure_reason": "An Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative is missing. Please add one to the regulatory bundle.",
|
83
|
+
"error_code": 22216,
|
84
|
+
"valid": [],
|
85
|
+
"invalid": [
|
86
|
+
{
|
87
|
+
"friendly_name": "Business Name",
|
88
|
+
"object_field": "business_name",
|
89
|
+
"failure_reason": "The Business Name is missing. Or, it does not match the Business Name you entered within Business information. Please enter in the Business Name shown on the Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative or make sure both Business Name fields use the same exact inputs.",
|
90
|
+
"error_code": 22217
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"requirement_friendly_name": "Business Name",
|
94
|
+
"requirement_name": "business_name_info"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"friendly_name": "Excerpt from the commercial register showing French address",
|
98
|
+
"object_type": "commercial_registrar_excerpt",
|
99
|
+
"passed": false,
|
100
|
+
"failure_reason": "An Excerpt from the commercial register showing French address is missing. Please add one to the regulatory bundle.",
|
101
|
+
"error_code": 22216,
|
102
|
+
"valid": [],
|
103
|
+
"invalid": [
|
104
|
+
{
|
105
|
+
"friendly_name": "Address sid(s)",
|
106
|
+
"object_field": "address_sids",
|
107
|
+
"failure_reason": "The Address is missing. Please enter in the address shown on the Excerpt from the commercial register showing French address.",
|
108
|
+
"error_code": 22219
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"requirement_friendly_name": "Business Address (Proof of Address)",
|
112
|
+
"requirement_name": "business_address_proof_info"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"friendly_name": "Excerpt from the commercial register (Extrait K-bis)",
|
116
|
+
"object_type": "commercial_registrar_excerpt",
|
117
|
+
"passed": false,
|
118
|
+
"failure_reason": "An Excerpt from the commercial register (Extrait K-bis) is missing. Please add one to the regulatory bundle.",
|
119
|
+
"error_code": 22216,
|
120
|
+
"valid": [],
|
121
|
+
"invalid": [
|
122
|
+
{
|
123
|
+
"friendly_name": "Document Number",
|
124
|
+
"object_field": "document_number",
|
125
|
+
"failure_reason": "The Document Number is missing. Please enter in the Document Number shown on the Excerpt from the commercial register (Extrait K-bis).",
|
126
|
+
"error_code": 22217
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"requirement_friendly_name": "Business Registration Number",
|
130
|
+
"requirement_name": "business_reg_no_info"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"friendly_name": "Government-issued ID",
|
134
|
+
"object_type": "government_issued_document",
|
135
|
+
"passed": false,
|
136
|
+
"failure_reason": "A Government-issued ID is missing. Please add one to the regulatory bundle.",
|
137
|
+
"error_code": 22216,
|
138
|
+
"valid": [],
|
139
|
+
"invalid": [
|
140
|
+
{
|
141
|
+
"friendly_name": "First Name",
|
142
|
+
"object_field": "first_name",
|
143
|
+
"failure_reason": "The First Name is missing. Or, it does not match the First Name you entered within Business information. Please enter in the First Name shown on the Government-issued ID or make sure both First Name fields use the same exact inputs.",
|
144
|
+
"error_code": 22217
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"friendly_name": "Last Name",
|
148
|
+
"object_field": "last_name",
|
149
|
+
"failure_reason": "The Last Name is missing. Or, it does not match the Last Name you entered within Business information. Please enter in the Last Name shown on the Government-issued ID or make sure both Last Name fields use the same exact inputs.",
|
150
|
+
"error_code": 22217
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"requirement_friendly_name": "Name of Authorized Representative",
|
154
|
+
"requirement_name": "name_of_auth_rep_info"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"friendly_name": "Executed Copy of Power of Attorney",
|
158
|
+
"object_type": "power_of_attorney",
|
159
|
+
"passed": false,
|
160
|
+
"failure_reason": "An Executed Copy of Power of Attorney is missing. Please add one to the regulatory bundle.",
|
161
|
+
"error_code": 22216,
|
162
|
+
"valid": [],
|
163
|
+
"invalid": [],
|
164
|
+
"requirement_friendly_name": "Power of Attorney",
|
165
|
+
"requirement_name": "power_of_attorney_info"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"friendly_name": "Government-issued ID",
|
169
|
+
"object_type": "government_issued_document",
|
170
|
+
"passed": false,
|
171
|
+
"failure_reason": "A Government-issued ID is missing. Please add one to the regulatory bundle.",
|
172
|
+
"error_code": 22216,
|
173
|
+
"valid": [],
|
174
|
+
"invalid": [
|
175
|
+
{
|
176
|
+
"friendly_name": "First Name",
|
177
|
+
"object_field": "first_name",
|
178
|
+
"failure_reason": "The First Name is missing on the Governnment-Issued ID.",
|
179
|
+
"error_code": 22217
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"friendly_name": "Last Name",
|
183
|
+
"object_field": "last_name",
|
184
|
+
"failure_reason": "The Last Name is missing on the Government-issued ID",
|
185
|
+
"error_code": 22217
|
186
|
+
}
|
187
|
+
],
|
188
|
+
"requirement_friendly_name": "Name of Person granted the Power of Attorney",
|
189
|
+
"requirement_name": "name_in_power_of_attorney_info"
|
190
|
+
}
|
191
|
+
]
|
192
|
+
}
|
193
|
+
]
|
194
|
+
))
|
195
|
+
|
196
|
+
actual = @client.numbers.v2.regulatory_compliance \
|
197
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
198
|
+
.evaluations.create()
|
199
|
+
|
200
|
+
expect(actual).to_not eq(nil)
|
201
|
+
end
|
202
|
+
|
203
|
+
it "can read" do
|
204
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
205
|
+
|
206
|
+
expect {
|
207
|
+
@client.numbers.v2.regulatory_compliance \
|
208
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
209
|
+
.evaluations.list()
|
210
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
211
|
+
|
212
|
+
values = {}
|
213
|
+
expect(
|
214
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
215
|
+
method: 'get',
|
216
|
+
url: 'https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Evaluations',
|
217
|
+
))).to eq(true)
|
218
|
+
end
|
219
|
+
|
220
|
+
it "receives read_empty responses" do
|
221
|
+
@holodeck.mock(Twilio::Response.new(
|
222
|
+
200,
|
223
|
+
%q[
|
224
|
+
{
|
225
|
+
"results": [],
|
226
|
+
"meta": {
|
227
|
+
"page": 0,
|
228
|
+
"page_size": 50,
|
229
|
+
"first_page_url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations?PageSize=50&Page=0",
|
230
|
+
"previous_page_url": null,
|
231
|
+
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations?PageSize=50&Page=0",
|
232
|
+
"next_page_url": null,
|
233
|
+
"key": "results"
|
234
|
+
}
|
235
|
+
}
|
236
|
+
]
|
237
|
+
))
|
238
|
+
|
239
|
+
actual = @client.numbers.v2.regulatory_compliance \
|
240
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
241
|
+
.evaluations.list()
|
242
|
+
|
243
|
+
expect(actual).to_not eq(nil)
|
244
|
+
end
|
245
|
+
|
246
|
+
it "receives read_full responses" do
|
247
|
+
@holodeck.mock(Twilio::Response.new(
|
248
|
+
200,
|
249
|
+
%q[
|
250
|
+
{
|
251
|
+
"results": [
|
252
|
+
{
|
253
|
+
"sid": "ELaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
254
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
255
|
+
"regulation_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
256
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
257
|
+
"status": "noncompliant",
|
258
|
+
"date_created": "2020-04-28T18:14:01Z",
|
259
|
+
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations/ELaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
260
|
+
"results": [
|
261
|
+
{
|
262
|
+
"friendly_name": "Business",
|
263
|
+
"object_type": "business",
|
264
|
+
"passed": false,
|
265
|
+
"failure_reason": "A Business End-User is missing. Please add one to the regulatory bundle.",
|
266
|
+
"error_code": 22214,
|
267
|
+
"valid": [],
|
268
|
+
"invalid": [
|
269
|
+
{
|
270
|
+
"friendly_name": "Business Name",
|
271
|
+
"object_field": "business_name",
|
272
|
+
"failure_reason": "The Business Name is missing. Please enter in a Business Name on the Business information.",
|
273
|
+
"error_code": 22215
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"friendly_name": "Business Registration Number",
|
277
|
+
"object_field": "business_registration_number",
|
278
|
+
"failure_reason": "The Business Registration Number is missing. Please enter in a Business Registration Number on the Business information.",
|
279
|
+
"error_code": 22215
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"friendly_name": "First Name",
|
283
|
+
"object_field": "first_name",
|
284
|
+
"failure_reason": "The First Name is missing. Please enter in a First Name on the Business information.",
|
285
|
+
"error_code": 22215
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"friendly_name": "Last Name",
|
289
|
+
"object_field": "last_name",
|
290
|
+
"failure_reason": "The Last Name is missing. Please enter in a Last Name on the Business information.",
|
291
|
+
"error_code": 22215
|
292
|
+
}
|
293
|
+
],
|
294
|
+
"requirement_friendly_name": "Business",
|
295
|
+
"requirement_name": "business_info"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"friendly_name": "Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative",
|
299
|
+
"object_type": "commercial_registrar_excerpt",
|
300
|
+
"passed": false,
|
301
|
+
"failure_reason": "An Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative is missing. Please add one to the regulatory bundle.",
|
302
|
+
"error_code": 22216,
|
303
|
+
"valid": [],
|
304
|
+
"invalid": [
|
305
|
+
{
|
306
|
+
"friendly_name": "Business Name",
|
307
|
+
"object_field": "business_name",
|
308
|
+
"failure_reason": "The Business Name is missing. Or, it does not match the Business Name you entered within Business information. Please enter in the Business Name shown on the Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative or make sure both Business Name fields use the same exact inputs.",
|
309
|
+
"error_code": 22217
|
310
|
+
}
|
311
|
+
],
|
312
|
+
"requirement_friendly_name": "Business Name",
|
313
|
+
"requirement_name": "business_name_info"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"friendly_name": "Excerpt from the commercial register showing French address",
|
317
|
+
"object_type": "commercial_registrar_excerpt",
|
318
|
+
"passed": false,
|
319
|
+
"failure_reason": "An Excerpt from the commercial register showing French address is missing. Please add one to the regulatory bundle.",
|
320
|
+
"error_code": 22216,
|
321
|
+
"valid": [],
|
322
|
+
"invalid": [
|
323
|
+
{
|
324
|
+
"friendly_name": "Address sid(s)",
|
325
|
+
"object_field": "address_sids",
|
326
|
+
"failure_reason": "The Address is missing. Please enter in the address shown on the Excerpt from the commercial register showing French address.",
|
327
|
+
"error_code": 22219
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"requirement_friendly_name": "Business Address (Proof of Address)",
|
331
|
+
"requirement_name": "business_address_proof_info"
|
332
|
+
},
|
333
|
+
{
|
334
|
+
"friendly_name": "Excerpt from the commercial register (Extrait K-bis)",
|
335
|
+
"object_type": "commercial_registrar_excerpt",
|
336
|
+
"passed": false,
|
337
|
+
"failure_reason": "An Excerpt from the commercial register (Extrait K-bis) is missing. Please add one to the regulatory bundle.",
|
338
|
+
"error_code": 22216,
|
339
|
+
"valid": [],
|
340
|
+
"invalid": [
|
341
|
+
{
|
342
|
+
"friendly_name": "Document Number",
|
343
|
+
"object_field": "document_number",
|
344
|
+
"failure_reason": "The Document Number is missing. Please enter in the Document Number shown on the Excerpt from the commercial register (Extrait K-bis).",
|
345
|
+
"error_code": 22217
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"requirement_friendly_name": "Business Registration Number",
|
349
|
+
"requirement_name": "business_reg_no_info"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"friendly_name": "Government-issued ID",
|
353
|
+
"object_type": "government_issued_document",
|
354
|
+
"passed": false,
|
355
|
+
"failure_reason": "A Government-issued ID is missing. Please add one to the regulatory bundle.",
|
356
|
+
"error_code": 22216,
|
357
|
+
"valid": [],
|
358
|
+
"invalid": [
|
359
|
+
{
|
360
|
+
"friendly_name": "First Name",
|
361
|
+
"object_field": "first_name",
|
362
|
+
"failure_reason": "The First Name is missing. Or, it does not match the First Name you entered within Business information. Please enter in the First Name shown on the Government-issued ID or make sure both First Name fields use the same exact inputs.",
|
363
|
+
"error_code": 22217
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"friendly_name": "Last Name",
|
367
|
+
"object_field": "last_name",
|
368
|
+
"failure_reason": "The Last Name is missing. Or, it does not match the Last Name you entered within Business information. Please enter in the Last Name shown on the Government-issued ID or make sure both Last Name fields use the same exact inputs.",
|
369
|
+
"error_code": 22217
|
370
|
+
}
|
371
|
+
],
|
372
|
+
"requirement_friendly_name": "Name of Authorized Representative",
|
373
|
+
"requirement_name": "name_of_auth_rep_info"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"friendly_name": "Executed Copy of Power of Attorney",
|
377
|
+
"object_type": "power_of_attorney",
|
378
|
+
"passed": false,
|
379
|
+
"failure_reason": "An Executed Copy of Power of Attorney is missing. Please add one to the regulatory bundle.",
|
380
|
+
"error_code": 22216,
|
381
|
+
"valid": [],
|
382
|
+
"invalid": [],
|
383
|
+
"requirement_friendly_name": "Power of Attorney",
|
384
|
+
"requirement_name": "power_of_attorney_info"
|
385
|
+
},
|
386
|
+
{
|
387
|
+
"friendly_name": "Government-issued ID",
|
388
|
+
"object_type": "government_issued_document",
|
389
|
+
"passed": false,
|
390
|
+
"failure_reason": "A Government-issued ID is missing. Please add one to the regulatory bundle.",
|
391
|
+
"error_code": 22216,
|
392
|
+
"valid": [],
|
393
|
+
"invalid": [
|
394
|
+
{
|
395
|
+
"friendly_name": "First Name",
|
396
|
+
"object_field": "first_name",
|
397
|
+
"failure_reason": "The First Name is missing on the Governnment-Issued ID.",
|
398
|
+
"error_code": 22217
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"friendly_name": "Last Name",
|
402
|
+
"object_field": "last_name",
|
403
|
+
"failure_reason": "The Last Name is missing on the Government-issued ID",
|
404
|
+
"error_code": 22217
|
405
|
+
}
|
406
|
+
],
|
407
|
+
"requirement_friendly_name": "Name of Person granted the Power of Attorney",
|
408
|
+
"requirement_name": "name_in_power_of_attorney_info"
|
409
|
+
}
|
410
|
+
]
|
411
|
+
}
|
412
|
+
],
|
413
|
+
"meta": {
|
414
|
+
"page": 0,
|
415
|
+
"page_size": 50,
|
416
|
+
"first_page_url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations?PageSize=50&Page=0",
|
417
|
+
"previous_page_url": null,
|
418
|
+
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations?PageSize=50&Page=0",
|
419
|
+
"next_page_url": null,
|
420
|
+
"key": "results"
|
421
|
+
}
|
422
|
+
}
|
423
|
+
]
|
424
|
+
))
|
425
|
+
|
426
|
+
actual = @client.numbers.v2.regulatory_compliance \
|
427
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
428
|
+
.evaluations.list()
|
429
|
+
|
430
|
+
expect(actual).to_not eq(nil)
|
431
|
+
end
|
432
|
+
|
433
|
+
it "can fetch" do
|
434
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
435
|
+
|
436
|
+
expect {
|
437
|
+
@client.numbers.v2.regulatory_compliance \
|
438
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
439
|
+
.evaluations('ELXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
440
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
441
|
+
|
442
|
+
values = {}
|
443
|
+
expect(
|
444
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
445
|
+
method: 'get',
|
446
|
+
url: 'https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Evaluations/ELXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
447
|
+
))).to eq(true)
|
448
|
+
end
|
449
|
+
|
450
|
+
it "receives fetch responses" do
|
451
|
+
@holodeck.mock(Twilio::Response.new(
|
452
|
+
200,
|
453
|
+
%q[
|
454
|
+
{
|
455
|
+
"sid": "ELaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
456
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
457
|
+
"regulation_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
458
|
+
"bundle_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
459
|
+
"status": "noncompliant",
|
460
|
+
"date_created": "2020-04-28T18:14:01Z",
|
461
|
+
"url": "https://numbers.twilio.com/v2/RegulatoryCompliance/Bundles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations/ELaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
462
|
+
"results": [
|
463
|
+
{
|
464
|
+
"friendly_name": "Business",
|
465
|
+
"object_type": "business",
|
466
|
+
"passed": false,
|
467
|
+
"failure_reason": "A Business End-User is missing. Please add one to the regulatory bundle.",
|
468
|
+
"error_code": 22214,
|
469
|
+
"valid": [],
|
470
|
+
"invalid": [
|
471
|
+
{
|
472
|
+
"friendly_name": "Business Name",
|
473
|
+
"object_field": "business_name",
|
474
|
+
"failure_reason": "The Business Name is missing. Please enter in a Business Name on the Business information.",
|
475
|
+
"error_code": 22215
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"friendly_name": "Business Registration Number",
|
479
|
+
"object_field": "business_registration_number",
|
480
|
+
"failure_reason": "The Business Registration Number is missing. Please enter in a Business Registration Number on the Business information.",
|
481
|
+
"error_code": 22215
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"friendly_name": "First Name",
|
485
|
+
"object_field": "first_name",
|
486
|
+
"failure_reason": "The First Name is missing. Please enter in a First Name on the Business information.",
|
487
|
+
"error_code": 22215
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"friendly_name": "Last Name",
|
491
|
+
"object_field": "last_name",
|
492
|
+
"failure_reason": "The Last Name is missing. Please enter in a Last Name on the Business information.",
|
493
|
+
"error_code": 22215
|
494
|
+
}
|
495
|
+
],
|
496
|
+
"requirement_friendly_name": "Business",
|
497
|
+
"requirement_name": "business_info"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"friendly_name": "Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative",
|
501
|
+
"object_type": "commercial_registrar_excerpt",
|
502
|
+
"passed": false,
|
503
|
+
"failure_reason": "An Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative is missing. Please add one to the regulatory bundle.",
|
504
|
+
"error_code": 22216,
|
505
|
+
"valid": [],
|
506
|
+
"invalid": [
|
507
|
+
{
|
508
|
+
"friendly_name": "Business Name",
|
509
|
+
"object_field": "business_name",
|
510
|
+
"failure_reason": "The Business Name is missing. Or, it does not match the Business Name you entered within Business information. Please enter in the Business Name shown on the Excerpt from the commercial register (Extrait K-bis) showing name of Authorized Representative or make sure both Business Name fields use the same exact inputs.",
|
511
|
+
"error_code": 22217
|
512
|
+
}
|
513
|
+
],
|
514
|
+
"requirement_friendly_name": "Business Name",
|
515
|
+
"requirement_name": "business_name_info"
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"friendly_name": "Excerpt from the commercial register showing French address",
|
519
|
+
"object_type": "commercial_registrar_excerpt",
|
520
|
+
"passed": false,
|
521
|
+
"failure_reason": "An Excerpt from the commercial register showing French address is missing. Please add one to the regulatory bundle.",
|
522
|
+
"error_code": 22216,
|
523
|
+
"valid": [],
|
524
|
+
"invalid": [
|
525
|
+
{
|
526
|
+
"friendly_name": "Address sid(s)",
|
527
|
+
"object_field": "address_sids",
|
528
|
+
"failure_reason": "The Address is missing. Please enter in the address shown on the Excerpt from the commercial register showing French address.",
|
529
|
+
"error_code": 22219
|
530
|
+
}
|
531
|
+
],
|
532
|
+
"requirement_friendly_name": "Business Address (Proof of Address)",
|
533
|
+
"requirement_name": "business_address_proof_info"
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"friendly_name": "Excerpt from the commercial register (Extrait K-bis)",
|
537
|
+
"object_type": "commercial_registrar_excerpt",
|
538
|
+
"passed": false,
|
539
|
+
"failure_reason": "An Excerpt from the commercial register (Extrait K-bis) is missing. Please add one to the regulatory bundle.",
|
540
|
+
"error_code": 22216,
|
541
|
+
"valid": [],
|
542
|
+
"invalid": [
|
543
|
+
{
|
544
|
+
"friendly_name": "Document Number",
|
545
|
+
"object_field": "document_number",
|
546
|
+
"failure_reason": "The Document Number is missing. Please enter in the Document Number shown on the Excerpt from the commercial register (Extrait K-bis).",
|
547
|
+
"error_code": 22217
|
548
|
+
}
|
549
|
+
],
|
550
|
+
"requirement_friendly_name": "Business Registration Number",
|
551
|
+
"requirement_name": "business_reg_no_info"
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"friendly_name": "Government-issued ID",
|
555
|
+
"object_type": "government_issued_document",
|
556
|
+
"passed": false,
|
557
|
+
"failure_reason": "A Government-issued ID is missing. Please add one to the regulatory bundle.",
|
558
|
+
"error_code": 22216,
|
559
|
+
"valid": [],
|
560
|
+
"invalid": [
|
561
|
+
{
|
562
|
+
"friendly_name": "First Name",
|
563
|
+
"object_field": "first_name",
|
564
|
+
"failure_reason": "The First Name is missing. Or, it does not match the First Name you entered within Business information. Please enter in the First Name shown on the Government-issued ID or make sure both First Name fields use the same exact inputs.",
|
565
|
+
"error_code": 22217
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"friendly_name": "Last Name",
|
569
|
+
"object_field": "last_name",
|
570
|
+
"failure_reason": "The Last Name is missing. Or, it does not match the Last Name you entered within Business information. Please enter in the Last Name shown on the Government-issued ID or make sure both Last Name fields use the same exact inputs.",
|
571
|
+
"error_code": 22217
|
572
|
+
}
|
573
|
+
],
|
574
|
+
"requirement_friendly_name": "Name of Authorized Representative",
|
575
|
+
"requirement_name": "name_of_auth_rep_info"
|
576
|
+
},
|
577
|
+
{
|
578
|
+
"friendly_name": "Executed Copy of Power of Attorney",
|
579
|
+
"object_type": "power_of_attorney",
|
580
|
+
"passed": false,
|
581
|
+
"failure_reason": "An Executed Copy of Power of Attorney is missing. Please add one to the regulatory bundle.",
|
582
|
+
"error_code": 22216,
|
583
|
+
"valid": [],
|
584
|
+
"invalid": [],
|
585
|
+
"requirement_friendly_name": "Power of Attorney",
|
586
|
+
"requirement_name": "power_of_attorney_info"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"friendly_name": "Government-issued ID",
|
590
|
+
"object_type": "government_issued_document",
|
591
|
+
"passed": false,
|
592
|
+
"failure_reason": "A Government-issued ID is missing. Please add one to the regulatory bundle.",
|
593
|
+
"error_code": 22216,
|
594
|
+
"valid": [],
|
595
|
+
"invalid": [
|
596
|
+
{
|
597
|
+
"friendly_name": "First Name",
|
598
|
+
"object_field": "first_name",
|
599
|
+
"failure_reason": "The First Name is missing on the Governnment-Issued ID.",
|
600
|
+
"error_code": 22217
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"friendly_name": "Last Name",
|
604
|
+
"object_field": "last_name",
|
605
|
+
"failure_reason": "The Last Name is missing on the Government-issued ID",
|
606
|
+
"error_code": 22217
|
607
|
+
}
|
608
|
+
],
|
609
|
+
"requirement_friendly_name": "Name of Person granted the Power of Attorney",
|
610
|
+
"requirement_name": "name_in_power_of_attorney_info"
|
611
|
+
}
|
612
|
+
]
|
613
|
+
}
|
614
|
+
]
|
615
|
+
))
|
616
|
+
|
617
|
+
actual = @client.numbers.v2.regulatory_compliance \
|
618
|
+
.bundles('BUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
619
|
+
.evaluations('ELXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
620
|
+
|
621
|
+
expect(actual).to_not eq(nil)
|
622
|
+
end
|
623
|
+
end
|