flowcommerce 0.0.50 → 0.0.53
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 +18 -14
- 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: 45912b1af8b92fd31befb1c283b8363422b63279
|
4
|
+
data.tar.gz: eb158f3c55ebbfef5832de82a7a2117098fb5efe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f178ad788580de0c4bd1033f63ddcf6671368d189a2eea03e60982696df3a3b7ea14042c99b21668acf837f696d65ae4349d17fa572cb8cbf1fe07b483c389f7
|
7
|
+
data.tar.gz: 7415098f4bc660852b0f35a9858270b554c4ab1cc4e77fcfde8f1cca6b707325bfbddb47b9e0ee30291b904f07d78be794c8ed16bbc77a1ebface9314be8902c
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by apidoc - http://www.apidoc.me
|
2
|
-
# Service version: 0.1.
|
3
|
-
# apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.
|
2
|
+
# Service version: 0.1.46
|
3
|
+
# apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.46/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.37 http://www.apidoc.me/flow/api/0.1.
|
29
|
-
VERSION = '0.1.
|
28
|
+
USER_AGENT = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.46/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
|
+
VERSION = '0.1.46' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
32
32
|
end
|
@@ -10417,18 +10417,19 @@ module Io
|
|
10417
10417
|
|
10418
10418
|
end
|
10419
10419
|
|
10420
|
-
#
|
10420
|
+
# Defines a fixed and percent margin to apply to items matching a query.
|
10421
10421
|
class ItemMargin
|
10422
10422
|
|
10423
|
-
attr_reader :id, :name, :q, :
|
10423
|
+
attr_reader :id, :name, :q, :fixed, :percent, :position
|
10424
10424
|
|
10425
10425
|
def initialize(incoming={})
|
10426
10426
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10427
|
-
HttpClient::Preconditions.require_keys(opts, [:id, :name, :q, :
|
10427
|
+
HttpClient::Preconditions.require_keys(opts, [:id, :name, :q, :fixed, :percent, :position], 'ItemMargin')
|
10428
10428
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
10429
10429
|
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
|
10430
10430
|
@q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String)
|
10431
|
-
@
|
10431
|
+
@fixed = HttpClient::Preconditions.assert_class('fixed', HttpClient::Helper.to_big_decimal(opts.delete(:fixed)), BigDecimal)
|
10432
|
+
@percent = HttpClient::Preconditions.assert_class('percent', HttpClient::Helper.to_big_decimal(opts.delete(:percent)), BigDecimal)
|
10432
10433
|
@position = HttpClient::Preconditions.assert_class('position', opts.delete(:position), Integer)
|
10433
10434
|
end
|
10434
10435
|
|
@@ -10445,7 +10446,8 @@ module Io
|
|
10445
10446
|
:id => id,
|
10446
10447
|
:name => name,
|
10447
10448
|
:q => q,
|
10448
|
-
:
|
10449
|
+
:fixed => fixed,
|
10450
|
+
:percent => percent,
|
10449
10451
|
:position => position
|
10450
10452
|
}
|
10451
10453
|
end
|
@@ -10487,17 +10489,18 @@ module Io
|
|
10487
10489
|
|
10488
10490
|
end
|
10489
10491
|
|
10490
|
-
# A
|
10492
|
+
# A percent and/or fixed margin to apply to items based on query.
|
10491
10493
|
class ItemMarginForm
|
10492
10494
|
|
10493
|
-
attr_reader :name, :
|
10495
|
+
attr_reader :name, :q, :fixed, :percent, :position
|
10494
10496
|
|
10495
10497
|
def initialize(incoming={})
|
10496
10498
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10497
|
-
HttpClient::Preconditions.require_keys(opts, [:name, :
|
10499
|
+
HttpClient::Preconditions.require_keys(opts, [:name, :q], 'ItemMarginForm')
|
10498
10500
|
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
|
10499
|
-
@margin = (x = opts.delete(:margin); x.is_a?(::Io::Flow::V0::Models::Margin) ? x : ::Io::Flow::V0::Models::Margin.new(x))
|
10500
10501
|
@q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String)
|
10502
|
+
@fixed = (x = opts.delete(:fixed); x.nil? ? nil : HttpClient::Preconditions.assert_class('fixed', HttpClient::Helper.to_big_decimal(x), BigDecimal))
|
10503
|
+
@percent = (x = opts.delete(:percent); x.nil? ? nil : HttpClient::Preconditions.assert_class('percent', HttpClient::Helper.to_big_decimal(x), BigDecimal))
|
10501
10504
|
@position = (x = opts.delete(:position); x.nil? ? nil : HttpClient::Preconditions.assert_class('position', x, Integer))
|
10502
10505
|
end
|
10503
10506
|
|
@@ -10512,8 +10515,9 @@ module Io
|
|
10512
10515
|
def to_hash
|
10513
10516
|
{
|
10514
10517
|
:name => name,
|
10515
|
-
:margin => margin.to_hash,
|
10516
10518
|
:q => q,
|
10519
|
+
:fixed => fixed,
|
10520
|
+
:percent => percent,
|
10517
10521
|
:position => position
|
10518
10522
|
}
|
10519
10523
|
end
|
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.53
|
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-09-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|