ruby-bandwidth-iris 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08d149b50259af28149c7018f600fcbf22d694c15604b85073a38fa4255ebff7'
4
- data.tar.gz: 0beef4622c48e6e119475e37644a16a09a4c74fb9cac935cf10ea82b7e55d377
3
+ metadata.gz: fd0a2a83930a907b646fd60cd8a9022a112f57639316cfb5f72f8779620dd8cb
4
+ data.tar.gz: 7ec3e412315f790aa7dfc91fec9bed550d9df9c1b782ef4dbfa60ab54348dada
5
5
  SHA512:
6
- metadata.gz: b8e8fc95953e9bb5ed6c00a24c5cccef35cea81a31c710c6560eb7c4b0b96a6c3a533cb365fbad0a2aea3a1ac854fb79318b49412d3e5a9125b5219d379e70f9
7
- data.tar.gz: 308bdcbc9d7124297535b1656befc3da6fbe574fc878c90573000ae43867da64f05c7349bb4fd27621927393487d3d6ad09b35b8f97b01c252ef42fb0e0b01eb
6
+ metadata.gz: 8de965b470519e1855a25aaeaa212725e95c12e798805858f2a1d2256f3d666bd225b477a6e900f4c01c3037e18cf245d256cae41bb5b5cea095797750f41697
7
+ data.tar.gz: f581771fb98683cc909c7feef6dc598e6d427d8dbfd5f38a87798507406a0b5fcd5fcc81664cbc09d1d0d6b848bc15c1501bc6ca8a305bdbfbd32992f2a9423b
data/README.md CHANGED
@@ -15,8 +15,8 @@ Ruby Client library for IRIS / BBS API
15
15
  | 2.2.0 | Added `loas` endpoints to `importTnOrders` |
16
16
  | 2.3.0 | Added `get_tns_by_order_id` to the Orders class |
17
17
  | 2.4.0.pre | Added application management and sippeer products endpoints |
18
- | 2.5.0 | Added `get_order_response` to pull full `<OrderResponse>` object from API, added `id` back to order object on get requests |
19
- | 2.6.0 | Fixed TN Reservation and updated tests to match reality |
18
+ | 2.5.0 | Added `get_order_response` to pull full `<OrderResponse>` object from API, added `id` back to order object on get requests. Fixed TN Reservation and updated tests to match reality |
19
+ | 2.6.0 | Added Emergency Calling Notification, Emergeny Notification Group, Emergency Notification Endpoint, and Alternate End User Identity methods |
20
20
 
21
21
  ## Install
22
22
 
@@ -547,7 +547,7 @@ site.create_sip_peer(sipPeer)
547
547
  ```ruby
548
548
  subscription = {
549
549
  :order_type => "orders",
550
- :callback_subcription => {
550
+ :callback_subscription => {
551
551
  :URL => "http://mycallbackurl.com",
552
552
  :user => "userid",
553
553
  :expiry => 12000
@@ -1090,3 +1090,149 @@ data = {
1090
1090
 
1091
1091
  puts BandwidthIris::SipPeerProducts.update_messaging_settings("site_id", "sippeer_id", data)
1092
1092
  ```
1093
+
1094
+ ## Emergency Notification Recipients
1095
+
1096
+ ### Create Emergency Notification Recipient
1097
+
1098
+ ```ruby
1099
+ data = {
1100
+ :description => "Email to Bldg. 3 Front Desk",
1101
+ :type => "EMAIL",
1102
+ :email_address => "foo@bar.com"
1103
+ }
1104
+
1105
+ enr = BandwidthIris::EmergencyNotificationRecipients.create_emergency_notification_recipient(data)
1106
+ puts enr
1107
+ ```
1108
+ ### Get Emergency Notification Recipients
1109
+
1110
+ ```ruby
1111
+ enrs = BandwidthIris::EmergencyNotificationRecipients.get_emergency_notification_recipients()
1112
+ puts enrs
1113
+ ```
1114
+
1115
+ ### Get Emergency Notification Recipient
1116
+
1117
+ ```ruby
1118
+ enr = BandwidthIris::EmergencyNotificationRecipients.get_emergency_notification_recipient("id")
1119
+ puts enr
1120
+ ```
1121
+
1122
+ ### Replace Emergency Notification Recipient
1123
+
1124
+ ```ruby
1125
+ data = {
1126
+ :description => "Email to Bldg. 3 Front Desk",
1127
+ :type => "EMAIL",
1128
+ :email_address => "foo@bar.com"
1129
+ }
1130
+
1131
+ enr = BandwidthIris::EmergencyNotificationRecipients.replace_emergency_notification_recipient("id", data)
1132
+ puts enr
1133
+ ```
1134
+
1135
+ ### Delete Emergency Notification Recipient
1136
+
1137
+ ```ruby
1138
+ BandwidthIris::EmergencyNotificationRecipients.delete_emergency_notification_recipient("id")
1139
+ ```
1140
+
1141
+ ## Emergeny Notification Group
1142
+
1143
+ ### Create Emergency Notification Group Order
1144
+
1145
+ ```ruby
1146
+ data = {
1147
+ :customer_order_id => "value",
1148
+ :added_emergency_notification_group => {
1149
+ :description => "description",
1150
+ :added_emergency_notification_recipients => {
1151
+ :emergency_notification_recipient => [
1152
+ {
1153
+ :identifier => "123"
1154
+ }
1155
+ ]
1156
+ }
1157
+ }
1158
+ }
1159
+
1160
+ order = BandwidthIris::EmergencyNotificationGroups.create_emergency_notification_group_order(data)
1161
+ puts order
1162
+ ```
1163
+
1164
+ ### Get Emergency Notification Group Orders
1165
+
1166
+ ```ruby
1167
+ orders = BandwidthIris::EmergencyNotificationGroups.get_emergency_notification_group_orders()
1168
+ puts orders
1169
+ ```
1170
+
1171
+ ### Get Emergency Notification Group Order
1172
+
1173
+ ```ruby
1174
+ order = BandwidthIris::EmergencyNotificationGroups.get_emergency_notification_group_order("id")
1175
+ puts order
1176
+ ```
1177
+
1178
+ ### Get Emergency Notification Groups
1179
+
1180
+ ```ruby
1181
+ groups = BandwidthIris::EmergencyNotificationGroups.get_emergency_notification_groups()
1182
+ puts groups
1183
+ ```
1184
+
1185
+ ### Get Emergency Notification Group
1186
+
1187
+ ```ruby
1188
+ group = BandwidthIris::EmergencyNotificationGroups.get_emergency_notification_group("id")
1189
+ puts group
1190
+ ```
1191
+
1192
+ ## Emergency Notification Endpoint
1193
+
1194
+ ### Create Emergency Notification Endpoint Order
1195
+
1196
+ ```ruby
1197
+ data = {
1198
+ :customer_order_id => "123",
1199
+ :emergency_notification_endpoint_associations => {
1200
+ :emergency_notification_group => {
1201
+ :identifier => "456"
1202
+ }
1203
+ }
1204
+ }
1205
+
1206
+ order = BandwidthIris::EmergencyNotificationEndpoints.create_emergency_notification_endpoint_order(data)
1207
+ puts order
1208
+ ```
1209
+
1210
+ ### Get Emergency Notification Endpoint Orders
1211
+
1212
+ ```ruby
1213
+ orders = BandwidthIris::EmergencyNotificationEndpoints.get_emergency_notification_endpoint_orders()
1214
+ puts orders
1215
+ ```
1216
+
1217
+ ### Get Emergency Notification Endpoint Order
1218
+
1219
+ ```ruby
1220
+ order = BandwidthIris::EmergencyNotificationEndpoints.get_emergency_notification_endpoint_order("id")
1221
+ puts order
1222
+ ```
1223
+
1224
+ ## Alternate End User Identiy
1225
+
1226
+ ### Get Alternate End User Information
1227
+
1228
+ ```ruby
1229
+ aeuis = BandwidthIris::AlternateEndUserIdentity.get_alternate_end_user_information()
1230
+ puts aeuis
1231
+ ```
1232
+
1233
+ ### Get Alternate Caller Information
1234
+
1235
+ ```ruby
1236
+ aeui = AlternateEndUserIdentity.get_alternate_caller_information("id")
1237
+ puts aeui
1238
+ ```
@@ -0,0 +1,20 @@
1
+ module BandwidthIris
2
+ AEUI_PATH = 'aeuis'
3
+
4
+ class AlternateEndUserIdentity
5
+ extend ClientWrapper
6
+ include ApiItem
7
+
8
+ def self.get_alternate_end_user_information(client, query=nil)
9
+ response = client.make_request(:get, "#{client.concat_account_path(AEUI_PATH)}", query)
10
+ return response[0]
11
+ end
12
+ wrap_client_arg :get_alternate_end_user_information
13
+
14
+ def self.get_alternate_caller_information(client, acid)
15
+ response = client.make_request(:get, "#{client.concat_account_path(AEUI_PATH)}/#{acid}")
16
+ return response[0][:alternate_end_user_identifier]
17
+ end
18
+ wrap_client_arg :get_alternate_caller_information
19
+ end
20
+ end
@@ -0,0 +1,26 @@
1
+ module BandwidthIris
2
+ ENE_ORDERS_PATH = 'emergencyNotificationEndpointOrders'
3
+
4
+ class EmergencyNotificationEndpoints
5
+ extend ClientWrapper
6
+ include ApiItem
7
+
8
+ def self.create_emergency_notification_endpoint_order(client, data)
9
+ response = client.make_request(:post, "#{client.concat_account_path(ENE_ORDERS_PATH)}", {:emergency_notification_endpoint_order => data})
10
+ return response[0][:emergency_notification_endpoint_order]
11
+ end
12
+ wrap_client_arg :create_emergency_notification_endpoint_order
13
+
14
+ def self.get_emergency_notification_endpoint_orders(client, query=nil)
15
+ response = client.make_request(:get, "#{client.concat_account_path(ENE_ORDERS_PATH)}", query)
16
+ return response[0]
17
+ end
18
+ wrap_client_arg :get_emergency_notification_endpoint_orders
19
+
20
+ def self.get_emergency_notification_endpoint_order(client, order_id)
21
+ response = client.make_request(:get, "#{client.concat_account_path(ENE_ORDERS_PATH)}/#{order_id}")
22
+ return response[0][:emergency_notification_endpoint_order]
23
+ end
24
+ wrap_client_arg :get_emergency_notification_endpoint_order
25
+ end
26
+ end
@@ -0,0 +1,39 @@
1
+ module BandwidthIris
2
+ ENG_ORDERS_PATH = 'emergencyNotificationGroupOrders'
3
+ ENG_PATH = 'emergencyNotificationGroups'
4
+
5
+ class EmergencyNotificationGroups
6
+ extend ClientWrapper
7
+ include ApiItem
8
+
9
+ def self.create_emergency_notification_group_order(client, data)
10
+ response = client.make_request(:post, "#{client.concat_account_path(ENG_ORDERS_PATH)}", {:emergency_notification_group_order => data})
11
+ return response[0][:emergency_notification_endpoint_order]
12
+ end
13
+ wrap_client_arg :create_emergency_notification_group_order
14
+
15
+ def self.get_emergency_notification_group_orders(client, query=nil)
16
+ response = client.make_request(:get, "#{client.concat_account_path(ENG_ORDERS_PATH)}", query)
17
+ return response[0]
18
+ end
19
+ wrap_client_arg :get_emergency_notification_group_orders
20
+
21
+ def self.get_emergency_notification_group_order(client, order_id)
22
+ response = client.make_request(:get, "#{client.concat_account_path(ENG_ORDERS_PATH)}/#{order_id}")
23
+ return response[0][:emergency_notification_endpoint_order]
24
+ end
25
+ wrap_client_arg :get_emergency_notification_group_order
26
+
27
+ def self.get_emergency_notification_group(client, eng_id)
28
+ response = client.make_request(:get, "#{client.concat_account_path(ENG_PATH)}/#{eng_id}")
29
+ return response[0][:emergency_notification_group]
30
+ end
31
+ wrap_client_arg :get_emergency_notification_group
32
+
33
+ def self.get_emergency_notification_groups(client, query=nil)
34
+ response = client.make_request(:get, "#{client.concat_account_path(ENG_PATH)}", query)
35
+ return response[0]
36
+ end
37
+ wrap_client_arg :get_emergency_notification_groups
38
+ end
39
+ end
@@ -0,0 +1,37 @@
1
+ module BandwidthIris
2
+ ENR_PATH = 'emergencyNotificationRecipients'
3
+
4
+ class EmergencyNotificationRecipients
5
+ extend ClientWrapper
6
+ include ApiItem
7
+
8
+ def self.create_emergency_notification_recipient(client, data)
9
+ response = client.make_request(:post, "#{client.concat_account_path(ENR_PATH)}", {:emergency_notification_recipient => data})
10
+ return response[0][:emergency_notification_recipient]
11
+ end
12
+ wrap_client_arg :create_emergency_notification_recipient
13
+
14
+ def self.get_emergency_notification_recipients(client, query=nil)
15
+ response = client.make_request(:get, "#{client.concat_account_path(ENR_PATH)}", query)
16
+ return response[0]
17
+ end
18
+ wrap_client_arg :get_emergency_notification_recipients
19
+
20
+ def self.get_emergency_notification_recipient(client, enr_id)
21
+ response = client.make_request(:get, "#{client.concat_account_path(ENR_PATH)}/#{enr_id}")
22
+ return response[0][:emergency_notification_recipient]
23
+ end
24
+ wrap_client_arg :get_emergency_notification_recipient
25
+
26
+ def self.replace_emergency_notification_recipient(client, enr_id, data)
27
+ response = client.make_request(:put, "#{client.concat_account_path(ENR_PATH)}/#{enr_id}", {:emergency_notification_recipient => data})
28
+ return response[0][:emergency_notification_recipient]
29
+ end
30
+ wrap_client_arg :replace_emergency_notification_recipient
31
+
32
+ def self.delete_emergency_notification_recipient(client, enr_id)
33
+ client.make_request(:delete, "#{client.concat_account_path(ENR_PATH)}/#{enr_id}")
34
+ end
35
+ wrap_client_arg :delete_emergency_notification_recipient
36
+ end
37
+ end
@@ -1,4 +1,4 @@
1
1
  module BandwidthIris
2
2
  # Version of this gem
3
- VERSION = "2.5.0"
3
+ VERSION = "2.6.0"
4
4
  end
@@ -32,5 +32,9 @@ require 'bandwidth-iris/remove_imported_tn_orders'
32
32
  require 'bandwidth-iris/csr'
33
33
  require 'bandwidth-iris/applications'
34
34
  require 'bandwidth-iris/sip_peer_products'
35
+ require 'bandwidth-iris/emergency_notification_endpoints'
36
+ require 'bandwidth-iris/emergency_notification_groups'
37
+ require 'bandwidth-iris/emergency_notification_recipients'
38
+ require 'bandwidth-iris/aeui'
35
39
 
36
40
  require 'bandwidth-iris/version'
@@ -0,0 +1,25 @@
1
+ describe BandwidthIris::AlternateEndUserIdentity do
2
+ client = nil
3
+
4
+ before :each do
5
+ client = Helper.get_client()
6
+ end
7
+
8
+ after :each do
9
+ client.stubs.verify_stubbed_calls()
10
+ end
11
+
12
+ describe '#aeui' do
13
+ it 'should get aeuis' do
14
+ client.stubs.get("/v1.0/accounts/accountId/aeuis") {|env| [200, {}, Helper.xml['aeuis']]}
15
+ aeuis = AlternateEndUserIdentity.get_alternate_end_user_information(client)
16
+ expect(aeuis[:alternate_end_user_identifiers][:alternate_end_user_identifier][0][:identifier]).to eql("DavidAcid")
17
+ end
18
+
19
+ it 'should get aeui' do
20
+ client.stubs.get("/v1.0/accounts/accountId/aeuis/id") {|env| [200, {}, Helper.xml['aeui']]}
21
+ aeui = AlternateEndUserIdentity.get_alternate_caller_information(client, "id")
22
+ expect(aeui[:identifier]).to eql("DavidAcid")
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,35 @@
1
+ describe BandwidthIris::EmergencyNotificationEndpoints do
2
+ client = nil
3
+
4
+ before :each do
5
+ client = Helper.get_client()
6
+ end
7
+
8
+ after :each do
9
+ client.stubs.verify_stubbed_calls()
10
+ end
11
+
12
+ describe '#EneTests' do
13
+ it 'should create ene order' do
14
+ data = {
15
+ :value => "value"
16
+ }
17
+ client.stubs.post("/v1.0/accounts/accountId/emergencyNotificationEndpointOrders", client.build_xml({:emergency_notification_endpoint_order => data})) {|env| [200, {}, Helper.xml['emergencyNotificationEndpointOrder']]}
18
+ ene_order = EmergencyNotificationEndpoints.create_emergency_notification_endpoint_order(client, data)
19
+ expect(ene_order[:order_id]).to eql("3e9a852e-2d1d-4e2d-84c3-87223a78cb70")
20
+ end
21
+
22
+ it 'should get ene orders' do
23
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationEndpointOrders") {|env| [200, {}, Helper.xml['emergencyNotificationEndpointOrders']]}
24
+ ene_orders = EmergencyNotificationEndpoints.get_emergency_notification_endpoint_orders(client)
25
+ expect(ene_orders[:emergency_notification_endpoint_orders][:emergency_notification_endpoint_order][0][:order_id]).to eql("3e9a852e-2d1d-4e2d-84c3-87223a78cb70")
26
+ end
27
+
28
+ it 'should get ene order' do
29
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationEndpointOrders/id") {|env| [200, {}, Helper.xml['emergencyNotificationEndpointOrder']]}
30
+ ene_order = EmergencyNotificationEndpoints.get_emergency_notification_endpoint_order(client, "id")
31
+ expect(ene_order[:order_id]).to eql("3e9a852e-2d1d-4e2d-84c3-87223a78cb70")
32
+ end
33
+ end
34
+ end
35
+
@@ -0,0 +1,48 @@
1
+ describe BandwidthIris::EmergencyNotificationGroups do
2
+ client = nil
3
+
4
+ before :each do
5
+ client = Helper.get_client()
6
+ end
7
+
8
+ after :each do
9
+ client.stubs.verify_stubbed_calls()
10
+ end
11
+
12
+ describe '#EngOrderTests' do
13
+ it 'should create eng order' do
14
+ data = {
15
+ :value => "value"
16
+ }
17
+ client.stubs.post("/v1.0/accounts/accountId/emergencyNotificationGroupOrders", client.build_xml({:emergency_notification_group_order => data})) {|env| [200, {}, Helper.xml['emergencyNotificationGroupOrder']]}
18
+ order = EmergencyNotificationGroups.create_emergency_notification_group_order(client, data)
19
+ expect(order[:order_id]).to eql("900b3646-18df-4626-b237-3a8de648ebf6")
20
+ end
21
+
22
+ it 'should get eng orders' do
23
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationGroupOrders") {|env| [200, {}, Helper.xml['emergencyNotificationGroupOrders']]}
24
+ orders = EmergencyNotificationGroups.get_emergency_notification_group_orders(client)
25
+ expect(orders[:emergency_notification_group_orders][:emergency_notification_group_order][0][:order_id]).to eql("092815dc-9ced-4d67-a070-a80eb243b914")
26
+ end
27
+
28
+ it 'should get eng order' do
29
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationGroupOrders/id") {|env| [200, {}, Helper.xml['emergencyNotificationGroupOrder']]}
30
+ order = EmergencyNotificationGroups.get_emergency_notification_group_order(client, "id")
31
+ expect(order[:order_id]).to eql("900b3646-18df-4626-b237-3a8de648ebf6")
32
+ end
33
+ end
34
+
35
+ describe '#EngTests' do
36
+ it 'should get eng' do
37
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationGroups/id") {|env| [200, {}, Helper.xml['emergencyNotificationGroup']]}
38
+ eng = EmergencyNotificationGroups.get_emergency_notification_group(client, "id")
39
+ expect(eng[:identifier]).to eql("63865500-0904-46b1-9b4f-7bd237a26363")
40
+ end
41
+
42
+ it 'should get engs' do
43
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationGroups") {|env| [200, {}, Helper.xml['emergencyNotificationGroups']]}
44
+ engs = EmergencyNotificationGroups.get_emergency_notification_groups(client)
45
+ expect(engs[:emergency_notification_groups][:emergency_notification_group][0][:identifier]).to eql("63865500-0904-46b1-9b4f-7bd237a26363")
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,48 @@
1
+ describe BandwidthIris::EmergencyNotificationRecipients do
2
+ client = nil
3
+
4
+ before :each do
5
+ client = Helper.get_client()
6
+ end
7
+
8
+ after :each do
9
+ client.stubs.verify_stubbed_calls()
10
+ end
11
+
12
+ describe '#EnrTests' do
13
+ it 'should create enr' do
14
+ data = {
15
+ :value => "value"
16
+ }
17
+ client.stubs.post("/v1.0/accounts/accountId/emergencyNotificationRecipients", client.build_xml({:emergency_notification_recipient => data})) {|env| [200, {}, Helper.xml['emergencyNotificationRecipient']]}
18
+ enr = EmergencyNotificationRecipients.create_emergency_notification_recipient(client, data)
19
+ expect(enr[:identifier]).to eql(" 63865500-0904-46b1-9b4f-7bd237a26363 ")
20
+ end
21
+
22
+ it 'should get enrs' do
23
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationRecipients") {|env| [200, {}, Helper.xml['emergencyNotificationRecipients']]}
24
+ enrs = EmergencyNotificationRecipients.get_emergency_notification_recipients(client)
25
+ expect(enrs[:emergency_notification_recipients][:emergency_notification_recipient][0][:identifier]).to eql(" 63865500-0904-46b1-9b4f-7bd237a26363 ")
26
+ end
27
+
28
+ it 'should get enr' do
29
+ client.stubs.get("/v1.0/accounts/accountId/emergencyNotificationRecipients/id") {|env| [200, {}, Helper.xml['emergencyNotificationRecipient']]}
30
+ enr = EmergencyNotificationRecipients.get_emergency_notification_recipient(client, "id")
31
+ expect(enr[:identifier]).to eql(" 63865500-0904-46b1-9b4f-7bd237a26363 ")
32
+ end
33
+
34
+ it 'should replace enr' do
35
+ data = {
36
+ :value => "value"
37
+ }
38
+ client.stubs.put("/v1.0/accounts/accountId/emergencyNotificationRecipients/id", client.build_xml({:emergency_notification_recipient => data})) {|env| [200, {}, Helper.xml['emergencyNotificationRecipient']]}
39
+ enr = EmergencyNotificationRecipients.replace_emergency_notification_recipient(client, "id", data)
40
+ expect(enr[:identifier]).to eql(" 63865500-0904-46b1-9b4f-7bd237a26363 ")
41
+ end
42
+
43
+ it 'should delete enr' do
44
+ client.stubs.delete("/v1.0/accounts/accountId/emergencyNotificationRecipients/id") {|env| [200, {}, '']}
45
+ EmergencyNotificationRecipients.delete_emergency_notification_recipient(client, "id")
46
+ end
47
+ end
48
+ end
@@ -59,3 +59,13 @@
59
59
  sippeerMmsFeatureMmsSettings: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><MmsFeatureMmsSettingsResponse><MmsSettings><Protocol>MM4</Protocol></MmsSettings></MmsFeatureMmsSettingsResponse>'
60
60
  messagingApplicationSettings: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ApplicationsSettingsResponse><ApplicationsSettings><HttpMessagingV2AppId>4a4ca6c1-156b-4fca-84e9-34e35e2afc32</HttpMessagingV2AppId></ApplicationsSettings></ApplicationsSettingsResponse>'
61
61
  sippeerMessageSettings: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><SipPeerMessagingSettingsResponse><SipPeerMessagingSettings><BreakOutCountries><Country>CAN</Country></BreakOutCountries></SipPeerMessagingSettings></SipPeerMessagingSettingsResponse>'
62
+ emergencyNotificationEndpointOrders: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationEndpointOrderResponse><Links><first> -- link to first page of results -- </first> <next> -- link to next page of results -- </next> </Links> <EmergencyNotificationEndpointOrders> <EmergencyNotificationEndpointOrder> <OrderId>3e9a852e-2d1d-4e2d-84c3-87223a78cb70</OrderId> <OrderCreatedDate>2020-01-23T18:34:17.284Z</OrderCreatedDate> <CreatedBy>jgilmore</CreatedBy> <ProcessingStatus>COMPLETED</ProcessingStatus> <CustomerOrderId>ALG-31233884</CustomerOrderId> <EmergencyNotificationEndpointAssociations> <EmergencyNotificationGroup> <Identifier>3e9a852e-2d1d-4e2d-84c3-04595ba2eb93</Identifier> </EmergencyNotificationGroup> <AddedAssociations> <EepToEngAssociations> <EepTns> <TelephoneNumber>2248838829</TelephoneNumber> <TelephoneNumber>4052397735</TelephoneNumber> </EepTns> <EepAeuiIds> <Identifier>Fred992834</Identifier> <Identifier>Bob00359</Identifier> </EepAeuiIds> </EepToEngAssociations> <ErrorList /> </AddedAssociations> </EmergencyNotificationEndpointAssociations> </EmergencyNotificationEndpointOrder> <EmergencyNotificationEndpointOrder> <OrderId>3e9a852e-2d1d-4e2d-84c3-87223a78cb70</OrderId> <OrderCreatedDate>2020-01-23T18:34:17.284Z</OrderCreatedDate> <CreatedBy>jgilmore</CreatedBy> <ProcessingStatus>COMPLETED</ProcessingStatus> <CustomerOrderId>ALG-31233884</CustomerOrderId> <EmergencyNotificationEndpointAssociations> <EmergencyNotificationGroup> <Identifier>3e9a852e-2d1d-4e2d-84c3-04595ba2eb93</Identifier> </EmergencyNotificationGroup> <AddedAssociations> <EepToEngAssociations> <EepTns> <TelephoneNumber>2248838829</TelephoneNumber> <TelephoneNumber>4052397735</TelephoneNumber> </EepTns> <EepAeuiIds> <Identifier>Fred992834</Identifier> <Identifier>Bob00359</Identifier> </EepAeuiIds> </EepToEngAssociations> <ErrorList /> </AddedAssociations> </EmergencyNotificationEndpointAssociations> </EmergencyNotificationEndpointOrder> </EmergencyNotificationEndpointOrders></EmergencyNotificationEndpointOrderResponse>'
63
+ emergencyNotificationEndpointOrder: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationEndpointOrderResponse> <EmergencyNotificationEndpointOrder> <OrderId>3e9a852e-2d1d-4e2d-84c3-87223a78cb70</OrderId> <OrderCreatedDate>2020-01-23T18:34:17.284Z</OrderCreatedDate> <CreatedBy>jgilmore</CreatedBy> <ProcessingStatus>COMPLETED</ProcessingStatus> <CustomerOrderId>ALG-31233884</CustomerOrderId> <EmergencyNotificationEndpointAssociations> <EmergencyNotificationGroup> <Identifier>3e9a852e-2d1d-4e2d-84c3-04595ba2eb93</Identifier> </EmergencyNotificationGroup> <AddedAssociations> <EepToEngAssociations> <EepTns> <TelephoneNumber>2248838829</TelephoneNumber> <TelephoneNumber>4052397735</TelephoneNumber> </EepTns> <EepAeuiIds> <Identifier>Fred992834</Identifier> <Identifier>Bob00359</Identifier> </EepAeuiIds> </EepToEngAssociations> <ErrorList /> </AddedAssociations> </EmergencyNotificationEndpointAssociations> </EmergencyNotificationEndpointOrder></EmergencyNotificationEndpointOrderResponse>'
64
+ emergencyNotificationGroupOrders: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationGroupOrderResponse><Links><first>Link=&lt;http://localhost:8080/v1.0/accounts/12346371/emergencyNotificationGroupOrders&gt;;rel="first";</first> </Links> <EmergencyNotificationGroupOrders> <EmergencyNotificationGroupOrder><OrderId>092815dc-9ced-4d67-a070-a80eb243b914</OrderId><OrderCreatedDate>2020-04-29T15:40:01.449Z</OrderCreatedDate><CreatedBy>systemUser</CreatedBy><ProcessingStatus>COMPLETED</ProcessingStatus><CustomerOrderId>QTWeKMys</CustomerOrderId><AddedEmergencyNotificationGroup> <Identifier>6daa55e1-e499-4cf0-9f3d-9524215f1bee</Identifier> <Description>enr test description 3</Description> <AddedEmergencyNotificationRecipients> <EmergencyNotificationRecipient><Identifier>44f203915ca249b7b69bbc084af09a</Identifier><Description>TestDesc SEHsbDMM</Description><Type>SMS</Type><Sms> <TelephoneNumber>15638765448</TelephoneNumber></Sms> </EmergencyNotificationRecipient> </AddedEmergencyNotificationRecipients></AddedEmergencyNotificationGroup> </EmergencyNotificationGroupOrder> <EmergencyNotificationGroupOrder><OrderId>89b4e0a1-2789-43fb-b948-38d368159142</OrderId><OrderCreatedDate>2020-04-29T15:39:59.325Z</OrderCreatedDate><CreatedBy>systemUser</CreatedBy><ProcessingStatus>COMPLETED</ProcessingStatus><CustomerOrderId>SDWupQpf</CustomerOrderId><AddedEmergencyNotificationGroup> <Identifier>b49fa543-5bb3-4b9d-9213-96c8b63e77f5</Identifier> <Description>enr test description 2</Description> <AddedEmergencyNotificationRecipients> <EmergencyNotificationRecipient><Identifier>c719e060a6ba4212a2c0642b87a784</Identifier><Description>TestDesc zscxcAGG</Description><Type>SMS</Type><Sms> <TelephoneNumber>15678765448</TelephoneNumber></Sms> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient><Identifier>93ad72dfe59c4992be6f8aa625466d</Identifier><Description>TestDesc RTflsKBz</Description><Type>TTS</Type><Tts> <TelephoneNumber>17678765449</TelephoneNumber></Tts> </EmergencyNotificationRecipient> </AddedEmergencyNotificationRecipients></AddedEmergencyNotificationGroup> </EmergencyNotificationGroupOrder> <EmergencyNotificationGroupOrder><OrderId>247d1425-4247-4b27-99d8-83ce30038b14</OrderId><OrderCreatedDate>2020-04-29T15:39:57.058Z</OrderCreatedDate><CreatedBy>systemUser</CreatedBy><ProcessingStatus>COMPLETED</ProcessingStatus><CustomerOrderId>vgshuNMB</CustomerOrderId><AddedEmergencyNotificationGroup> <Identifier>69a3d588-f314-42ca-8726-faa824bdf4be</Identifier> <Description>eng test description</Description> <AddedEmergencyNotificationRecipients> <EmergencyNotificationRecipient><Identifier>aab78f87074940f1aaaf1c9658be4b</Identifier><Description>enr test description</Description><Type>EMAIL</Type><EmailAddress>testEmail@gmail.com</EmailAddress> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient><Identifier>852e9eee161b4da6823c91173b05c4</Identifier><Description>TestDesc WkHqpnNH</Description><Type>TTS</Type><Tts> <TelephoneNumber>15678765449</TelephoneNumber></Tts> </EmergencyNotificationRecipient> </AddedEmergencyNotificationRecipients></AddedEmergencyNotificationGroup> </EmergencyNotificationGroupOrder> </EmergencyNotificationGroupOrders></EmergencyNotificationGroupOrderResponse>'
65
+ emergencyNotificationGroupOrder: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationGroupOrderResponse><EmergencyNotificationEndpointOrder><OrderId>900b3646-18df-4626-b237-3a8de648ebf6</OrderId> <OrderCreatedDate>2020-04-29T15:27:16.151</OrderCreatedDate> <CreatedBy>systemUser</CreatedBy> <ProcessingStatus>PROCESSING</ProcessingStatus> <CustomerOrderId>UbOxhMnp</CustomerOrderId> <AddedEmergencyNotificationGroup> <Identifier>52897b97-3592-43fe-aa3f-857cf96671ee</Identifier> <Description>JgHzUzIchD</Description> <AddedEmergencyNotificationRecipients> <EmergencyNotificationRecipient> <Identifier>c7f74671edd8410d9a4c0f8e985e0a</Identifier> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient> <Identifier>74ac30535b414d29bc36d50572f553</Identifier> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient> <Identifier>b910df3245ce4192aee052f583259f</Identifier> </EmergencyNotificationRecipient> </AddedEmergencyNotificationRecipients> </AddedEmergencyNotificationGroup></EmergencyNotificationEndpointOrder></EmergencyNotificationGroupOrderResponse>'
66
+ emergencyNotificationGroups: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationGroupsResponse><Links><first> -- link to first page of results -- </first> <next> -- link to next page of results -- </next> </Links> <EmergencyNotificationGroups> <EmergencyNotificationGroup> <Identifier>63865500-0904-46b1-9b4f-7bd237a26363</Identifier> <CreatedDate>2020-01-23T18:34:17.284Z</CreatedDate> <ModifiedBy>jgilmore</ModifiedBy> <ModifiedDate>2020-01-23T18:34:17.284Z</ModifiedDate> <Description>This is a description of the emergency notification group.</Description> <EmergencyNotificationRecipients> <EmergencyNotificationRecipient> <Identifier>63865500-0904-46b1-9b4f-7bd237a26363</Identifier> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient> <Identifier>ef47eb61-e3b1-449d-834b-0fbc5a11da30</Identifier> </EmergencyNotificationRecipient> </EmergencyNotificationRecipients> </EmergencyNotificationGroup> <EmergencyNotificationGroup> <Identifier>29477382-23947-23c-2349-aa8238b22743</Identifier> <CreatedDate>2020-01-23T18:36:51.987Z</CreatedDate> <ModifiedBy>jgilmore</ModifiedBy> <ModifiedDate>2020-01-23T18:36:51.987Z</ModifiedDate> <Description>This is a description of the emergency notification group.</Description> <EmergencyNotificationRecipients> <EmergencyNotificationRecipient> <Identifier>37742335-8722-3abc-8722-e2434f123a4d</Identifier> </EmergencyNotificationRecipient> </EmergencyNotificationRecipients> </EmergencyNotificationGroup> </EmergencyNotificationGroups></EmergencyNotificationGroupsResponse>'
67
+ emergencyNotificationGroup: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationGroupsResponse><EmergencyNotificationGroup> <Identifier>63865500-0904-46b1-9b4f-7bd237a26363</Identifier> <CreatedDate>2020-01-23T18:34:17.284Z</CreatedDate> <ModifiedBy>jgilmore</ModifiedBy> <ModifiedDate>2020-01-23T18:34:17.284Z</ModifiedDate> <Description>This is a description of the emergency notification group.</Description> <EmergencyNotificationRecipients> <EmergencyNotificationRecipient> <Identifier>63865500-0904-46b1-9b4f-7bd237a26363</Identifier> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient> <Identifier>ef47eb61-e3b1-449d-834b-0fbc5a11da30</Identifier> </EmergencyNotificationRecipient> </EmergencyNotificationRecipients> </EmergencyNotificationGroup></EmergencyNotificationGroupsResponse>'
68
+ emergencyNotificationRecipients: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationRecipientsResponse> <Links> <first> -- link to first page of results -- </first> <next> -- link to next page of results -- </next> </Links> <EmergencyNotificationRecipients> <EmergencyNotificationRecipient> <Identifier> 63865500-0904-46b1-9b4f-7bd237a26363 </Identifier> <CreatedDate>2020-03-18T21:26:47.403Z</CreatedDate> <LastModifiedDate>2020-03-18T21:26:47.403Z</LastModifiedDate> <ModifiedByUser>jgilmore</ModifiedByUser> <Description> This is a description of the emergency notification recipient. </Description> <Type>CALLBACK</Type> <Callback> <Url>https://foo.bar/baz</Url> <Credentials> <Username>jgilmore</Username> <!-- CallbackPassword is omitted for security --> </Credentials> </Callback> </EmergencyNotificationRecipient> <EmergencyNotificationRecipient> <Identifier> 63865500-0904-46b1-9b4f-7bd237a26363 </Identifier> <CreatedDate>2020-03-22T12:13:25.782Z</CreatedDate> <LastModifiedDate>2020-03-22T12:13:25.782Z</LastModifiedDate> <ModifiedByUser>gfranklin</ModifiedByUser> <Description> This is a description of the emergency notification recipient. </Description> <Type>EMAIL</Type> <EmailAddress>fred@gmail.com</EmailAddress> </EmergencyNotificationRecipient> </EmergencyNotificationRecipients></EmergencyNotificationRecipientsResponse>'
69
+ emergencyNotificationRecipient: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><EmergencyNotificationRecipientsResponse> <EmergencyNotificationRecipient> <Identifier> 63865500-0904-46b1-9b4f-7bd237a26363 </Identifier> <CreatedDate>2020-03-18T21:26:47.403Z</CreatedDate> <LastModifiedDate>2020-03-18T21:26:47.403Z</LastModifiedDate> <ModifiedByUser>jgilmore</ModifiedByUser> <Description> This is a description of the emergency notification recipient. </Description> <Type>CALLBACK</Type> <Callback> <Url>https://foo.bar/baz</Url> <Credentials> <Username>jgilmore</Username> </Credentials> </Callback> </EmergencyNotificationRecipient></EmergencyNotificationRecipientsResponse>'
70
+ aeuis: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><AlternateEndUserIdentifiersResponse> <TotalCount>2</TotalCount> <Links> <first>Link=&lt;http://localhost:8080/iris/accounts/14/aeuis?page=1&amp;size=500&gt;;rel="first";</first> </Links> <AlternateEndUserIdentifiers> <AlternateEndUserIdentifier> <Identifier>DavidAcid</Identifier> <CallbackNumber>8042105760</CallbackNumber> <EmergencyNotificationGroup> <Identifier>63865500-0904-46b1-9b4f-7bd237a26363</Identifier> <Description>Building 5, 5th Floor.</Description> </EmergencyNotificationGroup> </AlternateEndUserIdentifier> <AlternateEndUserIdentifier> <Identifier>JohnAcid</Identifier> <CallbackNumber>8042105618</CallbackNumber> </AlternateEndUserIdentifier> </AlternateEndUserIdentifiers></AlternateEndUserIdentifiersResponse>'
71
+ aeui: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><AlternateEndUserIdentifierResponse><AlternateEndUserIdentifier> <Identifier>DavidAcid</Identifier> <CallbackNumber>8042105760</CallbackNumber> <E911> <CallerName>David</CallerName> <Address> <HouseNumber>900</HouseNumber> <HouseSuffix></HouseSuffix> <PreDirectional></PreDirectional> <StreetName>MAIN CAMPUS</StreetName> <StreetSuffix>DR</StreetSuffix> <AddressLine2></AddressLine2> <City>RALEIGH</City> <StateCode>NC</StateCode> <Zip>27606</Zip> <PlusFour>5214</PlusFour> <Country>United States</Country> <AddressType>Billing</AddressType> </Address> <EmergencyNotificationGroup> <Identifier>63865500-0904-46b1-9b4f-7bd237a26363</Identifier> <Description>Building 5, 5th Floor.</Description> </EmergencyNotificationGroup> </E911> </AlternateEndUserIdentifier></AlternateEndUserIdentifierResponse>'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-bandwidth-iris
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Belchikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-28 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -166,6 +166,7 @@ files:
166
166
  - examples/site.rb
167
167
  - examples/tn.rb
168
168
  - lib/bandwidth-iris/account.rb
169
+ - lib/bandwidth-iris/aeui.rb
169
170
  - lib/bandwidth-iris/api_item.rb
170
171
  - lib/bandwidth-iris/applications.rb
171
172
  - lib/bandwidth-iris/available_npa_nxx.rb
@@ -178,6 +179,9 @@ files:
178
179
  - lib/bandwidth-iris/disc_number.rb
179
180
  - lib/bandwidth-iris/disconnect.rb
180
181
  - lib/bandwidth-iris/dlda.rb
182
+ - lib/bandwidth-iris/emergency_notification_endpoints.rb
183
+ - lib/bandwidth-iris/emergency_notification_groups.rb
184
+ - lib/bandwidth-iris/emergency_notification_recipients.rb
181
185
  - lib/bandwidth-iris/errors.rb
182
186
  - lib/bandwidth-iris/import_tn_checker.rb
183
187
  - lib/bandwidth-iris/import_tn_orders.rb
@@ -202,6 +206,7 @@ files:
202
206
  - lib/ruby-bandwidth-iris.rb
203
207
  - ruby-bandwidth-iris.gemspec
204
208
  - spec/bandwidth-iris/account_spec.rb
209
+ - spec/bandwidth-iris/aeui_spec.rb
205
210
  - spec/bandwidth-iris/application_spec.rb
206
211
  - spec/bandwidth-iris/available_npa_nxx_spec.rb
207
212
  - spec/bandwidth-iris/available_number_spec.rb
@@ -212,6 +217,9 @@ files:
212
217
  - spec/bandwidth-iris/disc_number_spec.rb
213
218
  - spec/bandwidth-iris/disconnect_spec.rb
214
219
  - spec/bandwidth-iris/dlda_spec.rb
220
+ - spec/bandwidth-iris/emergency_notification_endpoints_spec.rb
221
+ - spec/bandwidth-iris/emergency_notification_groups_spec.rb
222
+ - spec/bandwidth-iris/emergency_notification_recipients_spec.rb
215
223
  - spec/bandwidth-iris/import_tn_checker_spec.rb
216
224
  - spec/bandwidth-iris/import_tn_orders_spec.rb
217
225
  - spec/bandwidth-iris/import_to_account_spec.rb
@@ -258,6 +266,7 @@ specification_version: 4
258
266
  summary: Gem for integrating to Bandwidth's Iris API
259
267
  test_files:
260
268
  - spec/bandwidth-iris/account_spec.rb
269
+ - spec/bandwidth-iris/aeui_spec.rb
261
270
  - spec/bandwidth-iris/application_spec.rb
262
271
  - spec/bandwidth-iris/available_npa_nxx_spec.rb
263
272
  - spec/bandwidth-iris/available_number_spec.rb
@@ -268,6 +277,9 @@ test_files:
268
277
  - spec/bandwidth-iris/disc_number_spec.rb
269
278
  - spec/bandwidth-iris/disconnect_spec.rb
270
279
  - spec/bandwidth-iris/dlda_spec.rb
280
+ - spec/bandwidth-iris/emergency_notification_endpoints_spec.rb
281
+ - spec/bandwidth-iris/emergency_notification_groups_spec.rb
282
+ - spec/bandwidth-iris/emergency_notification_recipients_spec.rb
271
283
  - spec/bandwidth-iris/import_tn_checker_spec.rb
272
284
  - spec/bandwidth-iris/import_tn_orders_spec.rb
273
285
  - spec/bandwidth-iris/import_to_account_spec.rb