flowcommerce 0.0.61 → 0.0.62

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: e819e4d66ccc1ec086ca433073c5f771e02a6d9d
4
- data.tar.gz: 2dc69541e46015a07be32acb3c5ab7a5dabd0234
3
+ metadata.gz: a57c829e07bb5406968acf5e839b176ebbc5a437
4
+ data.tar.gz: 6208530e999188ad8b494356942de27720a6ab24
5
5
  SHA512:
6
- metadata.gz: 60dd3acb39276dc08d9b349d89058b70bff173a6044ff9ca31ea101bf0fc022f773c9b2e073f3d4c0e21dec2ee012dead158c50075c3e4e4d98c854dd3fb9f13
7
- data.tar.gz: 42d2255d4028c4719fabd8a2f36c889044766e47ba6f28873602e72fe8b1c92e7bfdecf5b048437b1029c00702d6275e5472336bfd941613173e01c7325559f6
6
+ metadata.gz: 2b8c0291a97ce0bb5b3e2f5689f8e48be410e8a0b6fa2abc74ad19bb8646f11b627e50a73e2e63985af777736041baab761af1531abbe955cc9d32431a6ed2a2
7
+ data.tar.gz: 66dfb82f0194d4f3587c22d891b69504aa619bad050f6b56e33ad21946a9dc694c076c080085e1a586e01077e2326e30cb5105b47cbadba99cb816a0ac48a7aa
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.1.59
3
- # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.60/ruby_client
3
+ # apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.62/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.37 http://www.apidoc.me/flow/api/0.1.60/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.62/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.1.59' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -3759,6 +3759,8 @@ module Io
3759
3759
  AUTHORIZATION_UPSERTED = 'authorization_upserted' unless defined?(AUTHORIZATION_UPSERTED)
3760
3760
  AUTHORIZATION_DELETED = 'authorization_deleted' unless defined?(AUTHORIZATION_DELETED)
3761
3761
  CAPTURE_UPSERTED = 'capture_upserted' unless defined?(CAPTURE_UPSERTED)
3762
+ CARD_UPSERTED = 'card_upserted' unless defined?(CARD_UPSERTED)
3763
+ CARD_DELETED = 'card_deleted' unless defined?(CARD_DELETED)
3762
3764
  REFUND_UPSERTED = 'refund_upserted' unless defined?(REFUND_UPSERTED)
3763
3765
  TRACKING_LABEL_EVENT_UPSERTED = 'tracking_label_event_upserted' unless defined?(TRACKING_LABEL_EVENT_UPSERTED)
3764
3766
  end
@@ -3814,6 +3816,8 @@ module Io
3814
3816
  when Types::AUTHORIZATION_UPSERTED; AuthorizationUpserted.new(hash)
3815
3817
  when Types::AUTHORIZATION_DELETED; AuthorizationDeleted.new(hash)
3816
3818
  when Types::CAPTURE_UPSERTED; CaptureUpserted.new(hash)
3819
+ when Types::CARD_UPSERTED; CardUpserted.new(hash)
3820
+ when Types::CARD_DELETED; CardDeleted.new(hash)
3817
3821
  when Types::REFUND_UPSERTED; RefundUpserted.new(hash)
3818
3822
  when Types::TRACKING_LABEL_EVENT_UPSERTED; TrackingLabelEventUpserted.new(hash)
3819
3823
  else EventUndefinedType.new(:name => union_type_name)
@@ -4905,7 +4909,7 @@ module Io
4905
4909
  end
4906
4910
 
4907
4911
  def EventType.ALL
4908
- @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.flow_currency_setting_deleted, EventType.flow_currency_setting_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.spot_rate_deleted, EventType.spot_rate_upserted, EventType.organization_currency_setting_deleted, EventType.organization_currency_setting_upserted, EventType.contracted_rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_booking_deleted, EventType.order_booking_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.label_upserted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.refund_upserted, EventType.tracking_label_event_upserted]
4912
+ @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.flow_currency_setting_deleted, EventType.flow_currency_setting_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.spot_rate_deleted, EventType.spot_rate_upserted, EventType.organization_currency_setting_deleted, EventType.organization_currency_setting_upserted, EventType.contracted_rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_booking_deleted, EventType.order_booking_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.label_upserted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.tracking_label_event_upserted]
4909
4913
  end
4910
4914
 
4911
4915
  def EventType.catalog_upserted
@@ -5060,6 +5064,14 @@ module Io
5060
5064
  @@_capture_upserted ||= EventType.new('capture_upserted')
5061
5065
  end
5062
5066
 
5067
+ def EventType.card_upserted
5068
+ @@_card_upserted ||= EventType.new('card_upserted')
5069
+ end
5070
+
5071
+ def EventType.card_deleted
5072
+ @@_card_deleted ||= EventType.new('card_deleted')
5073
+ end
5074
+
5063
5075
  def EventType.refund_upserted
5064
5076
  @@_refund_upserted ||= EventType.new('refund_upserted')
5065
5077
  end
@@ -6847,11 +6859,11 @@ module Io
6847
6859
  # capture up to the amount of the authorization.
6848
6860
  class Authorization
6849
6861
 
6850
- attr_reader :id, :key, :card, :amount, :currency, :customer, :attributes, :destination, :ip, :cvv, :result
6862
+ attr_reader :id, :key, :card, :amount, :currency, :customer, :attributes, :destination, :ip, :cvv, :result, :created_at
6851
6863
 
6852
6864
  def initialize(incoming={})
6853
6865
  opts = HttpClient::Helper.symbolize_keys(incoming)
6854
- HttpClient::Preconditions.require_keys(opts, [:id, :key, :card, :amount, :currency, :customer, :attributes, :result], 'Authorization')
6866
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :card, :amount, :currency, :customer, :attributes, :result, :created_at], 'Authorization')
6855
6867
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
6856
6868
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
6857
6869
  @card = (x = opts.delete(:card); x.is_a?(::Io::Flow::V0::Models::CardReference) ? x : ::Io::Flow::V0::Models::CardReference.new(x))
@@ -6863,6 +6875,7 @@ module Io
6863
6875
  @ip = (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
6864
6876
  @cvv = (x = opts.delete(:cvv); x.nil? ? nil : HttpClient::Preconditions.assert_class('cvv', x, String))
6865
6877
  @result = (x = opts.delete(:result); x.is_a?(::Io::Flow::V0::Models::AuthorizationResult) ? x : ::Io::Flow::V0::Models::AuthorizationResult.new(x))
6878
+ @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
6866
6879
  end
6867
6880
 
6868
6881
  def to_json
@@ -6885,7 +6898,8 @@ module Io
6885
6898
  :destination => destination.nil? ? nil : destination.to_hash,
6886
6899
  :ip => ip,
6887
6900
  :cvv => cvv,
6888
- :result => result.to_hash
6901
+ :result => result.to_hash,
6902
+ :created_at => created_at
6889
6903
  }
6890
6904
  end
6891
6905
 
@@ -6988,12 +7002,12 @@ module Io
6988
7002
 
6989
7003
  class AuthorizationUpserted < Event
6990
7004
 
6991
- attr_reader :event_id, :timestamp, :organization, :key, :order_number, :card, :amount, :currency, :customer, :attributes, :destination, :result, :ip
7005
+ attr_reader :event_id, :timestamp, :organization, :key, :order_number, :card, :amount, :currency, :customer, :attributes, :destination, :result, :ip, :created_at
6992
7006
 
6993
7007
  def initialize(incoming={})
6994
7008
  super(:name => Event::Types::AUTHORIZATION_UPSERTED)
6995
7009
  opts = HttpClient::Helper.symbolize_keys(incoming)
6996
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :card, :amount, :currency, :customer, :attributes, :result], 'AuthorizationUpserted')
7010
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :card, :amount, :currency, :customer, :attributes, :result, :created_at], 'AuthorizationUpserted')
6997
7011
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
6998
7012
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
6999
7013
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
@@ -7007,6 +7021,7 @@ module Io
7007
7021
  @destination = (x = opts.delete(:destination); x.nil? ? nil : HttpClient::Preconditions.assert_class('destination', HttpClient::Helper.to_object(x), Hash))
7008
7022
  @result = HttpClient::Preconditions.assert_class('result', HttpClient::Helper.to_object(opts.delete(:result)), Hash)
7009
7023
  @ip = (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String))
7024
+ @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
7010
7025
  end
7011
7026
 
7012
7027
  def to_json
@@ -7031,7 +7046,8 @@ module Io
7031
7046
  :attributes => attributes,
7032
7047
  :destination => destination,
7033
7048
  :result => result,
7034
- :ip => ip
7049
+ :ip => ip,
7050
+ :created_at => created_at
7035
7051
  }
7036
7052
  end
7037
7053
 
@@ -7137,16 +7153,17 @@ module Io
7137
7153
  # authorization otherwise becomes unavailable (e.g. expires).
7138
7154
  class Capture
7139
7155
 
7140
- attr_reader :id, :key, :authorization, :amount, :currency
7156
+ attr_reader :id, :key, :authorization, :amount, :currency, :created_at
7141
7157
 
7142
7158
  def initialize(incoming={})
7143
7159
  opts = HttpClient::Helper.symbolize_keys(incoming)
7144
- HttpClient::Preconditions.require_keys(opts, [:id, :key, :authorization, :amount, :currency], 'Capture')
7160
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :authorization, :amount, :currency, :created_at], 'Capture')
7145
7161
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
7146
7162
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
7147
7163
  @authorization = (x = opts.delete(:authorization); x.is_a?(::Io::Flow::V0::Models::AuthorizationReference) ? x : ::Io::Flow::V0::Models::AuthorizationReference.new(x))
7148
7164
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
7149
7165
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
7166
+ @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
7150
7167
  end
7151
7168
 
7152
7169
  def to_json
@@ -7163,7 +7180,8 @@ module Io
7163
7180
  :key => key,
7164
7181
  :authorization => authorization.to_hash,
7165
7182
  :amount => amount,
7166
- :currency => currency
7183
+ :currency => currency,
7184
+ :created_at => created_at
7167
7185
  }
7168
7186
  end
7169
7187
 
@@ -7206,12 +7224,12 @@ module Io
7206
7224
 
7207
7225
  class CaptureUpserted < Event
7208
7226
 
7209
- attr_reader :event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency
7227
+ attr_reader :event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :created_at
7210
7228
 
7211
7229
  def initialize(incoming={})
7212
7230
  super(:name => Event::Types::CAPTURE_UPSERTED)
7213
7231
  opts = HttpClient::Helper.symbolize_keys(incoming)
7214
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency], 'CaptureUpserted')
7232
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :created_at], 'CaptureUpserted')
7215
7233
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
7216
7234
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
7217
7235
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
@@ -7219,6 +7237,7 @@ module Io
7219
7237
  @authorization_key = HttpClient::Preconditions.assert_class('authorization_key', opts.delete(:authorization_key), String)
7220
7238
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
7221
7239
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
7240
+ @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
7222
7241
  end
7223
7242
 
7224
7243
  def to_json
@@ -7237,7 +7256,8 @@ module Io
7237
7256
  :key => key,
7238
7257
  :authorization_key => authorization_key,
7239
7258
  :amount => amount,
7240
- :currency => currency
7259
+ :currency => currency,
7260
+ :created_at => created_at
7241
7261
  }
7242
7262
  end
7243
7263
 
@@ -7316,6 +7336,39 @@ module Io
7316
7336
 
7317
7337
  end
7318
7338
 
7339
+ class CardDeleted < Event
7340
+
7341
+ attr_reader :event_id, :timestamp, :organization, :token
7342
+
7343
+ def initialize(incoming={})
7344
+ super(:name => Event::Types::CARD_DELETED)
7345
+ opts = HttpClient::Helper.symbolize_keys(incoming)
7346
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :token], 'CardDeleted')
7347
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
7348
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
7349
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
7350
+ @token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String)
7351
+ end
7352
+
7353
+ def to_json
7354
+ JSON.dump(to_hash)
7355
+ end
7356
+
7357
+ def copy(incoming={})
7358
+ CardDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
7359
+ end
7360
+
7361
+ def subtype_to_hash
7362
+ {
7363
+ :event_id => event_id,
7364
+ :timestamp => timestamp,
7365
+ :organization => organization,
7366
+ :token => token
7367
+ }
7368
+ end
7369
+
7370
+ end
7371
+
7319
7372
  class CardForm
7320
7373
 
7321
7374
  attr_reader :number, :cipher, :expiration_month, :expiration_year, :name, :cvv, :address, :challenge_text, :challenge_cipher
@@ -7386,6 +7439,49 @@ module Io
7386
7439
 
7387
7440
  end
7388
7441
 
7442
+ class CardUpserted < Event
7443
+
7444
+ attr_reader :event_id, :timestamp, :organization, :token, :type, :expiration, :last4, :name, :address
7445
+
7446
+ def initialize(incoming={})
7447
+ super(:name => Event::Types::CARD_UPSERTED)
7448
+ opts = HttpClient::Helper.symbolize_keys(incoming)
7449
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :token, :type, :expiration, :last4, :name, :address], 'CardUpserted')
7450
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
7451
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
7452
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
7453
+ @token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String)
7454
+ @type = HttpClient::Preconditions.assert_class('type', opts.delete(:type), String)
7455
+ @expiration = HttpClient::Preconditions.assert_class('expiration', HttpClient::Helper.to_object(opts.delete(:expiration)), Hash)
7456
+ @last4 = HttpClient::Preconditions.assert_class('last4', opts.delete(:last4), String)
7457
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
7458
+ @address = HttpClient::Preconditions.assert_class('address', HttpClient::Helper.to_object(opts.delete(:address)), Hash)
7459
+ end
7460
+
7461
+ def to_json
7462
+ JSON.dump(to_hash)
7463
+ end
7464
+
7465
+ def copy(incoming={})
7466
+ CardUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
7467
+ end
7468
+
7469
+ def subtype_to_hash
7470
+ {
7471
+ :event_id => event_id,
7472
+ :timestamp => timestamp,
7473
+ :organization => organization,
7474
+ :token => token,
7475
+ :type => type,
7476
+ :expiration => expiration,
7477
+ :last4 => last4,
7478
+ :name => name,
7479
+ :address => address
7480
+ }
7481
+ end
7482
+
7483
+ end
7484
+
7389
7485
  class CardVersion
7390
7486
 
7391
7487
  attr_reader :id, :timestamp, :type, :card
@@ -8346,7 +8442,7 @@ module Io
8346
8442
  opts = HttpClient::Helper.symbolize_keys(incoming)
8347
8443
  HttpClient::Preconditions.require_keys(opts, [:id, :items, :options], 'Delivery')
8348
8444
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
8349
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
8445
+ @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItemForm) ? x : ::Io::Flow::V0::Models::LineItemForm.new(x)) }
8350
8446
  @options = HttpClient::Preconditions.assert_class('options', opts.delete(:options), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryOption) ? x : ::Io::Flow::V0::Models::DeliveryOption.new(x)) }
8351
8447
  end
8352
8448
 
@@ -8406,7 +8502,7 @@ module Io
8406
8502
  opts = HttpClient::Helper.symbolize_keys(incoming)
8407
8503
  HttpClient::Preconditions.require_keys(opts, [:quote, :items, :destination], 'DeliveryForm')
8408
8504
  @quote = HttpClient::Preconditions.assert_class('quote', opts.delete(:quote), String)
8409
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
8505
+ @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItemForm) ? x : ::Io::Flow::V0::Models::LineItemForm.new(x)) }
8410
8506
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
8411
8507
  end
8412
8508
 
@@ -8514,7 +8610,7 @@ module Io
8514
8610
  opts = HttpClient::Helper.symbolize_keys(incoming)
8515
8611
  HttpClient::Preconditions.require_keys(opts, [:delivery, :items, :destination], 'DeliveryOptionForm')
8516
8612
  @delivery = HttpClient::Preconditions.assert_class('delivery', opts.delete(:delivery), String)
8517
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
8613
+ @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItemForm) ? x : ::Io::Flow::V0::Models::LineItemForm.new(x)) }
8518
8614
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
8519
8615
  end
8520
8616
 
@@ -8640,7 +8736,7 @@ module Io
8640
8736
  opts = HttpClient::Helper.symbolize_keys(incoming)
8641
8737
  HttpClient::Preconditions.require_keys(opts, [:id, :items], 'DeliverySummary')
8642
8738
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
8643
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItem) ? x : ::Io::Flow::V0::Models::LineItem.new(x)) }
8739
+ @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LineItemForm) ? x : ::Io::Flow::V0::Models::LineItemForm.new(x)) }
8644
8740
  end
8645
8741
 
8646
8742
  def to_json
@@ -14433,17 +14529,18 @@ module Io
14433
14529
  # execute the refund).
14434
14530
  class Refund
14435
14531
 
14436
- attr_reader :id, :key, :authorization, :amount, :currency, :captures
14532
+ attr_reader :id, :key, :authorization, :amount, :currency, :captures, :created_at
14437
14533
 
14438
14534
  def initialize(incoming={})
14439
14535
  opts = HttpClient::Helper.symbolize_keys(incoming)
14440
- HttpClient::Preconditions.require_keys(opts, [:id, :key, :authorization, :amount, :currency, :captures], 'Refund')
14536
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :authorization, :amount, :currency, :captures, :created_at], 'Refund')
14441
14537
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
14442
14538
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
14443
14539
  @authorization = (x = opts.delete(:authorization); x.is_a?(::Io::Flow::V0::Models::AuthorizationReference) ? x : ::Io::Flow::V0::Models::AuthorizationReference.new(x))
14444
14540
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
14445
14541
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
14446
14542
  @captures = HttpClient::Preconditions.assert_class('captures', opts.delete(:captures), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::RefundCapture) ? x : ::Io::Flow::V0::Models::RefundCapture.new(x)) }
14543
+ @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
14447
14544
  end
14448
14545
 
14449
14546
  def to_json
@@ -14461,7 +14558,8 @@ module Io
14461
14558
  :authorization => authorization.to_hash,
14462
14559
  :amount => amount,
14463
14560
  :currency => currency,
14464
- :captures => captures.map { |o| o.to_hash }
14561
+ :captures => captures.map { |o| o.to_hash },
14562
+ :created_at => created_at
14465
14563
  }
14466
14564
  end
14467
14565
 
@@ -14536,12 +14634,12 @@ module Io
14536
14634
 
14537
14635
  class RefundUpserted < Event
14538
14636
 
14539
- attr_reader :event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :captures
14637
+ attr_reader :event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :captures, :created_at
14540
14638
 
14541
14639
  def initialize(incoming={})
14542
14640
  super(:name => Event::Types::REFUND_UPSERTED)
14543
14641
  opts = HttpClient::Helper.symbolize_keys(incoming)
14544
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :captures], 'RefundUpserted')
14642
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :captures, :created_at], 'RefundUpserted')
14545
14643
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
14546
14644
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
14547
14645
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
@@ -14550,6 +14648,7 @@ module Io
14550
14648
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
14551
14649
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
14552
14650
  @captures = HttpClient::Preconditions.assert_class('captures', opts.delete(:captures), Array).map { |v| HttpClient::Preconditions.assert_class('captures', HttpClient::Helper.to_object(v), Hash) }
14651
+ @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
14553
14652
  end
14554
14653
 
14555
14654
  def to_json
@@ -14569,7 +14668,8 @@ module Io
14569
14668
  :authorization_key => authorization_key,
14570
14669
  :amount => amount,
14571
14670
  :currency => currency,
14572
- :captures => captures
14671
+ :captures => captures,
14672
+ :created_at => created_at
14573
14673
  }
14574
14674
  end
14575
14675
 
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.61
4
+ version: 0.0.62
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-22 00:00:00.000000000 Z
11
+ date: 2016-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json