ruby-bandwidth-iris 2.2.0 → 2.3.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 +3 -0
- data/lib/bandwidth-iris/order.rb +7 -0
- data/lib/bandwidth-iris/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3978f9cb23b6ccd98b3324561287e355989f2f2ccb448889c8e9ee7c4d2b44e8
|
4
|
+
data.tar.gz: cdf8e79ee66a665f3078c2248629b60301b39ba2c4451fe250b14cda0289a4fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e44534d1e0f6d257ccb3dddd8b92d2f110f02b038e48308938d41cd42c5308307192054432584dbc96fc5ad8e23a67e736d42298b6c0f0b5fe4f641fa753f5a5
|
7
|
+
data.tar.gz: 244feb0ca080e43a618acad67d6178b528b6b09f0b6d9685b7a85173fd3eeffe91c58abaff4151aa0443478f53e4c35362863cde3b9d851396e57e06c2c26ec4
|
data/README.md
CHANGED
@@ -13,6 +13,7 @@ Ruby Client library for IRIS / BBS API
|
|
13
13
|
| 2.0.1 | Updated gem dependencies to be less restrictive |
|
14
14
|
| 2.1.0 | Added `csrs` endpoints |
|
15
15
|
| 2.2.0 | Added `loas` endpoints to `importTnOrders` |
|
16
|
+
| 2.3.0 | Added `get_tns_by_order_id` to the Orders class |
|
16
17
|
|
17
18
|
## Install
|
18
19
|
|
@@ -331,6 +332,8 @@ order.get_totals()
|
|
331
332
|
|
332
333
|
// get all Tns for an order
|
333
334
|
order.get_tns()
|
335
|
+
##Use the below method to grab TNs via an already existing Order ID##
|
336
|
+
BandwidthIris::Order.get_tns_by_order_id("id")
|
334
337
|
|
335
338
|
// get order history
|
336
339
|
order.get_history()
|
data/lib/bandwidth-iris/order.rb
CHANGED
@@ -25,6 +25,13 @@ module BandwidthIris
|
|
25
25
|
end
|
26
26
|
wrap_client_arg :list
|
27
27
|
|
28
|
+
#`get order` no longer returns an `id`, which means the subsequent `get_tns` call will fail
|
29
|
+
#This is a workaround to provide the "get tns by order id" functionality
|
30
|
+
def self.get_tns_by_order_id(client, id)
|
31
|
+
client.make_request(:get, "#{client.concat_account_path(ORDER_PATH)}/#{id}/tns")[0]
|
32
|
+
end
|
33
|
+
wrap_client_arg :get_tns_by_order_id
|
34
|
+
|
28
35
|
def update(data)
|
29
36
|
@client.make_request(:put, "#{@client.concat_account_path(ORDER_PATH)}/#{id}", {:order => data})[0]
|
30
37
|
end
|
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.
|
4
|
+
version: 2.3.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-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|