ruby-bandwidth-iris 1.0.5 → 1.0.6.pre
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 +5 -5
- data/Gemfile +3 -5
- data/README.md +44 -29
- data/lib/bandwidth-iris/version.rb +1 -1
- data/ruby-bandwidth-iris.gemspec +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 87f550eebb3f7474343c5acf2928bd6214012ffee3849202da6d7bd9f903c295
|
4
|
+
data.tar.gz: fecf5010fb00b15866665db74483ce27edefdc49014f4f29465ade0e1d907b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2513d98bfe56e84d0b444a7153e44571171f68ee478c07a04b17dba2ab1e1585bd8a8f4043d738bbc7e7c66cd2e1a425b67921fab30a0c10ca2adbab2bc5f460
|
7
|
+
data.tar.gz: 9e2f8e88fe05b80793a8166f33602b072fd6de6bcda8eabdc832f7f6e9a6e9434120c0f93fbf09020c508ea83cb4f18e18605430600a11740a6e083e27f8f508
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,17 @@ Run
|
|
18
18
|
gem install ruby-bandwidth-iris
|
19
19
|
```
|
20
20
|
|
21
|
+
## Run Tests
|
22
|
+
|
23
|
+
Run
|
24
|
+
|
25
|
+
```
|
26
|
+
bundle install
|
27
|
+
rake spec
|
28
|
+
```
|
29
|
+
|
30
|
+
to run the tests
|
31
|
+
|
21
32
|
## Usage
|
22
33
|
|
23
34
|
```ruby
|
@@ -78,7 +89,7 @@ case by the internals of the API when converted to XML.
|
|
78
89
|
## Available Numbers
|
79
90
|
|
80
91
|
```Ruby
|
81
|
-
list = BandwidthIris::
|
92
|
+
list = BandwidthIris::AvailableNumber.list(query)
|
82
93
|
```
|
83
94
|
|
84
95
|
## Available NpaNxx
|
@@ -107,7 +118,7 @@ The Disconnect object is used to disconnect numbers from an account. Creates a
|
|
107
118
|
|
108
119
|
### Create Disconnect
|
109
120
|
```ruby
|
110
|
-
BandwidthIris::Disconnect.create("Disconnect Order Name", ["9195551212", "9195551213"])
|
121
|
+
order = BandwidthIris::Disconnect.create("Disconnect Order Name", ["9195551212", "9195551213"])
|
111
122
|
```
|
112
123
|
|
113
124
|
### Add Note to Disconnect
|
@@ -124,7 +135,7 @@ order.get_notes()
|
|
124
135
|
|
125
136
|
### Create Ddla
|
126
137
|
```ruby
|
127
|
-
|
138
|
+
dlda_data = {
|
128
139
|
:customer_order_id => "Your Order Id",
|
129
140
|
:dlda_tn_groups => [
|
130
141
|
:dlda_tn_group => {
|
@@ -149,12 +160,12 @@ dlda = {
|
|
149
160
|
]
|
150
161
|
}
|
151
162
|
|
152
|
-
BandwidthIris::Dlda.create(
|
163
|
+
BandwidthIris::Dlda.create(dlda_data)
|
153
164
|
```
|
154
165
|
|
155
166
|
### Get Dlda
|
156
167
|
```ruby
|
157
|
-
dlda = Bandwidth::Dlda.get(
|
168
|
+
dlda = Bandwidth::Dlda.get("dlda_id")
|
158
169
|
```
|
159
170
|
|
160
171
|
### Get Dlda History
|
@@ -197,15 +208,15 @@ data = {
|
|
197
208
|
}
|
198
209
|
}
|
199
210
|
}
|
200
|
-
BandwidthIris::
|
211
|
+
BandwidthIris::Lidb.create(data)
|
201
212
|
```
|
202
213
|
### Get Lidb
|
203
214
|
```ruby
|
204
|
-
BandwidthIris::
|
215
|
+
BandwidthIris::Lidb.get("lidb_id")
|
205
216
|
```
|
206
|
-
### List
|
217
|
+
### List Lidb
|
207
218
|
```ruby
|
208
|
-
BandwidthIris::
|
219
|
+
BandwidthIris::Lidb.list({:telephone_number => "9195551212"})
|
209
220
|
```
|
210
221
|
|
211
222
|
## LNP Checker
|
@@ -249,7 +260,7 @@ BandwidthIris::LsrOrder.create(data)
|
|
249
260
|
```
|
250
261
|
### Get LSR Order
|
251
262
|
```ruby
|
252
|
-
BandwidthIris::LsrOrder.get(
|
263
|
+
BandwidthIris::LsrOrder.get("lsr_order_response_id")
|
253
264
|
```
|
254
265
|
### List LSR Orders
|
255
266
|
```ruby
|
@@ -270,18 +281,18 @@ order.get_notes()
|
|
270
281
|
```
|
271
282
|
### Add LSR Order Note
|
272
283
|
```ruby
|
273
|
-
|
284
|
+
note = {:user_id => "my id", :description => "Test"}
|
274
285
|
order.add_note(note)
|
275
286
|
```
|
276
287
|
|
277
288
|
## Orders
|
278
289
|
### Create Order
|
279
290
|
```ruby
|
280
|
-
|
291
|
+
order_data = {
|
281
292
|
:name => "A Test Order",
|
282
293
|
:site_id => 1111,
|
283
294
|
:existing_telephone_number_order_type => {
|
284
|
-
telephone_number_list =>
|
295
|
+
:telephone_number_list =>
|
285
296
|
{
|
286
297
|
:telephone_number => ["9195551212"]
|
287
298
|
}
|
@@ -289,11 +300,11 @@ order = {
|
|
289
300
|
}
|
290
301
|
}
|
291
302
|
|
292
|
-
BandwidthIris::Order.create(
|
303
|
+
BandwidthIris::Order.create(order_data)
|
293
304
|
```
|
294
305
|
### Get Order
|
295
306
|
```ruby
|
296
|
-
BandwidthIris::Order.get(
|
307
|
+
order = BandwidthIris::Order.get("order_id")
|
297
308
|
```
|
298
309
|
### List Orders
|
299
310
|
```ruby
|
@@ -305,7 +316,7 @@ BandwidthIris::Order.list(query)
|
|
305
316
|
order.get_area_codes()
|
306
317
|
|
307
318
|
// add note to order
|
308
|
-
|
319
|
+
note = {:user_id => "my id", :description => "Test"}
|
309
320
|
order.add_note(note)
|
310
321
|
|
311
322
|
//get Npa Nxxs
|
@@ -349,11 +360,11 @@ data = {
|
|
349
360
|
:billing_type => "PORTIN"
|
350
361
|
}
|
351
362
|
|
352
|
-
BandwidthIris::PortIn.create(data)
|
363
|
+
portin_response = BandwidthIris::PortIn.create(data)
|
353
364
|
```
|
354
365
|
## Get PortIn
|
355
366
|
```ruby
|
356
|
-
BandwidthIris::PortIn.get("
|
367
|
+
portIn = BandwidthIris::PortIn.get("portin_id", callback)
|
357
368
|
```
|
358
369
|
|
359
370
|
### PortIn Instance methods
|
@@ -384,11 +395,11 @@ portIn.get_files()
|
|
384
395
|
### List PortOuts
|
385
396
|
```ruby
|
386
397
|
query = {:status => "complete"}
|
387
|
-
BandwidthIris::PortOut.list(query)
|
398
|
+
list = BandwidthIris::PortOut.list(query)
|
388
399
|
```
|
389
400
|
### Get PortOut
|
390
401
|
```ruby
|
391
|
-
BandwidthIris::PortOut.get(
|
402
|
+
portout = BandwidthIris::PortOut.get("portout_id")
|
392
403
|
```
|
393
404
|
|
394
405
|
## Rate Centers
|
@@ -432,11 +443,11 @@ BandwidthIris::SipPeer.create(data)
|
|
432
443
|
```
|
433
444
|
### Get SIP Peer
|
434
445
|
```ruby
|
435
|
-
BandwidthIris::SipPeer.get("
|
446
|
+
sipPeer = BandwidthIris::SipPeer.get("sippeer_id")
|
436
447
|
```
|
437
448
|
### List SIP Peers
|
438
449
|
```ruby
|
439
|
-
BandwidthIris::SipPeer.list(siteId)
|
450
|
+
BandwidthIris::SipPeer.list(sipPeer.siteId)
|
440
451
|
```
|
441
452
|
### Delete SIP Peer
|
442
453
|
```ruby
|
@@ -476,7 +487,12 @@ site = {
|
|
476
487
|
:address_type => "Service"
|
477
488
|
}
|
478
489
|
};
|
479
|
-
BandwidthIris::Site.create(site)
|
490
|
+
site = BandwidthIris::Site.create(site)
|
491
|
+
```
|
492
|
+
|
493
|
+
### Get A Site
|
494
|
+
```ruby
|
495
|
+
site = BandwidthIris::Site.get("site_id")
|
480
496
|
```
|
481
497
|
|
482
498
|
### Updating a Site
|
@@ -491,14 +507,14 @@ site.delete()
|
|
491
507
|
```ruby
|
492
508
|
BandwidthIris::Site.list()
|
493
509
|
```
|
494
|
-
|
510
|
+
|
495
511
|
### Site SipPeer Methods
|
496
512
|
```ruby
|
497
513
|
# get Sip Peers
|
498
514
|
site.get_sip_peers()
|
499
515
|
|
500
516
|
# get Sip Peer
|
501
|
-
site.get_sip_peer(
|
517
|
+
site.get_sip_peer("sip_peer_id")
|
502
518
|
|
503
519
|
# create Sip Peer
|
504
520
|
sip_peer = {:name =>"SIP Peer"}
|
@@ -520,7 +536,7 @@ BandwidthIris::Subscription.create(subscription)
|
|
520
536
|
```
|
521
537
|
### Get Subscription
|
522
538
|
```ruby
|
523
|
-
BandwidthIris::Subscription.get(
|
539
|
+
BandwidthIris::Subscription.get("subscription_id")
|
524
540
|
```
|
525
541
|
### List Subscriptions
|
526
542
|
```ruby
|
@@ -540,7 +556,7 @@ subscription.delete()
|
|
540
556
|
## TNs
|
541
557
|
### Get TN
|
542
558
|
```ruby
|
543
|
-
tn = BandwidthIris::Tn.get(
|
559
|
+
tn = BandwidthIris::Tn.get("9195555555")
|
544
560
|
```
|
545
561
|
### List TNs
|
546
562
|
```ruby
|
@@ -559,7 +575,6 @@ tn.get_sip_peers()
|
|
559
575
|
|
560
576
|
# Get Rate Center
|
561
577
|
tn.get_rate_center()
|
562
|
-
|
563
578
|
```
|
564
579
|
|
565
580
|
## TN Reservation
|
@@ -571,7 +586,7 @@ BandwidthIris::TnReservation.create({:reserved_tn => "9195551212"})
|
|
571
586
|
|
572
587
|
### Get TN Reservation
|
573
588
|
```ruby
|
574
|
-
tn = BandwidthIris::TnReservation.get(
|
589
|
+
tn = BandwidthIris::TnReservation.get("tn_reservation_id")
|
575
590
|
```
|
576
591
|
|
577
592
|
### Delete TN Reservation
|
data/ruby-bandwidth-iris.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.add_dependency "builder"
|
18
18
|
spec.add_dependency "faraday"
|
19
19
|
spec.add_dependency "nori"
|
20
|
-
spec.add_dependency "activesupport"
|
20
|
+
spec.add_dependency "activesupport"
|
21
21
|
spec.add_dependency "certified"
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
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: 1.0.
|
4
|
+
version: 1.0.6.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Belchikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: certified
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,12 +220,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
222
|
requirements:
|
223
|
-
- - "
|
223
|
+
- - ">"
|
224
224
|
- !ruby/object:Gem::Version
|
225
|
-
version:
|
225
|
+
version: 1.3.1
|
226
226
|
requirements: []
|
227
|
-
|
228
|
-
rubygems_version: 2.5.2.3
|
227
|
+
rubygems_version: 3.0.6
|
229
228
|
signing_key:
|
230
229
|
specification_version: 4
|
231
230
|
summary: Gem for integrating to Bandwidth's Iris API
|