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 +4 -4
- data/lib/flow_commerce/flow_api_v0_client.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf130e6a7ae1aee5ee2e937d510786bf64fe22d
|
4
|
+
data.tar.gz: 09c77d147b08a717b2e6bc4729df9a64b3daf4f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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-
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|