flowcommerce 0.0.31 → 0.0.32

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: c9fee65071005e9616f48ab00e72b83078584dad
4
- data.tar.gz: ce534f064b056fa8de98f84b9b529bb0930d3996
3
+ metadata.gz: e143e50de618a47c9112e3b4453552b936f4a173
4
+ data.tar.gz: f348929eaa21ef966c182989d8f7f921ec89c404
5
5
  SHA512:
6
- metadata.gz: b5128c3d6a961060e218fe23ce21bce1023ea5ea7a36d8889053ad804d4693dce1399542d22ab3dbf079e1f6919f97a3285a4e6643c3549686b7b1cff9f5feb6
7
- data.tar.gz: 4b34999896d7d9e2ec39883c319922c2ea367ae6a7ebd95e75a9c31fe98726a48d1a41e0e6776230c7e826245c7fb0a1fd6ab34eee4675de963cb20d384be4e3
6
+ metadata.gz: a5d4cabe6e9f3788a4d069b5602f10fe5b69775150bd6254a4936271a625270a6a8bbf517769c248efe4d19e7a98d82359096b21286a41c4bf70c5bcc341bc8b
7
+ data.tar.gz: 2987eb586508f5822aa5bbe8649a29ae5c1afbae20f788a65f38832a5e97d8bc00682eaa4b5bf1f9656c14de9314e9d138d869f4cd7429f6d01dc90bb1bb827d
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
- # Service version: 0.0.94
3
- # apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.94/ruby_client
2
+ # Service version: 0.0.95
3
+ # apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.95/ruby_client
4
4
 
5
5
  require 'cgi'
6
6
  require 'net/http'
@@ -25,8 +25,8 @@ 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.33 http://www.apidoc.me/flow/api/0.0.94/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.0.94' unless defined?(Constants::VERSION)
28
+ USER_AGENT = 'apidoc:0.11.33 http://www.apidoc.me/flow/api/0.0.95/ruby_client' unless defined?(Constants::USER_AGENT)
29
+ VERSION = '0.0.95' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -1323,7 +1323,7 @@ module Io
1323
1323
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
1324
1324
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "-created_at" : x), String)
1325
1325
  }.delete_if { |k, v| v.nil? }
1326
- r = @client.request("/spot_rates").with_query(query).get
1326
+ r = @client.request("/currency/spot-rates").with_query(query).get
1327
1327
  r.map { |x| ::Io::Flow::V0::Models::SpotRate.new(x) }
1328
1328
  end
1329
1329
 
@@ -1336,7 +1336,7 @@ module Io
1336
1336
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
1337
1337
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "journal_timestamp" : x), String)
1338
1338
  }.delete_if { |k, v| v.nil? }
1339
- r = @client.request("/spot_rates/versions").with_query(query).get
1339
+ r = @client.request("/currency/spot-rates/versions").with_query(query).get
1340
1340
  r.map { |x| ::Io::Flow::V0::Models::SpotRateVersion.new(x) }
1341
1341
  end
1342
1342
 
@@ -7200,7 +7200,7 @@ module Io
7200
7200
  @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
7201
7201
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
7202
7202
  @dimensions = HttpClient::Preconditions.assert_class('dimensions', HttpClient::Helper.to_object(opts.delete(:dimensions)), Hash)
7203
- @images = HttpClient::Preconditions.assert_class('images', HttpClient::Helper.to_object(opts.delete(:images)), Hash)
7203
+ @images = HttpClient::Preconditions.assert_class('images', opts.delete(:images), Array).map { |v| HttpClient::Preconditions.assert_class('images', HttpClient::Helper.to_object(v), Hash) }
7204
7204
  end
7205
7205
 
7206
7206
  def to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.