flowcommerce 0.2.82 → 0.2.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
- SHA1:
3
- metadata.gz: d4aec1af1549e7676afef9e8af577a559c8f25f7
4
- data.tar.gz: ea29719c4e347443b5d22195bbb5f40de6bac680
2
+ SHA256:
3
+ metadata.gz: dbe752bf473bf5aa658c1e78d5a9b5275ab29b85a39d8072902fd4d7cd04241f
4
+ data.tar.gz: 7670b1162a4de42bccd92eb56e1dc8a54573425c5087b728e00a95c6d9799feb
5
5
  SHA512:
6
- metadata.gz: 904fcdf22f519d5bb5d1c922ee3e770e45fcdb7d82d9d09289816b2b57b71b72ddbcb1db48cfe8c035213f019fdb64515d1a4874bc9939a86b626ed5c8e87b1d
7
- data.tar.gz: e51d3987b6e4a53e50fc105fec35c04e21bfd99ca2bb55ad15cc5da58f80169fade1bab05c871acb36c16ac39e178b82d7a4df4fb6d89529895c5d748fcfff5d
6
+ metadata.gz: 558fdc64a27ce24867dc0210cae9f995c7f3da7913a8fe62adc378e6f026447002b1be1812bea3a65c24fc52b7b7696ec44182cfac3405cede7aecd57171a58a
7
+ data.tar.gz: 27fc82837987310606c3c48bc9cea30196e1a367c18991bf024edbe99e661d2a6e2fcb46c72dc10a67e81a6aa3b6cd9fae77f850798ad4be30337815aeb67e4f
@@ -1,5 +1,5 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.9.42
2
+ # Service version: 0.9.48
3
3
  # apibuilder 0.15.9 app.apibuilder.io/flow/api/latest/ruby_client
4
4
 
5
5
  require 'cgi'
@@ -26,7 +26,7 @@ module Io
26
26
  BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
27
27
  NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
28
28
  USER_AGENT = 'apibuilder 0.15.9 app.apibuilder.io/flow/api/latest/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.9.42' unless defined?(Constants::VERSION)
29
+ VERSION = '0.9.48' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -2902,6 +2902,18 @@ module Io
2902
2902
  ::Io::Flow::V0::Models::TaxRegistration.new(r)
2903
2903
  end
2904
2904
 
2905
+ def get_details(organization, incoming={})
2906
+ HttpClient::Preconditions.assert_class('organization', organization, String)
2907
+ opts = HttpClient::Helper.symbolize_keys(incoming)
2908
+ query = {
2909
+ :order_number => HttpClient::Preconditions.assert_class('order_number', opts.delete(:order_number), String),
2910
+ :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
2911
+ :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer)
2912
+ }.delete_if { |k, v| v.nil? }
2913
+ r = @client.request("/#{CGI.escape(organization)}/tax/registrations/details").with_query(query).get
2914
+ ::Io::Flow::V0::Models::DetailedTaxRegistration.new(r)
2915
+ end
2916
+
2905
2917
  def put_by_key(organization, key, tax_registration_form)
2906
2918
  HttpClient::Preconditions.assert_class('organization', organization, String)
2907
2919
  HttpClient::Preconditions.assert_class('key', key, String)
@@ -3709,7 +3721,8 @@ module Io
3709
3721
  :service => (x = opts.delete(:service); x.nil? ? nil : HttpClient::Preconditions.assert_class('service', x, String)),
3710
3722
  :item_number => (x = opts.delete(:item_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('item_number', x, Array).map { |v| HttpClient::Preconditions.assert_class('item_number', v, String) }),
3711
3723
  :min_lead_days => (x = opts.delete(:min_lead_days); x.nil? ? nil : HttpClient::Preconditions.assert_class('min_lead_days', x, Integer)),
3712
- :max_lead_days => (x = opts.delete(:max_lead_days); x.nil? ? nil : HttpClient::Preconditions.assert_class('max_lead_days', x, Integer))
3724
+ :max_lead_days => (x = opts.delete(:max_lead_days); x.nil? ? nil : HttpClient::Preconditions.assert_class('max_lead_days', x, Integer)),
3725
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
3713
3726
  }.delete_if { |k, v| v.nil? }
3714
3727
  r = @client.request("/#{CGI.escape(organization)}/delivery-windows/summary").with_query(query).get
3715
3728
  ::Io::Flow::V0::Models::DeliveryWindow.new(r)
@@ -3722,7 +3735,8 @@ module Io
3722
3735
  query = {
3723
3736
  :destination => (x = opts.delete(:destination); x.nil? ? nil : HttpClient::Preconditions.assert_class('destination', x, Array).map { |v| HttpClient::Preconditions.assert_class('destination', v, String) }),
3724
3737
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
3725
- :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer)
3738
+ :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
3739
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
3726
3740
  }.delete_if { |k, v| v.nil? }
3727
3741
  r = @client.request("/#{CGI.escape(organization)}/delivery-windows/summary/all").with_query(query).get
3728
3742
  r.map { |x| ::Io::Flow::V0::Models::DeliveryWindowSummary.new(x) }
@@ -4944,7 +4958,9 @@ module Io
4944
4958
  opts = HttpClient::Helper.symbolize_keys(incoming)
4945
4959
  query = {
4946
4960
  :address => (x = opts.delete(:address); x.nil? ? nil : HttpClient::Preconditions.assert_class('address', x, String)),
4947
- :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
4961
+ :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
4962
+ :country => (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String)),
4963
+ :postal_prefix => (x = opts.delete(:postal_prefix); x.nil? ? nil : HttpClient::Preconditions.assert_class('postal_prefix', x, String))
4948
4964
  }.delete_if { |k, v| v.nil? }
4949
4965
  r = @client.request("/addresses").with_query(query).get
4950
4966
  r.map { |x| ::Io::Flow::V0::Models::Address.new(x) }
@@ -12356,7 +12372,7 @@ module Io
12356
12372
  end
12357
12373
 
12358
12374
  def AttributeIntent.ALL
12359
- @@all ||= [AttributeIntent.brand, AttributeIntent.color, AttributeIntent.countries_of_origin, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability, AttributeIntent.consumer_url, AttributeIntent.gtin, AttributeIntent.mpn, AttributeIntent.facet]
12375
+ @@all ||= [AttributeIntent.brand, AttributeIntent.color, AttributeIntent.countries_of_origin, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability, AttributeIntent.consumer_url, AttributeIntent.gtin, AttributeIntent.mpn, AttributeIntent.facet, AttributeIntent.eccn]
12360
12376
  end
12361
12377
 
12362
12378
  # A brand name of the item (for retailers that sell multiple brands)
@@ -12431,6 +12447,17 @@ module Io
12431
12447
  @@_facet ||= AttributeIntent.new('facet')
12432
12448
  end
12433
12449
 
12450
+ # An Export Control Classification Number (ECCN) is a five-character
12451
+ # alphanumeric key used in the Commerce Control List (CCL) to classify U.S.
12452
+ # exports and determine whether an export license is needed from the Department
12453
+ # of Commerce. If exempt, then EAR99 is used as the item’s ECCN. EAR99 is a
12454
+ # classification that indicates that an item is subject to the Export
12455
+ # Administration Regulations (EAR), but not listed with a specific Export
12456
+ # Control Classification Number (ECCN) on the Commerce Control List (CCL).
12457
+ def AttributeIntent.eccn
12458
+ @@_eccn ||= AttributeIntent.new('eccn')
12459
+ end
12460
+
12434
12461
  def to_hash
12435
12462
  value
12436
12463
  end
@@ -24158,7 +24185,7 @@ module Io
24158
24185
 
24159
24186
  class CardForm
24160
24187
 
24161
- attr_reader :number, :cipher, :expiration_month, :expiration_year, :name, :cvv, :address, :ip, :challenge_text, :challenge_cipher, :token_type, :requested_currency
24188
+ attr_reader :number, :cipher, :expiration_month, :expiration_year, :name, :cvv, :address, :ip, :challenge_text, :challenge_cipher, :token_type, :requested_currency, :metadata
24162
24189
 
24163
24190
  def initialize(incoming={})
24164
24191
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -24175,6 +24202,7 @@ module Io
24175
24202
  @challenge_cipher = (x = opts.delete(:challenge_cipher); x.nil? ? nil : HttpClient::Preconditions.assert_class('challenge_cipher', x, String))
24176
24203
  @token_type = (x = opts.delete(:token_type); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::TokenType) ? x : ::Io::Flow::V0::Models::TokenType.apply(x)))
24177
24204
  @requested_currency = (x = opts.delete(:requested_currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('requested_currency', x, String))
24205
+ @metadata = (x = opts.delete(:metadata); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::CardMetadata) ? x : ::Io::Flow::V0::Models::CardMetadata.new(x)))
24178
24206
  end
24179
24207
 
24180
24208
  def to_json
@@ -24198,7 +24226,33 @@ module Io
24198
24226
  :challenge_text => challenge_text,
24199
24227
  :challenge_cipher => challenge_cipher,
24200
24228
  :token_type => token_type.nil? ? nil : token_type.value,
24201
- :requested_currency => requested_currency
24229
+ :requested_currency => requested_currency,
24230
+ :metadata => metadata.nil? ? nil : metadata.to_hash
24231
+ }
24232
+ end
24233
+
24234
+ end
24235
+
24236
+ class CardMetadata
24237
+
24238
+ attr_reader :merchant_of_record
24239
+
24240
+ def initialize(incoming={})
24241
+ opts = HttpClient::Helper.symbolize_keys(incoming)
24242
+ @merchant_of_record = (x = opts.delete(:merchant_of_record); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrderMerchantOfRecord) ? x : ::Io::Flow::V0::Models::OrderMerchantOfRecord.apply(x)))
24243
+ end
24244
+
24245
+ def to_json
24246
+ JSON.dump(to_hash)
24247
+ end
24248
+
24249
+ def copy(incoming={})
24250
+ CardMetadata.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
24251
+ end
24252
+
24253
+ def to_hash
24254
+ {
24255
+ :merchant_of_record => merchant_of_record.nil? ? nil : merchant_of_record.value
24202
24256
  }
24203
24257
  end
24204
24258
 
@@ -28919,6 +28973,58 @@ module Io
28919
28973
 
28920
28974
  end
28921
28975
 
28976
+ # Result of looking up a specific tax registration number. Includes details of
28977
+ # both the consumer request and the VIES response.
28978
+ class DetailedTaxRegistration
28979
+
28980
+ attr_reader :id, :key, :consumer_company_name, :number, :country, :success, :timestamp, :vies_result, :vies_result_reason, :vies_company_name, :vies_company_address, :company_name_match_result, :company_name_match_result_reason
28981
+
28982
+ def initialize(incoming={})
28983
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28984
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :number, :country, :success, :timestamp, :vies_result, :company_name_match_result], 'DetailedTaxRegistration')
28985
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
28986
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
28987
+ @consumer_company_name = (x = opts.delete(:consumer_company_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('consumer_company_name', x, String))
28988
+ @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
28989
+ @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
28990
+ @success = HttpClient::Preconditions.assert_boolean('success', opts.delete(:success))
28991
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
28992
+ @vies_result = (x = opts.delete(:vies_result); x.is_a?(::Io::Flow::V0::Models::TaxVerificationResult) ? x : ::Io::Flow::V0::Models::TaxVerificationResult.apply(x))
28993
+ @vies_result_reason = (x = opts.delete(:vies_result_reason); x.nil? ? nil : HttpClient::Preconditions.assert_class('vies_result_reason', x, String))
28994
+ @vies_company_name = (x = opts.delete(:vies_company_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('vies_company_name', x, String))
28995
+ @vies_company_address = (x = opts.delete(:vies_company_address); x.nil? ? nil : HttpClient::Preconditions.assert_class('vies_company_address', x, String))
28996
+ @company_name_match_result = (x = opts.delete(:company_name_match_result); x.is_a?(::Io::Flow::V0::Models::TaxVerificationResult) ? x : ::Io::Flow::V0::Models::TaxVerificationResult.apply(x))
28997
+ @company_name_match_result_reason = (x = opts.delete(:company_name_match_result_reason); x.nil? ? nil : HttpClient::Preconditions.assert_class('company_name_match_result_reason', x, String))
28998
+ end
28999
+
29000
+ def to_json
29001
+ JSON.dump(to_hash)
29002
+ end
29003
+
29004
+ def copy(incoming={})
29005
+ DetailedTaxRegistration.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
29006
+ end
29007
+
29008
+ def to_hash
29009
+ {
29010
+ :id => id,
29011
+ :key => key,
29012
+ :consumer_company_name => consumer_company_name,
29013
+ :number => number,
29014
+ :country => country,
29015
+ :success => success,
29016
+ :timestamp => timestamp,
29017
+ :vies_result => vies_result.value,
29018
+ :vies_result_reason => vies_result_reason,
29019
+ :vies_company_name => vies_company_name,
29020
+ :vies_company_address => vies_company_address,
29021
+ :company_name_match_result => company_name_match_result.value,
29022
+ :company_name_match_result_reason => company_name_match_result_reason
29023
+ }
29024
+ end
29025
+
29026
+ end
29027
+
28922
29028
  # Represents a collection of items that are digitally available and do not
28923
29029
  # require a physical shipment
28924
29030
  class DigitalDelivery < Delivery
@@ -33093,12 +33199,11 @@ module Io
33093
33199
 
33094
33200
  class GraphqlResponse
33095
33201
 
33096
- attr_reader :id, :request_id, :data, :errors
33202
+ attr_reader :request_id, :data, :errors
33097
33203
 
33098
33204
  def initialize(incoming={})
33099
33205
  opts = HttpClient::Helper.symbolize_keys(incoming)
33100
- HttpClient::Preconditions.require_keys(opts, [:id, :request_id, :data], 'GraphqlResponse')
33101
- @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
33206
+ HttpClient::Preconditions.require_keys(opts, [:request_id, :data], 'GraphqlResponse')
33102
33207
  @request_id = HttpClient::Preconditions.assert_class('request_id', opts.delete(:request_id), String)
33103
33208
  @data = HttpClient::Preconditions.assert_class('data', HttpClient::Helper.to_object(opts.delete(:data)), Hash)
33104
33209
  @errors = (x = opts.delete(:errors); x.nil? ? nil : HttpClient::Preconditions.assert_class('errors', x, Array).map { |v| HttpClient::Preconditions.assert_class('errors', HttpClient::Helper.to_object(v), Hash) })
@@ -33114,7 +33219,6 @@ module Io
33114
33219
 
33115
33220
  def to_hash
33116
33221
  {
33117
- :id => id,
33118
33222
  :request_id => request_id,
33119
33223
  :data => data,
33120
33224
  :errors => errors.nil? ? nil : errors
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.82
4
+ version: 0.2.83
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: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -54,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubyforge_project:
58
- rubygems_version: 2.5.2.3
57
+ rubygems_version: 3.0.3
59
58
  signing_key:
60
59
  specification_version: 4
61
60
  summary: Native ruby client for the Flow REST API.