flowcommerce 0.0.70 → 0.0.71
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 +5 -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: 0047a5655e50d73ded7eb3193ea13f524fd60afd
|
4
|
+
data.tar.gz: f3bff5de74c771dddb6ce5c3d16a19233fcd1925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59f7db254ebb7ece8b9604ab867e270f311e3af63ab7796257592dcd2e5e26a0a98c53bf9003a675275972d06f1ec92c0056d4c9b94010b66bd1f9bad1abf20
|
7
|
+
data.tar.gz: b429f4164e211a54ced06ee031ec6ffb307bdb995312af8f4af11f16030adf120a9a86e46f0aed24ab2de204dcc4d0ee0becc93a75b62d08af1c6fcf66875719
|
@@ -15926,15 +15926,15 @@ module Io
|
|
15926
15926
|
# Represents information specific to an item in a given subcatalog
|
15927
15927
|
class SubcatalogItem
|
15928
15928
|
|
15929
|
-
attr_reader :id, :item, :
|
15929
|
+
attr_reader :id, :item, :status, :item_function
|
15930
15930
|
|
15931
15931
|
def initialize(incoming={})
|
15932
15932
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15933
|
-
HttpClient::Preconditions.require_keys(opts, [:id, :item, :
|
15933
|
+
HttpClient::Preconditions.require_keys(opts, [:id, :item, :status], 'SubcatalogItem')
|
15934
15934
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
15935
15935
|
@item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::Item) ? x : ::Io::Flow::V0::Models::Item.new(x))
|
15936
|
+
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
|
15936
15937
|
@item_function = (x = opts.delete(:item_function); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExpandableItemFunction) ? x : ::Io::Flow::V0::Models::ExpandableItemFunction.from_json(x)))
|
15937
|
-
@item_status = (x = opts.delete(:item_status); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
|
15938
15938
|
end
|
15939
15939
|
|
15940
15940
|
def to_json
|
@@ -15949,8 +15949,8 @@ module Io
|
|
15949
15949
|
{
|
15950
15950
|
:id => id,
|
15951
15951
|
:item => item.to_hash,
|
15952
|
-
:
|
15953
|
-
:
|
15952
|
+
:status => status.value,
|
15953
|
+
:item_function => item_function.nil? ? nil : item_function.to_hash
|
15954
15954
|
}
|
15955
15955
|
end
|
15956
15956
|
|
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.71
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|