flowcommerce 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: d5a6d0ad9659227acb66e84748101e6d2708d29f
4
- data.tar.gz: 54f53d13519d2d302b629bd2aef9e7c895777e26
3
+ metadata.gz: cdf130e6a7ae1aee5ee2e937d510786bf64fe22d
4
+ data.tar.gz: 09c77d147b08a717b2e6bc4729df9a64b3daf4f0
5
5
  SHA512:
6
- metadata.gz: ae1c30bf8c654f5e1dc3ed8ea88d3aaa8f88da081b72b6153b6bfb1aabc0ee5bfb01e2372ae9e0275953f139e8830fb99b600f6f490c18244ac3dea84e7f229a
7
- data.tar.gz: 9443beb11f424c01f71b8f38952899c083c27f969354bf3562e89583f1fa3496095d214b15cacfd662e6f3fdee61d333dacca3bbe1cd713e9208700ef4d6684b
6
+ metadata.gz: 092b14e381b4aff52855049711f9dccd0a929e15f0ffc53fc6202b86cdcedeca790d755e27aff76d4d6724fb2266e266fc37e0e089cb3ea86b8d5a948bae780a
7
+ data.tar.gz: 0eeeda0100b728fcb6361ff118da8ae613a70868699a0d2737d042ffc9a9e62e566582d16d6bbcac07d9ce7efd9aa27e3565f3b0183034de0c7e6f405cb2489b
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.1.77
3
- # apidoc:0.11.49 http://www.apidoc.me/flow/api/0.2.17/ruby_client
3
+ # apidoc:0.11.50 http://www.apidoc.me/flow/api/0.2.18/ruby_client
4
4
 
5
5
  require 'cgi'
6
6
  require 'net/http'
@@ -25,7 +25,7 @@ module Io
25
25
 
26
26
  BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
27
27
  NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
28
- USER_AGENT = 'apidoc:0.11.49 http://www.apidoc.me/flow/api/0.2.17/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.50 http://www.apidoc.me/flow/api/0.2.18/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.1.77' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -832,6 +832,14 @@ module Io
832
832
  nil
833
833
  end
834
834
 
835
+ # Get an order booking for an order number.
836
+ def get_bookings_by_number(organization, number)
837
+ HttpClient::Preconditions.assert_class('organization', organization, String)
838
+ HttpClient::Preconditions.assert_class('number', number, String)
839
+ r = @client.request("/#{CGI.escape(organization)}/orders/#{CGI.escape(number)}/bookings").get
840
+ r.map { |x| ::Io::Flow::V0::Models::OrderBooking.new(x) }
841
+ end
842
+
835
843
  # Books an order. You will get a validation error if the order has already
836
844
  # expired (and a new quote could not be automatically recreated for a lower or
837
845
  # same price). This method is idempotent - booking an order a second time has
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json