ruby-bandwidth-iris 1.0.6.pre → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +100 -0
- data/lib/bandwidth-iris/client.rb +2 -0
- data/lib/bandwidth-iris/import_tn_checker.rb +14 -0
- data/lib/bandwidth-iris/import_tn_orders.rb +32 -0
- data/lib/bandwidth-iris/in_service_number.rb +2 -3
- data/lib/bandwidth-iris/remove_imported_tn_orders.rb +32 -0
- data/lib/bandwidth-iris/version.rb +1 -1
- data/lib/ruby-bandwidth-iris.rb +3 -0
- data/ruby-bandwidth-iris.gemspec +2 -1
- data/spec/bandwidth-iris/import_tn_checker_spec.rb +24 -0
- data/spec/bandwidth-iris/import_tn_orders_spec.rb +44 -0
- data/spec/bandwidth-iris/in_service_number_spec.rb +1 -1
- data/spec/bandwidth-iris/remove_imported_tn_orders_spec.rb +44 -0
- data/spec/xml.yml +1 -0
- metadata +29 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 011207b0d3cc1224ca387dda8506786ec333b409d99b275d67b66ce36659799d
|
4
|
+
data.tar.gz: d0865166bad1fff533edb36d77e186b47c57b5db44222cceae14dd066fdc296c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b502b032e2b81dbd7efc5b201df51c15e7e5fbd203889c1aecef6a357c8618c9caf8202c4a1801f4f1c18fde0bf388ea863eaa5b312e2d5f9592c525eccf278
|
7
|
+
data.tar.gz: d4b18a602fb08f2d41679d0935880f15c02429c082a32c6a40a2f75a539fd4d60c7fe04794c76760d0e0f09b69301537c6af8582e939e80297944b1771d87536
|
data/README.md
CHANGED
@@ -9,6 +9,7 @@ Ruby Client library for IRIS / BBS API
|
|
9
9
|
| Release Version | Notes |
|
10
10
|
|--|--|
|
11
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. |
|
12
13
|
|
13
14
|
## Install
|
14
15
|
|
@@ -593,3 +594,102 @@ tn = BandwidthIris::TnReservation.get("tn_reservation_id")
|
|
593
594
|
```ruby
|
594
595
|
tn.delete()
|
595
596
|
```
|
597
|
+
|
598
|
+
## Hosted Messaging
|
599
|
+
|
600
|
+
### Create Import TN Order
|
601
|
+
```ruby
|
602
|
+
import_tn_order = {
|
603
|
+
:customer_order_id => "id",
|
604
|
+
:site_id => "12345",
|
605
|
+
:subscriber => {
|
606
|
+
:service_address => {
|
607
|
+
:city => "city",
|
608
|
+
:house_number => "1",
|
609
|
+
:street_name => "Street",
|
610
|
+
:state_code => "XY",
|
611
|
+
:zip => "54345",
|
612
|
+
:county => "County"
|
613
|
+
},
|
614
|
+
:name => "Company INC"
|
615
|
+
},
|
616
|
+
:loa_authorizing_person => "Test Person",
|
617
|
+
:telephone_numbers => {
|
618
|
+
:telephone_number => ["5554443333"]
|
619
|
+
}
|
620
|
+
}
|
621
|
+
response = BandwidthIris::ImportTnOrders.create_import_tn_order(import_tn_order)
|
622
|
+
puts response
|
623
|
+
```
|
624
|
+
|
625
|
+
### Get Import TN Orders
|
626
|
+
```ruby
|
627
|
+
response = BandwidthIris::ImportTnOrders.get_import_tn_orders({
|
628
|
+
:createdDateFrom => "2013-10-22T00:00:00.000Z",
|
629
|
+
:createdDateTo => "2013-10-25T00:00:00.000Z"}
|
630
|
+
)
|
631
|
+
puts response
|
632
|
+
```
|
633
|
+
|
634
|
+
### Get Import TN Order By ID
|
635
|
+
```ruby
|
636
|
+
response = BandwidthIris::ImportTnOrders.get_import_tn_order("id")
|
637
|
+
puts response
|
638
|
+
```
|
639
|
+
|
640
|
+
### Get Import TN Order History
|
641
|
+
```ruby
|
642
|
+
response = BandwidthIris::ImportTnOrders.get_import_tn_order_history("id")
|
643
|
+
puts response
|
644
|
+
```
|
645
|
+
|
646
|
+
### Check TNs Portability
|
647
|
+
```ruby
|
648
|
+
response = BandwidthIris::ImportTnChecker.check_tns_portability({
|
649
|
+
:telephone_numbers => {
|
650
|
+
:telephone_number => ["5554443333", "5553334444"]
|
651
|
+
}
|
652
|
+
})
|
653
|
+
puts response
|
654
|
+
```
|
655
|
+
|
656
|
+
### List InService Numbers (2.0.0 release)
|
657
|
+
```ruby
|
658
|
+
response = BandwidthIris::InServiceNumber.list()
|
659
|
+
puts response[0]
|
660
|
+
#{:total_count=>2, :links=>{:first=>"Link=<https://dashboard.bandwidth.com:443/v1.0/accounts/99/inserviceNumbers?page=1&size=500>;rel=\"first\";"}, :telephone_numbers=>{:count=>2, :telephone_number=>["5554443333", "5554442222"]}}
|
661
|
+
```
|
662
|
+
|
663
|
+
### Get Remove Imported TN Orders
|
664
|
+
```ruby
|
665
|
+
response = BandwidthIris::RemoveImportedTnOrders.get_remove_imported_tn_orders({
|
666
|
+
:createdDateFrom => "2013-10-22T00:00:00.000Z",
|
667
|
+
:createdDateTo => "2013-10-25T00:00:00.000Z"
|
668
|
+
})
|
669
|
+
puts response
|
670
|
+
```
|
671
|
+
|
672
|
+
### Get Remove Imported TN Order
|
673
|
+
```ruby
|
674
|
+
response = BandwidthIris::RemoveImportedTnOrders.get_remove_imported_tn_order("order_id")
|
675
|
+
puts response
|
676
|
+
```
|
677
|
+
|
678
|
+
### Get Remove Imported TN Order History
|
679
|
+
```ruby
|
680
|
+
response = BandwidthIris::RemoveImportedTnOrders.get_remove_imported_tn_order_history("order_id")
|
681
|
+
puts response
|
682
|
+
```
|
683
|
+
|
684
|
+
### Create Remove Imported TN Order
|
685
|
+
```ruby
|
686
|
+
remove_imported_tn_order = {
|
687
|
+
:customer_order_id => "custom string",
|
688
|
+
:telephone_numbers => {
|
689
|
+
:telephone_number => ["5554443333", "5554442222"]
|
690
|
+
}
|
691
|
+
}
|
692
|
+
|
693
|
+
response = BandwidthIris::RemoveImportedTnOrders.create_remove_imported_tn_order(remove_imported_tn_order)
|
694
|
+
puts response
|
695
|
+
```
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
2
3
|
require 'certified'
|
3
4
|
require 'active_support/xml_mini'
|
4
5
|
require 'active_support/core_ext/hash/conversions'
|
@@ -31,6 +32,7 @@ module BandwidthIris
|
|
31
32
|
faraday.basic_auth(user_name, password)
|
32
33
|
#faraday.response :logger
|
33
34
|
faraday.headers['Accept'] = 'application/xml'
|
35
|
+
faraday.use FaradayMiddleware::FollowRedirects
|
34
36
|
@set_adapter.call(faraday)
|
35
37
|
}
|
36
38
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module BandwidthIris
|
2
|
+
IMPORT_TN_CHECKER_PATH = "importTnChecker"
|
3
|
+
|
4
|
+
class ImportTnChecker
|
5
|
+
extend ClientWrapper
|
6
|
+
include ApiItem
|
7
|
+
|
8
|
+
def self.check_tns_portability(client, tns)
|
9
|
+
data = client.make_request(:post, client.concat_account_path("#{IMPORT_TN_CHECKER_PATH}"), {:import_tn_checker_payload => tns})
|
10
|
+
return data
|
11
|
+
end
|
12
|
+
wrap_client_arg :check_tns_portability
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module BandwidthIris
|
2
|
+
IMPORT_TN_ORDERS_PATH = "importTnOrders"
|
3
|
+
|
4
|
+
class ImportTnOrders
|
5
|
+
extend ClientWrapper
|
6
|
+
include ApiItem
|
7
|
+
|
8
|
+
def self.get_import_tn_orders(client, query = nil)
|
9
|
+
data = client.make_request(:get, client.concat_account_path(IMPORT_TN_ORDERS_PATH), query)
|
10
|
+
return data
|
11
|
+
end
|
12
|
+
wrap_client_arg :get_import_tn_orders
|
13
|
+
|
14
|
+
def self.get_import_tn_order(client, order_id)
|
15
|
+
data = client.make_request(:get, client.concat_account_path("#{IMPORT_TN_ORDERS_PATH}/#{order_id}"))
|
16
|
+
return data
|
17
|
+
end
|
18
|
+
wrap_client_arg :get_import_tn_order
|
19
|
+
|
20
|
+
def self.get_import_tn_order_history(client, order_id)
|
21
|
+
data = client.make_request(:get, client.concat_account_path("#{IMPORT_TN_ORDERS_PATH}/#{order_id}/history"))
|
22
|
+
return data
|
23
|
+
end
|
24
|
+
wrap_client_arg :get_import_tn_order_history
|
25
|
+
|
26
|
+
def self.create_import_tn_order(client, import_tn_order)
|
27
|
+
data = client.make_request(:post, client.concat_account_path("#{IMPORT_TN_ORDERS_PATH}"), {:import_tn_order => import_tn_order})
|
28
|
+
return data
|
29
|
+
end
|
30
|
+
wrap_client_arg :create_import_tn_order
|
31
|
+
end
|
32
|
+
end
|
@@ -5,9 +5,8 @@ module BandwidthIris
|
|
5
5
|
extend ClientWrapper
|
6
6
|
|
7
7
|
def self.list(client, query = nil)
|
8
|
-
list = client.make_request(:get, client.concat_account_path(INSERVICE_NUMBER_PATH), query)
|
9
|
-
return
|
10
|
-
if list.is_a?(Array) then list else [list] end
|
8
|
+
list = client.make_request(:get, client.concat_account_path(INSERVICE_NUMBER_PATH), query)
|
9
|
+
return list
|
11
10
|
end
|
12
11
|
wrap_client_arg :list
|
13
12
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module BandwidthIris
|
2
|
+
REMOVE_IMPORTED_TN_ORDERS_PATH = "removeImportedTnOrders"
|
3
|
+
|
4
|
+
class RemoveImportedTnOrders
|
5
|
+
extend ClientWrapper
|
6
|
+
include ApiItem
|
7
|
+
|
8
|
+
def self.get_remove_imported_tn_orders(client, query = nil)
|
9
|
+
data = client.make_request(:get, client.concat_account_path(REMOVE_IMPORTED_TN_ORDERS_PATH), query)
|
10
|
+
return data
|
11
|
+
end
|
12
|
+
wrap_client_arg :get_remove_imported_tn_orders
|
13
|
+
|
14
|
+
def self.get_remove_imported_tn_order(client, order_id)
|
15
|
+
data = client.make_request(:get, client.concat_account_path("#{REMOVE_IMPORTED_TN_ORDERS_PATH}/#{order_id}"))
|
16
|
+
return data
|
17
|
+
end
|
18
|
+
wrap_client_arg :get_remove_imported_tn_order
|
19
|
+
|
20
|
+
def self.get_remove_imported_tn_order_history(client, order_id)
|
21
|
+
data = client.make_request(:get, client.concat_account_path("#{REMOVE_IMPORTED_TN_ORDERS_PATH}/#{order_id}/history"))
|
22
|
+
return data
|
23
|
+
end
|
24
|
+
wrap_client_arg :get_remove_imported_tn_order_history
|
25
|
+
|
26
|
+
def self.create_remove_imported_tn_order(client, remove_imported_tn_order)
|
27
|
+
data = client.make_request(:post, client.concat_account_path("#{REMOVE_IMPORTED_TN_ORDERS_PATH}"), {:remove_imported_tn_order => remove_imported_tn_order})
|
28
|
+
return data
|
29
|
+
end
|
30
|
+
wrap_client_arg :create_remove_imported_tn_order
|
31
|
+
end
|
32
|
+
end
|
data/lib/ruby-bandwidth-iris.rb
CHANGED
@@ -26,5 +26,8 @@ require 'bandwidth-iris/subscription'
|
|
26
26
|
require 'bandwidth-iris/tn'
|
27
27
|
require 'bandwidth-iris/tn_reservation'
|
28
28
|
require 'bandwidth-iris/user'
|
29
|
+
require 'bandwidth-iris/import_tn_orders'
|
30
|
+
require 'bandwidth-iris/import_tn_checker'
|
31
|
+
require 'bandwidth-iris/remove_imported_tn_orders'
|
29
32
|
|
30
33
|
require 'bandwidth-iris/version'
|
data/ruby-bandwidth-iris.gemspec
CHANGED
@@ -16,8 +16,9 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
spec.add_dependency "builder"
|
18
18
|
spec.add_dependency "faraday"
|
19
|
+
spec.add_dependency "faraday_middleware"
|
19
20
|
spec.add_dependency "nori"
|
20
|
-
spec.add_dependency "activesupport"
|
21
|
+
spec.add_dependency "activesupport","4.2.7"
|
21
22
|
spec.add_dependency "certified"
|
22
23
|
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
describe BandwidthIris::ImportTnChecker 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 '#create' do
|
13
|
+
it 'should create an order' do
|
14
|
+
data = {
|
15
|
+
:telephone_numbers => {
|
16
|
+
:telephone_number => ["5554443333", "5553334444"]
|
17
|
+
}
|
18
|
+
}
|
19
|
+
client.stubs.post('/v1.0/accounts/accountId/importTnChecker', client.build_xml({:import_tn_checker_payload => data})) {|env| [200, {}, Helper.xml['import_tn_checker']]}
|
20
|
+
item = ImportTnChecker.check_tns_portability(client, data)
|
21
|
+
expect(item[0][:telephone_numbers][:telephone_number][0]).to eql(data[:telephone_numbers][:telephone_number][0])
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
describe BandwidthIris::ImportTnOrders 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 '#create' do
|
13
|
+
it 'should get an order' do
|
14
|
+
client.stubs.get('/v1.0/accounts/accountId/importTnOrders', {}) {|env| [200, {}, '']}
|
15
|
+
item = ImportTnOrders.get_import_tn_orders(client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#get' do
|
20
|
+
it 'should get an order' do
|
21
|
+
order = "123"
|
22
|
+
client.stubs.get("/v1.0/accounts/accountId/importTnOrders/#{order}", {}) {|env| [200, {}, '']}
|
23
|
+
item = ImportTnOrders.get_import_tn_order(client, order)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#get history' do
|
28
|
+
it 'should get an order history' do
|
29
|
+
order = "123"
|
30
|
+
client.stubs.get("/v1.0/accounts/accountId/importTnOrders/#{order}/history", {}) {|env| [200, {}, '']}
|
31
|
+
item = ImportTnOrders.get_import_tn_order_history(client, order)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe '#create order' do
|
36
|
+
it 'should create new order' do
|
37
|
+
data = {
|
38
|
+
:id => "id"
|
39
|
+
}
|
40
|
+
client.stubs.post("/v1.0/accounts/accountId/importTnOrders", client.build_xml({:import_tn_order => data})) {|env| [200, {}, '']}
|
41
|
+
item = ImportTnOrders.create_import_tn_order(client, data)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -12,7 +12,7 @@ describe BandwidthIris::InServiceNumber do
|
|
12
12
|
describe '#list' do
|
13
13
|
it 'should return numbers' do
|
14
14
|
client.stubs.get('/v1.0/accounts/accountId/inserviceNumbers') {|env| [200, {}, Helper.xml['in_service_numbers']]}
|
15
|
-
list = InServiceNumber.list(client)
|
15
|
+
list = InServiceNumber.list(client)[0][:telephone_numbers][:telephone_number]
|
16
16
|
expect(list.length).to eql(15)
|
17
17
|
end
|
18
18
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
describe BandwidthIris::RemoveImportedTnOrders 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 '#create' do
|
13
|
+
it 'should get an order' do
|
14
|
+
client.stubs.get('/v1.0/accounts/accountId/removeImportedTnOrders', {}) {|env| [200, {}, '']}
|
15
|
+
item = RemoveImportedTnOrders.get_remove_imported_tn_orders(client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
describe '#get' do
|
20
|
+
it 'should get an order' do
|
21
|
+
order = "123"
|
22
|
+
client.stubs.get("/v1.0/accounts/accountId/removeImportedTnOrders/#{order}", {}) {|env| [200, {}, '']}
|
23
|
+
item = RemoveImportedTnOrders.get_remove_imported_tn_order(client, order)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#get history' do
|
28
|
+
it 'should get an order history' do
|
29
|
+
order = "123"
|
30
|
+
client.stubs.get("/v1.0/accounts/accountId/removeImportedTnOrders/#{order}/history", {}) {|env| [200, {}, '']}
|
31
|
+
item = RemoveImportedTnOrders.get_remove_imported_tn_order_history(client, order)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe '#create order' do
|
36
|
+
it 'should create new order' do
|
37
|
+
data = {
|
38
|
+
:id => "id"
|
39
|
+
}
|
40
|
+
client.stubs.post("/v1.0/accounts/accountId/removeImportedTnOrders", client.build_xml({:remove_imported_tn_order => data})) {|env| [200, {}, '']}
|
41
|
+
item = RemoveImportedTnOrders.create_remove_imported_tn_order(client, data)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/spec/xml.yml
CHANGED
@@ -45,3 +45,4 @@
|
|
45
45
|
lsr_order: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><LsrOrder><CustomerOrderId>MyId5</CustomerOrderId><LastModifiedBy>System</LastModifiedBy><OrderCreateDate>2015-03-03T13:54:00.450Z</OrderCreateDate><AccountId>9999999</AccountId><OrderId>00cf7e08-cab0-4515-9a77-2d0a7da09415</OrderId><LastModifiedDate>2015-03-03T14:07:19.926Z</LastModifiedDate><OrderStatus>FAILED</OrderStatus><SPID>123C</SPID><BillingTelephoneNumber>9192381468</BillingTelephoneNumber><Pon>testpon1002</Pon><PonVersion>0</PonVersion><RequestedFocDate>2015-11-15</RequestedFocDate><AuthorizingPerson>Jim Hopkins</AuthorizingPerson><Subscriber><SubscriberType>BUSINESS</SubscriberType><BusinessName>BusinessName</BusinessName><AccountNumber>123463</AccountNumber><PinNumber>1231</PinNumber><ServiceAddress><HouseNumber>11</HouseNumber><StreetName>Park</StreetName><StreetSuffix>Ave</StreetSuffix><City>New York</City><StateCode>NY</StateCode><Zip>90025</Zip></ServiceAddress></Subscriber><ListOfTelephoneNumbers><TelephoneNumber>9192381467</TelephoneNumber><TelephoneNumber>9192381468</TelephoneNumber></ListOfTelephoneNumbers><CountOfTNs>2</CountOfTNs></LsrOrder>"
|
46
46
|
lsr_orders: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><LsrOrders><TotalCount>5</TotalCount><LsrOrderSummary><accountId>9999999</accountId><CountOfTNs>2</CountOfTNs><CustomerOrderId>FineCustomerid</CustomerOrderId><userId>team_ua</userId><lastModifiedDate>2015-03-02T09:10:16.193Z</lastModifiedDate><OrderType>lsr</OrderType><OrderDate>2015-03-25T11:44:42.941Z</OrderDate><OrderStatus>PENDING</OrderStatus><ActualFocDate>2015-03-25</ActualFocDate><BillingTelephoneNumber>2526795000</BillingTelephoneNumber><CreatedByUser>lsrOnlyUser</CreatedByUser><OrderId>7d644c88-ef23-4307-96ab-20253666d0c7</OrderId><Pon>ATT-011515-324234</Pon><PonVersion>0</PonVersion><RequestedFocDate>2015-11-15</RequestedFocDate></LsrOrderSummary><!-- SNIP --><LsrOrderSummary><accountId>9999999</accountId><CountOfTNs>2</CountOfTNs><CustomerOrderId>MyId5</CustomerOrderId><lastModifiedDate>2015-03-03T14:07:19.926Z</lastModifiedDate><OrderType>lsr</OrderType><OrderDate>2015-03-25T11:44:42.941Z</OrderDate><OrderStatus>NEW</OrderStatus><ActualFocDate>2015-03-25</ActualFocDate><BillingTelephoneNumber>2526795000</BillingTelephoneNumber><CreatedByUser>lsrOnlyUser</CreatedByUser><OrderId>00cf7e08-cab0-4515-9a77-2d0a7da09415</OrderId><Pon>testpon1002</Pon><PonVersion>0</PonVersion><RequestedFocDate>2015-11-15</RequestedFocDate></LsrOrderSummary></LsrOrders>"
|
47
47
|
account: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><AccountResponse><Account><AccountId>14</AccountId><CompanyName>CWI Hosting</CompanyName><AccountType>Business</AccountType><NenaId></NenaId><Tiers><Tier>0</Tier></Tiers><Address><HouseNumber>60</HouseNumber><HouseSuffix></HouseSuffix><PreDirectional></PreDirectional><StreetName>Pine</StreetName><StreetSuffix>St</StreetSuffix><PostDirectional></PostDirectional><AddressLine2></AddressLine2><City>Denver</City><StateCode>CO</StateCode><Zip>80016</Zip><PlusFour></PlusFour><County></County><Country>United States</Country><AddressType>Service</AddressType></Address><Contact><FirstName>Sanjay</FirstName><LastName>Rao</LastName><Phone>9195441234</Phone><Email>srao@bandwidth.com</Email></Contact><ReservationAllowed>true</ReservationAllowed><LnpEnabled>true</LnpEnabled><AltSpid>X455</AltSpid><SPID>9999</SPID><PortCarrierType>WIRELINE</PortCarrierType></Account></AccountResponse>"
|
48
|
+
import_tn_checker: '<?xml version="1.0" encoding="UTF-8"?><ImportTnCheckerPayload><TelephoneNumbers><TelephoneNumber>5554443333</TelephoneNumber><TelephoneNumber>5553334444</TelephoneNumber></TelephoneNumbers></ImportTnCheckerPayload>'
|
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: 2.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-02-
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: faraday_middleware
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: nori
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: activesupport
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 4.2.7
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.2.7
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: certified
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +175,8 @@ files:
|
|
161
175
|
- lib/bandwidth-iris/disconnect.rb
|
162
176
|
- lib/bandwidth-iris/dlda.rb
|
163
177
|
- lib/bandwidth-iris/errors.rb
|
178
|
+
- lib/bandwidth-iris/import_tn_checker.rb
|
179
|
+
- lib/bandwidth-iris/import_tn_orders.rb
|
164
180
|
- lib/bandwidth-iris/import_to_account.rb
|
165
181
|
- lib/bandwidth-iris/in_service_number.rb
|
166
182
|
- lib/bandwidth-iris/lidb.rb
|
@@ -170,6 +186,7 @@ files:
|
|
170
186
|
- lib/bandwidth-iris/port_in.rb
|
171
187
|
- lib/bandwidth-iris/port_out.rb
|
172
188
|
- lib/bandwidth-iris/rate_center.rb
|
189
|
+
- lib/bandwidth-iris/remove_imported_tn_orders.rb
|
173
190
|
- lib/bandwidth-iris/sip_peer.rb
|
174
191
|
- lib/bandwidth-iris/site.rb
|
175
192
|
- lib/bandwidth-iris/subscription.rb
|
@@ -188,6 +205,8 @@ files:
|
|
188
205
|
- spec/bandwidth-iris/disc_number_spec.rb
|
189
206
|
- spec/bandwidth-iris/disconnect_spec.rb
|
190
207
|
- spec/bandwidth-iris/dlda_spec.rb
|
208
|
+
- spec/bandwidth-iris/import_tn_checker_spec.rb
|
209
|
+
- spec/bandwidth-iris/import_tn_orders_spec.rb
|
191
210
|
- spec/bandwidth-iris/import_to_account_spec.rb
|
192
211
|
- spec/bandwidth-iris/in_service_number_spec.rb
|
193
212
|
- spec/bandwidth-iris/lidb_spec.rb
|
@@ -197,6 +216,7 @@ files:
|
|
197
216
|
- spec/bandwidth-iris/port_in_spec.rb
|
198
217
|
- spec/bandwidth-iris/port_out_spec.rb
|
199
218
|
- spec/bandwidth-iris/rate_center_spec.rb
|
219
|
+
- spec/bandwidth-iris/remove_imported_tn_orders_spec.rb
|
200
220
|
- spec/bandwidth-iris/sip_peer_spec.rb
|
201
221
|
- spec/bandwidth-iris/site_spec.rb
|
202
222
|
- spec/bandwidth-iris/subscription_spec.rb
|
@@ -220,9 +240,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
240
|
version: '0'
|
221
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
242
|
requirements:
|
223
|
-
- - "
|
243
|
+
- - ">="
|
224
244
|
- !ruby/object:Gem::Version
|
225
|
-
version:
|
245
|
+
version: '0'
|
226
246
|
requirements: []
|
227
247
|
rubygems_version: 3.0.6
|
228
248
|
signing_key:
|
@@ -238,6 +258,8 @@ test_files:
|
|
238
258
|
- spec/bandwidth-iris/disc_number_spec.rb
|
239
259
|
- spec/bandwidth-iris/disconnect_spec.rb
|
240
260
|
- spec/bandwidth-iris/dlda_spec.rb
|
261
|
+
- spec/bandwidth-iris/import_tn_checker_spec.rb
|
262
|
+
- spec/bandwidth-iris/import_tn_orders_spec.rb
|
241
263
|
- spec/bandwidth-iris/import_to_account_spec.rb
|
242
264
|
- spec/bandwidth-iris/in_service_number_spec.rb
|
243
265
|
- spec/bandwidth-iris/lidb_spec.rb
|
@@ -247,6 +269,7 @@ test_files:
|
|
247
269
|
- spec/bandwidth-iris/port_in_spec.rb
|
248
270
|
- spec/bandwidth-iris/port_out_spec.rb
|
249
271
|
- spec/bandwidth-iris/rate_center_spec.rb
|
272
|
+
- spec/bandwidth-iris/remove_imported_tn_orders_spec.rb
|
250
273
|
- spec/bandwidth-iris/sip_peer_spec.rb
|
251
274
|
- spec/bandwidth-iris/site_spec.rb
|
252
275
|
- spec/bandwidth-iris/subscription_spec.rb
|