flowcommerce 0.2.32 → 0.2.33

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: 566f9941c5592b93dcba9df0fcc05ba7260ebfe1
4
- data.tar.gz: 746d6faa3209a1e82959939e94fd7252b37fda6c
3
+ metadata.gz: f03dbedc5342ce8739cbc9933ff5bf80f3f11b05
4
+ data.tar.gz: 8f7d36365c9f451341c55340ee57024a66acc4f3
5
5
  SHA512:
6
- metadata.gz: b97cea84661db52ef6c533304e2e1bc7cfc0aac1e13baf5991fc8ef9e0fa738ef961e1e62e1dab266d7991b5da3f62ac390a50f421e1b20415e016af133205c8
7
- data.tar.gz: 56844af094d40fddd2dde4a0c9fc6873cbbf4c57fa79b0d49673406d500d055fde1378722808bd93fa8018f0d3cf23acf5d3a109213c7b751847e18dc80dc12d
6
+ metadata.gz: fbf67adb12a8ceeaed72a4b72e8a3bfaa2294e9a2e295b30840576439543a8e7ff564ba094bf2bf418eb871466c0710f8fc3281b0d022a003fad74220d1c0c69
7
+ data.tar.gz: 3092e3169873fc2d4ba60ffcf5d260f0e560ac63e49ef30ef6129a745e4974f65e01a9f0c2d062c5b9130106e9d2d9bf9862152ef28678667a72beb92d52dda0
@@ -1,6 +1,6 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
2
  # Service version: 0.3.65
3
- # apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.80/ruby_client
3
+ # apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.81/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 = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.80/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.81/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.3.65' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -1370,6 +1370,8 @@ module Io
1370
1370
  query = {
1371
1371
  :country => (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String)),
1372
1372
  :currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)),
1373
+ :experience => (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)),
1374
+ :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
1373
1375
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
1374
1376
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
1375
1377
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "display_position" : x), String)
@@ -4537,10 +4539,10 @@ module Io
4537
4539
  end
4538
4540
 
4539
4541
  # Resets the session based on the provided geo parameters.
4540
- def put_reset_by_session(session, session_reset_form)
4542
+ def put_reset_by_session(session, session_put_form)
4541
4543
  HttpClient::Preconditions.assert_class('session', session, String)
4542
- (x = session_reset_form; x.is_a?(::Io::Flow::V0::Models::SessionResetForm) ? x : ::Io::Flow::V0::Models::SessionResetForm.new(x))
4543
- r = @client.request("/sessions/#{CGI.escape(session)}/reset").with_json(session_reset_form.to_json).put
4544
+ (x = session_put_form; x.is_a?(::Io::Flow::V0::Models::SessionPutForm) ? x : ::Io::Flow::V0::Models::SessionPutForm.new(x))
4545
+ r = @client.request("/sessions/#{CGI.escape(session)}/reset").with_json(session_put_form.to_json).put
4544
4546
  ::Io::Flow::V0::Models::Session.from_json(r)
4545
4547
  end
4546
4548
 
@@ -25590,41 +25592,6 @@ module Io
25590
25592
 
25591
25593
  end
25592
25594
 
25593
- class SessionResetForm
25594
-
25595
- attr_reader :ip, :experience, :country, :currency, :language, :locale
25596
-
25597
- def initialize(incoming={})
25598
- opts = HttpClient::Helper.symbolize_keys(incoming)
25599
- @ip = (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
25600
- @experience = (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String))
25601
- @country = (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String))
25602
- @currency = (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String))
25603
- @language = (x = opts.delete(:language); x.nil? ? nil : HttpClient::Preconditions.assert_class('language', x, String))
25604
- @locale = (x = opts.delete(:locale); x.nil? ? nil : HttpClient::Preconditions.assert_class('locale', x, String))
25605
- end
25606
-
25607
- def to_json
25608
- JSON.dump(to_hash)
25609
- end
25610
-
25611
- def copy(incoming={})
25612
- SessionResetForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
25613
- end
25614
-
25615
- def to_hash
25616
- {
25617
- :ip => ip,
25618
- :experience => experience,
25619
- :country => country,
25620
- :currency => currency,
25621
- :language => language,
25622
- :locale => locale
25623
- }
25624
- end
25625
-
25626
- end
25627
-
25628
25595
  # A session visit expires after a configurable period of inactivity (e.g. 30
25629
25596
  # minutes).
25630
25597
  class SessionVisit
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.32
4
+ version: 0.2.33
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: 2017-09-04 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json