flowcommerce 0.1.14 → 0.1.15

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: 12119d978f2deee70dc8299d5cd954452c038316
4
- data.tar.gz: 446ca57c544600bddc38db355f8ddac6cdd4feab
3
+ metadata.gz: d5cccb5d3cd576cec3a5db7c43112d034f107767
4
+ data.tar.gz: 8144427a492503c2a65edb177d373a723bdb5fd3
5
5
  SHA512:
6
- metadata.gz: 4f8c92863bfb7e0f974d648c599ec475b38711580879d457e3c80bd7532af2a6e9186d38920065e59253dcb4811ecaf966b6c857105c005adec76fe1fd2f2b5a
7
- data.tar.gz: 74d351ba4cf1b6156d019150c8377dc13678443e462d16f0cbaed4d328ea1e0b1e971de4722f4d88462c6319293a4a4d28c2b129bde7e00fdd2c36a17515f915
6
+ metadata.gz: eff3e4898cd3af1f2a7dc7b53cd59894bfae7d6c69380a17852a03e42ff217f474d88a111b6cb40d57dde28a95f9f4ca63af39f90014f85364c2196f16943568
7
+ data.tar.gz: 2c1e10a3a7e5a0dccb2a5deba64dca2a6acd251962dcce6518ad337250bde07e13adeb22ba85cc1a85331f371b770f2c9484e8b1ec482b1cc7401b7a29d1e8ae
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.2.50
3
- # apidoc:0.11.52 http://www.apidoc.me/flow/api/0.2.49/ruby_client
3
+ # apidoc:0.11.52 http://www.apidoc.me/flow/api/0.2.52/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.52 http://www.apidoc.me/flow/api/0.2.49/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.52 http://www.apidoc.me/flow/api/0.2.52/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.2.50' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -4232,6 +4232,10 @@ module Io
4232
4232
  LABEL_FORMAT_UPSERTED = 'label_format_upserted' unless defined?(LABEL_FORMAT_UPSERTED)
4233
4233
  ORDER_DELETED = 'order_deleted' unless defined?(ORDER_DELETED)
4234
4234
  ORDER_UPSERTED = 'order_upserted' unless defined?(ORDER_UPSERTED)
4235
+ ORDER_IDENTIFIER_DELETED = 'order_identifier_deleted' unless defined?(ORDER_IDENTIFIER_DELETED)
4236
+ ORDER_IDENTIFIER_UPSERTED = 'order_identifier_upserted' unless defined?(ORDER_IDENTIFIER_UPSERTED)
4237
+ PRICING_DELETED = 'pricing_deleted' unless defined?(PRICING_DELETED)
4238
+ PRICING_UPSERTED = 'pricing_upserted' unless defined?(PRICING_UPSERTED)
4235
4239
  HS6_CODE_UPSERTED = 'hs6_code_upserted' unless defined?(HS6_CODE_UPSERTED)
4236
4240
  HS6_CODE_DELETED = 'hs6_code_deleted' unless defined?(HS6_CODE_DELETED)
4237
4241
  HS10_CODE_UPSERTED = 'hs10_code_upserted' unless defined?(HS10_CODE_UPSERTED)
@@ -4272,7 +4276,7 @@ module Io
4272
4276
  end
4273
4277
 
4274
4278
  def subtype_to_hash
4275
- raise 'Cannot serialize an instance of event directly - must use one of the specific types: catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, rma_upserted, rma_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
4279
+ raise 'Cannot serialize an instance of event directly - must use one of the specific types: catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_identifier_deleted, order_identifier_upserted, pricing_deleted, pricing_upserted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, rma_upserted, rma_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
4276
4280
  end
4277
4281
 
4278
4282
  def to_hash
@@ -4304,6 +4308,10 @@ module Io
4304
4308
  when Types::LABEL_FORMAT_UPSERTED; LabelFormatUpserted.new(hash)
4305
4309
  when Types::ORDER_DELETED; OrderDeleted.new(hash)
4306
4310
  when Types::ORDER_UPSERTED; OrderUpserted.new(hash)
4311
+ when Types::ORDER_IDENTIFIER_DELETED; OrderIdentifierDeleted.new(hash)
4312
+ when Types::ORDER_IDENTIFIER_UPSERTED; OrderIdentifierUpserted.new(hash)
4313
+ when Types::PRICING_DELETED; PricingDeleted.new(hash)
4314
+ when Types::PRICING_UPSERTED; PricingUpserted.new(hash)
4307
4315
  when Types::HS6_CODE_UPSERTED; Hs6CodeUpserted.new(hash)
4308
4316
  when Types::HS6_CODE_DELETED; Hs6CodeDeleted.new(hash)
4309
4317
  when Types::HS10_CODE_UPSERTED; Hs10CodeUpserted.new(hash)
@@ -5954,7 +5962,7 @@ module Io
5954
5962
  end
5955
5963
 
5956
5964
  def EventType.ALL
5957
- @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.rate_deleted, EventType.rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.rma_upserted, EventType.rma_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
5965
+ @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.rate_deleted, EventType.rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.pricing_deleted, EventType.pricing_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.rma_upserted, EventType.rma_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
5958
5966
  end
5959
5967
 
5960
5968
  def EventType.catalog_upserted
@@ -6029,6 +6037,22 @@ module Io
6029
6037
  @@_order_upserted ||= EventType.new('order_upserted')
6030
6038
  end
6031
6039
 
6040
+ def EventType.order_identifier_deleted
6041
+ @@_order_identifier_deleted ||= EventType.new('order_identifier_deleted')
6042
+ end
6043
+
6044
+ def EventType.order_identifier_upserted
6045
+ @@_order_identifier_upserted ||= EventType.new('order_identifier_upserted')
6046
+ end
6047
+
6048
+ def EventType.pricing_deleted
6049
+ @@_pricing_deleted ||= EventType.new('pricing_deleted')
6050
+ end
6051
+
6052
+ def EventType.pricing_upserted
6053
+ @@_pricing_upserted ||= EventType.new('pricing_upserted')
6054
+ end
6055
+
6032
6056
  def EventType.hs6_code_upserted
6033
6057
  @@_hs6_code_upserted ||= EventType.new('hs6_code_upserted')
6034
6058
  end
@@ -6715,7 +6739,7 @@ module Io
6715
6739
  end
6716
6740
 
6717
6741
  def OrderErrorCode.ALL
6718
- @@all ||= [OrderErrorCode.generic_error, OrderErrorCode.order_item_not_available]
6742
+ @@all ||= [OrderErrorCode.generic_error, OrderErrorCode.order_item_not_available, OrderErrorCode.order_identifier_error]
6719
6743
  end
6720
6744
 
6721
6745
  def OrderErrorCode.generic_error
@@ -6730,6 +6754,10 @@ module Io
6730
6754
  @@_order_item_not_available ||= OrderErrorCode.new('order_item_not_available')
6731
6755
  end
6732
6756
 
6757
+ def OrderErrorCode.order_identifier_error
6758
+ @@_order_identifier_error ||= OrderErrorCode.new('order_identifier_error')
6759
+ end
6760
+
6733
6761
  def to_hash
6734
6762
  value
6735
6763
  end
@@ -15546,6 +15574,37 @@ module Io
15546
15574
 
15547
15575
  end
15548
15576
 
15577
+ class OrderIdentifierDeleted < Event
15578
+
15579
+ attr_reader :event_id, :timestamp, :id
15580
+
15581
+ def initialize(incoming={})
15582
+ super(:discriminator => Event::Types::ORDER_IDENTIFIER_DELETED)
15583
+ opts = HttpClient::Helper.symbolize_keys(incoming)
15584
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id], 'OrderIdentifierDeleted')
15585
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
15586
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
15587
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
15588
+ end
15589
+
15590
+ def to_json
15591
+ JSON.dump(to_hash)
15592
+ end
15593
+
15594
+ def copy(incoming={})
15595
+ OrderIdentifierDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
15596
+ end
15597
+
15598
+ def subtype_to_hash
15599
+ {
15600
+ :event_id => event_id,
15601
+ :timestamp => timestamp,
15602
+ :id => id
15603
+ }
15604
+ end
15605
+
15606
+ end
15607
+
15549
15608
  class OrderIdentifierForm
15550
15609
 
15551
15610
  attr_reader :order, :number
@@ -15574,6 +15633,43 @@ module Io
15574
15633
 
15575
15634
  end
15576
15635
 
15636
+ class OrderIdentifierUpserted < Event
15637
+
15638
+ attr_reader :event_id, :timestamp, :organization, :id, :number, :order_number
15639
+
15640
+ def initialize(incoming={})
15641
+ super(:discriminator => Event::Types::ORDER_IDENTIFIER_UPSERTED)
15642
+ opts = HttpClient::Helper.symbolize_keys(incoming)
15643
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id, :number, :order_number], 'OrderIdentifierUpserted')
15644
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
15645
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
15646
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
15647
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
15648
+ @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
15649
+ @order_number = HttpClient::Preconditions.assert_class('order_number', opts.delete(:order_number), String)
15650
+ end
15651
+
15652
+ def to_json
15653
+ JSON.dump(to_hash)
15654
+ end
15655
+
15656
+ def copy(incoming={})
15657
+ OrderIdentifierUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
15658
+ end
15659
+
15660
+ def subtype_to_hash
15661
+ {
15662
+ :event_id => event_id,
15663
+ :timestamp => timestamp,
15664
+ :organization => organization,
15665
+ :id => id,
15666
+ :number => number,
15667
+ :order_number => order_number
15668
+ }
15669
+ end
15670
+
15671
+ end
15672
+
15577
15673
  class OrderIdentifierVersion
15578
15674
 
15579
15675
  attr_reader :id, :timestamp, :type, :order_identifier
@@ -16289,7 +16385,7 @@ module Io
16289
16385
 
16290
16386
  class OrganizationUpserted < Event
16291
16387
 
16292
- attr_reader :event_id, :timestamp, :id, :name, :environment, :default_base_currency, :parent_id, :currencies
16388
+ attr_reader :event_id, :timestamp, :id, :name, :environment, :currencies, :parent_id, :default_base_currency
16293
16389
 
16294
16390
  def initialize(incoming={})
16295
16391
  super(:discriminator => Event::Types::ORGANIZATION_UPSERTED)
@@ -16300,9 +16396,9 @@ module Io
16300
16396
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
16301
16397
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
16302
16398
  @environment = HttpClient::Preconditions.assert_class('environment', opts.delete(:environment), String)
16303
- @default_base_currency = (x = opts.delete(:default_base_currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('default_base_currency', x, String))
16304
- @parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
16305
16399
  @currencies = HttpClient::Preconditions.assert_class('currencies', opts.delete(:currencies), Array).map { |v| HttpClient::Preconditions.assert_class('currencies', v, String) }
16400
+ @parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
16401
+ @default_base_currency = (x = opts.delete(:default_base_currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('default_base_currency', x, String))
16306
16402
  end
16307
16403
 
16308
16404
  def to_json
@@ -16320,9 +16416,9 @@ module Io
16320
16416
  :id => id,
16321
16417
  :name => name,
16322
16418
  :environment => environment,
16323
- :default_base_currency => default_base_currency,
16419
+ :currencies => currencies,
16324
16420
  :parent_id => parent_id,
16325
- :currencies => currencies
16421
+ :default_base_currency => default_base_currency
16326
16422
  }
16327
16423
  end
16328
16424
 
@@ -16917,6 +17013,82 @@ module Io
16917
17013
 
16918
17014
  end
16919
17015
 
17016
+ class PricingDeleted < Event
17017
+
17018
+ attr_reader :event_id, :timestamp, :organization, :experience_key
17019
+
17020
+ def initialize(incoming={})
17021
+ super(:discriminator => Event::Types::PRICING_DELETED)
17022
+ opts = HttpClient::Helper.symbolize_keys(incoming)
17023
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :experience_key], 'PricingDeleted')
17024
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
17025
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
17026
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
17027
+ @experience_key = HttpClient::Preconditions.assert_class('experience_key', opts.delete(:experience_key), String)
17028
+ end
17029
+
17030
+ def to_json
17031
+ JSON.dump(to_hash)
17032
+ end
17033
+
17034
+ def copy(incoming={})
17035
+ PricingDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
17036
+ end
17037
+
17038
+ def subtype_to_hash
17039
+ {
17040
+ :event_id => event_id,
17041
+ :timestamp => timestamp,
17042
+ :organization => organization,
17043
+ :experience_key => experience_key
17044
+ }
17045
+ end
17046
+
17047
+ end
17048
+
17049
+ class PricingUpserted < Event
17050
+
17051
+ attr_reader :event_id, :timestamp, :organization, :experience_key, :vat, :duty, :rounding_type, :rounding_method, :rounding_value
17052
+
17053
+ def initialize(incoming={})
17054
+ super(:discriminator => Event::Types::PRICING_UPSERTED)
17055
+ opts = HttpClient::Helper.symbolize_keys(incoming)
17056
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :experience_key, :vat, :duty], 'PricingUpserted')
17057
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
17058
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
17059
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
17060
+ @experience_key = HttpClient::Preconditions.assert_class('experience_key', opts.delete(:experience_key), String)
17061
+ @vat = HttpClient::Preconditions.assert_class('vat', opts.delete(:vat), String)
17062
+ @duty = HttpClient::Preconditions.assert_class('duty', opts.delete(:duty), String)
17063
+ @rounding_type = (x = opts.delete(:rounding_type); x.nil? ? nil : HttpClient::Preconditions.assert_class('rounding_type', x, String))
17064
+ @rounding_method = (x = opts.delete(:rounding_method); x.nil? ? nil : HttpClient::Preconditions.assert_class('rounding_method', x, String))
17065
+ @rounding_value = (x = opts.delete(:rounding_value); x.nil? ? nil : HttpClient::Preconditions.assert_class('rounding_value', HttpClient::Helper.to_big_decimal(x), BigDecimal))
17066
+ end
17067
+
17068
+ def to_json
17069
+ JSON.dump(to_hash)
17070
+ end
17071
+
17072
+ def copy(incoming={})
17073
+ PricingUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
17074
+ end
17075
+
17076
+ def subtype_to_hash
17077
+ {
17078
+ :event_id => event_id,
17079
+ :timestamp => timestamp,
17080
+ :organization => organization,
17081
+ :experience_key => experience_key,
17082
+ :vat => vat,
17083
+ :duty => duty,
17084
+ :rounding_type => rounding_type,
17085
+ :rounding_method => rounding_method,
17086
+ :rounding_value => rounding_value
17087
+ }
17088
+ end
17089
+
17090
+ end
17091
+
16920
17092
  # A public key is used to encrypt cards client side prior to submitting to the
16921
17093
  # Flow vault.
16922
17094
  class PublicKey
@@ -19088,21 +19260,15 @@ module Io
19088
19260
 
19089
19261
  class TargetingItemDeleted < Event
19090
19262
 
19091
- attr_reader :event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key, :subcatalog_id
19263
+ attr_reader :event_id, :timestamp, :id
19092
19264
 
19093
19265
  def initialize(incoming={})
19094
19266
  super(:discriminator => Event::Types::TARGETING_ITEM_DELETED)
19095
19267
  opts = HttpClient::Helper.symbolize_keys(incoming)
19096
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key], 'TargetingItemDeleted')
19268
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id], 'TargetingItemDeleted')
19097
19269
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
19098
19270
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
19099
- @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
19100
- @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
19101
- @q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String)
19102
- @outcome_id = HttpClient::Preconditions.assert_class('outcome_id', opts.delete(:outcome_id), String)
19103
- @catalog_id = HttpClient::Preconditions.assert_class('catalog_id', opts.delete(:catalog_id), String)
19104
- @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
19105
- @subcatalog_id = (x = opts.delete(:subcatalog_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('subcatalog_id', x, String))
19271
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
19106
19272
  end
19107
19273
 
19108
19274
  def to_json
@@ -19117,29 +19283,27 @@ module Io
19117
19283
  {
19118
19284
  :event_id => event_id,
19119
19285
  :timestamp => timestamp,
19120
- :organization => organization,
19121
- :item_number => item_number,
19122
- :q => q,
19123
- :outcome_id => outcome_id,
19124
- :catalog_id => catalog_id,
19125
- :key => key,
19126
- :subcatalog_id => subcatalog_id
19286
+ :id => id
19127
19287
  }
19128
19288
  end
19129
19289
 
19130
19290
  end
19131
19291
 
19292
+ # Indiciates that a given item has been targeted by the query q producing an
19293
+ # outcome. The item number is unique within its targeting_id.
19132
19294
  class TargetingItemUpserted < Event
19133
19295
 
19134
- attr_reader :event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key, :subcatalog_id
19296
+ attr_reader :event_id, :timestamp, :id, :organization, :targeting_id, :item_number, :q, :outcome_id, :catalog_id, :key, :subcatalog_id
19135
19297
 
19136
19298
  def initialize(incoming={})
19137
19299
  super(:discriminator => Event::Types::TARGETING_ITEM_UPSERTED)
19138
19300
  opts = HttpClient::Helper.symbolize_keys(incoming)
19139
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key], 'TargetingItemUpserted')
19301
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :organization, :targeting_id, :item_number, :q, :outcome_id, :catalog_id, :key], 'TargetingItemUpserted')
19140
19302
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
19141
19303
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
19304
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
19142
19305
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
19306
+ @targeting_id = HttpClient::Preconditions.assert_class('targeting_id', opts.delete(:targeting_id), String)
19143
19307
  @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
19144
19308
  @q = HttpClient::Preconditions.assert_class('q', opts.delete(:q), String)
19145
19309
  @outcome_id = HttpClient::Preconditions.assert_class('outcome_id', opts.delete(:outcome_id), String)
@@ -19160,7 +19324,9 @@ module Io
19160
19324
  {
19161
19325
  :event_id => event_id,
19162
19326
  :timestamp => timestamp,
19327
+ :id => id,
19163
19328
  :organization => organization,
19329
+ :targeting_id => targeting_id,
19164
19330
  :item_number => item_number,
19165
19331
  :q => q,
19166
19332
  :outcome_id => outcome_id,
@@ -20138,7 +20304,7 @@ module Io
20138
20304
  # Represents a specific label being tracked as part of the tracking bucket
20139
20305
  class TrackingLabelForm
20140
20306
 
20141
- attr_reader :tracking_id, :status, :carrier, :carrier_tracking_number, :delivery_estimate, :description, :timestamp
20307
+ attr_reader :tracking_id, :status, :carrier, :carrier_tracking_number, :delivery_estimate, :description, :timestamp, :parent_id
20142
20308
 
20143
20309
  def initialize(incoming={})
20144
20310
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -20150,6 +20316,7 @@ module Io
20150
20316
  @delivery_estimate = (x = opts.delete(:delivery_estimate); x.nil? ? nil : HttpClient::Preconditions.assert_class('delivery_estimate', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
20151
20317
  @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
20152
20318
  @timestamp = (x = opts.delete(:timestamp); x.nil? ? nil : HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
20319
+ @parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
20153
20320
  end
20154
20321
 
20155
20322
  def to_json
@@ -20168,7 +20335,8 @@ module Io
20168
20335
  :carrier_tracking_number => carrier_tracking_number,
20169
20336
  :delivery_estimate => delivery_estimate,
20170
20337
  :description => description,
20171
- :timestamp => timestamp
20338
+ :timestamp => timestamp,
20339
+ :parent_id => parent_id
20172
20340
  }
20173
20341
  end
20174
20342
 
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
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-01-17 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bigdecimal
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Native ruby client for the Flow REST API. Detailed information at http://apidoc.me/flow
@@ -58,17 +58,17 @@ require_paths:
58
58
  - lib
59
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - '>='
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.6.8
71
+ rubygems_version: 2.0.14.1
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Native ruby client for the Flow REST API.