flowcommerce 0.0.82 → 0.0.83

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: bf2343f91dfda8224a5500465347386eb4e09d7d
4
- data.tar.gz: a09b216f966c3f9cc63f198f60fa677d60b3d2f1
3
+ metadata.gz: 0f0c8f0a23b610e8846d5443f5bf87445904aded
4
+ data.tar.gz: 30ee74eda91a5c46ff9ea6cdf1bf0b4920df27a9
5
5
  SHA512:
6
- metadata.gz: b5d98730a374c2805f8af3ab17b49ded17f5070ea739a763bb76227ae98d9e6cbb2b0c01d5548a4ccf6820ccca841df742fc6d7315c97d2469ed6093a19ddc0c
7
- data.tar.gz: ba04f052ccdd918c1b418feddaf5f7e2b007f1ce7ed0b22c3161958cd2d3319ffc40b77078b59e95bc7e3e0bfb40c041d08985e68af7fd1709c6940607bf0337
6
+ metadata.gz: 10e2bb5f51bfd7ef354223d8d2064417a454698b171fbeb7dbb6b733468e92a6b5e60556f6dab4669725a349c884f370f3be67c710f2a5b828746247d002a6a2
7
+ data.tar.gz: 10f6bad292669b48f719bf358d414db01ea1bd06cb03a9d37a405b2a210e2339dae7480286b66880c4f433c52a894268e1274b6673f5bdb9ce4013c771e10674
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.1.77
3
- # apidoc:0.11.42 http://www.apidoc.me/flow/api/0.1.89/ruby_client
3
+ # apidoc:0.11.45 http://www.apidoc.me/flow/api/0.1.90/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.42 http://www.apidoc.me/flow/api/0.1.89/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.45 http://www.apidoc.me/flow/api/0.1.90/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
 
@@ -125,10 +125,6 @@ module Io
125
125
  @spot_rates ||= ::Io::Flow::V0::Clients::SpotRates.new(self)
126
126
  end
127
127
 
128
- def duties
129
- @duties ||= ::Io::Flow::V0::Clients::Duties.new(self)
130
- end
131
-
132
128
  def harmonization_settings
133
129
  @harmonization_settings ||= ::Io::Flow::V0::Clients::HarmonizationSettings.new(self)
134
130
  end
@@ -157,10 +153,6 @@ module Io
157
153
  @hs6 ||= ::Io::Flow::V0::Clients::Hs6.new(self)
158
154
  end
159
155
 
160
- def taxes
161
- @taxes ||= ::Io::Flow::V0::Clients::Taxes.new(self)
162
- end
163
-
164
156
  def authorizations
165
157
  @authorizations ||= ::Io::Flow::V0::Clients::Authorizations.new(self)
166
158
  end
@@ -1601,27 +1593,6 @@ module Io
1601
1593
 
1602
1594
  end
1603
1595
 
1604
- class Duties
1605
-
1606
- def initialize(client)
1607
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
1608
- end
1609
-
1610
- def get(organization, origin, incoming={})
1611
- HttpClient::Preconditions.assert_class('organization', organization, String)
1612
- HttpClient::Preconditions.assert_class('origin', origin, String)
1613
- opts = HttpClient::Helper.symbolize_keys(incoming)
1614
- query = {
1615
- :number => HttpClient::Preconditions.assert_class('number', opts.delete(:number), String),
1616
- :address => (x = opts.delete(:address); x.nil? ? nil : HttpClient::Preconditions.assert_class('address', x, String)),
1617
- :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
1618
- }.delete_if { |k, v| v.nil? }
1619
- r = @client.request("/#{CGI.escape(organization)}/harmonization/duties/#{CGI.escape(origin)}").with_query(query).get
1620
- ::Io::Flow::V0::Models::Duty.new(r)
1621
- end
1622
-
1623
- end
1624
-
1625
1596
  class HarmonizationSettings
1626
1597
 
1627
1598
  def initialize(client)
@@ -1888,25 +1859,6 @@ module Io
1888
1859
 
1889
1860
  end
1890
1861
 
1891
- class Taxes
1892
-
1893
- def initialize(client)
1894
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
1895
- end
1896
-
1897
- def get(organization, incoming={})
1898
- HttpClient::Preconditions.assert_class('organization', organization, String)
1899
- opts = HttpClient::Helper.symbolize_keys(incoming)
1900
- query = {
1901
- :address => (x = opts.delete(:address); x.nil? ? nil : HttpClient::Preconditions.assert_class('address', x, String)),
1902
- :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
1903
- }.delete_if { |k, v| v.nil? }
1904
- r = @client.request("/#{CGI.escape(organization)}/harmonization/taxes").with_query(query).get
1905
- ::Io::Flow::V0::Models::Tax.new(r)
1906
- end
1907
-
1908
- end
1909
-
1910
1862
  class Authorizations
1911
1863
 
1912
1864
  def initialize(client)
@@ -13891,7 +13843,7 @@ module Io
13891
13843
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LocalizedLineItem) ? x : ::Io::Flow::V0::Models::LocalizedLineItem.new(x)) }
13892
13844
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x))
13893
13845
  @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)) }
13894
- @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)) }
13846
+ @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)) }
13895
13847
  @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::LocalizedPrice) ? x : ::Io::Flow::V0::Models::LocalizedPrice.new(x))
13896
13848
  end
13897
13849
 
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.82
4
+ version: 0.0.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.