flowcommerce 0.2.56 → 0.2.57

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: 5410773dcc9c44735b9fbaf28e1cdb74bb4a42f9
4
- data.tar.gz: fd762e3c07cb8136a8dda6a844afda23f26ca4f0
3
+ metadata.gz: a7bf788a833422039be7655fa9568880b32fe9e9
4
+ data.tar.gz: ecaaac14d46918648d8439a1bd7e5648a12ebde1
5
5
  SHA512:
6
- metadata.gz: d5f0013cbc3b661a0075d3176c04b49923cc77b04de23e3d9c3524a51bfff935a8a175cf2d725895ad203aeeda80b88bad50b13946fd80336e6eb365cbb73221
7
- data.tar.gz: e48e162c1d470b3316e0d7e8dad851b93555d8c6f25b2b05fbb20cce6ae12d2242160cf986641d2c8a3d428d8f850526b0895b9416b832e9fd6ed2e87498f16a
6
+ metadata.gz: 654bb9471a2acd4e70c0016ddd8cb9aaa69921f206f486a2a1b016e29094aa6c438c77b313183f140b6b2c6ef9ee39731d57f135d0c90b999ced96c2cb776b30
7
+ data.tar.gz: 594baffc88d16b039cb594957c7b86353caf7adceffca29f18a6b96b5aee406a9b7801aa94da0d4a535fadcce82b98381e8adb841baa2a173b48f3b950bfc0d2
@@ -1,6 +1,6 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.4.96
3
- # apibuilder 0.14.3 app.apibuilder.io/flow/api/0.4.95/ruby_client
2
+ # Service version: 0.4.99
3
+ # apibuilder 0.14.3 app.apibuilder.io/flow/api/0.4.99/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.95/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.4.96' unless defined?(Constants::VERSION)
28
+ USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.4.99/ruby_client' unless defined?(Constants::USER_AGENT)
29
+ VERSION = '0.4.99' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -10918,7 +10918,7 @@ module Io
10918
10918
  end
10919
10919
 
10920
10920
  def OrderErrorCode.ALL
10921
- @@all ||= [OrderErrorCode.generic_error, OrderErrorCode.order_item_not_available, OrderErrorCode.order_identifier_error, OrderErrorCode.authorization_invalid, OrderErrorCode.domestic_shipping_unavailable, OrderErrorCode.value_threshold_exceeded]
10921
+ @@all ||= [OrderErrorCode.generic_error, OrderErrorCode.order_item_not_available, OrderErrorCode.order_identifier_error, OrderErrorCode.authorization_invalid, OrderErrorCode.domestic_shipping_unavailable, OrderErrorCode.value_threshold_exceeded, OrderErrorCode.invalid_currency, OrderErrorCode.invalid_country, OrderErrorCode.invalid_region, OrderErrorCode.invalid_language]
10922
10922
  end
10923
10923
 
10924
10924
  def OrderErrorCode.generic_error
@@ -10959,6 +10959,26 @@ module Io
10959
10959
  @@_value_threshold_exceeded ||= OrderErrorCode.new('value_threshold_exceeded')
10960
10960
  end
10961
10961
 
10962
+ # Indicates that the specified currency code is not valid
10963
+ def OrderErrorCode.invalid_currency
10964
+ @@_invalid_currency ||= OrderErrorCode.new('invalid_currency')
10965
+ end
10966
+
10967
+ # Indicates that the specified country code is not valid
10968
+ def OrderErrorCode.invalid_country
10969
+ @@_invalid_country ||= OrderErrorCode.new('invalid_country')
10970
+ end
10971
+
10972
+ # Indicates that the specified region code is not valid
10973
+ def OrderErrorCode.invalid_region
10974
+ @@_invalid_region ||= OrderErrorCode.new('invalid_region')
10975
+ end
10976
+
10977
+ # Indicates that the specified language code is not valid
10978
+ def OrderErrorCode.invalid_language
10979
+ @@_invalid_language ||= OrderErrorCode.new('invalid_language')
10980
+ end
10981
+
10962
10982
  def to_hash
10963
10983
  value
10964
10984
  end
@@ -20189,13 +20209,16 @@ module Io
20189
20209
  # items going to a specific destination country
20190
20210
  class HarmonizedLandedCostForm
20191
20211
 
20192
- attr_reader :address, :item_numbers
20212
+ attr_reader :address, :item_numbers, :source_address, :order_number, :submitted
20193
20213
 
20194
20214
  def initialize(incoming={})
20195
20215
  opts = HttpClient::Helper.symbolize_keys(incoming)
20196
20216
  HttpClient::Preconditions.require_keys(opts, [:address, :item_numbers], 'HarmonizedLandedCostForm')
20197
20217
  @address = (x = opts.delete(:address); x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x))
20198
20218
  @item_numbers = HttpClient::Preconditions.assert_class('item_numbers', opts.delete(:item_numbers), Array).map { |v| HttpClient::Preconditions.assert_class('item_numbers', v, String) }
20219
+ @source_address = (x = opts.delete(:source_address); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x)))
20220
+ @order_number = (x = opts.delete(:order_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('order_number', x, String))
20221
+ @submitted = (x = opts.delete(:submitted); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('submitted', x))
20199
20222
  end
20200
20223
 
20201
20224
  def to_json
@@ -20209,7 +20232,10 @@ module Io
20209
20232
  def to_hash
20210
20233
  {
20211
20234
  :address => address.to_hash,
20212
- :item_numbers => item_numbers
20235
+ :item_numbers => item_numbers,
20236
+ :source_address => source_address.nil? ? nil : source_address.to_hash,
20237
+ :order_number => order_number,
20238
+ :submitted => submitted
20213
20239
  }
20214
20240
  end
20215
20241
 
@@ -30196,9 +30222,9 @@ module Io
30196
30222
 
30197
30223
  def initialize(incoming={})
30198
30224
  opts = HttpClient::Helper.symbolize_keys(incoming)
30199
- HttpClient::Preconditions.require_keys(opts, [:key, :variant], 'SessionExperiment')
30225
+ HttpClient::Preconditions.require_keys(opts, [:key], 'SessionExperiment')
30200
30226
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
30201
- @variant = (x = opts.delete(:variant); x.is_a?(::Io::Flow::V0::Models::SessionExperimentVariant) ? x : ::Io::Flow::V0::Models::SessionExperimentVariant.new(x))
30227
+ @variant = (x = opts.delete(:variant); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::SessionExperimentVariant) ? x : ::Io::Flow::V0::Models::SessionExperimentVariant.new(x)))
30202
30228
  end
30203
30229
 
30204
30230
  def to_json
@@ -30212,7 +30238,7 @@ module Io
30212
30238
  def to_hash
30213
30239
  {
30214
30240
  :key => key,
30215
- :variant => variant.to_hash
30241
+ :variant => variant.nil? ? nil : variant.to_hash
30216
30242
  }
30217
30243
  end
30218
30244
 
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.56
4
+ version: 0.2.57
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-14 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json