ruby-bandwidth-iris 2.6.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +124 -6
- data/lib/bandwidth-iris/client.rb +2 -20
- data/lib/bandwidth-iris/tn_options.rb +26 -0
- data/lib/bandwidth-iris/version.rb +1 -1
- data/lib/ruby-bandwidth-iris.rb +1 -0
- data/spec/bandwidth-iris/client_spec.rb +0 -35
- data/spec/bandwidth-iris/tn_options_spec.rb +42 -0
- data/spec/xml.yml +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38c4a5c4376a7f3d8ae7cd6be021bb6eba4aa4d96b58b8261070d33e4a40c6c3
|
4
|
+
data.tar.gz: 5d4eadf2dfe738a20d375fb2ca0a28a6d68f7af0f596324c15635e8e3981bfec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eef3948e858359ecfcd5242d847ce337b1c56c697c989d4d6364553fe4c533c8729826e8879d3dac70ba51a9cce282f39a1861265adaa7c3faa05f28dcb609da
|
7
|
+
data.tar.gz: 1e747a0019511bdd0c6eebb2b2366d40819cce1a17caff39d1bf73abe3c1928e00cfe4690c5cb088c84386153b255068b36e27575a654ab9dcaa0c97b08a06e8
|
data/README.md
CHANGED
@@ -6,17 +6,44 @@ Ruby Client library for IRIS / BBS API
|
|
6
6
|
|
7
7
|
## Release Notes
|
8
8
|
|
9
|
-
| Release Version | Notes
|
10
|
-
|
11
|
-
| 1.0.5
|
12
|
-
| 2.0.0
|
13
|
-
| 2.0.1
|
14
|
-
| 2.1.0
|
9
|
+
| Release Version | Notes |
|
10
|
+
|--|--|
|
11
|
+
| 1.0.5 | Fixed incorrect generation of XML for a Disconnect request |
|
12
|
+
| 2.0.0 | Added `importTnOrders`, `removeImportedTnOrders`, `inserviceNumbers`, and `importTnChecker` endpoints. This release also changed the response body of `BandwidthIris::InServiceNumber.list()`. Please make sure to update your code to include this change. |
|
13
|
+
| 2.0.1 | Updated gem dependencies to be less restrictive |
|
14
|
+
| 2.1.0 | Added `csrs` endpoints |
|
15
|
+
| 2.2.0 | Added `loas` endpoints to `importTnOrders` |
|
15
16
|
| 2.2.0 | Added `loas` endpoints to `importTnOrders` |
|
16
17
|
| 2.3.0 | Added `get_tns_by_order_id` to the Orders class |
|
17
18
|
| 2.4.0.pre | Added application management and sippeer products endpoints |
|
18
19
|
| 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
20
|
| 2.6.0 | Added Emergency Calling Notification, Emergeny Notification Group, Emergency Notification Endpoint, and Alternate End User Identity methods |
|
21
|
+
| 2.7.0 | Added TNOptions endpoints |
|
22
|
+
| 3.0.0 | Removed functionality that causes an error to be raised when some type of `error` field is returned in the XML body response. This change reduces the situations that cause an error to be thrown to simply be 4XX and 5XX http responses. This change was made to improve communication when an error is found. Please update your code to handle this change. |
|
23
|
+
|
24
|
+
### 3.x.x release
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
failed_import_tn_order = "some_id"
|
28
|
+
begin
|
29
|
+
response = BandwidthIris::ImportTnOrders.get_import_tn_order(failed_import_tn_order)
|
30
|
+
puts response[0]
|
31
|
+
rescue BandwidthIris::Errors::GenericError => e
|
32
|
+
puts e
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
#### 2.x.x result
|
37
|
+
|
38
|
+
```
|
39
|
+
Messaging route of External Third Party TNs is not configured.
|
40
|
+
```
|
41
|
+
|
42
|
+
#### 3.x.x result
|
43
|
+
|
44
|
+
```
|
45
|
+
{:customer_order_id=>"custom_id", :order_create_date=>Mon, 02 Mar 2020 20:56:48 +0000, :account_id=>123, :created_by_user=>"user", :order_id=>"0f2", :last_modified_date=>Mon, 02 Mar 2020 20:56:48 +0000, :site_id=>123, :subscriber=>{:name=>"Company INC", :service_address=>{:house_number=>123, :street_name=>"Street", :city=>"City", :state_code=>"XY", :zip=>12345, :county=>"County", :country=>"Country", :address_type=>"Service"}}, :loa_authorizing_person=>"Person", :telephone_numbers=>{:telephone_number=>"5554443333"}, :processing_status=>"FAILED", :errors=>{:error=>{:code=>19005, :description=>"Messaging route of External Third Party TNs is not configured.", :telephone_numbers=>{:telephone_number=>"5554443333"}}}, :sip_peer_id=>123}
|
46
|
+
```
|
20
47
|
|
21
48
|
## Install
|
22
49
|
|
@@ -1236,3 +1263,94 @@ puts aeuis
|
|
1236
1263
|
aeui = AlternateEndUserIdentity.get_alternate_caller_information("id")
|
1237
1264
|
puts aeui
|
1238
1265
|
```
|
1266
|
+
|
1267
|
+
## TN Option Orders
|
1268
|
+
|
1269
|
+
### Get TN Option Orders
|
1270
|
+
|
1271
|
+
```ruby
|
1272
|
+
orders = BandwidthIris::TnOptions.get_tn_option_orders()
|
1273
|
+
puts orders
|
1274
|
+
```
|
1275
|
+
|
1276
|
+
### Get TN Option Order
|
1277
|
+
|
1278
|
+
```ruby
|
1279
|
+
order = BandwidthIris::TnOptions.get_tn_option_order("order_id")
|
1280
|
+
puts order
|
1281
|
+
```
|
1282
|
+
|
1283
|
+
### Get TN Option Order (error)
|
1284
|
+
|
1285
|
+
```ruby
|
1286
|
+
begin
|
1287
|
+
order = BandwidthIris::TnOptions.get_tn_option_order("error_id")
|
1288
|
+
rescue BandwidthIris::Errors::GenericError => e
|
1289
|
+
puts e
|
1290
|
+
end
|
1291
|
+
```
|
1292
|
+
|
1293
|
+
### Create PortOut Passcode
|
1294
|
+
|
1295
|
+
```ruby
|
1296
|
+
data = {
|
1297
|
+
:customer_order_id => "custom order",
|
1298
|
+
:tn_option_groups => {
|
1299
|
+
:tn_option_group => [
|
1300
|
+
{
|
1301
|
+
:port_out_passcode => "12abd38",
|
1302
|
+
:telephone_numbers => {
|
1303
|
+
:telephone_number => ["2018551020"]
|
1304
|
+
}
|
1305
|
+
}
|
1306
|
+
]
|
1307
|
+
}
|
1308
|
+
}
|
1309
|
+
|
1310
|
+
|
1311
|
+
order = BandwidthIris::TnOptions.create_tn_option_order(data)
|
1312
|
+
puts order
|
1313
|
+
```
|
1314
|
+
|
1315
|
+
### Create Call Forward Number
|
1316
|
+
|
1317
|
+
```ruby
|
1318
|
+
data = {
|
1319
|
+
:customer_order_id => "custom order",
|
1320
|
+
:tn_option_groups => {
|
1321
|
+
:tn_option_group => [
|
1322
|
+
{
|
1323
|
+
:call_forward => "2018551022",
|
1324
|
+
:telephone_numbers => {
|
1325
|
+
:telephone_number => ["2018551020"]
|
1326
|
+
}
|
1327
|
+
}
|
1328
|
+
]
|
1329
|
+
}
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
|
1333
|
+
order = BandwidthIris::TnOptions.create_tn_option_order(data)
|
1334
|
+
puts order
|
1335
|
+
```
|
1336
|
+
### Enable SMS
|
1337
|
+
|
1338
|
+
```ruby
|
1339
|
+
data = {
|
1340
|
+
:customer_order_id => "custom order",
|
1341
|
+
:tn_option_groups => {
|
1342
|
+
:tn_option_group => [
|
1343
|
+
{
|
1344
|
+
:sms => "on",
|
1345
|
+
:telephone_numbers => {
|
1346
|
+
:telephone_number => ["2018551020"]
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
]
|
1350
|
+
}
|
1351
|
+
}
|
1352
|
+
|
1353
|
+
|
1354
|
+
order = BandwidthIris::TnOptions.create_tn_option_order(data)
|
1355
|
+
puts order
|
1356
|
+
```
|
@@ -22,7 +22,7 @@ module BandwidthIris
|
|
22
22
|
password = options[:password] unless password
|
23
23
|
options[:api_endpoint] = @@global_options[:api_endpoint] unless options[:api_endpoint]
|
24
24
|
options[:api_version] = @@global_options[:api_version] unless options[:api_version]
|
25
|
-
api_endpoint = options[:api_endpoint] || "https://
|
25
|
+
api_endpoint = options[:api_endpoint] || "https://dasbhoard.bandwidth.com"
|
26
26
|
api_version = options[:api_version] || "v1.0"
|
27
27
|
|
28
28
|
@build_path = lambda {|path| "/#{api_version}" + (if path[0] == "/" then path else "/#{path}" end) }
|
@@ -32,6 +32,7 @@ module BandwidthIris
|
|
32
32
|
faraday.basic_auth(user_name, password)
|
33
33
|
#faraday.response :logger
|
34
34
|
faraday.headers['Accept'] = 'application/xml'
|
35
|
+
faraday.headers['user-agent'] = 'Ruby-Bandwidth-Iris'
|
35
36
|
faraday.use FaradayMiddleware::FollowRedirects
|
36
37
|
@set_adapter.call(faraday)
|
37
38
|
}
|
@@ -119,25 +120,6 @@ module BandwidthIris
|
|
119
120
|
# @param response response object
|
120
121
|
def check_response(response)
|
121
122
|
parsed_body = parse_xml(response.body || '')
|
122
|
-
code = find_first_descendant(parsed_body, :error_code)
|
123
|
-
description = find_first_descendant(parsed_body, :description)
|
124
|
-
unless code
|
125
|
-
error = find_first_descendant(parsed_body, :error)
|
126
|
-
if error
|
127
|
-
code = error[:code]
|
128
|
-
description = error[:description]
|
129
|
-
else
|
130
|
-
errors = find_first_descendant(parsed_body, :errors)
|
131
|
-
if errors == nil || errors.length == 0
|
132
|
-
code = find_first_descendant(parsed_body, :result_code)
|
133
|
-
description = find_first_descendant(parsed_body, :result_message)
|
134
|
-
else
|
135
|
-
errors = [errors] if errors.is_a?(Hash)
|
136
|
-
raise Errors::AgregateError.new(errors.map {|e| Errors::GenericError.new(e[:code], e[:description], response.status)})
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
raise Errors::GenericError.new(code, description, response.status) if code && description && code != '0' && code != 0
|
141
123
|
raise Errors::GenericError.new('', "Http code #{response.status}", response.status) if response.status >= 400
|
142
124
|
parsed_body
|
143
125
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module BandwidthIris
|
2
|
+
TN_OPTIONS_PATH = 'tnoptions'
|
3
|
+
|
4
|
+
class TnOptions
|
5
|
+
extend ClientWrapper
|
6
|
+
include ApiItem
|
7
|
+
|
8
|
+
def self.get_tn_option_orders(client, query = nil)
|
9
|
+
response = client.make_request(:get, "#{client.concat_account_path(TN_OPTIONS_PATH)}", query)
|
10
|
+
return response[0]
|
11
|
+
end
|
12
|
+
wrap_client_arg :get_tn_option_orders
|
13
|
+
|
14
|
+
def self.create_tn_option_order(client, data)
|
15
|
+
response = client.make_request(:post, "#{client.concat_account_path(TN_OPTIONS_PATH)}", {:tn_option_order => data})
|
16
|
+
return response[0][:tn_option_order]
|
17
|
+
end
|
18
|
+
wrap_client_arg :create_tn_option_order
|
19
|
+
|
20
|
+
def self.get_tn_option_order(client, order_id)
|
21
|
+
response = client.make_request(:get, "#{client.concat_account_path(TN_OPTIONS_PATH)}/#{order_id}")
|
22
|
+
return response[0]
|
23
|
+
end
|
24
|
+
wrap_client_arg :get_tn_option_order
|
25
|
+
end
|
26
|
+
end
|
data/lib/ruby-bandwidth-iris.rb
CHANGED
@@ -36,5 +36,6 @@ require 'bandwidth-iris/emergency_notification_endpoints'
|
|
36
36
|
require 'bandwidth-iris/emergency_notification_groups'
|
37
37
|
require 'bandwidth-iris/emergency_notification_recipients'
|
38
38
|
require 'bandwidth-iris/aeui'
|
39
|
+
require 'bandwidth-iris/tn_options'
|
39
40
|
|
40
41
|
require 'bandwidth-iris/version'
|
@@ -86,41 +86,6 @@ describe BandwidthIris::Client do
|
|
86
86
|
client.stubs.get('/v1.0/path1') { |env| [400, {}, ''] }
|
87
87
|
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::GenericError, "Http code 400")
|
88
88
|
end
|
89
|
-
|
90
|
-
it 'should fail if output contains ErrorCode and Description' do
|
91
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Test><ErrorCode>400</ErrorCode><Description>Error</Description></Test></Response>'] }
|
92
|
-
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::GenericError, "Error")
|
93
|
-
end
|
94
|
-
|
95
|
-
it 'should fail if output contains element Error with Code and Description' do
|
96
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Test><Error><Code>400</Code><Description>Error</Description></Error></Test></Response>'] }
|
97
|
-
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::GenericError, "Error")
|
98
|
-
end
|
99
|
-
|
100
|
-
it 'should fail if output contains elements Errors with Code and Description' do
|
101
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Test><Errors><Code>400</Code><Description>Error</Description></Errors><Errors><Code>401</Code><Description>Error1</Description></Errors></Test></Response>'] }
|
102
|
-
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::AgregateError)
|
103
|
-
end
|
104
|
-
|
105
|
-
it 'should fail if output contains elements Errors with Code and Description (for 1 element)' do
|
106
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Test><Errors><Code>400</Code><Description>Error</Description></Errors></Test></Response>'] }
|
107
|
-
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::AgregateError)
|
108
|
-
end
|
109
|
-
|
110
|
-
it 'should fail if output contains elements resultCode and resultMessage' do
|
111
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Test><resultCode>400</resultCode><resultMessage>Error</resultMessage></Test></Response>'] }
|
112
|
-
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::GenericError, "Error")
|
113
|
-
end
|
114
|
-
|
115
|
-
it 'should fail if output contains elements resultCode and resultMessage (more deep)' do
|
116
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Tests><Test></Test><Test><resultCode>400</resultCode><resultMessage>Error</resultMessage></Test></Tests></Response>'] }
|
117
|
-
expect{client.make_request(:get, '/path1')}.to raise_error(Errors::GenericError, "Error")
|
118
|
-
end
|
119
|
-
|
120
|
-
it 'should not fail if resultCode == 0' do
|
121
|
-
client.stubs.get('/v1.0/path1') { |env| [200, {}, '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Response><Test><resultCode>0</resultCode><resultMessage>Completed</resultMessage></Test></Response>'] }
|
122
|
-
client.make_request(:get, '/path1')
|
123
|
-
end
|
124
89
|
end
|
125
90
|
end
|
126
91
|
|
@@ -0,0 +1,42 @@
|
|
1
|
+
describe BandwidthIris::TnOptions 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 "#tnOptionOrders" do
|
13
|
+
it "should get tn option orders" do
|
14
|
+
client.stubs.get("/v1.0/accounts/accountId/tnoptions"){|env| [200, {}, Helper.xml['tnOptionOrders']]}
|
15
|
+
orders = TnOptions.get_tn_option_orders(client)
|
16
|
+
expect(orders[:tn_option_order_summary][0][:account_id]).to eql(14)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should create tn option order" do
|
20
|
+
data = {
|
21
|
+
:customer_order_id => "12345",
|
22
|
+
:tn_option_groups => {
|
23
|
+
:tn_option_group => [
|
24
|
+
{
|
25
|
+
:number_format => "10digit",
|
26
|
+
:RPIDFormat => "10digit"
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|
30
|
+
}
|
31
|
+
client.stubs.post("/v1.0/accounts/accountId/tnoptions", client.build_xml({:tn_option_order => data})){|env| [200, {}, Helper.xml['tnOptionOrderResponse']]}
|
32
|
+
order = TnOptions.create_tn_option_order(client, data)
|
33
|
+
expect(order[:account_id]).to eql(14)
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should get tn option order" do
|
37
|
+
client.stubs.get("/v1.0/accounts/accountId/tnoptions/id"){|env| [200, {}, Helper.xml['tnOptionOrder']]}
|
38
|
+
order = TnOptions.get_tn_option_order(client, "id")
|
39
|
+
expect(order[:account_id]).to eql(14)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
data/spec/xml.yml
CHANGED
@@ -69,3 +69,6 @@
|
|
69
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
70
|
aeuis: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><AlternateEndUserIdentifiersResponse> <TotalCount>2</TotalCount> <Links> <first>Link=<http://localhost:8080/iris/accounts/14/aeuis?page=1&size=500>;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
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>'
|
72
|
+
tnOptionOrder: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><TnOptionOrder> <OrderCreateDate>2016-01-15T11:22:58.789Z</OrderCreateDate> <AccountId>14</AccountId> <CreatedByUser>jbm</CreatedByUser> <OrderId>409033ee-88ec-43e3-85f3-538f30733963</OrderId> <LastModifiedDate>2016-01-15T11:22:58.969Z</LastModifiedDate> <ProcessingStatus>COMPLETE</ProcessingStatus> <TnOptionGroups> <TnOptionGroup> <CallingNameDisplay>on</CallingNameDisplay> <Sms>on</Sms> <TelephoneNumbers> <TelephoneNumber>2174101601</TelephoneNumber> </TelephoneNumbers> </TnOptionGroup> <TnOptionGroup> <CallingNameDisplay>off</CallingNameDisplay> <TelephoneNumbers> <TelephoneNumber>2174101602</TelephoneNumber> </TelephoneNumbers> </TnOptionGroup> <TnOptionGroup> <CallingNameDisplay>systemdefault</CallingNameDisplay> <FinalDestinationURI>sip:+12345678901@1.2.3.4:5060</FinalDestinationURI> <TelephoneNumbers> <TelephoneNumber>2174101603</TelephoneNumber> </TelephoneNumbers> </TnOptionGroup> </TnOptionGroups> <ErrorList/> <Warnings> <Warning> <TelephoneNumber>2174101601</TelephoneNumber> <Description>SMS is already Enabled or number is in processing.</Description> </Warning> </Warnings></TnOptionOrder>'
|
73
|
+
tnOptionOrderResponse: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><TnOptionOrderResponse> <TnOptionOrder> <OrderCreateDate>2016-01-15T12:01:14.324Z</OrderCreateDate> <AccountId>14</AccountId> <CreatedByUser>jbm</CreatedByUser> <OrderId>ddbdc72e-dc27-490c-904e-d0c11291b095</OrderId> <LastModifiedDate>2016-01-15T12:01:14.324Z</LastModifiedDate> <ProcessingStatus>RECEIVED</ProcessingStatus> <TnOptionGroups> <TnOptionGroup> <NumberFormat>10digit</NumberFormat> <RPIDFormat>10digit</RPIDFormat> <RewriteUser>testUser1</RewriteUser> <CallForward>6042661720</CallForward> <CallingNameDisplay>on</CallingNameDisplay> <Protected>true</Protected> <Sms>on</Sms> <TelephoneNumbers> <TelephoneNumber>2018551020</TelephoneNumber> </TelephoneNumbers> </TnOptionGroup> <TnOptionGroup> <CallingNameDisplay>off</CallingNameDisplay> <Protected>false</Protected> <Sms>off</Sms> <TelephoneNumbers> <TelephoneNumber>2018551025</TelephoneNumber> </TelephoneNumbers> </TnOptionGroup> </TnOptionGroups> <ErrorList/> </TnOptionOrder></TnOptionOrderResponse>'
|
74
|
+
tnOptionOrders: '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><TnOptionOrders> <TotalCount>2</TotalCount> <TnOptionOrderSummary> <accountId>14</accountId> <CountOfTNs>2</CountOfTNs> <userId>jbm</userId> <lastModifiedDate>2016-01-15T12:01:14.363Z</lastModifiedDate> <OrderDate>2016-01-15T12:01:14.324Z</OrderDate> <OrderType>tn_option</OrderType> <OrderStatus>FAILED</OrderStatus> <OrderId>ddbdc72e-dc27-490c-904e-d0c11291b095</OrderId> </TnOptionOrderSummary> <TnOptionOrderSummary> <accountId>14</accountId> <CountOfTNs>3</CountOfTNs> <userId>jbm</userId> <lastModifiedDate>2016-01-15T11:22:58.969Z</lastModifiedDate> <OrderDate>2016-01-15T11:22:58.789Z</OrderDate> <OrderType>tn_option</OrderType> <OrderStatus>COMPLETE</OrderStatus> <OrderId>409033ee-88ec-43e3-85f3-538f30733963</OrderId> </TnOptionOrderSummary></TnOptionOrders>'
|
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:
|
4
|
+
version: 3.0.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-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/bandwidth-iris/site.rb
|
201
201
|
- lib/bandwidth-iris/subscription.rb
|
202
202
|
- lib/bandwidth-iris/tn.rb
|
203
|
+
- lib/bandwidth-iris/tn_options.rb
|
203
204
|
- lib/bandwidth-iris/tn_reservation.rb
|
204
205
|
- lib/bandwidth-iris/user.rb
|
205
206
|
- lib/bandwidth-iris/version.rb
|
@@ -236,6 +237,7 @@ files:
|
|
236
237
|
- spec/bandwidth-iris/sip_peer_spec.rb
|
237
238
|
- spec/bandwidth-iris/site_spec.rb
|
238
239
|
- spec/bandwidth-iris/subscription_spec.rb
|
240
|
+
- spec/bandwidth-iris/tn_options_spec.rb
|
239
241
|
- spec/bandwidth-iris/tn_reservation_spec.rb
|
240
242
|
- spec/bandwidth-iris/tn_spec.rb
|
241
243
|
- spec/bandwidth-iris/user_spec.rb
|
@@ -296,6 +298,7 @@ test_files:
|
|
296
298
|
- spec/bandwidth-iris/sip_peer_spec.rb
|
297
299
|
- spec/bandwidth-iris/site_spec.rb
|
298
300
|
- spec/bandwidth-iris/subscription_spec.rb
|
301
|
+
- spec/bandwidth-iris/tn_options_spec.rb
|
299
302
|
- spec/bandwidth-iris/tn_reservation_spec.rb
|
300
303
|
- spec/bandwidth-iris/tn_spec.rb
|
301
304
|
- spec/bandwidth-iris/user_spec.rb
|