flowcommerce 0.0.85 → 0.0.86
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/lib/flow_commerce/flow_api_v0_client.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6815af2e84b20591fb8d4a5e8d6ca701cc5084cb
|
|
4
|
+
data.tar.gz: 01a0ae0be767cd076e60a9a5114f16a7f46e785b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c3f476992c76eae885086bd8113bf0e00f026c5540a2c1c534cf10533acee84620fe5ec7660a4df0c2ba457e8e89ded58d538a3d3c1fcb8f6aa9d44aa47f713
|
|
7
|
+
data.tar.gz: 21ad3325bb479dd3c3f09d678816323ee50337a6aaf4d7131b92c2dda3229596a1b9e091db8e125303fa9e33b15f460bfe92f5b4613f9c933ceccbf64e11340a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Generated by apidoc - http://www.apidoc.me
|
|
2
2
|
# Service version: 0.1.77
|
|
3
|
-
# apidoc:0.11.47 http://www.apidoc.me/flow/api/0.1.
|
|
3
|
+
# apidoc:0.11.47 http://www.apidoc.me/flow/api/0.1.93/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.47 http://www.apidoc.me/flow/api/0.1.
|
|
28
|
+
USER_AGENT = 'apidoc:0.11.47 http://www.apidoc.me/flow/api/0.1.93/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
|
|
|
@@ -4638,14 +4638,14 @@ module Io
|
|
|
4638
4638
|
end
|
|
4639
4639
|
|
|
4640
4640
|
def to_hash
|
|
4641
|
-
subtype_to_hash.merge(:
|
|
4641
|
+
subtype_to_hash.merge(:key => @name)
|
|
4642
4642
|
end
|
|
4643
4643
|
|
|
4644
4644
|
def LocalizedPrice.from_json(hash)
|
|
4645
4645
|
HttpClient::Preconditions.assert_class('hash', hash, Hash)
|
|
4646
|
-
discriminator = HttpClient::Helper.symbolize_keys(hash)[:
|
|
4646
|
+
discriminator = HttpClient::Helper.symbolize_keys(hash)[:key].to_s.strip
|
|
4647
4647
|
if discriminator.empty?
|
|
4648
|
-
raise "Union type[localized_price] requires a field named '
|
|
4648
|
+
raise "Union type[localized_price] requires a field named 'key'"
|
|
4649
4649
|
end
|
|
4650
4650
|
case discriminator
|
|
4651
4651
|
when Types::LOCALIZED_ITEM_PRICE; LocalizedItemPrice.new(hash)
|