flowcommerce 0.2.34 → 0.2.35

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 58e609d3919fc7a82ad2c13bb433c22ea4177d12
4
+ data.tar.gz: 4fe232b1d8d20f5304a3466c54a68a8651e8e228
5
+ SHA512:
6
+ metadata.gz: 402b83c97265093829917c32d8786aabd2733d08735d22ba3d6c8f8d7fb1b9e280621dfc196c6bfc014ad27a033406b2461a38dc98673df0055d0259ef8935f9
7
+ data.tar.gz: 29f8beb4d493d50f64713740906e30a22a8fb50d177b50a1a6f2dc9a19253e3e233ef7fd572014e40cb911eb08e9d46a050869f72380b87889abb12e89e97636
@@ -1,6 +1,6 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
2
  # Service version: 0.3.65
3
- # apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.82/ruby_client
3
+ # apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.84/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 = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.82/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.84/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.3.65' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -5295,6 +5295,8 @@ module Io
5295
5295
  LABEL_UPSERTED = 'label_upserted' unless defined?(LABEL_UPSERTED)
5296
5296
  NOTIFICATION_UPSERTED = 'notification_upserted' unless defined?(NOTIFICATION_UPSERTED)
5297
5297
  NOTIFICATION_DELETED = 'notification_deleted' unless defined?(NOTIFICATION_DELETED)
5298
+ MANIFESTED_LABEL_UPSERTED = 'manifested_label_upserted' unless defined?(MANIFESTED_LABEL_UPSERTED)
5299
+ MANIFESTED_LABEL_DELETED = 'manifested_label_deleted' unless defined?(MANIFESTED_LABEL_DELETED)
5298
5300
  LOCAL_ITEM_UPSERTED = 'local_item_upserted' unless defined?(LOCAL_ITEM_UPSERTED)
5299
5301
  LOCAL_ITEM_DELETED = 'local_item_deleted' unless defined?(LOCAL_ITEM_DELETED)
5300
5302
  MEMBERSHIP_UPSERTED = 'membership_upserted' unless defined?(MEMBERSHIP_UPSERTED)
@@ -5340,7 +5342,7 @@ module Io
5340
5342
  end
5341
5343
 
5342
5344
  def subtype_to_hash
5343
- raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, allocation_deleted, allocation_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_identifier_deleted, order_identifier_upserted, pricing_deleted, pricing_upserted, tier_upserted, tier_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, harmonized_landed_cost_upserted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, local_item_upserted, local_item_deleted, membership_upserted, membership_deleted, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted, card_authorization_upserted_v2, online_authorization_upserted, online_authorization_upserted_v2, capture_upserted, capture_upserted_v2, card_upserted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted, refund_upserted_v2, reversal_upserted, organization_rates_published, organization_countries_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
5345
+ raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, allocation_deleted, allocation_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_identifier_deleted, order_identifier_upserted, pricing_deleted, pricing_upserted, tier_upserted, tier_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, harmonized_landed_cost_upserted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, membership_upserted, membership_deleted, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted, card_authorization_upserted_v2, online_authorization_upserted, online_authorization_upserted_v2, capture_upserted, capture_upserted_v2, card_upserted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted, refund_upserted_v2, reversal_upserted, organization_rates_published, organization_countries_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
5344
5346
  end
5345
5347
 
5346
5348
  def to_hash
@@ -5400,6 +5402,8 @@ module Io
5400
5402
  when Types::LABEL_UPSERTED; LabelUpserted.new(hash)
5401
5403
  when Types::NOTIFICATION_UPSERTED; NotificationUpserted.new(hash)
5402
5404
  when Types::NOTIFICATION_DELETED; NotificationDeleted.new(hash)
5405
+ when Types::MANIFESTED_LABEL_UPSERTED; ManifestedLabelUpserted.new(hash)
5406
+ when Types::MANIFESTED_LABEL_DELETED; ManifestedLabelDeleted.new(hash)
5403
5407
  when Types::LOCAL_ITEM_UPSERTED; LocalItemUpserted.new(hash)
5404
5408
  when Types::LOCAL_ITEM_DELETED; LocalItemDeleted.new(hash)
5405
5409
  when Types::MEMBERSHIP_UPSERTED; MembershipUpserted.new(hash)
@@ -8135,7 +8139,7 @@ module Io
8135
8139
  end
8136
8140
 
8137
8141
  def EventType.ALL
8138
- @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, 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.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.allocation_deleted, EventType.allocation_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.pricing_deleted, EventType.pricing_upserted, EventType.tier_upserted, EventType.tier_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.harmonized_landed_cost_upserted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.membership_upserted, EventType.membership_deleted, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted, EventType.online_authorization_upserted_v2, EventType.capture_upserted, EventType.capture_upserted_v2, EventType.card_upserted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted, EventType.refund_upserted_v2, EventType.reversal_upserted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
8142
+ @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, 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.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.allocation_deleted, EventType.allocation_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.pricing_deleted, EventType.pricing_upserted, EventType.tier_upserted, EventType.tier_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.harmonized_landed_cost_upserted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.membership_upserted, EventType.membership_deleted, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted, EventType.online_authorization_upserted_v2, EventType.capture_upserted, EventType.capture_upserted_v2, EventType.card_upserted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted, EventType.refund_upserted_v2, EventType.reversal_upserted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
8139
8143
  end
8140
8144
 
8141
8145
  def EventType.attribute_upserted
@@ -8322,6 +8326,14 @@ module Io
8322
8326
  @@_notification_deleted ||= EventType.new('notification_deleted')
8323
8327
  end
8324
8328
 
8329
+ def EventType.manifested_label_upserted
8330
+ @@_manifested_label_upserted ||= EventType.new('manifested_label_upserted')
8331
+ end
8332
+
8333
+ def EventType.manifested_label_deleted
8334
+ @@_manifested_label_deleted ||= EventType.new('manifested_label_deleted')
8335
+ end
8336
+
8325
8337
  def EventType.local_item_upserted
8326
8338
  @@_local_item_upserted ||= EventType.new('local_item_upserted')
8327
8339
  end
@@ -9334,7 +9346,7 @@ module Io
9334
9346
  end
9335
9347
 
9336
9348
  def OrderErrorCode.ALL
9337
- @@all ||= [OrderErrorCode.generic_error, OrderErrorCode.order_item_not_available, OrderErrorCode.order_identifier_error, OrderErrorCode.domestic_shipping_unavailable]
9349
+ @@all ||= [OrderErrorCode.generic_error, OrderErrorCode.order_item_not_available, OrderErrorCode.order_identifier_error, OrderErrorCode.domestic_shipping_unavailable, OrderErrorCode.value_threshold_exceeded]
9338
9350
  end
9339
9351
 
9340
9352
  def OrderErrorCode.generic_error
@@ -9362,6 +9374,12 @@ module Io
9362
9374
  @@_domestic_shipping_unavailable ||= OrderErrorCode.new('domestic_shipping_unavailable')
9363
9375
  end
9364
9376
 
9377
+ # Indicates the order value exceeds the value threshold for destination and
9378
+ # cannot be shipped.
9379
+ def OrderErrorCode.value_threshold_exceeded
9380
+ @@_value_threshold_exceeded ||= OrderErrorCode.new('value_threshold_exceeded')
9381
+ end
9382
+
9365
9383
  def to_hash
9366
9384
  value
9367
9385
  end
@@ -19210,7 +19228,7 @@ module Io
19210
19228
 
19211
19229
  class LabelUpserted < Event
19212
19230
 
19213
- attr_reader :event_id, :timestamp, :organization, :label_id, :carrier_tracking_number, :commercial_invoice, :flow_tracking_number, :destination, :origin, :carrier, :service, :zpl, :pdf, :png, :order, :carrier_tracking_number_url, :flow_tracking_number_url
19231
+ attr_reader :event_id, :timestamp, :organization, :label_id, :carrier_tracking_number, :commercial_invoice, :flow_tracking_number, :destination, :origin, :carrier, :service, :zpl, :pdf, :png, :order, :carrier_tracking_number_url, :flow_tracking_number_url, :center_key
19214
19232
 
19215
19233
  def initialize(incoming={})
19216
19234
  super(:discriminator => Event::Types::LABEL_UPSERTED)
@@ -19233,6 +19251,7 @@ module Io
19233
19251
  @order = (x = opts.delete(:order); x.nil? ? nil : HttpClient::Preconditions.assert_class('order', x, String))
19234
19252
  @carrier_tracking_number_url = (x = opts.delete(:carrier_tracking_number_url); x.nil? ? nil : HttpClient::Preconditions.assert_class('carrier_tracking_number_url', x, String))
19235
19253
  @flow_tracking_number_url = (x = opts.delete(:flow_tracking_number_url); x.nil? ? nil : HttpClient::Preconditions.assert_class('flow_tracking_number_url', x, String))
19254
+ @center_key = (x = opts.delete(:center_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('center_key', x, String))
19236
19255
  end
19237
19256
 
19238
19257
  def to_json
@@ -19261,7 +19280,8 @@ module Io
19261
19280
  :png => png,
19262
19281
  :order => order,
19263
19282
  :carrier_tracking_number_url => carrier_tracking_number_url,
19264
- :flow_tracking_number_url => flow_tracking_number_url
19283
+ :flow_tracking_number_url => flow_tracking_number_url,
19284
+ :center_key => center_key
19265
19285
  }
19266
19286
  end
19267
19287
 
@@ -20018,6 +20038,78 @@ module Io
20018
20038
 
20019
20039
  end
20020
20040
 
20041
+ class ManifestedLabelDeleted < Event
20042
+
20043
+ attr_reader :event_id, :timestamp, :id
20044
+
20045
+ def initialize(incoming={})
20046
+ super(:discriminator => Event::Types::MANIFESTED_LABEL_DELETED)
20047
+ opts = HttpClient::Helper.symbolize_keys(incoming)
20048
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id], 'ManifestedLabelDeleted')
20049
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
20050
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
20051
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
20052
+ end
20053
+
20054
+ def to_json
20055
+ JSON.dump(to_hash)
20056
+ end
20057
+
20058
+ def copy(incoming={})
20059
+ ManifestedLabelDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
20060
+ end
20061
+
20062
+ def subtype_to_hash
20063
+ {
20064
+ :event_id => event_id,
20065
+ :timestamp => timestamp,
20066
+ :id => id
20067
+ }
20068
+ end
20069
+
20070
+ end
20071
+
20072
+ class ManifestedLabelUpserted < Event
20073
+
20074
+ attr_reader :event_id, :timestamp, :organization, :id, :manifest_id, :label_id, :flow_tracking_number, :carrier_tracking_number
20075
+
20076
+ def initialize(incoming={})
20077
+ super(:discriminator => Event::Types::MANIFESTED_LABEL_UPSERTED)
20078
+ opts = HttpClient::Helper.symbolize_keys(incoming)
20079
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id, :manifest_id, :label_id, :flow_tracking_number, :carrier_tracking_number], 'ManifestedLabelUpserted')
20080
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
20081
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
20082
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
20083
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
20084
+ @manifest_id = HttpClient::Preconditions.assert_class('manifest_id', opts.delete(:manifest_id), String)
20085
+ @label_id = HttpClient::Preconditions.assert_class('label_id', opts.delete(:label_id), String)
20086
+ @flow_tracking_number = HttpClient::Preconditions.assert_class('flow_tracking_number', opts.delete(:flow_tracking_number), String)
20087
+ @carrier_tracking_number = HttpClient::Preconditions.assert_class('carrier_tracking_number', opts.delete(:carrier_tracking_number), String)
20088
+ end
20089
+
20090
+ def to_json
20091
+ JSON.dump(to_hash)
20092
+ end
20093
+
20094
+ def copy(incoming={})
20095
+ ManifestedLabelUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
20096
+ end
20097
+
20098
+ def subtype_to_hash
20099
+ {
20100
+ :event_id => event_id,
20101
+ :timestamp => timestamp,
20102
+ :organization => organization,
20103
+ :id => id,
20104
+ :manifest_id => manifest_id,
20105
+ :label_id => label_id,
20106
+ :flow_tracking_number => flow_tracking_number,
20107
+ :carrier_tracking_number => carrier_tracking_number
20108
+ }
20109
+ end
20110
+
20111
+ end
20112
+
20021
20113
  class Margin
20022
20114
 
20023
20115
  attr_reader :type, :value
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.34
5
- prerelease:
4
+ version: 0.2.35
6
5
  platform: ruby
7
6
  authors:
8
7
  - Flow Commerce, Inc.
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2017-09-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: json
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Native ruby client for the Flow REST API. Detailed information at https://app.apibuilder.io/flow/api
@@ -41,26 +38,25 @@ files:
41
38
  homepage: https://github.com/flowcommerce/ruby-sdk
42
39
  licenses:
43
40
  - MIT
41
+ metadata: {}
44
42
  post_install_message:
45
43
  rdoc_options: []
46
44
  require_paths:
47
45
  - lib
48
46
  required_ruby_version: !ruby/object:Gem::Requirement
49
- none: false
50
47
  requirements:
51
- - - ! '>='
48
+ - - '>='
52
49
  - !ruby/object:Gem::Version
53
50
  version: '0'
54
51
  required_rubygems_version: !ruby/object:Gem::Requirement
55
- none: false
56
52
  requirements:
57
- - - ! '>='
53
+ - - '>='
58
54
  - !ruby/object:Gem::Version
59
55
  version: '0'
60
56
  requirements: []
61
57
  rubyforge_project:
62
- rubygems_version: 1.8.23.2
58
+ rubygems_version: 2.0.14.1
63
59
  signing_key:
64
- specification_version: 3
60
+ specification_version: 4
65
61
  summary: Native ruby client for the Flow REST API.
66
62
  test_files: []