flowcommerce 0.0.71 → 0.0.72.dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0047a5655e50d73ded7eb3193ea13f524fd60afd
4
- data.tar.gz: f3bff5de74c771dddb6ce5c3d16a19233fcd1925
3
+ metadata.gz: a084d179d46410eeb50a4b4f77af1887691b1b8e
4
+ data.tar.gz: 311858a1b1d71684f23f535bdd6d3c6e8ccf7617
5
5
  SHA512:
6
- metadata.gz: d59f7db254ebb7ece8b9604ab867e270f311e3af63ab7796257592dcd2e5e26a0a98c53bf9003a675275972d06f1ec92c0056d4c9b94010b66bd1f9bad1abf20
7
- data.tar.gz: b429f4164e211a54ced06ee031ec6ffb307bdb995312af8f4af11f16030adf120a9a86e46f0aed24ab2de204dcc4d0ee0becc93a75b62d08af1c6fcf66875719
6
+ metadata.gz: eaef04a5441697bf0369a00ca61c91142b0a8c32a9da9424f47ddf4e41d8f8e6ccf29a8663ab7659dc49a79f20f8691d2b3bf1ce872548c9a4ada222dd67e531
7
+ data.tar.gz: 8e2ac807e2b94189401d3d02a38958213a2ad21e5bd2a0494f1a256a10300d6b61b34ac61d8d4890329675c5ca62bec56c0854a06f52a94dab6556cd25a065f9
@@ -1,6 +1,7 @@
1
+ # coding: utf-8
1
2
  # Generated by apidoc - http://www.apidoc.me
2
- # Service version: 0.1.72
3
- # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.75/ruby_client
3
+ # Service version: 0.1.77
4
+ # apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.78/ruby_client
4
5
 
5
6
  require 'cgi'
6
7
  require 'net/http'
@@ -25,8 +26,8 @@ module Io
25
26
 
26
27
  BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
27
28
  NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
28
- USER_AGENT = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.75/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.1.72' unless defined?(Constants::VERSION)
29
+ USER_AGENT = 'apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.78/ruby_client' unless defined?(Constants::USER_AGENT)
30
+ VERSION = '0.1.77' unless defined?(Constants::VERSION)
30
31
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
32
 
32
33
  end
@@ -48,8 +49,10 @@ module Io
48
49
 
49
50
  def request(path=nil)
50
51
  HttpClient::Preconditions.assert_class_or_nil('path', path, String)
52
+ puts "Checkpoint D #{Time.new}"
51
53
  request = HttpClient::Request.new(URI.parse(@url + path.to_s)).with_header('User-Agent', Constants::USER_AGENT).with_header('X-Apidoc-Version', Constants::VERSION).with_header('X-Apidoc-Version-Major', Constants::VERSION_MAJOR)
52
54
 
55
+ puts "Checkpoint E #{Time.new}"
53
56
  @default_headers.each do |key, value|
54
57
  request = request.with_header(key, value)
55
58
  end
@@ -58,6 +61,7 @@ module Io
58
61
  request = request.with_auth(@authorization)
59
62
  end
60
63
 
64
+ puts "Checkpoint F #{Time.new}"
61
65
  request
62
66
  end
63
67
 
@@ -845,7 +849,9 @@ module Io
845
849
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
846
850
  end
847
851
 
848
- # Provides a list of countries that can be shipped to by the organization
852
+ # The countries resources provides a unique list of all of the countries for
853
+ # which an experience exists. We generate this list of countries by iterating
854
+ # through all of the experience regions, and collecting all of the countries.
849
855
  def get(organization)
850
856
  HttpClient::Preconditions.assert_class('organization', organization, String)
851
857
  r = @client.request("/#{CGI.escape(organization)}/countries").get
@@ -2078,8 +2084,12 @@ module Io
2078
2084
  def post_nonces(organization, card_nonce_form)
2079
2085
  HttpClient::Preconditions.assert_class('organization', organization, String)
2080
2086
  HttpClient::Preconditions.assert_class('card_nonce_form', card_nonce_form, ::Io::Flow::V0::Models::CardNonceForm)
2087
+ puts "Checkpoint A #{Time.new}"
2081
2088
  r = @client.request("/#{CGI.escape(organization)}/cards/nonces").with_json(card_nonce_form.to_json).post
2082
- ::Io::Flow::V0::Models::Card.new(r)
2089
+ puts "Checkpoint B #{Time.new}"
2090
+ card = ::Io::Flow::V0::Models::Card.new(r)
2091
+ puts "Checkpoint C #{Time.new}"
2092
+ card
2083
2093
  end
2084
2094
 
2085
2095
  # Provides visibility into recent changes of each object, including deletion
@@ -2584,6 +2594,7 @@ module Io
2584
2594
  opts = HttpClient::Helper.symbolize_keys(incoming)
2585
2595
  query = {
2586
2596
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
2597
+ :key => (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, Array).map { |v| HttpClient::Preconditions.assert_class('key', v, String) }),
2587
2598
  :carrier_tracking_number => (x = opts.delete(:carrier_tracking_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('carrier_tracking_number', x, Array).map { |v| HttpClient::Preconditions.assert_class('carrier_tracking_number', v, String) }),
2588
2599
  :flow_tracking_number => (x = opts.delete(:flow_tracking_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('flow_tracking_number', x, Array).map { |v| HttpClient::Preconditions.assert_class('flow_tracking_number', v, String) }),
2589
2600
  :order_number => (x = opts.delete(:order_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('order_number', x, Array).map { |v| HttpClient::Preconditions.assert_class('order_number', v, String) }),
@@ -2603,25 +2614,25 @@ module Io
2603
2614
  ::Io::Flow::V0::Models::ShippingNotification.new(r)
2604
2615
  end
2605
2616
 
2606
- def get_by_id(organization, id)
2617
+ def get_by_key(organization, key)
2607
2618
  HttpClient::Preconditions.assert_class('organization', organization, String)
2608
- HttpClient::Preconditions.assert_class('id', id, String)
2609
- r = @client.request("/#{CGI.escape(organization)}/shipping-notifications/#{CGI.escape(id)}").get
2619
+ HttpClient::Preconditions.assert_class('key', key, String)
2620
+ r = @client.request("/#{CGI.escape(organization)}/shipping-notifications/#{CGI.escape(key)}").get
2610
2621
  ::Io::Flow::V0::Models::ShippingNotification.new(r)
2611
2622
  end
2612
2623
 
2613
- def put_by_id(organization, id, shipping_notification_form)
2624
+ def put_by_key(organization, key, shipping_notification_form)
2614
2625
  HttpClient::Preconditions.assert_class('organization', organization, String)
2615
- HttpClient::Preconditions.assert_class('id', id, String)
2626
+ HttpClient::Preconditions.assert_class('key', key, String)
2616
2627
  HttpClient::Preconditions.assert_class('shipping_notification_form', shipping_notification_form, ::Io::Flow::V0::Models::ShippingNotificationForm)
2617
- r = @client.request("/#{CGI.escape(organization)}/shipping-notifications/#{CGI.escape(id)}").with_json(shipping_notification_form.to_json).put
2628
+ r = @client.request("/#{CGI.escape(organization)}/shipping-notifications/#{CGI.escape(key)}").with_json(shipping_notification_form.to_json).put
2618
2629
  ::Io::Flow::V0::Models::ShippingNotification.new(r)
2619
2630
  end
2620
2631
 
2621
- def delete_by_id(organization, id)
2632
+ def delete_by_key(organization, key)
2622
2633
  HttpClient::Preconditions.assert_class('organization', organization, String)
2623
- HttpClient::Preconditions.assert_class('id', id, String)
2624
- r = @client.request("/#{CGI.escape(organization)}/shipping-notifications/#{CGI.escape(id)}").delete
2634
+ HttpClient::Preconditions.assert_class('key', key, String)
2635
+ r = @client.request("/#{CGI.escape(organization)}/shipping-notifications/#{CGI.escape(key)}").delete
2625
2636
  nil
2626
2637
  end
2627
2638
 
@@ -2630,7 +2641,7 @@ module Io
2630
2641
  opts = HttpClient::Helper.symbolize_keys(incoming)
2631
2642
  query = {
2632
2643
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
2633
- :notification => (x = opts.delete(:notification); x.nil? ? nil : HttpClient::Preconditions.assert_class('notification', x, Array).map { |v| HttpClient::Preconditions.assert_class('notification', v, String) }),
2644
+ :key => (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, Array).map { |v| HttpClient::Preconditions.assert_class('key', v, String) }),
2634
2645
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
2635
2646
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
2636
2647
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "journal_timestamp" : x), String)
@@ -3702,6 +3713,7 @@ module Io
3702
3713
  query = {
3703
3714
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
3704
3715
  :email => (x = opts.delete(:email); x.nil? ? nil : HttpClient::Preconditions.assert_class('email', x, String)),
3716
+ :status => (x = opts.delete(:status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::UserStatus) ? x : ::Io::Flow::V0::Models::UserStatus.apply(x)).value),
3705
3717
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
3706
3718
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
3707
3719
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "-created_at" : x), String)
@@ -3710,7 +3722,9 @@ module Io
3710
3722
  r.map { |x| ::Io::Flow::V0::Models::User.new(x) }
3711
3723
  end
3712
3724
 
3713
- # Create a new user.
3725
+ # Create a new user. Note that new users will be created with a status of
3726
+ # pending and will not be able to authenticate until approved by a member of
3727
+ # the Flow team.
3714
3728
  def post(user_form)
3715
3729
  HttpClient::Preconditions.assert_class('user_form', user_form, ::Io::Flow::V0::Models::UserForm)
3716
3730
  r = @client.request("/users").with_json(user_form.to_json).post
@@ -3747,7 +3761,8 @@ module Io
3747
3761
  nil
3748
3762
  end
3749
3763
 
3750
- # Authenticates a user by email / password.
3764
+ # Authenticates a user by email / password. Note only users that have a status
3765
+ # of active will be authorized.
3751
3766
  def post_authenticate(authentication_form)
3752
3767
  HttpClient::Preconditions.assert_class('authentication_form', authentication_form, ::Io::Flow::V0::Models::AuthenticationForm)
3753
3768
  r = @client.request("/users/authenticate").with_json(authentication_form.to_json).post
@@ -5993,6 +6008,184 @@ module Io
5993
6008
 
5994
6009
  end
5995
6010
 
6011
+ class PriceDetailComponentKey
6012
+
6013
+ attr_reader :value
6014
+
6015
+ def initialize(value)
6016
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
6017
+ end
6018
+
6019
+ # Returns the instance of PriceDetailComponentKey for this value, creating a new instance for an unknown value
6020
+ def PriceDetailComponentKey.apply(value)
6021
+ if value.instance_of?(PriceDetailComponentKey)
6022
+ value
6023
+ else
6024
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
6025
+ value.nil? ? nil : (from_string(value) || PriceDetailComponentKey.new(value))
6026
+ end
6027
+ end
6028
+
6029
+ # Returns the instance of PriceDetailComponentKey for this value, or nil if not found
6030
+ def PriceDetailComponentKey.from_string(value)
6031
+ HttpClient::Preconditions.assert_class('value', value, String)
6032
+ PriceDetailComponentKey.ALL.find { |v| v.value == value }
6033
+ end
6034
+
6035
+ def PriceDetailComponentKey.ALL
6036
+ @@all ||= [PriceDetailComponentKey.base_price, PriceDetailComponentKey.discount, PriceDetailComponentKey.currency_margin, PriceDetailComponentKey.percent_item_margin, PriceDetailComponentKey.fixed_item_margin, PriceDetailComponentKey.duties_item_price, PriceDetailComponentKey.duties_added_margin, PriceDetailComponentKey.duties_rounding, PriceDetailComponentKey.duties_deminimus, PriceDetailComponentKey.vat_item_price, PriceDetailComponentKey.vat_added_margin, PriceDetailComponentKey.vat_rounding, PriceDetailComponentKey.vat_duties_item_price, PriceDetailComponentKey.vat_duties_added_margin, PriceDetailComponentKey.vat_duties_rounding, PriceDetailComponentKey.vat_deminimus]
6037
+ end
6038
+
6039
+ # The base price of the item.
6040
+ def PriceDetailComponentKey.base_price
6041
+ @@_base_price ||= PriceDetailComponentKey.new('base_price')
6042
+ end
6043
+
6044
+ # A discount applied to the item.
6045
+ def PriceDetailComponentKey.discount
6046
+ @@_discount ||= PriceDetailComponentKey.new('discount')
6047
+ end
6048
+
6049
+ # The amount added to the post-discount base item price due to FX markup, as
6050
+ # configured in the organization's currency settings.
6051
+ def PriceDetailComponentKey.currency_margin
6052
+ @@_currency_margin ||= PriceDetailComponentKey.new('currency_margin')
6053
+ end
6054
+
6055
+ # The amount added to the total item price from the percent margin, if
6056
+ # applicable.
6057
+ def PriceDetailComponentKey.percent_item_margin
6058
+ @@_percent_item_margin ||= PriceDetailComponentKey.new('percent_item_margin')
6059
+ end
6060
+
6061
+ # The amount added to the total item price from the fixed margin, if applicable.
6062
+ def PriceDetailComponentKey.fixed_item_margin
6063
+ @@_fixed_item_margin ||= PriceDetailComponentKey.new('fixed_item_margin')
6064
+ end
6065
+
6066
+ # The duty owed on the post-discount base item price.
6067
+ def PriceDetailComponentKey.duties_item_price
6068
+ @@_duties_item_price ||= PriceDetailComponentKey.new('duties_item_price')
6069
+ end
6070
+
6071
+ # The duty owed on the sum of the currency margin, percent item margin, and
6072
+ # fixed item margin.
6073
+ def PriceDetailComponentKey.duties_added_margin
6074
+ @@_duties_added_margin ||= PriceDetailComponentKey.new('duties_added_margin')
6075
+ end
6076
+
6077
+ # The duty owed on any rounding applied to the total item price.
6078
+ def PriceDetailComponentKey.duties_rounding
6079
+ @@_duties_rounding ||= PriceDetailComponentKey.new('duties_rounding')
6080
+ end
6081
+
6082
+ # An adjustment made if the item does not meet the duty deminimus rule.
6083
+ def PriceDetailComponentKey.duties_deminimus
6084
+ @@_duties_deminimus ||= PriceDetailComponentKey.new('duties_deminimus')
6085
+ end
6086
+
6087
+ # The VAT owed on the post-discount base item price.
6088
+ def PriceDetailComponentKey.vat_item_price
6089
+ @@_vat_item_price ||= PriceDetailComponentKey.new('vat_item_price')
6090
+ end
6091
+
6092
+ # The VAT owed on the sum of the currency margin, percent item margin, and fixed
6093
+ # item margin.
6094
+ def PriceDetailComponentKey.vat_added_margin
6095
+ @@_vat_added_margin ||= PriceDetailComponentKey.new('vat_added_margin')
6096
+ end
6097
+
6098
+ # The VAT owed on any rounding applied to the total item price.
6099
+ def PriceDetailComponentKey.vat_rounding
6100
+ @@_vat_rounding ||= PriceDetailComponentKey.new('vat_rounding')
6101
+ end
6102
+
6103
+ # The VAT owed on the duty owed on the post-discount base item price.
6104
+ def PriceDetailComponentKey.vat_duties_item_price
6105
+ @@_vat_duties_item_price ||= PriceDetailComponentKey.new('vat_duties_item_price')
6106
+ end
6107
+
6108
+ # The VAT owed on the duty owed on the sum of the currency margin, percent item
6109
+ # margin, and fixed item margin.
6110
+ def PriceDetailComponentKey.vat_duties_added_margin
6111
+ @@_vat_duties_added_margin ||= PriceDetailComponentKey.new('vat_duties_added_margin')
6112
+ end
6113
+
6114
+ # The VAT owed on the duty owed on any rounding applied to the total item price.
6115
+ def PriceDetailComponentKey.vat_duties_rounding
6116
+ @@_vat_duties_rounding ||= PriceDetailComponentKey.new('vat_duties_rounding')
6117
+ end
6118
+
6119
+ # An adjustment made if the item does not meet the VAT deminimus rule.
6120
+ def PriceDetailComponentKey.vat_deminimus
6121
+ @@_vat_deminimus ||= PriceDetailComponentKey.new('vat_deminimus')
6122
+ end
6123
+
6124
+ def to_hash
6125
+ value
6126
+ end
6127
+
6128
+ end
6129
+
6130
+ class PriceDetailKey
6131
+
6132
+ attr_reader :value
6133
+
6134
+ def initialize(value)
6135
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
6136
+ end
6137
+
6138
+ # Returns the instance of PriceDetailKey for this value, creating a new instance for an unknown value
6139
+ def PriceDetailKey.apply(value)
6140
+ if value.instance_of?(PriceDetailKey)
6141
+ value
6142
+ else
6143
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
6144
+ value.nil? ? nil : (from_string(value) || PriceDetailKey.new(value))
6145
+ end
6146
+ end
6147
+
6148
+ # Returns the instance of PriceDetailKey for this value, or nil if not found
6149
+ def PriceDetailKey.from_string(value)
6150
+ HttpClient::Preconditions.assert_class('value', value, String)
6151
+ PriceDetailKey.ALL.find { |v| v.value == value }
6152
+ end
6153
+
6154
+ def PriceDetailKey.ALL
6155
+ @@all ||= [PriceDetailKey.item_price, PriceDetailKey.margins, PriceDetailKey.vat, PriceDetailKey.duty, PriceDetailKey.rounding]
6156
+ end
6157
+
6158
+ # The details of the item price.
6159
+ def PriceDetailKey.item_price
6160
+ @@_item_price ||= PriceDetailKey.new('item_price')
6161
+ end
6162
+
6163
+ # The details of any margins added to the item price.
6164
+ def PriceDetailKey.margins
6165
+ @@_margins ||= PriceDetailKey.new('margins')
6166
+ end
6167
+
6168
+ # The details of any VAT owed on the item.
6169
+ def PriceDetailKey.vat
6170
+ @@_vat ||= PriceDetailKey.new('vat')
6171
+ end
6172
+
6173
+ # The details of any duties owed on the item.
6174
+ def PriceDetailKey.duty
6175
+ @@_duty ||= PriceDetailKey.new('duty')
6176
+ end
6177
+
6178
+ # The details of any rounding added to the item.
6179
+ def PriceDetailKey.rounding
6180
+ @@_rounding ||= PriceDetailKey.new('rounding')
6181
+ end
6182
+
6183
+ def to_hash
6184
+ value
6185
+ end
6186
+
6187
+ end
6188
+
5996
6189
  class PricingLevySetting
5997
6190
 
5998
6191
  attr_reader :value
@@ -6791,6 +6984,56 @@ module Io
6791
6984
 
6792
6985
  end
6793
6986
 
6987
+ class UserStatus
6988
+
6989
+ attr_reader :value
6990
+
6991
+ def initialize(value)
6992
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
6993
+ end
6994
+
6995
+ # Returns the instance of UserStatus for this value, creating a new instance for an unknown value
6996
+ def UserStatus.apply(value)
6997
+ if value.instance_of?(UserStatus)
6998
+ value
6999
+ else
7000
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
7001
+ value.nil? ? nil : (from_string(value) || UserStatus.new(value))
7002
+ end
7003
+ end
7004
+
7005
+ # Returns the instance of UserStatus for this value, or nil if not found
7006
+ def UserStatus.from_string(value)
7007
+ HttpClient::Preconditions.assert_class('value', value, String)
7008
+ UserStatus.ALL.find { |v| v.value == value }
7009
+ end
7010
+
7011
+ def UserStatus.ALL
7012
+ @@all ||= [UserStatus.pending, UserStatus.active, UserStatus.inactive]
7013
+ end
7014
+
7015
+ # Represents a new user account that is pending approval
7016
+ def UserStatus.pending
7017
+ @@_pending ||= UserStatus.new('pending')
7018
+ end
7019
+
7020
+ # Represents an active user account - can authenticate with this account
7021
+ def UserStatus.active
7022
+ @@_active ||= UserStatus.new('active')
7023
+ end
7024
+
7025
+ # Represents an inactive user account - can no longer authenticate with this
7026
+ # account
7027
+ def UserStatus.inactive
7028
+ @@_inactive ||= UserStatus.new('inactive')
7029
+ end
7030
+
7031
+ def to_hash
7032
+ value
7033
+ end
7034
+
7035
+ end
7036
+
6794
7037
  class ValueAddedService
6795
7038
 
6796
7039
  attr_reader :value
@@ -8599,37 +8842,6 @@ module Io
8599
8842
 
8600
8843
  end
8601
8844
 
8602
- # Describes conversion information from a base currency to a target currency.
8603
- class Conversion
8604
-
8605
- attr_reader :base, :target, :rate
8606
-
8607
- def initialize(incoming={})
8608
- opts = HttpClient::Helper.symbolize_keys(incoming)
8609
- HttpClient::Preconditions.require_keys(opts, [:base, :target, :rate], 'Conversion')
8610
- @base = HttpClient::Preconditions.assert_class('base', opts.delete(:base), String)
8611
- @target = HttpClient::Preconditions.assert_class('target', opts.delete(:target), String)
8612
- @rate = HttpClient::Preconditions.assert_class('rate', HttpClient::Helper.to_big_decimal(opts.delete(:rate)), BigDecimal)
8613
- end
8614
-
8615
- def to_json
8616
- JSON.dump(to_hash)
8617
- end
8618
-
8619
- def copy(incoming={})
8620
- Conversion.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
8621
- end
8622
-
8623
- def to_hash
8624
- {
8625
- :base => base,
8626
- :target => target,
8627
- :rate => rate
8628
- }
8629
- end
8630
-
8631
- end
8632
-
8633
8845
  # ISO 3166 country codes. Note Flow APIs will accept either the 2 or 3 character
8634
8846
  # country code, but internally we normalize data and store as the 3 character,
8635
8847
  # upper case ISO code. See https://api.flow.io/reference/countries
@@ -12319,6 +12531,34 @@ module Io
12319
12531
 
12320
12532
  end
12321
12533
 
12534
+ class LocalPriceDetails
12535
+
12536
+ attr_reader :base, :local
12537
+
12538
+ def initialize(incoming={})
12539
+ opts = HttpClient::Helper.symbolize_keys(incoming)
12540
+ HttpClient::Preconditions.require_keys(opts, [:base, :local], 'LocalPriceDetails')
12541
+ @base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::PriceDetails) ? x : ::Io::Flow::V0::Models::PriceDetails.new(x))
12542
+ @local = (x = opts.delete(:local); x.is_a?(::Io::Flow::V0::Models::PriceDetails) ? x : ::Io::Flow::V0::Models::PriceDetails.new(x))
12543
+ end
12544
+
12545
+ def to_json
12546
+ JSON.dump(to_hash)
12547
+ end
12548
+
12549
+ def copy(incoming={})
12550
+ LocalPriceDetails.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
12551
+ end
12552
+
12553
+ def to_hash
12554
+ {
12555
+ :base => base.to_hash,
12556
+ :local => local.to_hash
12557
+ }
12558
+ end
12559
+
12560
+ end
12561
+
12322
12562
  class LocalizedItemDeleted < Event
12323
12563
 
12324
12564
  attr_reader :event_id, :timestamp, :organization, :number, :catalog
@@ -13422,12 +13662,13 @@ module Io
13422
13662
 
13423
13663
  class OrderReference
13424
13664
 
13425
- attr_reader :id
13665
+ attr_reader :id, :number
13426
13666
 
13427
13667
  def initialize(incoming={})
13428
13668
  opts = HttpClient::Helper.symbolize_keys(incoming)
13429
- HttpClient::Preconditions.require_keys(opts, [:id], 'OrderReference')
13669
+ HttpClient::Preconditions.require_keys(opts, [:id, :number], 'OrderReference')
13430
13670
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
13671
+ @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
13431
13672
  end
13432
13673
 
13433
13674
  def to_json
@@ -13440,7 +13681,8 @@ module Io
13440
13681
 
13441
13682
  def to_hash
13442
13683
  {
13443
- :id => id
13684
+ :id => id,
13685
+ :number => number
13444
13686
  }
13445
13687
  end
13446
13688
 
@@ -14155,21 +14397,111 @@ module Io
14155
14397
 
14156
14398
  end
14157
14399
 
14158
- # Detailed information for the pricing of a given item within an experience
14400
+ class PriceCheck
14401
+
14402
+ attr_reader :display, :final
14403
+
14404
+ def initialize(incoming={})
14405
+ opts = HttpClient::Helper.symbolize_keys(incoming)
14406
+ HttpClient::Preconditions.require_keys(opts, [:display, :final], 'PriceCheck')
14407
+ @display = (x = opts.delete(:display); x.is_a?(::Io::Flow::V0::Models::LocalPriceDetails) ? x : ::Io::Flow::V0::Models::LocalPriceDetails.new(x))
14408
+ @final = (x = opts.delete(:final); x.is_a?(::Io::Flow::V0::Models::LocalPriceDetails) ? x : ::Io::Flow::V0::Models::LocalPriceDetails.new(x))
14409
+ end
14410
+
14411
+ def to_json
14412
+ JSON.dump(to_hash)
14413
+ end
14414
+
14415
+ def copy(incoming={})
14416
+ PriceCheck.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
14417
+ end
14418
+
14419
+ def to_hash
14420
+ {
14421
+ :display => display.to_hash,
14422
+ :final => final.to_hash
14423
+ }
14424
+ end
14425
+
14426
+ end
14427
+
14428
+ # Represents a top-level price detail, e.g. 'Subtotal' or 'VAT'.
14429
+ class PriceDetail
14430
+
14431
+ attr_reader :key, :components, :amount, :label
14432
+
14433
+ def initialize(incoming={})
14434
+ opts = HttpClient::Helper.symbolize_keys(incoming)
14435
+ HttpClient::Preconditions.require_keys(opts, [:key, :components, :amount, :label], 'PriceDetail')
14436
+ @key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::PriceDetailKey) ? x : ::Io::Flow::V0::Models::PriceDetailKey.apply(x))
14437
+ @components = HttpClient::Preconditions.assert_class('components', opts.delete(:components), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::PriceDetailComponent) ? x : ::Io::Flow::V0::Models::PriceDetailComponent.new(x)) }
14438
+ @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
14439
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
14440
+ end
14441
+
14442
+ def to_json
14443
+ JSON.dump(to_hash)
14444
+ end
14445
+
14446
+ def copy(incoming={})
14447
+ PriceDetail.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
14448
+ end
14449
+
14450
+ def to_hash
14451
+ {
14452
+ :key => key.value,
14453
+ :components => components.map { |o| o.to_hash },
14454
+ :amount => amount,
14455
+ :label => label
14456
+ }
14457
+ end
14458
+
14459
+ end
14460
+
14461
+ class PriceDetailComponent
14462
+
14463
+ attr_reader :key, :amount, :label
14464
+
14465
+ def initialize(incoming={})
14466
+ opts = HttpClient::Helper.symbolize_keys(incoming)
14467
+ HttpClient::Preconditions.require_keys(opts, [:key, :amount, :label], 'PriceDetailComponent')
14468
+ @key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::PriceDetailComponentKey) ? x : ::Io::Flow::V0::Models::PriceDetailComponentKey.apply(x))
14469
+ @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
14470
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
14471
+ end
14472
+
14473
+ def to_json
14474
+ JSON.dump(to_hash)
14475
+ end
14476
+
14477
+ def copy(incoming={})
14478
+ PriceDetailComponent.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
14479
+ end
14480
+
14481
+ def to_hash
14482
+ {
14483
+ :key => key.value,
14484
+ :amount => amount,
14485
+ :label => label
14486
+ }
14487
+ end
14488
+
14489
+ end
14490
+
14491
+ # Detailed information for the pricing of a given item within an experience.
14159
14492
  class PriceDetails
14160
14493
 
14161
- attr_reader :base, :local, :currency_margin, :margin, :vat, :duty, :rounding, :total
14494
+ attr_reader :currency, :item_price, :margins, :vat, :duty, :rounding, :total
14162
14495
 
14163
14496
  def initialize(incoming={})
14164
14497
  opts = HttpClient::Helper.symbolize_keys(incoming)
14165
- HttpClient::Preconditions.require_keys(opts, [:base, :local, :currency_margin, :margin, :vat, :duty, :rounding, :total], 'PriceDetails')
14166
- @base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14167
- @local = (x = opts.delete(:local); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14168
- @currency_margin = (x = opts.delete(:currency_margin); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14169
- @margin = (x = opts.delete(:margin); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14170
- @vat = (x = opts.delete(:vat); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14171
- @duty = (x = opts.delete(:duty); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14172
- @rounding = (x = opts.delete(:rounding); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14498
+ HttpClient::Preconditions.require_keys(opts, [:currency, :item_price, :margins, :vat, :duty, :rounding, :total], 'PriceDetails')
14499
+ @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
14500
+ @item_price = (x = opts.delete(:item_price); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
14501
+ @margins = (x = opts.delete(:margins); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
14502
+ @vat = (x = opts.delete(:vat); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
14503
+ @duty = (x = opts.delete(:duty); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
14504
+ @rounding = (x = opts.delete(:rounding); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
14173
14505
  @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
14174
14506
  end
14175
14507
 
@@ -14183,10 +14515,9 @@ module Io
14183
14515
 
14184
14516
  def to_hash
14185
14517
  {
14186
- :base => base.to_hash,
14187
- :local => local.to_hash,
14188
- :currency_margin => currency_margin.to_hash,
14189
- :margin => margin.to_hash,
14518
+ :currency => currency,
14519
+ :item_price => item_price.to_hash,
14520
+ :margins => margins.to_hash,
14190
14521
  :vat => vat.to_hash,
14191
14522
  :duty => duty.to_hash,
14192
14523
  :rounding => rounding.to_hash,
@@ -14198,20 +14529,22 @@ module Io
14198
14529
 
14199
14530
  class PriceEquation
14200
14531
 
14201
- attr_reader :base_price, :contracted_rate, :rate, :insurance, :freight, :margins, :duty, :tax, :rounding
14532
+ attr_reader :contracted_rate, :rate, :pricing, :base_price, :discount, :fixed_margin, :percent_margin, :insurance, :freight, :duty, :tax
14202
14533
 
14203
14534
  def initialize(incoming={})
14204
14535
  opts = HttpClient::Helper.symbolize_keys(incoming)
14205
- HttpClient::Preconditions.require_keys(opts, [:base_price, :contracted_rate, :rate, :insurance, :freight, :margins], 'PriceEquation')
14206
- @base_price = HttpClient::Preconditions.assert_class('base_price', HttpClient::Helper.to_big_decimal(opts.delete(:base_price)), BigDecimal)
14536
+ HttpClient::Preconditions.require_keys(opts, [:contracted_rate, :rate, :pricing, :base_price, :discount, :fixed_margin, :percent_margin, :insurance, :freight], 'PriceEquation')
14207
14537
  @contracted_rate = HttpClient::Preconditions.assert_class('contracted_rate', HttpClient::Helper.to_big_decimal(opts.delete(:contracted_rate)), BigDecimal)
14208
14538
  @rate = HttpClient::Preconditions.assert_class('rate', HttpClient::Helper.to_big_decimal(opts.delete(:rate)), BigDecimal)
14539
+ @pricing = (x = opts.delete(:pricing); x.is_a?(::Io::Flow::V0::Models::Pricing) ? x : ::Io::Flow::V0::Models::Pricing.new(x))
14540
+ @base_price = HttpClient::Preconditions.assert_class('base_price', HttpClient::Helper.to_big_decimal(opts.delete(:base_price)), BigDecimal)
14541
+ @discount = HttpClient::Preconditions.assert_class('discount', HttpClient::Helper.to_big_decimal(opts.delete(:discount)), BigDecimal)
14542
+ @fixed_margin = HttpClient::Preconditions.assert_class('fixed_margin', HttpClient::Helper.to_big_decimal(opts.delete(:fixed_margin)), BigDecimal)
14543
+ @percent_margin = HttpClient::Preconditions.assert_class('percent_margin', HttpClient::Helper.to_big_decimal(opts.delete(:percent_margin)), BigDecimal)
14209
14544
  @insurance = HttpClient::Preconditions.assert_class('insurance', HttpClient::Helper.to_big_decimal(opts.delete(:insurance)), BigDecimal)
14210
14545
  @freight = HttpClient::Preconditions.assert_class('freight', HttpClient::Helper.to_big_decimal(opts.delete(:freight)), BigDecimal)
14211
- @margins = HttpClient::Preconditions.assert_class('margins', opts.delete(:margins), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Margin) ? x : ::Io::Flow::V0::Models::Margin.new(x)) }
14212
14546
  @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Duty) ? x : ::Io::Flow::V0::Models::Duty.new(x)))
14213
14547
  @tax = (x = opts.delete(:tax); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Tax) ? x : ::Io::Flow::V0::Models::Tax.new(x)))
14214
- @rounding = (x = opts.delete(:rounding); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Rounding) ? x : ::Io::Flow::V0::Models::Rounding.new(x)))
14215
14548
  end
14216
14549
 
14217
14550
  def to_json
@@ -14224,15 +14557,17 @@ module Io
14224
14557
 
14225
14558
  def to_hash
14226
14559
  {
14227
- :base_price => base_price,
14228
14560
  :contracted_rate => contracted_rate,
14229
14561
  :rate => rate,
14562
+ :pricing => pricing.to_hash,
14563
+ :base_price => base_price,
14564
+ :discount => discount,
14565
+ :fixed_margin => fixed_margin,
14566
+ :percent_margin => percent_margin,
14230
14567
  :insurance => insurance,
14231
14568
  :freight => freight,
14232
- :margins => margins.map { |o| o.to_hash },
14233
14569
  :duty => duty.nil? ? nil : duty.to_hash,
14234
- :tax => tax.nil? ? nil : tax.to_hash,
14235
- :rounding => rounding.nil? ? nil : rounding.to_hash
14570
+ :tax => tax.nil? ? nil : tax.to_hash
14236
14571
  }
14237
14572
  end
14238
14573
 
@@ -15394,12 +15729,13 @@ module Io
15394
15729
  # of shipped packages.
15395
15730
  class ShippingNotification
15396
15731
 
15397
- attr_reader :id, :attributes, :carrier_tracking_number, :destination, :flow_tracking_number, :origin, :package, :service, :window, :order
15732
+ attr_reader :id, :key, :attributes, :carrier_tracking_number, :destination, :flow_tracking_number, :origin, :package, :service, :window, :order
15398
15733
 
15399
15734
  def initialize(incoming={})
15400
15735
  opts = HttpClient::Helper.symbolize_keys(incoming)
15401
- HttpClient::Preconditions.require_keys(opts, [:id, :carrier_tracking_number, :destination, :flow_tracking_number, :origin, :package, :service, :window], 'ShippingNotification')
15736
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :carrier_tracking_number, :destination, :flow_tracking_number, :origin, :package, :service, :window], 'ShippingNotification')
15402
15737
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
15738
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
15403
15739
  @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 }
15404
15740
  @carrier_tracking_number = HttpClient::Preconditions.assert_class('carrier_tracking_number', opts.delete(:carrier_tracking_number), String)
15405
15741
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
@@ -15422,6 +15758,7 @@ module Io
15422
15758
  def to_hash
15423
15759
  {
15424
15760
  :id => id,
15761
+ :key => key,
15425
15762
  :attributes => attributes,
15426
15763
  :carrier_tracking_number => carrier_tracking_number,
15427
15764
  :destination => destination.to_hash,
@@ -15442,11 +15779,12 @@ module Io
15442
15779
  # of shipped packages.
15443
15780
  class ShippingNotificationForm
15444
15781
 
15445
- attr_reader :attributes, :carrier_tracking_number, :destination, :order_number, :origin, :package, :service
15782
+ attr_reader :key, :attributes, :carrier_tracking_number, :destination, :order_number, :origin, :package, :service
15446
15783
 
15447
15784
  def initialize(incoming={})
15448
15785
  opts = HttpClient::Helper.symbolize_keys(incoming)
15449
15786
  HttpClient::Preconditions.require_keys(opts, [:carrier_tracking_number, :destination, :order_number, :origin, :package, :service], 'ShippingNotificationForm')
15787
+ @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
15450
15788
  @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 })
15451
15789
  @carrier_tracking_number = HttpClient::Preconditions.assert_class('carrier_tracking_number', opts.delete(:carrier_tracking_number), String)
15452
15790
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
@@ -15466,6 +15804,7 @@ module Io
15466
15804
 
15467
15805
  def to_hash
15468
15806
  {
15807
+ :key => key,
15469
15808
  :attributes => attributes.nil? ? nil : attributes,
15470
15809
  :carrier_tracking_number => carrier_tracking_number,
15471
15810
  :destination => destination.to_hash,
@@ -17637,7 +17976,7 @@ module Io
17637
17976
  # Represents a single user in the system
17638
17977
  class User < ExpandableUser
17639
17978
 
17640
- attr_reader :id, :email, :name
17979
+ attr_reader :id, :email, :name, :status
17641
17980
 
17642
17981
  def initialize(incoming={})
17643
17982
  super(:name => ExpandableUser::Types::USER)
@@ -17646,6 +17985,7 @@ module Io
17646
17985
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
17647
17986
  @email = (x = opts.delete(:email); x.nil? ? nil : HttpClient::Preconditions.assert_class('email', x, String))
17648
17987
  @name = (x = opts.delete(:name); x.is_a?(::Io::Flow::V0::Models::Name) ? x : ::Io::Flow::V0::Models::Name.new(x))
17988
+ @status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::UserStatus) ? x : ::Io::Flow::V0::Models::UserStatus.apply(x))
17649
17989
  end
17650
17990
 
17651
17991
  def to_json
@@ -17660,7 +18000,8 @@ module Io
17660
18000
  {
17661
18001
  :id => id,
17662
18002
  :email => email,
17663
- :name => name.to_hash
18003
+ :name => name.to_hash,
18004
+ :status => status.value
17664
18005
  }
17665
18006
  end
17666
18007
 
@@ -17790,7 +18131,7 @@ module Io
17790
18131
  HttpClient::Preconditions.require_keys(opts, [:id, :url, :events], 'Webhook')
17791
18132
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
17792
18133
  @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String)
17793
- @events = HttpClient::Preconditions.assert_class('events', opts.delete(:events), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::EventType) ? x : ::Io::Flow::V0::Models::EventType.apply(x)) }
18134
+ @events = HttpClient::Preconditions.assert_class('events', opts.delete(:events), Array).map { |v| HttpClient::Preconditions.assert_class('events', v, String) }
17794
18135
  end
17795
18136
 
17796
18137
  def to_json
@@ -17805,7 +18146,7 @@ module Io
17805
18146
  {
17806
18147
  :id => id,
17807
18148
  :url => url,
17808
- :events => events.map { |o| o.value }
18149
+ :events => events
17809
18150
  }
17810
18151
  end
17811
18152
 
@@ -17858,7 +18199,7 @@ module Io
17858
18199
  opts = HttpClient::Helper.symbolize_keys(incoming)
17859
18200
  HttpClient::Preconditions.require_keys(opts, [:url, :events], 'WebhookForm')
17860
18201
  @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String)
17861
- @events = HttpClient::Preconditions.assert_class('events', opts.delete(:events), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::EventType) ? x : ::Io::Flow::V0::Models::EventType.apply(x)) }
18202
+ @events = HttpClient::Preconditions.assert_class('events', opts.delete(:events), Array).map { |v| HttpClient::Preconditions.assert_class('events', v, String) }
17862
18203
  end
17863
18204
 
17864
18205
  def to_json
@@ -17872,7 +18213,7 @@ module Io
17872
18213
  def to_hash
17873
18214
  {
17874
18215
  :url => url,
17875
- :events => events.map { |o| o.value }
18216
+ :events => events
17876
18217
  }
17877
18218
  end
17878
18219
 
@@ -18119,11 +18460,13 @@ module Io
18119
18460
  # Wrapper to set Content-Type header to application/json and set
18120
18461
  # the provided json document as the body
18121
18462
  def with_json(json)
18463
+ puts "Checkpoint with_json #{Time.new}"
18122
18464
  @headers['Content-Type'] ||= 'application/json; charset=UTF-8'
18123
18465
  with_body(json)
18124
18466
  end
18125
18467
 
18126
18468
  def with_body(body)
18469
+ puts "Checkpoint with_body #{Time.new}"
18127
18470
  Preconditions.check_not_blank('body', body)
18128
18471
  @body = body
18129
18472
  self
@@ -18161,6 +18504,7 @@ module Io
18161
18504
  end
18162
18505
 
18163
18506
  def post(&block)
18507
+ puts "Checkpoint post #{Time.new}"
18164
18508
  do_request(Net::HTTP::Post, &block)
18165
18509
  end
18166
18510
 
@@ -18191,6 +18535,7 @@ module Io
18191
18535
  curl << "-X%s" % klass.name.split("::").last.upcase
18192
18536
  end
18193
18537
 
18538
+ puts "Checkpoint do_request.body #{Time.new}"
18194
18539
  if @body
18195
18540
  # DEBUG path = "/tmp/rest_client.tmp"
18196
18541
  # DEBUG File.open(path, "w") { |os| os << @body.to_s }
@@ -18198,6 +18543,7 @@ module Io
18198
18543
  request.body = @body
18199
18544
  end
18200
18545
 
18546
+ puts "Checkpoint do_request.auth #{Time.new}"
18201
18547
  if @auth
18202
18548
  curl << "-u \"%s:%s\"" % [@auth.username, @auth.password]
18203
18549
  Preconditions.check_state(!@header_keys_lower_case.include?("authorization"),
@@ -18215,7 +18561,9 @@ module Io
18215
18561
  curl << "'%s'" % uri
18216
18562
  # DEBUG puts curl.join(" ")
18217
18563
 
18564
+ puts "Checkpoint do_request.raw_response #{Time.new}"
18218
18565
  raw_response = http_request(request)
18566
+ puts "Checkpoint do_request.response #{Time.new}"
18219
18567
  response = raw_response.to_s == "" ? nil : JSON.parse(raw_response)
18220
18568
 
18221
18569
  if block_given?
@@ -18489,4 +18837,4 @@ module Io
18489
18837
  end
18490
18838
  end
18491
18839
  end
18492
- end
18840
+ end
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.0.71
4
+ version: 0.0.72.dev
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: 2016-09-29 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -63,9 +63,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - '>'
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.3.1
69
69
  requirements: []
70
70
  rubyforge_project:
71
71
  rubygems_version: 2.0.14.1