flowcommerce 0.0.64 → 0.0.65

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: b885bce15f83e8c20dcab02da0aac46cc7f87885
4
- data.tar.gz: 3177e85579917736811ed4c79ef29b415212b8b8
3
+ metadata.gz: 57e64824a27c24e15217d0b773d4a89a5139158d
4
+ data.tar.gz: 708549e7dd898c07422886c7fa799bbe11828f28
5
5
  SHA512:
6
- metadata.gz: 018e563fe8774673ec69cc4da12db06f62dec077f244fff6b7ad8982e12be2eb0868776f45eea2d11b5ea8df2f626f80631ad8fe2409b6bb783f193350b65c80
7
- data.tar.gz: 8eb063628e4b78ff4338e1e01ec955c769263d35ded8a6401e160997d92d51d73c2ec0fb8f6e70397a636e8bc6c1141f92704ddeabec8b56fbc76c6bbc6ca9f1
6
+ metadata.gz: 04941a47757bad70eabb37cd3060e912981ce29fcc478b0869fd610bc2b1cd9221eafe4ad5a5d9a704688bd6f00aaed059681afc4bfb6c7d94f6fbdc7bfc6ff0
7
+ data.tar.gz: 56d9c53c5ffe4b7aa91593b1d4954593a550db02e55b243c326a46ef52cb482cd2a057044abaddf1362b0501aa54f3228c5564b7c79dcc09af1d0a5cda8c91f4
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
- # Service version: 0.1.59
3
- # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.64/ruby_client
2
+ # Service version: 0.1.66
3
+ # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.66/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 = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.64/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.1.59' unless defined?(Constants::VERSION)
28
+ USER_AGENT = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.66/ruby_client' unless defined?(Constants::USER_AGENT)
29
+ VERSION = '0.1.66' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -7316,15 +7316,16 @@ module Io
7316
7316
  # operation POST /:organization/cards/nonces
7317
7317
  class Card
7318
7318
 
7319
- attr_reader :id, :token, :type, :expiration, :last4, :name, :address
7319
+ attr_reader :id, :token, :type, :expiration, :iin, :last4, :name, :address
7320
7320
 
7321
7321
  def initialize(incoming={})
7322
7322
  opts = HttpClient::Helper.symbolize_keys(incoming)
7323
- HttpClient::Preconditions.require_keys(opts, [:id, :token, :type, :expiration, :last4, :name], 'Card')
7323
+ HttpClient::Preconditions.require_keys(opts, [:id, :token, :type, :expiration, :iin, :last4, :name], 'Card')
7324
7324
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
7325
7325
  @token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String)
7326
7326
  @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::CardType) ? x : ::Io::Flow::V0::Models::CardType.apply(x))
7327
7327
  @expiration = (x = opts.delete(:expiration); x.is_a?(::Io::Flow::V0::Models::Expiration) ? x : ::Io::Flow::V0::Models::Expiration.new(x))
7328
+ @iin = HttpClient::Preconditions.assert_class('iin', opts.delete(:iin), String)
7328
7329
  @last4 = HttpClient::Preconditions.assert_class('last4', opts.delete(:last4), String)
7329
7330
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
7330
7331
  @address = (x = opts.delete(:address); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Address) ? x : ::Io::Flow::V0::Models::Address.new(x)))
@@ -7344,6 +7345,7 @@ module Io
7344
7345
  :token => token,
7345
7346
  :type => type.value,
7346
7347
  :expiration => expiration.to_hash,
7348
+ :iin => iin,
7347
7349
  :last4 => last4,
7348
7350
  :name => name,
7349
7351
  :address => address.nil? ? nil : address.to_hash
@@ -8964,11 +8966,11 @@ module Io
8964
8966
  def initialize(incoming={})
8965
8967
  super(:name => AuthorizationForm::Types::DIRECT_AUTHORIZATION_FORM)
8966
8968
  opts = HttpClient::Helper.symbolize_keys(incoming)
8967
- HttpClient::Preconditions.require_keys(opts, [:token, :amount, :currency, :customer], 'DirectAuthorizationForm')
8969
+ HttpClient::Preconditions.require_keys(opts, [:token, :amount, :currency], 'DirectAuthorizationForm')
8968
8970
  @token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String)
8969
8971
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
8970
8972
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
8971
- @customer = (x = opts.delete(:customer); x.is_a?(::Io::Flow::V0::Models::Customer) ? x : ::Io::Flow::V0::Models::Customer.new(x))
8973
+ @customer = (x = opts.delete(:customer); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Customer) ? x : ::Io::Flow::V0::Models::Customer.new(x)))
8972
8974
  @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
8973
8975
  @cvv = (x = opts.delete(:cvv); x.nil? ? nil : HttpClient::Preconditions.assert_class('cvv', x, String))
8974
8976
  @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 })
@@ -8989,7 +8991,7 @@ module Io
8989
8991
  :token => token,
8990
8992
  :amount => amount,
8991
8993
  :currency => currency,
8992
- :customer => customer.to_hash,
8994
+ :customer => customer.nil? ? nil : customer.to_hash,
8993
8995
  :key => key,
8994
8996
  :cvv => cvv,
8995
8997
  :attributes => attributes.nil? ? nil : attributes,
@@ -14573,7 +14575,7 @@ module Io
14573
14575
  # Represents operating calendar and holidays of a center
14574
14576
  class Schedule
14575
14577
 
14576
- attr_reader :calendar, :holiday, :exception, :cutoff
14578
+ attr_reader :calendar, :holiday, :exception, :cutoff, :min_lead_time, :max_lead_time
14577
14579
 
14578
14580
  def initialize(incoming={})
14579
14581
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -14582,6 +14584,8 @@ module Io
14582
14584
  @holiday = (x = opts.delete(:holiday); x.is_a?(::Io::Flow::V0::Models::HolidayCalendar) ? x : ::Io::Flow::V0::Models::HolidayCalendar.apply(x))
14583
14585
  @exception = HttpClient::Preconditions.assert_class('exception', opts.delete(:exception), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Exception) ? x : ::Io::Flow::V0::Models::Exception.new(x)) }
14584
14586
  @cutoff = (x = opts.delete(:cutoff); x.nil? ? nil : HttpClient::Preconditions.assert_class('cutoff', x, String))
14587
+ @min_lead_time = (x = opts.delete(:min_lead_time); x.nil? ? nil : HttpClient::Preconditions.assert_class('min_lead_time', x, Integer))
14588
+ @max_lead_time = (x = opts.delete(:max_lead_time); x.nil? ? nil : HttpClient::Preconditions.assert_class('max_lead_time', x, Integer))
14585
14589
  end
14586
14590
 
14587
14591
  def to_json
@@ -14597,7 +14601,9 @@ module Io
14597
14601
  :calendar => calendar.nil? ? nil : calendar.value,
14598
14602
  :holiday => holiday.value,
14599
14603
  :exception => exception.map { |o| o.to_hash },
14600
- :cutoff => cutoff
14604
+ :cutoff => cutoff,
14605
+ :min_lead_time => min_lead_time,
14606
+ :max_lead_time => max_lead_time
14601
14607
  }
14602
14608
  end
14603
14609
 
@@ -14723,12 +14729,13 @@ module Io
14723
14729
  # shipper to transport a package from a given origin to destination
14724
14730
  class ShippingLabel
14725
14731
 
14726
- attr_reader :id, :carrier_tracking_number, :zpl, :destination, :flow_tracking_number, :origin, :service, :window, :commercial_invoice, :pdf, :png, :order
14732
+ attr_reader :id, :attributes, :carrier_tracking_number, :zpl, :destination, :flow_tracking_number, :origin, :service, :window, :commercial_invoice, :pdf, :png, :order
14727
14733
 
14728
14734
  def initialize(incoming={})
14729
14735
  opts = HttpClient::Helper.symbolize_keys(incoming)
14730
- HttpClient::Preconditions.require_keys(opts, [:id, :carrier_tracking_number, :zpl, :destination, :flow_tracking_number, :origin, :service, :window], 'ShippingLabel')
14736
+ HttpClient::Preconditions.require_keys(opts, [:id, :attributes, :carrier_tracking_number, :zpl, :destination, :flow_tracking_number, :origin, :service, :window], 'ShippingLabel')
14731
14737
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
14738
+ @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 }
14732
14739
  @carrier_tracking_number = HttpClient::Preconditions.assert_class('carrier_tracking_number', opts.delete(:carrier_tracking_number), String)
14733
14740
  @zpl = HttpClient::Preconditions.assert_class('zpl', opts.delete(:zpl), String)
14734
14741
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
@@ -14753,6 +14760,7 @@ module Io
14753
14760
  def to_hash
14754
14761
  {
14755
14762
  :id => id,
14763
+ :attributes => attributes,
14756
14764
  :carrier_tracking_number => carrier_tracking_number,
14757
14765
  :zpl => zpl,
14758
14766
  :destination => destination.to_hash,
@@ -14771,17 +14779,17 @@ module Io
14771
14779
 
14772
14780
  class ShippingLabelForm
14773
14781
 
14774
- attr_reader :service, :delivered_duty, :destination, :origin, :packages, :insurance, :order_number
14782
+ attr_reader :attributes, :delivered_duty, :service, :destination, :origin, :packages, :order_number
14775
14783
 
14776
14784
  def initialize(incoming={})
14777
14785
  opts = HttpClient::Helper.symbolize_keys(incoming)
14778
- HttpClient::Preconditions.require_keys(opts, [:service, :delivered_duty, :destination, :origin, :packages], 'ShippingLabelForm')
14779
- @service = HttpClient::Preconditions.assert_class('service', opts.delete(:service), String)
14786
+ HttpClient::Preconditions.require_keys(opts, [:delivered_duty, :service, :destination, :origin, :packages], 'ShippingLabelForm')
14787
+ @attributes = HttpClient::Preconditions.assert_class('attributes', (x = opts.delete(:attributes); x.nil? ? {} : x), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
14780
14788
  @delivered_duty = (x = opts.delete(:delivered_duty); x.is_a?(::Io::Flow::V0::Models::DeliveredDuty) ? x : ::Io::Flow::V0::Models::DeliveredDuty.apply(x))
14789
+ @service = HttpClient::Preconditions.assert_class('service', opts.delete(:service), String)
14781
14790
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
14782
14791
  @origin = (x = opts.delete(:origin); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
14783
14792
  @packages = HttpClient::Preconditions.assert_class('packages', opts.delete(:packages), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabelPackage) ? x : ::Io::Flow::V0::Models::ShippingLabelPackage.new(x)) }
14784
- @insurance = (x = opts.delete(:insurance); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x)))
14785
14793
  @order_number = (x = opts.delete(:order_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('order_number', x, String))
14786
14794
  end
14787
14795
 
@@ -14795,12 +14803,12 @@ module Io
14795
14803
 
14796
14804
  def to_hash
14797
14805
  {
14798
- :service => service,
14806
+ :attributes => attributes,
14799
14807
  :delivered_duty => delivered_duty.value,
14808
+ :service => service,
14800
14809
  :destination => destination.to_hash,
14801
14810
  :origin => origin.to_hash,
14802
14811
  :packages => packages.map { |o| o.to_hash },
14803
- :insurance => insurance.nil? ? nil : insurance.to_hash,
14804
14812
  :order_number => order_number
14805
14813
  }
14806
14814
  end
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.64
4
+ version: 0.0.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.