flowcommerce 0.0.72 → 0.0.74
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 +10 -0
- data/lib/flow_commerce/flow_api_v0_client.rb +7 -5
- 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: d8579e7189cc8821e63f468af1a3a9f85c0ebbb5
|
|
4
|
+
data.tar.gz: 8a3273765fb6653fd04fda1381e7e40c6e7af968
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83e4792d30b1e996b8d6c71697c99deb6b71c81b0f0764df45ce586dd908a61d98683dccebed70af74009b97fe5674ea51307d3de64e7f8de4701042713e0faa
|
|
7
|
+
data.tar.gz: 2f3756ee7d387640943e3fcce870a302a69585c305e07b2be59950efd6307c18f164ec167b72a391dea14dd0b3358aa4ab17f048abc794303922286a494b54f2
|
data/README.md
CHANGED
|
@@ -36,3 +36,13 @@ highlight the use of key APIs in as clear a way as possible.
|
|
|
36
36
|
## Documentation
|
|
37
37
|
|
|
38
38
|
Complete API documentation is available at https://docs.flow.io
|
|
39
|
+
|
|
40
|
+
## Debugging / Issues
|
|
41
|
+
|
|
42
|
+
If you are seeing very slow (multi-second response times), it might be this: [Net::HTTP extremely slow responses for HTTPS requests](http://stackoverflow.com/questions/29945204/nethttp-extremely-slow-responses-for-https-requests)
|
|
43
|
+
|
|
44
|
+
The solution is to run
|
|
45
|
+
|
|
46
|
+
```networksetup -setv6off Wi-Fi```
|
|
47
|
+
|
|
48
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Generated by apidoc - http://www.apidoc.me
|
|
2
2
|
# Service version: 0.1.77
|
|
3
|
-
# apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.
|
|
3
|
+
# apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.79/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.38 http://www.apidoc.me/flow/api/0.1.
|
|
28
|
+
USER_AGENT = 'apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.79/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
|
|
|
@@ -494,7 +494,7 @@ module Io
|
|
|
494
494
|
HttpClient::Preconditions.assert_class('key', key, String)
|
|
495
495
|
HttpClient::Preconditions.assert_class('number', number, String)
|
|
496
496
|
r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/items/#{CGI.escape(number)}/price").get
|
|
497
|
-
::Io::Flow::V0::Models::
|
|
497
|
+
::Io::Flow::V0::Models::PriceCheck.new(r)
|
|
498
498
|
end
|
|
499
499
|
|
|
500
500
|
def get_margins_by_key(organization, key, incoming={})
|
|
@@ -12679,12 +12679,13 @@ module Io
|
|
|
12679
12679
|
# Line items on the order, with localized pricing information
|
|
12680
12680
|
class LocalizedLineItem
|
|
12681
12681
|
|
|
12682
|
-
attr_reader :number, :quantity, :center, :price, :discount, :attributes, :local
|
|
12682
|
+
attr_reader :number, :name, :quantity, :center, :price, :discount, :attributes, :local
|
|
12683
12683
|
|
|
12684
12684
|
def initialize(incoming={})
|
|
12685
12685
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
|
12686
|
-
HttpClient::Preconditions.require_keys(opts, [:number, :quantity, :local], 'LocalizedLineItem')
|
|
12686
|
+
HttpClient::Preconditions.require_keys(opts, [:number, :name, :quantity, :local], 'LocalizedLineItem')
|
|
12687
12687
|
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
|
12688
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
|
|
12688
12689
|
@quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
|
|
12689
12690
|
@center = (x = opts.delete(:center); x.nil? ? nil : HttpClient::Preconditions.assert_class('center', x, String))
|
|
12690
12691
|
@price = (x = opts.delete(:price); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Money) ? x : ::Io::Flow::V0::Models::Money.new(x)))
|
|
@@ -12704,6 +12705,7 @@ module Io
|
|
|
12704
12705
|
def to_hash
|
|
12705
12706
|
{
|
|
12706
12707
|
:number => number,
|
|
12708
|
+
:name => name,
|
|
12707
12709
|
:quantity => quantity,
|
|
12708
12710
|
:center => center,
|
|
12709
12711
|
:price => price.nil? ? nil : price.to_hash,
|
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.0.
|
|
4
|
+
version: 0.0.74
|
|
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-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|