flowcommerce 0.2.60 → 0.2.61
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 +8 -8
- 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: f9804a0a7d709ff9edd2b1afe29a94ef6d6dd0fd
|
4
|
+
data.tar.gz: 51846636408fe4b70456d403c3705fe4da032fae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3e96dc2004ab866260db395a2b3cb58f0762afd854b2c6f308053643f099900c27f9752e1f69d25ebfb83141b8461194fad811cd7bef4535d5c3c63d7d73977
|
7
|
+
data.tar.gz: d474963311d2cb9a96396d422e5ee3cf99b5d2072968804fa4f11941620c4b5da8f3087f7617059abf7f53b930e9ae89ed65c8ecd32d43812c8abb4f8bf67f3e
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
|
-
# Service version: 0.5.
|
3
|
-
# apibuilder 0.14.3 app.apibuilder.io/flow/api/0.5.
|
2
|
+
# Service version: 0.5.32
|
3
|
+
# apibuilder 0.14.3 app.apibuilder.io/flow/api/0.5.31/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 = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.5.
|
29
|
-
VERSION = '0.5.
|
28
|
+
USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.5.31/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
|
+
VERSION = '0.5.32' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
32
32
|
end
|
@@ -4448,7 +4448,6 @@ module Io
|
|
4448
4448
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4449
4449
|
query = {
|
4450
4450
|
:country => (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String)),
|
4451
|
-
:address => (x = opts.delete(:address); x.nil? ? nil : HttpClient::Preconditions.assert_class('address', x, String)),
|
4452
4451
|
:ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
|
4453
4452
|
}.delete_if { |k, v| v.nil? }
|
4454
4453
|
r = @client.request("/geolocation/defaults").with_query(query).get
|
@@ -4473,7 +4472,6 @@ module Io
|
|
4473
4472
|
def get_geolocation_and_timezones(incoming={})
|
4474
4473
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4475
4474
|
query = {
|
4476
|
-
:address => (x = opts.delete(:address); x.nil? ? nil : HttpClient::Preconditions.assert_class('address', x, String)),
|
4477
4475
|
:ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
|
4478
4476
|
}.delete_if { |k, v| v.nil? }
|
4479
4477
|
r = @client.request("/geolocation/timezones").with_query(query).get
|
@@ -26292,7 +26290,7 @@ module Io
|
|
26292
26290
|
|
26293
26291
|
class OrderUpserted < Event
|
26294
26292
|
|
26295
|
-
attr_reader :event_id, :timestamp, :organization, :number, :environment, :experience_id, :expires_at, :customer, :selections, :items, :destination, :deliveries, :prices, :payments, :discount, :delivered_duty, :total, :created_at, :updated_at, :submitted_at, :lines, :attributes
|
26293
|
+
attr_reader :event_id, :timestamp, :organization, :number, :environment, :experience_id, :expires_at, :customer, :selections, :items, :destination, :deliveries, :prices, :payments, :discount, :delivered_duty, :total, :created_at, :updated_at, :submitted_at, :lines, :attributes, :geo
|
26296
26294
|
|
26297
26295
|
def initialize(incoming={})
|
26298
26296
|
super(:discriminator => Event::Types::ORDER_UPSERTED)
|
@@ -26320,6 +26318,7 @@ module Io
|
|
26320
26318
|
@submitted_at = (x = opts.delete(:submitted_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('submitted_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
|
26321
26319
|
@lines = (x = opts.delete(:lines); x.nil? ? nil : HttpClient::Preconditions.assert_class('lines', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Line) ? x : ::Io::Flow::V0::Models::Line.new(x)) })
|
26322
26320
|
@attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
|
26321
|
+
@geo = (x = opts.delete(:geo); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrderGeo) ? x : ::Io::Flow::V0::Models::OrderGeo.new(x)))
|
26323
26322
|
end
|
26324
26323
|
|
26325
26324
|
def to_json
|
@@ -26353,7 +26352,8 @@ module Io
|
|
26353
26352
|
:updated_at => updated_at,
|
26354
26353
|
:submitted_at => submitted_at,
|
26355
26354
|
:lines => lines.nil? ? nil : lines.map { |o| o.to_hash },
|
26356
|
-
:attributes => attributes.nil? ? nil : attributes
|
26355
|
+
:attributes => attributes.nil? ? nil : attributes,
|
26356
|
+
:geo => geo.nil? ? nil : geo.to_hash
|
26357
26357
|
}
|
26358
26358
|
end
|
26359
26359
|
|
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.2.
|
4
|
+
version: 0.2.61
|
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: 2018-05-
|
11
|
+
date: 2018-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|