flowcommerce 0.0.84 → 0.0.85

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: 380f068aafe13f388ec15c7ab474a8e2213dbe4f
4
- data.tar.gz: b6eaee21bd41444e245051a648e1541f89207453
3
+ metadata.gz: 39f8c4111fd5be30fc1961563d0db1e9e2f079c0
4
+ data.tar.gz: ca43dcf6d35b1a17b70cfc10a69777e414bd5d16
5
5
  SHA512:
6
- metadata.gz: 51efbe919dd4b2dc839e56a688227194ad22fec6a6c4c3ed7e0b559601d20bb3500c670797ab1a1a50d23684218adb632e592acea521b0d311008e6e7c33b157
7
- data.tar.gz: 8d19c68ad667d270e488ab77b041ecd910778c60dd45771d2b38e78f75d4a7aab5d09b22b2a1a9a24363047badfb0df7c1b66598919ef1dae9f7e804cc0bbeb8
6
+ metadata.gz: 2b0124c9b0a3e26dee3ba5e56b24e01fdf54a4d0ef78d200c5e668fefee20e242633cf3e51067d38a7ae08c4d84dfb38376d66fc53fc7ab90e52968d36ba6b44
7
+ data.tar.gz: 2b87f6eecd02d51e4795a6e45b7567fd4d70d17f8e258fa52a4bc9aff9b57f5188c98aaaa4280797d76c98141cfd6838c0bd5b3391f3e63d273685f95349c5b4
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.1.77
3
- # apidoc:0.11.45 http://www.apidoc.me/flow/api/0.1.91/ruby_client
3
+ # apidoc:0.11.47 http://www.apidoc.me/flow/api/0.1.92/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.45 http://www.apidoc.me/flow/api/0.1.91/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.47 http://www.apidoc.me/flow/api/0.1.92/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
 
@@ -4177,7 +4177,7 @@ module Io
4177
4177
 
4178
4178
  end
4179
4179
 
4180
- # An item function can be represented with just it's Id, or the entire model
4180
+ # An item function can be represented with just its Id, or the entire model
4181
4181
  class ExpandableItemFunction
4182
4182
 
4183
4183
  module Types
@@ -4616,6 +4616,72 @@ module Io
4616
4616
 
4617
4617
  end
4618
4618
 
4619
+ # The localized prices for an item are returned as a list - the key of each
4620
+ # element is defined here
4621
+ class LocalizedPrice
4622
+
4623
+ module Types
4624
+ LOCALIZED_ITEM_PRICE = 'localized_item_price' unless defined?(LOCALIZED_ITEM_PRICE)
4625
+ LOCALIZED_ITEM_VAT = 'localized_item_vat' unless defined?(LOCALIZED_ITEM_VAT)
4626
+ LOCALIZED_ITEM_DUTY = 'localized_item_duty' unless defined?(LOCALIZED_ITEM_DUTY)
4627
+ LOCALIZED_TOTAL = 'localized_total' unless defined?(LOCALIZED_TOTAL)
4628
+ end
4629
+
4630
+ def initialize(incoming={})
4631
+ opts = HttpClient::Helper.symbolize_keys(incoming)
4632
+ HttpClient::Preconditions.require_keys(opts, [:name], 'LocalizedPrice')
4633
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
4634
+ end
4635
+
4636
+ def subtype_to_hash
4637
+ raise 'Cannot serialize an instance of localized_price directly - must use one of the specific types: localized_item_price, localized_item_vat, localized_item_duty, localized_total'
4638
+ end
4639
+
4640
+ def to_hash
4641
+ subtype_to_hash.merge(:discriminator => @name)
4642
+ end
4643
+
4644
+ def LocalizedPrice.from_json(hash)
4645
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
4646
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
4647
+ if discriminator.empty?
4648
+ raise "Union type[localized_price] requires a field named 'discriminator'"
4649
+ end
4650
+ case discriminator
4651
+ when Types::LOCALIZED_ITEM_PRICE; LocalizedItemPrice.new(hash)
4652
+ when Types::LOCALIZED_ITEM_VAT; LocalizedItemVat.new(hash)
4653
+ when Types::LOCALIZED_ITEM_DUTY; LocalizedItemDuty.new(hash)
4654
+ when Types::LOCALIZED_TOTAL; LocalizedTotal.new(hash)
4655
+ else LocalizedPriceUndefinedType.new(:name => discriminator)
4656
+ end
4657
+ end
4658
+
4659
+ end
4660
+
4661
+ class LocalizedPriceUndefinedType < LocalizedPrice
4662
+
4663
+ attr_reader :name
4664
+
4665
+ def initialize(incoming={})
4666
+ super(:name => 'undefined_type')
4667
+ opts = HttpClient::Helper.symbolize_keys(incoming)
4668
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
4669
+ end
4670
+
4671
+ def subtype_to_hash
4672
+ raise 'Unable to serialize undefined type to json'
4673
+ end
4674
+
4675
+ def copy(incoming={})
4676
+ raise 'Operation not supported for undefined type'
4677
+ end
4678
+
4679
+ def to_hash
4680
+ raise 'Operation not supported for undefined type'
4681
+ end
4682
+
4683
+ end
4684
+
4619
4685
  class OrderError
4620
4686
 
4621
4687
  module Types
@@ -5736,6 +5802,52 @@ module Io
5736
5802
 
5737
5803
  end
5738
5804
 
5805
+ class IncludedLevyKey
5806
+
5807
+ attr_reader :value
5808
+
5809
+ def initialize(value)
5810
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
5811
+ end
5812
+
5813
+ # Returns the instance of IncludedLevyKey for this value, creating a new instance for an unknown value
5814
+ def IncludedLevyKey.apply(value)
5815
+ if value.instance_of?(IncludedLevyKey)
5816
+ value
5817
+ else
5818
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
5819
+ value.nil? ? nil : (from_string(value) || IncludedLevyKey.new(value))
5820
+ end
5821
+ end
5822
+
5823
+ # Returns the instance of IncludedLevyKey for this value, or nil if not found
5824
+ def IncludedLevyKey.from_string(value)
5825
+ HttpClient::Preconditions.assert_class('value', value, String)
5826
+ IncludedLevyKey.ALL.find { |v| v.value == value }
5827
+ end
5828
+
5829
+ def IncludedLevyKey.ALL
5830
+ @@all ||= [IncludedLevyKey.duty, IncludedLevyKey.vat, IncludedLevyKey.vat_and_duty]
5831
+ end
5832
+
5833
+ def IncludedLevyKey.duty
5834
+ @@_duty ||= IncludedLevyKey.new('duty')
5835
+ end
5836
+
5837
+ def IncludedLevyKey.vat
5838
+ @@_vat ||= IncludedLevyKey.new('vat')
5839
+ end
5840
+
5841
+ def IncludedLevyKey.vat_and_duty
5842
+ @@_vat_and_duty ||= IncludedLevyKey.new('vat_and_duty')
5843
+ end
5844
+
5845
+ def to_hash
5846
+ value
5847
+ end
5848
+
5849
+ end
5850
+
5739
5851
  class LevyComponent
5740
5852
 
5741
5853
  attr_reader :value
@@ -5838,118 +5950,6 @@ module Io
5838
5950
 
5839
5951
  end
5840
5952
 
5841
- class LocalizedPriceKey
5842
-
5843
- attr_reader :value
5844
-
5845
- def initialize(value)
5846
- @value = HttpClient::Preconditions.assert_class('value', value, String)
5847
- end
5848
-
5849
- # Returns the instance of LocalizedPriceKey for this value, creating a new instance for an unknown value
5850
- def LocalizedPriceKey.apply(value)
5851
- if value.instance_of?(LocalizedPriceKey)
5852
- value
5853
- else
5854
- HttpClient::Preconditions.assert_class_or_nil('value', value, String)
5855
- value.nil? ? nil : (from_string(value) || LocalizedPriceKey.new(value))
5856
- end
5857
- end
5858
-
5859
- # Returns the instance of LocalizedPriceKey for this value, or nil if not found
5860
- def LocalizedPriceKey.from_string(value)
5861
- HttpClient::Preconditions.assert_class('value', value, String)
5862
- LocalizedPriceKey.ALL.find { |v| v.value == value }
5863
- end
5864
-
5865
- def LocalizedPriceKey.ALL
5866
- @@all ||= [LocalizedPriceKey.price, LocalizedPriceKey.subtotal, LocalizedPriceKey.vat, LocalizedPriceKey.duty, LocalizedPriceKey.discount, LocalizedPriceKey.shipping, LocalizedPriceKey.total]
5867
- end
5868
-
5869
- # The calculated price, taking into account pricing settings. For example, if
5870
- # vat is set to be included in the price, this value will be equal to subtotal +
5871
- # vat, rounded per the settings. This is the price you should lead with when
5872
- # displaying to consumers
5873
- def LocalizedPriceKey.price
5874
- @@_price ||= LocalizedPriceKey.new('price')
5875
- end
5876
-
5877
- def LocalizedPriceKey.subtotal
5878
- @@_subtotal ||= LocalizedPriceKey.new('subtotal')
5879
- end
5880
-
5881
- def LocalizedPriceKey.vat
5882
- @@_vat ||= LocalizedPriceKey.new('vat')
5883
- end
5884
-
5885
- def LocalizedPriceKey.duty
5886
- @@_duty ||= LocalizedPriceKey.new('duty')
5887
- end
5888
-
5889
- def LocalizedPriceKey.discount
5890
- @@_discount ||= LocalizedPriceKey.new('discount')
5891
- end
5892
-
5893
- def LocalizedPriceKey.shipping
5894
- @@_shipping ||= LocalizedPriceKey.new('shipping')
5895
- end
5896
-
5897
- def LocalizedPriceKey.total
5898
- @@_total ||= LocalizedPriceKey.new('total')
5899
- end
5900
-
5901
- def to_hash
5902
- value
5903
- end
5904
-
5905
- end
5906
-
5907
- class LocalizedPriceNoteKey
5908
-
5909
- attr_reader :value
5910
-
5911
- def initialize(value)
5912
- @value = HttpClient::Preconditions.assert_class('value', value, String)
5913
- end
5914
-
5915
- # Returns the instance of LocalizedPriceNoteKey for this value, creating a new instance for an unknown value
5916
- def LocalizedPriceNoteKey.apply(value)
5917
- if value.instance_of?(LocalizedPriceNoteKey)
5918
- value
5919
- else
5920
- HttpClient::Preconditions.assert_class_or_nil('value', value, String)
5921
- value.nil? ? nil : (from_string(value) || LocalizedPriceNoteKey.new(value))
5922
- end
5923
- end
5924
-
5925
- # Returns the instance of LocalizedPriceNoteKey for this value, or nil if not found
5926
- def LocalizedPriceNoteKey.from_string(value)
5927
- HttpClient::Preconditions.assert_class('value', value, String)
5928
- LocalizedPriceNoteKey.ALL.find { |v| v.value == value }
5929
- end
5930
-
5931
- def LocalizedPriceNoteKey.ALL
5932
- @@all ||= [LocalizedPriceNoteKey.duty_included, LocalizedPriceNoteKey.vat_included, LocalizedPriceNoteKey.vat_and_duty_included]
5933
- end
5934
-
5935
- def LocalizedPriceNoteKey.duty_included
5936
- @@_duty_included ||= LocalizedPriceNoteKey.new('duty_included')
5937
- end
5938
-
5939
- def LocalizedPriceNoteKey.vat_included
5940
- @@_vat_included ||= LocalizedPriceNoteKey.new('vat_included')
5941
- end
5942
-
5943
- def LocalizedPriceNoteKey.vat_and_duty_included
5944
- @@_vat_and_duty_included ||= LocalizedPriceNoteKey.new('vat_and_duty_included')
5945
- end
5946
-
5947
- def to_hash
5948
- value
5949
- end
5950
-
5951
- end
5952
-
5953
5953
  class MarginType
5954
5954
 
5955
5955
  attr_reader :value
@@ -11707,6 +11707,34 @@ module Io
11707
11707
 
11708
11708
  end
11709
11709
 
11710
+ class IncludedLevies
11711
+
11712
+ attr_reader :key, :label
11713
+
11714
+ def initialize(incoming={})
11715
+ opts = HttpClient::Helper.symbolize_keys(incoming)
11716
+ HttpClient::Preconditions.require_keys(opts, [:key, :label], 'IncludedLevies')
11717
+ @key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::IncludedLevyKey) ? x : ::Io::Flow::V0::Models::IncludedLevyKey.apply(x))
11718
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
11719
+ end
11720
+
11721
+ def to_json
11722
+ JSON.dump(to_hash)
11723
+ end
11724
+
11725
+ def copy(incoming={})
11726
+ IncludedLevies.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
11727
+ end
11728
+
11729
+ def to_hash
11730
+ {
11731
+ :key => key.value,
11732
+ :label => label
11733
+ }
11734
+ end
11735
+
11736
+ end
11737
+
11710
11738
  # Enables backorders, setting an optional number of units that we allow for
11711
11739
  # backorder. For example, a backorder w/ quantity 10 will enable selling until
11712
11740
  # the actual inventory quantity is -10.
@@ -12990,7 +13018,7 @@ module Io
12990
13018
  opts = HttpClient::Helper.symbolize_keys(incoming)
12991
13019
  HttpClient::Preconditions.require_keys(opts, [:experience, :prices, :rates, :spot_rates], 'Local')
12992
13020
  @experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceSummary) ? x : ::Io::Flow::V0::Models::ExperienceSummary.new(x))
12993
- @prices = HttpClient::Preconditions.assert_class('prices', opts.delete(:prices), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LocalizedPrice) ? x : ::Io::Flow::V0::Models::LocalizedPrice.new(x)) }
13021
+ @prices = HttpClient::Preconditions.assert_class('prices', opts.delete(:prices), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LocalizedPrice) ? x : ::Io::Flow::V0::Models::LocalizedPrice.from_json(x)) }
12994
13022
  @rates = HttpClient::Preconditions.assert_class('rates', opts.delete(:rates), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Rate) ? x : ::Io::Flow::V0::Models::Rate.new(x)) }
12995
13023
  @spot_rates = HttpClient::Preconditions.assert_class('spot_rates', opts.delete(:spot_rates), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::SpotRate) ? x : ::Io::Flow::V0::Models::SpotRate.new(x)) }
12996
13024
  @status = (x = (x = opts.delete(:status); x.nil? ? "included" : x); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
@@ -13079,6 +13107,74 @@ module Io
13079
13107
 
13080
13108
  end
13081
13109
 
13110
+ class LocalizedItemDuty < LocalizedPrice
13111
+
13112
+ attr_reader :currency, :amount, :label, :base
13113
+
13114
+ def initialize(incoming={})
13115
+ super(:name => LocalizedPrice::Types::LOCALIZED_ITEM_DUTY)
13116
+ opts = HttpClient::Helper.symbolize_keys(incoming)
13117
+ HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base], 'LocalizedItemDuty')
13118
+ @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
13119
+ @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric)
13120
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
13121
+ @base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
13122
+ end
13123
+
13124
+ def to_json
13125
+ JSON.dump(to_hash)
13126
+ end
13127
+
13128
+ def copy(incoming={})
13129
+ LocalizedItemDuty.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
13130
+ end
13131
+
13132
+ def subtype_to_hash
13133
+ {
13134
+ :currency => currency,
13135
+ :amount => amount,
13136
+ :label => label,
13137
+ :base => base.to_hash
13138
+ }
13139
+ end
13140
+
13141
+ end
13142
+
13143
+ class LocalizedItemPrice < LocalizedPrice
13144
+
13145
+ attr_reader :currency, :amount, :label, :base, :includes
13146
+
13147
+ def initialize(incoming={})
13148
+ super(:name => LocalizedPrice::Types::LOCALIZED_ITEM_PRICE)
13149
+ opts = HttpClient::Helper.symbolize_keys(incoming)
13150
+ HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base], 'LocalizedItemPrice')
13151
+ @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
13152
+ @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric)
13153
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
13154
+ @base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
13155
+ @includes = (x = opts.delete(:includes); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::IncludedLevies) ? x : ::Io::Flow::V0::Models::IncludedLevies.new(x)))
13156
+ end
13157
+
13158
+ def to_json
13159
+ JSON.dump(to_hash)
13160
+ end
13161
+
13162
+ def copy(incoming={})
13163
+ LocalizedItemPrice.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
13164
+ end
13165
+
13166
+ def subtype_to_hash
13167
+ {
13168
+ :currency => currency,
13169
+ :amount => amount,
13170
+ :label => label,
13171
+ :base => base.to_hash,
13172
+ :includes => includes.nil? ? nil : includes.to_hash
13173
+ }
13174
+ end
13175
+
13176
+ end
13177
+
13082
13178
  class LocalizedItemSnapshot < Event
13083
13179
 
13084
13180
  attr_reader :event_id, :timestamp, :organization, :subcatalog_id, :url
@@ -13169,6 +13265,41 @@ module Io
13169
13265
 
13170
13266
  end
13171
13267
 
13268
+ class LocalizedItemVat < LocalizedPrice
13269
+
13270
+ attr_reader :currency, :amount, :label, :base, :name
13271
+
13272
+ def initialize(incoming={})
13273
+ super(:name => LocalizedPrice::Types::LOCALIZED_ITEM_VAT)
13274
+ opts = HttpClient::Helper.symbolize_keys(incoming)
13275
+ HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base, :name], 'LocalizedItemVat')
13276
+ @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
13277
+ @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric)
13278
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
13279
+ @base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
13280
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
13281
+ end
13282
+
13283
+ def to_json
13284
+ JSON.dump(to_hash)
13285
+ end
13286
+
13287
+ def copy(incoming={})
13288
+ LocalizedItemVat.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
13289
+ end
13290
+
13291
+ def subtype_to_hash
13292
+ {
13293
+ :currency => currency,
13294
+ :amount => amount,
13295
+ :label => label,
13296
+ :base => base.to_hash,
13297
+ :name => name
13298
+ }
13299
+ end
13300
+
13301
+ end
13302
+
13172
13303
  # Line items on the order, with localized pricing information
13173
13304
  class LocalizedLineItem
13174
13305
 
@@ -13210,19 +13341,18 @@ module Io
13210
13341
 
13211
13342
  end
13212
13343
 
13213
- class LocalizedPrice
13344
+ class LocalizedTotal < LocalizedPrice
13214
13345
 
13215
- attr_reader :key, :currency, :amount, :label, :base, :note
13346
+ attr_reader :currency, :amount, :label, :base
13216
13347
 
13217
13348
  def initialize(incoming={})
13349
+ super(:name => LocalizedPrice::Types::LOCALIZED_TOTAL)
13218
13350
  opts = HttpClient::Helper.symbolize_keys(incoming)
13219
- HttpClient::Preconditions.require_keys(opts, [:key, :currency, :amount, :label, :base], 'LocalizedPrice')
13220
- @key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::LocalizedPriceKey) ? x : ::Io::Flow::V0::Models::LocalizedPriceKey.apply(x))
13351
+ HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base], 'LocalizedTotal')
13221
13352
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
13222
13353
  @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric)
13223
13354
  @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
13224
13355
  @base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
13225
- @note = (x = opts.delete(:note); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedPriceNote) ? x : ::Io::Flow::V0::Models::LocalizedPriceNote.new(x)))
13226
13356
  end
13227
13357
 
13228
13358
  def to_json
@@ -13230,45 +13360,15 @@ module Io
13230
13360
  end
13231
13361
 
13232
13362
  def copy(incoming={})
13233
- LocalizedPrice.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
13363
+ LocalizedTotal.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
13234
13364
  end
13235
13365
 
13236
- def to_hash
13366
+ def subtype_to_hash
13237
13367
  {
13238
- :key => key.value,
13239
13368
  :currency => currency,
13240
13369
  :amount => amount,
13241
13370
  :label => label,
13242
- :base => base.to_hash,
13243
- :note => note.nil? ? nil : note.to_hash
13244
- }
13245
- end
13246
-
13247
- end
13248
-
13249
- class LocalizedPriceNote
13250
-
13251
- attr_reader :key, :label
13252
-
13253
- def initialize(incoming={})
13254
- opts = HttpClient::Helper.symbolize_keys(incoming)
13255
- HttpClient::Preconditions.require_keys(opts, [:key, :label], 'LocalizedPriceNote')
13256
- @key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::LocalizedPriceNoteKey) ? x : ::Io::Flow::V0::Models::LocalizedPriceNoteKey.apply(x))
13257
- @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
13258
- end
13259
-
13260
- def to_json
13261
- JSON.dump(to_hash)
13262
- end
13263
-
13264
- def copy(incoming={})
13265
- LocalizedPriceNote.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
13266
- end
13267
-
13268
- def to_hash
13269
- {
13270
- :key => key.value,
13271
- :label => label
13371
+ :base => base.to_hash
13272
13372
  }
13273
13373
  end
13274
13374
 
@@ -13731,7 +13831,7 @@ module Io
13731
13831
  @deliveries = HttpClient::Preconditions.assert_class('deliveries', opts.delete(:deliveries), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Delivery) ? x : ::Io::Flow::V0::Models::Delivery.new(x)) }
13732
13832
  @selections = HttpClient::Preconditions.assert_class('selections', opts.delete(:selections), Array).map { |v| HttpClient::Preconditions.assert_class('selections', v, String) }
13733
13833
  @prices = HttpClient::Preconditions.assert_class('prices', opts.delete(:prices), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OrderPriceDetail) ? x : ::Io::Flow::V0::Models::OrderPriceDetail.new(x)) }
13734
- @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::LocalizedPrice) ? x : ::Io::Flow::V0::Models::LocalizedPrice.new(x))
13834
+ @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::LocalizedTotal) ? x : ::Io::Flow::V0::Models::LocalizedTotal.new(x))
13735
13835
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
13736
13836
  end
13737
13837
 
@@ -13906,7 +14006,7 @@ module Io
13906
14006
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x))
13907
14007
  @deliveries = HttpClient::Preconditions.assert_class('deliveries', opts.delete(:deliveries), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryEstimate) ? x : ::Io::Flow::V0::Models::DeliveryEstimate.new(x)) }
13908
14008
  @prices = HttpClient::Preconditions.assert_class('prices', opts.delete(:prices), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OrderPriceDetail) ? x : ::Io::Flow::V0::Models::OrderPriceDetail.new(x)) }
13909
- @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::LocalizedPrice) ? x : ::Io::Flow::V0::Models::LocalizedPrice.new(x))
14009
+ @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::LocalizedTotal) ? x : ::Io::Flow::V0::Models::LocalizedTotal.new(x))
13910
14010
  end
13911
14011
 
13912
14012
  def to_json
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.84
4
+ version: 0.0.85
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-10 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json