flowcommerce 0.0.75 → 0.0.76

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 959c5c78019df93e922ce26e50933173e2c5e560
4
- data.tar.gz: b3809dab351a969d201a5d24da09a4e82ed6e772
3
+ metadata.gz: 6982bd47aead0a1638333d0a3b262419062c6395
4
+ data.tar.gz: c94f1a7609abce9f2aecff9e6a8168f952b92930
5
5
  SHA512:
6
- metadata.gz: 227792b98e5eb492540587d4a39509679e383448ccbb86073078bfb0e96425862519d5cfd8ecc6db7bff976db0f76528080126794933fe75a9cab6c9fbd2f524
7
- data.tar.gz: 0f8ff19374bd6cf2b2938094faef846ad9ba4dc34dd7d74c54c6a0bfa35132ad8735b149cebe6c5bdd108f89fdc050d1b9d20c2957359b88bfb4a67698168e23
6
+ metadata.gz: 7758a777dd57a559e7ba82b0f16a364db4f3637b95574186c769c5dd3c919f26983ffb66019f46645551b071b0a181559218400e1b6c6c970c0720e93f93e3a2
7
+ data.tar.gz: f4a2a023886fdc8f3935680bdf3c8dadf4d27b031cd245128a998e77440c500c3197c35d2e2294dba97f8f8f0c705dc5f13cc5a9cf8024b79b9eb81efd61724a
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.1.77
3
- # apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.81/ruby_client
3
+ # apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.82/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.38 http://www.apidoc.me/flow/api/0.1.81/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.82/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
 
@@ -848,14 +848,14 @@ module Io
848
848
  # The countries resources provides a unique list of all of the countries for
849
849
  # which an experience exists. We generate this list of countries by iterating
850
850
  # through all of the experience regions, and collecting all of the countries.
851
- def get(organization)
851
+ def get_countries_by_organization(organization)
852
852
  HttpClient::Preconditions.assert_class('organization', organization, String)
853
853
  r = @client.request("/#{CGI.escape(organization)}/countries").get
854
854
  r.map { |x| ::Io::Flow::V0::Models::Country.new(x) }
855
855
  end
856
856
 
857
857
  # Search organizations. Always paginated.
858
- def get_organizations(incoming={})
858
+ def get(incoming={})
859
859
  opts = HttpClient::Helper.symbolize_keys(incoming)
860
860
  query = {
861
861
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
@@ -871,21 +871,21 @@ module Io
871
871
  end
872
872
 
873
873
  # Create a new organization.
874
- def post_organizations(organization_form)
874
+ def post(organization_form)
875
875
  HttpClient::Preconditions.assert_class('organization_form', organization_form, ::Io::Flow::V0::Models::OrganizationForm)
876
876
  r = @client.request("/organizations").with_json(organization_form.to_json).post
877
877
  ::Io::Flow::V0::Models::Organization.new(r)
878
878
  end
879
879
 
880
880
  # Returns information about a specific organization.
881
- def get_organizations_by_id(id)
881
+ def get_by_id(id)
882
882
  HttpClient::Preconditions.assert_class('id', id, String)
883
883
  r = @client.request("/organizations/#{CGI.escape(id)}").get
884
884
  ::Io::Flow::V0::Models::Organization.new(r)
885
885
  end
886
886
 
887
887
  # Update or create an organization with the specified id.
888
- def put_organizations_by_id(id, organization_put_form)
888
+ def put_by_id(id, organization_put_form)
889
889
  HttpClient::Preconditions.assert_class('id', id, String)
890
890
  HttpClient::Preconditions.assert_class('organization_put_form', organization_put_form, ::Io::Flow::V0::Models::OrganizationPutForm)
891
891
  r = @client.request("/organizations/#{CGI.escape(id)}").with_json(organization_put_form.to_json).put
@@ -893,21 +893,21 @@ module Io
893
893
  end
894
894
 
895
895
  # Delete the organization with this id
896
- def delete_organizations_by_id(id)
896
+ def delete_by_id(id)
897
897
  HttpClient::Preconditions.assert_class('id', id, String)
898
898
  r = @client.request("/organizations/#{CGI.escape(id)}").delete
899
899
  nil
900
900
  end
901
901
 
902
902
  # Returns currencies for a specific organization.
903
- def get_organizations_and_settings_and_currencies_by_organization_id(organization_id)
903
+ def get_settings_and_currencies_by_organization_id(organization_id)
904
904
  HttpClient::Preconditions.assert_class('organization_id', organization_id, String)
905
905
  r = @client.request("/organizations/#{CGI.escape(organization_id)}/settings/currencies").get
906
906
  r.map { |x| ::Io::Flow::V0::Models::Currency.new(x) }
907
907
  end
908
908
 
909
909
  # Provides visibility into recent changes of each object, including deletion
910
- def get_organizations_and_versions(incoming={})
910
+ def get_versions(incoming={})
911
911
  opts = HttpClient::Helper.symbolize_keys(incoming)
912
912
  query = {
913
913
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
@@ -3142,7 +3142,7 @@ module Io
3142
3142
  end
3143
3143
 
3144
3144
  # Provides timezone based on address or geolocated IP.
3145
- def get(incoming={})
3145
+ def get_geolocation_and_timezones(incoming={})
3146
3146
  opts = HttpClient::Helper.symbolize_keys(incoming)
3147
3147
  query = {
3148
3148
  :address => (x = opts.delete(:address); x.nil? ? nil : HttpClient::Preconditions.assert_class('address', x, String)),
@@ -16733,18 +16733,20 @@ module Io
16733
16733
 
16734
16734
  class TargetingItemDeleted < Event
16735
16735
 
16736
- attr_reader :event_id, :timestamp, :organization, :catalog, :number, :key
16736
+ attr_reader :event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :subcatalog_id
16737
16737
 
16738
16738
  def initialize(incoming={})
16739
16739
  super(:name => Event::Types::TARGETING_ITEM_DELETED)
16740
16740
  opts = HttpClient::Helper.symbolize_keys(incoming)
16741
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog, :number, :key], 'TargetingItemDeleted')
16741
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id], 'TargetingItemDeleted')
16742
16742
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
16743
16743
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
16744
16744
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
16745
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
16746
- @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
16747
- @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
16745
+ @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
16746
+ @q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String)
16747
+ @outcome_id = HttpClient::Preconditions.assert_class('outcome_id', opts.delete(:outcome_id), String)
16748
+ @catalog_id = HttpClient::Preconditions.assert_class('catalog_id', opts.delete(:catalog_id), String)
16749
+ @subcatalog_id = (x = opts.delete(:subcatalog_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('subcatalog_id', x, String))
16748
16750
  end
16749
16751
 
16750
16752
  def to_json
@@ -16760,9 +16762,11 @@ module Io
16760
16762
  :event_id => event_id,
16761
16763
  :timestamp => timestamp,
16762
16764
  :organization => organization,
16763
- :catalog => catalog,
16764
- :number => number,
16765
- :key => key
16765
+ :item_number => item_number,
16766
+ :q => q,
16767
+ :outcome_id => outcome_id,
16768
+ :catalog_id => catalog_id,
16769
+ :subcatalog_id => subcatalog_id
16766
16770
  }
16767
16771
  end
16768
16772
 
@@ -16770,18 +16774,20 @@ module Io
16770
16774
 
16771
16775
  class TargetingItemUpserted < Event
16772
16776
 
16773
- attr_reader :event_id, :timestamp, :organization, :catalog, :number, :key
16777
+ attr_reader :event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :subcatalog_id
16774
16778
 
16775
16779
  def initialize(incoming={})
16776
16780
  super(:name => Event::Types::TARGETING_ITEM_UPSERTED)
16777
16781
  opts = HttpClient::Helper.symbolize_keys(incoming)
16778
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog, :number, :key], 'TargetingItemUpserted')
16782
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id], 'TargetingItemUpserted')
16779
16783
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
16780
16784
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
16781
16785
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
16782
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
16783
- @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
16784
- @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
16786
+ @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
16787
+ @q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String)
16788
+ @outcome_id = HttpClient::Preconditions.assert_class('outcome_id', opts.delete(:outcome_id), String)
16789
+ @catalog_id = HttpClient::Preconditions.assert_class('catalog_id', opts.delete(:catalog_id), String)
16790
+ @subcatalog_id = (x = opts.delete(:subcatalog_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('subcatalog_id', x, String))
16785
16791
  end
16786
16792
 
16787
16793
  def to_json
@@ -16797,9 +16803,11 @@ module Io
16797
16803
  :event_id => event_id,
16798
16804
  :timestamp => timestamp,
16799
16805
  :organization => organization,
16800
- :catalog => catalog,
16801
- :number => number,
16802
- :key => key
16806
+ :item_number => item_number,
16807
+ :q => q,
16808
+ :outcome_id => outcome_id,
16809
+ :catalog_id => catalog_id,
16810
+ :subcatalog_id => subcatalog_id
16803
16811
  }
16804
16812
  end
16805
16813
 
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.75
4
+ version: 0.0.76
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-10-02 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json