flowcommerce 0.2.55 → 0.2.56

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: 82b3787a0e44093b4c2c577f7d5830a788d315e4
4
- data.tar.gz: bebcd065a19439a67343dcecb8040cfd428a5575
3
+ metadata.gz: 5410773dcc9c44735b9fbaf28e1cdb74bb4a42f9
4
+ data.tar.gz: fd762e3c07cb8136a8dda6a844afda23f26ca4f0
5
5
  SHA512:
6
- metadata.gz: e504673042da9c9fa06130c796ec36634f469b48dcdb07159fb458d68db0a827fc6e9f7e4f03427bd006270be8c905ec68a24e3c7cbb9df2b63f32b2863c49a2
7
- data.tar.gz: adeff9e4d05b20bee1d4f377ff9a496e7174c642d5b138baa6912363056313d1afe537675c8fc2e69c364a7dd200a0e993b43a8f90d6648480ef68689faacd4e
6
+ metadata.gz: d5f0013cbc3b661a0075d3176c04b49923cc77b04de23e3d9c3524a51bfff935a8a175cf2d725895ad203aeeda80b88bad50b13946fd80336e6eb365cbb73221
7
+ data.tar.gz: e48e162c1d470b3316e0d7e8dad851b93555d8c6f25b2b05fbb20cce6ae12d2242160cf986641d2c8a3d428d8f850526b0895b9416b832e9fd6ed2e87498f16a
@@ -1,6 +1,6 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.4.90
3
- # apibuilder 0.14.3 app.apibuilder.io/flow/api/0.4.90/ruby_client
2
+ # Service version: 0.4.96
3
+ # apibuilder 0.14.3 app.apibuilder.io/flow/api/0.4.95/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.4.90/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.4.90' unless defined?(Constants::VERSION)
28
+ USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.4.95/ruby_client' unless defined?(Constants::USER_AGENT)
29
+ VERSION = '0.4.96' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -8014,7 +8014,7 @@ module Io
8014
8014
  end
8015
8015
 
8016
8016
  def AttributeIntent.ALL
8017
- @@all ||= [AttributeIntent.brand, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability]
8017
+ @@all ||= [AttributeIntent.brand, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability, AttributeIntent.consumer_url, AttributeIntent.gtin, AttributeIntent.mpn]
8018
8018
  end
8019
8019
 
8020
8020
  # A brand name of the item (for retailers that sell multiple brands)
@@ -8059,6 +8059,21 @@ module Io
8059
8059
  @@_taxability ||= AttributeIntent.new('taxability')
8060
8060
  end
8061
8061
 
8062
+ # A URL of the product detail page of the item
8063
+ def AttributeIntent.consumer_url
8064
+ @@_consumer_url ||= AttributeIntent.new('consumer_url')
8065
+ end
8066
+
8067
+ # The Global Trade Item Number of this item.
8068
+ def AttributeIntent.gtin
8069
+ @@_gtin ||= AttributeIntent.new('gtin')
8070
+ end
8071
+
8072
+ # The Manufacturer Part Number of this item.
8073
+ def AttributeIntent.mpn
8074
+ @@_mpn ||= AttributeIntent.new('mpn')
8075
+ end
8076
+
8062
8077
  def to_hash
8063
8078
  value
8064
8079
  end
@@ -9088,6 +9103,51 @@ module Io
9088
9103
 
9089
9104
  end
9090
9105
 
9106
+ class DeliveredDutyDisplayType
9107
+
9108
+ attr_reader :value
9109
+
9110
+ def initialize(value)
9111
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
9112
+ end
9113
+
9114
+ # Returns the instance of DeliveredDutyDisplayType for this value, creating a new instance for an unknown value
9115
+ def DeliveredDutyDisplayType.apply(value)
9116
+ if value.instance_of?(DeliveredDutyDisplayType)
9117
+ value
9118
+ else
9119
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
9120
+ value.nil? ? nil : (from_string(value) || DeliveredDutyDisplayType.new(value))
9121
+ end
9122
+ end
9123
+
9124
+ # Returns the instance of DeliveredDutyDisplayType for this value, or nil if not found
9125
+ def DeliveredDutyDisplayType.from_string(value)
9126
+ HttpClient::Preconditions.assert_class('value', value, String)
9127
+ DeliveredDutyDisplayType.ALL.find { |v| v.value == value }
9128
+ end
9129
+
9130
+ def DeliveredDutyDisplayType.ALL
9131
+ @@all ||= [DeliveredDutyDisplayType.all, DeliveredDutyDisplayType.single]
9132
+ end
9133
+
9134
+ # Displays all available options to the customer.
9135
+ def DeliveredDutyDisplayType.all
9136
+ @@_all ||= DeliveredDutyDisplayType.new('all')
9137
+ end
9138
+
9139
+ # Displays a single option (either DDU or DDP), while the other can be displayed
9140
+ # by changing duties and tax preferences at checkout.
9141
+ def DeliveredDutyDisplayType.single
9142
+ @@_single ||= DeliveredDutyDisplayType.new('single')
9143
+ end
9144
+
9145
+ def to_hash
9146
+ value
9147
+ end
9148
+
9149
+ end
9150
+
9091
9151
  class DeliveryWindowComponentSource
9092
9152
 
9093
9153
  attr_reader :value
@@ -9143,6 +9203,52 @@ module Io
9143
9203
 
9144
9204
  end
9145
9205
 
9206
+ class DeliveryWindowLocation
9207
+
9208
+ attr_reader :value
9209
+
9210
+ def initialize(value)
9211
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
9212
+ end
9213
+
9214
+ # Returns the instance of DeliveryWindowLocation for this value, creating a new instance for an unknown value
9215
+ def DeliveryWindowLocation.apply(value)
9216
+ if value.instance_of?(DeliveryWindowLocation)
9217
+ value
9218
+ else
9219
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
9220
+ value.nil? ? nil : (from_string(value) || DeliveryWindowLocation.new(value))
9221
+ end
9222
+ end
9223
+
9224
+ # Returns the instance of DeliveryWindowLocation for this value, or nil if not found
9225
+ def DeliveryWindowLocation.from_string(value)
9226
+ HttpClient::Preconditions.assert_class('value', value, String)
9227
+ DeliveryWindowLocation.ALL.find { |v| v.value == value }
9228
+ end
9229
+
9230
+ def DeliveryWindowLocation.ALL
9231
+ @@all ||= [DeliveryWindowLocation.center, DeliveryWindowLocation.crossdock, DeliveryWindowLocation.customer]
9232
+ end
9233
+
9234
+ def DeliveryWindowLocation.center
9235
+ @@_center ||= DeliveryWindowLocation.new('center')
9236
+ end
9237
+
9238
+ def DeliveryWindowLocation.crossdock
9239
+ @@_crossdock ||= DeliveryWindowLocation.new('crossdock')
9240
+ end
9241
+
9242
+ def DeliveryWindowLocation.customer
9243
+ @@_customer ||= DeliveryWindowLocation.new('customer')
9244
+ end
9245
+
9246
+ def to_hash
9247
+ value
9248
+ end
9249
+
9250
+ end
9251
+
9146
9252
  class Direction
9147
9253
 
9148
9254
  attr_reader :value
@@ -16250,7 +16356,7 @@ module Io
16250
16356
  # Represents a facility capable of fulfilling a shipment
16251
16357
  class Center
16252
16358
 
16253
- attr_reader :id, :key, :address, :packaging, :name, :services, :schedule, :timezone, :capabilities
16359
+ attr_reader :id, :key, :address, :packaging, :name, :services, :schedule, :timezone, :capabilities, :partner_reference
16254
16360
 
16255
16361
  def initialize(incoming={})
16256
16362
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -16264,6 +16370,7 @@ module Io
16264
16370
  @schedule = (x = opts.delete(:schedule); x.is_a?(::Io::Flow::V0::Models::Schedule) ? x : ::Io::Flow::V0::Models::Schedule.new(x))
16265
16371
  @timezone = HttpClient::Preconditions.assert_class('timezone', opts.delete(:timezone), String)
16266
16372
  @capabilities = (x = opts.delete(:capabilities); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::CenterCapabilities) ? x : ::Io::Flow::V0::Models::CenterCapabilities.new(x)))
16373
+ @partner_reference = (x = opts.delete(:partner_reference); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PartnerReference) ? x : ::Io::Flow::V0::Models::PartnerReference.new(x)))
16267
16374
  end
16268
16375
 
16269
16376
  def to_json
@@ -16284,7 +16391,8 @@ module Io
16284
16391
  :services => services.map { |o| o.to_hash },
16285
16392
  :schedule => schedule.to_hash,
16286
16393
  :timezone => timezone,
16287
- :capabilities => capabilities.nil? ? nil : capabilities.to_hash
16394
+ :capabilities => capabilities.nil? ? nil : capabilities.to_hash,
16395
+ :partner_reference => partner_reference.nil? ? nil : partner_reference.to_hash
16288
16396
  }
16289
16397
  end
16290
16398
 
@@ -17165,13 +17273,14 @@ module Io
17165
17273
 
17166
17274
  class DeliveredDutySetting
17167
17275
 
17168
- attr_reader :default, :available
17276
+ attr_reader :default, :available, :display
17169
17277
 
17170
17278
  def initialize(incoming={})
17171
17279
  opts = HttpClient::Helper.symbolize_keys(incoming)
17172
17280
  HttpClient::Preconditions.require_keys(opts, [:default, :available], 'DeliveredDutySetting')
17173
17281
  @default = (x = opts.delete(:default); x.is_a?(::Io::Flow::V0::Models::DeliveredDuty) ? x : ::Io::Flow::V0::Models::DeliveredDuty.apply(x))
17174
17282
  @available = HttpClient::Preconditions.assert_class('available', opts.delete(:available), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveredDuty) ? x : ::Io::Flow::V0::Models::DeliveredDuty.apply(x)) }
17283
+ @display = (x = opts.delete(:display); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::DeliveredDutyDisplayType) ? x : ::Io::Flow::V0::Models::DeliveredDutyDisplayType.apply(x)))
17175
17284
  end
17176
17285
 
17177
17286
  def to_json
@@ -17185,7 +17294,8 @@ module Io
17185
17294
  def to_hash
17186
17295
  {
17187
17296
  :default => default.value,
17188
- :available => available.map { |o| o.value }
17297
+ :available => available.map { |o| o.value },
17298
+ :display => display.nil? ? nil : display.value
17189
17299
  }
17190
17300
  end
17191
17301
 
@@ -17195,7 +17305,7 @@ module Io
17195
17305
  # range and cost
17196
17306
  class DeliveryOption
17197
17307
 
17198
- attr_reader :id, :cost, :delivered_duty, :price, :service, :tier, :window, :rule_outcome, :weight
17308
+ attr_reader :id, :cost, :delivered_duty, :price, :service, :tier, :window, :rule_outcome, :weight, :send_to
17199
17309
 
17200
17310
  def initialize(incoming={})
17201
17311
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -17209,6 +17319,7 @@ module Io
17209
17319
  @window = (x = opts.delete(:window); x.is_a?(::Io::Flow::V0::Models::DeliveryWindow) ? x : ::Io::Flow::V0::Models::DeliveryWindow.new(x))
17210
17320
  @rule_outcome = (x = opts.delete(:rule_outcome); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::TierRuleOutcome) ? x : ::Io::Flow::V0::Models::TierRuleOutcome.from_json(x)))
17211
17321
  @weight = (x = opts.delete(:weight); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OptionWeightEstimates) ? x : ::Io::Flow::V0::Models::OptionWeightEstimates.new(x)))
17322
+ @send_to = (x = opts.delete(:send_to); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x)))
17212
17323
  end
17213
17324
 
17214
17325
  def to_json
@@ -17229,7 +17340,8 @@ module Io
17229
17340
  :tier => tier.to_hash,
17230
17341
  :window => window.to_hash,
17231
17342
  :rule_outcome => rule_outcome.nil? ? nil : rule_outcome.to_hash,
17232
- :weight => weight.nil? ? nil : weight.to_hash
17343
+ :weight => weight.nil? ? nil : weight.to_hash,
17344
+ :send_to => send_to.nil? ? nil : send_to.to_hash
17233
17345
  }
17234
17346
  end
17235
17347
 
@@ -17602,6 +17714,36 @@ module Io
17602
17714
 
17603
17715
  end
17604
17716
 
17717
+ # Components and information taken into account when calculating a final
17718
+ # delivery window
17719
+ class DeliveryWindowComponentsV2
17720
+
17721
+ attr_reader :processing_estimates, :transit_estimates
17722
+
17723
+ def initialize(incoming={})
17724
+ opts = HttpClient::Helper.symbolize_keys(incoming)
17725
+ HttpClient::Preconditions.require_keys(opts, [:processing_estimates, :transit_estimates], 'DeliveryWindowComponentsV2')
17726
+ @processing_estimates = HttpClient::Preconditions.assert_class('processing_estimates', opts.delete(:processing_estimates), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ProcessingEstimate) ? x : ::Io::Flow::V0::Models::ProcessingEstimate.new(x)) }
17727
+ @transit_estimates = HttpClient::Preconditions.assert_class('transit_estimates', opts.delete(:transit_estimates), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::TransitEstimate) ? x : ::Io::Flow::V0::Models::TransitEstimate.new(x)) }
17728
+ end
17729
+
17730
+ def to_json
17731
+ JSON.dump(to_hash)
17732
+ end
17733
+
17734
+ def copy(incoming={})
17735
+ DeliveryWindowComponentsV2.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
17736
+ end
17737
+
17738
+ def to_hash
17739
+ {
17740
+ :processing_estimates => processing_estimates.map { |o| o.to_hash },
17741
+ :transit_estimates => transit_estimates.map { |o| o.to_hash }
17742
+ }
17743
+ end
17744
+
17745
+ end
17746
+
17605
17747
  # De Minimis per item describes rules which require minimum and/or maximum
17606
17748
  # values per item
17607
17749
  class DeminimisPerItem < Deminimis
@@ -18749,6 +18891,70 @@ module Io
18749
18891
 
18750
18892
  end
18751
18893
 
18894
+ class ExportLocalizedItemPrices
18895
+
18896
+ attr_reader :organization, :experience, :item, :prices
18897
+
18898
+ def initialize(incoming={})
18899
+ opts = HttpClient::Helper.symbolize_keys(incoming)
18900
+ HttpClient::Preconditions.require_keys(opts, [:organization, :experience, :item, :prices], 'ExportLocalizedItemPrices')
18901
+ @organization = (x = opts.delete(:organization); x.is_a?(::Io::Flow::V0::Models::OrganizationReference) ? x : ::Io::Flow::V0::Models::OrganizationReference.new(x))
18902
+ @experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceReference) ? x : ::Io::Flow::V0::Models::ExperienceReference.new(x))
18903
+ @item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::CatalogItemReference) ? x : ::Io::Flow::V0::Models::CatalogItemReference.new(x))
18904
+ @prices = (x = opts.delete(:prices); x.is_a?(::Io::Flow::V0::Models::ExportLocalizedItemPricesDetail) ? x : ::Io::Flow::V0::Models::ExportLocalizedItemPricesDetail.new(x))
18905
+ end
18906
+
18907
+ def to_json
18908
+ JSON.dump(to_hash)
18909
+ end
18910
+
18911
+ def copy(incoming={})
18912
+ ExportLocalizedItemPrices.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
18913
+ end
18914
+
18915
+ def to_hash
18916
+ {
18917
+ :organization => organization.to_hash,
18918
+ :experience => experience.to_hash,
18919
+ :item => item.to_hash,
18920
+ :prices => prices.to_hash
18921
+ }
18922
+ end
18923
+
18924
+ end
18925
+
18926
+ class ExportLocalizedItemPricesDetail
18927
+
18928
+ attr_reader :item, :vat, :duty, :price_attributes
18929
+
18930
+ def initialize(incoming={})
18931
+ opts = HttpClient::Helper.symbolize_keys(incoming)
18932
+ HttpClient::Preconditions.require_keys(opts, [:item, :price_attributes], 'ExportLocalizedItemPricesDetail')
18933
+ @item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::LocalizedItemPrice) ? x : ::Io::Flow::V0::Models::LocalizedItemPrice.new(x))
18934
+ @vat = (x = opts.delete(:vat); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemVat) ? x : ::Io::Flow::V0::Models::LocalizedItemVat.new(x)))
18935
+ @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemDuty) ? x : ::Io::Flow::V0::Models::LocalizedItemDuty.new(x)))
18936
+ @price_attributes = HttpClient::Preconditions.assert_class('price_attributes', opts.delete(:price_attributes), Hash).inject({}) { |h, d| h[d[0]] = (x = d[1]; x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x)); h }
18937
+ end
18938
+
18939
+ def to_json
18940
+ JSON.dump(to_hash)
18941
+ end
18942
+
18943
+ def copy(incoming={})
18944
+ ExportLocalizedItemPricesDetail.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
18945
+ end
18946
+
18947
+ def to_hash
18948
+ {
18949
+ :item => item.to_hash,
18950
+ :vat => vat.nil? ? nil : vat.to_hash,
18951
+ :duty => duty.nil? ? nil : duty.to_hash,
18952
+ :price_attributes => price_attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash }
18953
+ }
18954
+ end
18955
+
18956
+ end
18957
+
18752
18958
  class ExportVersion
18753
18959
 
18754
18960
  attr_reader :id, :timestamp, :type, :export
@@ -26922,7 +27128,7 @@ module Io
26922
27128
  # collection of items, and metadata about those options
26923
27129
  class PhysicalDelivery < Delivery
26924
27130
 
26925
- attr_reader :id, :center, :items, :options, :send_to
27131
+ attr_reader :id, :center, :items, :options
26926
27132
 
26927
27133
  def initialize(incoming={})
26928
27134
  super(:discriminator => Delivery::Types::PHYSICAL_DELIVERY)
@@ -26932,7 +27138,6 @@ module Io
26932
27138
  @center = (x = opts.delete(:center); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::CenterSummary) ? x : ::Io::Flow::V0::Models::CenterSummary.new(x)))
26933
27139
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItemForm) ? x : ::Io::Flow::V0::Models::LineItemForm.new(x)) }
26934
27140
  @options = HttpClient::Preconditions.assert_class('options', opts.delete(:options), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryOption) ? x : ::Io::Flow::V0::Models::DeliveryOption.new(x)) }
26935
- @send_to = (x = opts.delete(:send_to); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x)))
26936
27141
  end
26937
27142
 
26938
27143
  def to_json
@@ -26948,8 +27153,7 @@ module Io
26948
27153
  :id => id,
26949
27154
  :center => center.nil? ? nil : center.to_hash,
26950
27155
  :items => items.map { |o| o.to_hash },
26951
- :options => options.map { |o| o.to_hash },
26952
- :send_to => send_to.nil? ? nil : send_to.to_hash
27156
+ :options => options.map { |o| o.to_hash }
26953
27157
  }
26954
27158
  end
26955
27159
 
@@ -27705,6 +27909,38 @@ module Io
27705
27909
 
27706
27910
  end
27707
27911
 
27912
+ class ProcessingEstimate
27913
+
27914
+ attr_reader :location, :min_date, :max_date, :source
27915
+
27916
+ def initialize(incoming={})
27917
+ opts = HttpClient::Helper.symbolize_keys(incoming)
27918
+ HttpClient::Preconditions.require_keys(opts, [:location, :min_date, :max_date, :source], 'ProcessingEstimate')
27919
+ @location = (x = opts.delete(:location); x.is_a?(::Io::Flow::V0::Models::DeliveryWindowLocation) ? x : ::Io::Flow::V0::Models::DeliveryWindowLocation.apply(x))
27920
+ @min_date = HttpClient::Preconditions.assert_class('min_date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:min_date)), DateTime)
27921
+ @max_date = HttpClient::Preconditions.assert_class('max_date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:max_date)), DateTime)
27922
+ @source = (x = opts.delete(:source); x.is_a?(::Io::Flow::V0::Models::DeliveryWindowComponentSource) ? x : ::Io::Flow::V0::Models::DeliveryWindowComponentSource.apply(x))
27923
+ end
27924
+
27925
+ def to_json
27926
+ JSON.dump(to_hash)
27927
+ end
27928
+
27929
+ def copy(incoming={})
27930
+ ProcessingEstimate.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
27931
+ end
27932
+
27933
+ def to_hash
27934
+ {
27935
+ :location => location.value,
27936
+ :min_date => min_date,
27937
+ :max_date => max_date,
27938
+ :source => source.value
27939
+ }
27940
+ end
27941
+
27942
+ end
27943
+
27708
27944
  class PromotionTrigger
27709
27945
 
27710
27946
  attr_reader :type, :min, :remaining
@@ -30497,7 +30733,7 @@ module Io
30497
30733
  # of shipped packages.
30498
30734
  class ShippingNotification
30499
30735
 
30500
- attr_reader :id, :key, :attributes, :carrier_tracking_number, :destination, :flow_tracking_number, :origin, :package, :service, :window, :order
30736
+ attr_reader :id, :key, :attributes, :carrier_tracking_number, :destination, :flow_tracking_number, :origin, :package, :service, :window, :order, :shipment_recipient
30501
30737
 
30502
30738
  def initialize(incoming={})
30503
30739
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -30513,6 +30749,7 @@ module Io
30513
30749
  @service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x))
30514
30750
  @window = (x = opts.delete(:window); x.is_a?(::Io::Flow::V0::Models::DatetimeRange) ? x : ::Io::Flow::V0::Models::DatetimeRange.new(x))
30515
30751
  @order = (x = opts.delete(:order); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LabelOrderSummary) ? x : ::Io::Flow::V0::Models::LabelOrderSummary.new(x)))
30752
+ @shipment_recipient = (x = opts.delete(:shipment_recipient); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ShipmentRecipient) ? x : ::Io::Flow::V0::Models::ShipmentRecipient.apply(x)))
30516
30753
  end
30517
30754
 
30518
30755
  def to_json
@@ -30535,7 +30772,8 @@ module Io
30535
30772
  :package => package.to_hash,
30536
30773
  :service => service.to_hash,
30537
30774
  :window => window.to_hash,
30538
- :order => order.nil? ? nil : order.to_hash
30775
+ :order => order.nil? ? nil : order.to_hash,
30776
+ :shipment_recipient => shipment_recipient.nil? ? nil : shipment_recipient.value
30539
30777
  }
30540
30778
  end
30541
30779
 
@@ -31654,7 +31892,7 @@ module Io
31654
31892
 
31655
31893
  end
31656
31894
 
31657
- # Service shipping tier available in this tier gorup. e.g. Standard tier,
31895
+ # Service shipping tier available in this tier group. e.g. Standard tier,
31658
31896
  # Express tier, Economy tier
31659
31897
  class Tier
31660
31898
 
@@ -31909,7 +32147,7 @@ module Io
31909
32147
 
31910
32148
  end
31911
32149
 
31912
- # Service shipping tier available in this tier gorup. e.g. Standard tier,
32150
+ # Service shipping tier available in this tier group. e.g. Standard tier,
31913
32151
  # Express tier, Economy tier
31914
32152
  class TierForm
31915
32153
 
@@ -32814,6 +33052,40 @@ module Io
32814
33052
 
32815
33053
  end
32816
33054
 
33055
+ class TransitEstimate
33056
+
33057
+ attr_reader :origin, :destination, :min_date, :max_date, :source
33058
+
33059
+ def initialize(incoming={})
33060
+ opts = HttpClient::Helper.symbolize_keys(incoming)
33061
+ HttpClient::Preconditions.require_keys(opts, [:origin, :destination, :min_date, :max_date, :source], 'TransitEstimate')
33062
+ @origin = (x = opts.delete(:origin); x.is_a?(::Io::Flow::V0::Models::DeliveryWindowLocation) ? x : ::Io::Flow::V0::Models::DeliveryWindowLocation.apply(x))
33063
+ @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::DeliveryWindowLocation) ? x : ::Io::Flow::V0::Models::DeliveryWindowLocation.apply(x))
33064
+ @min_date = HttpClient::Preconditions.assert_class('min_date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:min_date)), DateTime)
33065
+ @max_date = HttpClient::Preconditions.assert_class('max_date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:max_date)), DateTime)
33066
+ @source = (x = opts.delete(:source); x.is_a?(::Io::Flow::V0::Models::DeliveryWindowComponentSource) ? x : ::Io::Flow::V0::Models::DeliveryWindowComponentSource.apply(x))
33067
+ end
33068
+
33069
+ def to_json
33070
+ JSON.dump(to_hash)
33071
+ end
33072
+
33073
+ def copy(incoming={})
33074
+ TransitEstimate.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
33075
+ end
33076
+
33077
+ def to_hash
33078
+ {
33079
+ :origin => origin.value,
33080
+ :destination => destination.value,
33081
+ :min_date => min_date,
33082
+ :max_date => max_date,
33083
+ :source => source.value
33084
+ }
33085
+ end
33086
+
33087
+ end
33088
+
32817
33089
  class TransitWindow
32818
33090
 
32819
33091
  attr_reader :origin_country, :destination_country, :from, :to
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.55
4
+ version: 0.2.56
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-03-06 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json