flowcommerce 0.0.59 → 0.0.60

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: 3794f05e0d2473671a65820cc28f49afd591ad42
4
- data.tar.gz: 06918bbfe15e9803c8f47c722e8fa6fc7c84374b
3
+ metadata.gz: cef13d58f13948c2a59e5d3792312e4c19dd57e2
4
+ data.tar.gz: e8bc8ef954e5d213b34ecf2de75b27d8ef40178f
5
5
  SHA512:
6
- metadata.gz: aa155675177ca6a535eada634e693874c41799957dc2b8c7e9f853c1e7f80b2b0ac58771776c1a97023232ac002118d4bf9825e4fcd9e9c83dfdf2a619740ec5
7
- data.tar.gz: d13e65efa455ac8f64376b8d5b82846b7bee17257b222f3174c2c8eb1ab9b3f3f3ceb4bf68ca047ee2028848c6d52bb58d02005311f2cff84d8d59ea7fd5d4a0
6
+ metadata.gz: cabd731ab277566519946fc737473c2093814f42d1b4ea42c18e42b46cf292c8fa132acc1eed1cf7e22bad2f53b63034a4d9ddf75c54997cd2c0ce32bc43d988
7
+ data.tar.gz: a02dae80f3b4ab3f8eb476cafdab0f369e50868423df151cab577e80a1891b4c6e3f8da6746b5f5c7aa81d6b03f08c3ae8131e6411173d3858faf847cb4c188d
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.1.59
3
- # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.58/ruby_client
3
+ # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.59/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.37 http://www.apidoc.me/flow/api/0.1.58/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.59/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.1.59' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -12231,7 +12231,7 @@ module Io
12231
12231
  # Line items on the order, with localized pricing information
12232
12232
  class LocalizedLineItem
12233
12233
 
12234
- attr_reader :number, :quantity, :center, :price, :discount, :local
12234
+ attr_reader :number, :quantity, :center, :price, :discount, :attributes, :local
12235
12235
 
12236
12236
  def initialize(incoming={})
12237
12237
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -12241,6 +12241,7 @@ module Io
12241
12241
  @center = (x = opts.delete(:center); x.nil? ? nil : HttpClient::Preconditions.assert_class('center', x, String))
12242
12242
  @price = (x = opts.delete(:price); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Money) ? x : ::Io::Flow::V0::Models::Money.new(x)))
12243
12243
  @discount = (x = opts.delete(:discount); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Money) ? x : ::Io::Flow::V0::Models::Money.new(x)))
12244
+ @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
12244
12245
  @local = (x = opts.delete(:local); x.is_a?(::Io::Flow::V0::Models::Local) ? x : ::Io::Flow::V0::Models::Local.new(x))
12245
12246
  end
12246
12247
 
@@ -12259,6 +12260,7 @@ module Io
12259
12260
  :center => center,
12260
12261
  :price => price.nil? ? nil : price.to_hash,
12261
12262
  :discount => discount.nil? ? nil : discount.to_hash,
12263
+ :attributes => attributes.nil? ? nil : attributes,
12262
12264
  :local => local.to_hash
12263
12265
  }
12264
12266
  end
@@ -12865,7 +12867,7 @@ module Io
12865
12867
  opts = HttpClient::Helper.symbolize_keys(incoming)
12866
12868
  HttpClient::Preconditions.require_keys(opts, [:destination, :items], 'OrderEstimateForm')
12867
12869
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x))
12868
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
12870
+ @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)) }
12869
12871
  end
12870
12872
 
12871
12873
  def to_json
@@ -13037,16 +13039,17 @@ module Io
13037
13039
  # pricing and delivery options for destination and items/quantities specified.
13038
13040
  class OrderPutForm
13039
13041
 
13040
- attr_reader :customer, :destination, :items, :selections, :discount
13042
+ attr_reader :customer, :destination, :items, :selections, :discount, :attributes
13041
13043
 
13042
13044
  def initialize(incoming={})
13043
13045
  opts = HttpClient::Helper.symbolize_keys(incoming)
13044
13046
  HttpClient::Preconditions.require_keys(opts, [:customer, :destination, :items], 'OrderPutForm')
13045
13047
  @customer = (x = opts.delete(:customer); x.is_a?(::Io::Flow::V0::Models::Customer) ? x : ::Io::Flow::V0::Models::Customer.new(x))
13046
13048
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x))
13047
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
13049
+ @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)) }
13048
13050
  @selections = (x = opts.delete(:selections); x.nil? ? nil : HttpClient::Preconditions.assert_class('selections', x, Array).map { |v| HttpClient::Preconditions.assert_class('selections', v, String) })
13049
13051
  @discount = (x = opts.delete(:discount); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Money) ? x : ::Io::Flow::V0::Models::Money.new(x)))
13052
+ @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
13050
13053
  end
13051
13054
 
13052
13055
  def to_json
@@ -13063,7 +13066,8 @@ module Io
13063
13066
  :destination => destination.to_hash,
13064
13067
  :items => items.map { |o| o.to_hash },
13065
13068
  :selections => selections.nil? ? nil : selections,
13066
- :discount => discount.nil? ? nil : discount.to_hash
13069
+ :discount => discount.nil? ? nil : discount.to_hash,
13070
+ :attributes => attributes.nil? ? nil : attributes
13067
13071
  }
13068
13072
  end
13069
13073
 
@@ -14142,7 +14146,7 @@ module Io
14142
14146
  HttpClient::Preconditions.require_keys(opts, [:destination, :experience, :items], 'QuoteEstimateForm')
14143
14147
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x))
14144
14148
  @experience = HttpClient::Preconditions.assert_class('experience', opts.delete(:experience), String)
14145
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
14149
+ @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)) }
14146
14150
  end
14147
14151
 
14148
14152
  def to_json
@@ -14172,7 +14176,7 @@ module Io
14172
14176
  HttpClient::Preconditions.require_keys(opts, [:destination, :experience, :items], 'QuoteForm')
14173
14177
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
14174
14178
  @experience = HttpClient::Preconditions.assert_class('experience', opts.delete(:experience), String)
14175
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
14179
+ @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)) }
14176
14180
  end
14177
14181
 
14178
14182
  def to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.59
4
+ version: 0.0.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.