ruby-bandwidth-iris 2.2.0 → 2.3.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: b38867e95d7ff4df6b99dccd34053aee236600eafae007ca2ff81c7a7ae8c30e
4
- data.tar.gz: a8c7e2a15ea0330c21bd1303e21df32463c2d76f051fe29bdf3fc30da77ce9ca
3
+ metadata.gz: 3978f9cb23b6ccd98b3324561287e355989f2f2ccb448889c8e9ee7c4d2b44e8
4
+ data.tar.gz: cdf8e79ee66a665f3078c2248629b60301b39ba2c4451fe250b14cda0289a4fe
5
5
  SHA512:
6
- metadata.gz: 589d2010d44909cb6596974f08484729e29ba4963ae360d849f86f7d55361c68c262c3cb4d8a0376ea8c5efae24e5e80abb7a85e8985fff4f3a4db6994c28e47
7
- data.tar.gz: 03f6ccdff3f5bacfe5395b5bcf6bff95fec5dc72695396f7395dff33947a6e7ce0a3c221226bd482672fcb24c3e2d09c4d02537cfea0c096488784f17fba80f0
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()
@@ -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
@@ -1,4 +1,4 @@
1
1
  module BandwidthIris
2
2
  # Version of this gem
3
- VERSION = "2.2.0"
3
+ VERSION = "2.3.0"
4
4
  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.2.0
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-03-03 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder