flowcommerce 0.2.8 → 0.2.9

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: 4a1bd2f3cc71e10308457b8331b5d9c421ee6b00
4
- data.tar.gz: dd478b3d713740e73c4ccb6fa6f861272e4fab65
3
+ metadata.gz: 4cb60456322c69f94456f45975a1b97153c28101
4
+ data.tar.gz: 533be45140c1f17e35f5168ed7508223ab6b1b61
5
5
  SHA512:
6
- metadata.gz: 05d0b4cecf08f5780c2b4243d3b22882175bac68c04dc8c98f0cf7cb64385e990de785b54485142242d9e6a9a069193669344d568bee5c70cd4d11d9e823b27d
7
- data.tar.gz: 83bc9ba661bf3b2ecb82c318517499a887c2ef682a2e1c1074b6618eda303ab1cedfa6bc327a19661052c0a99b9977e92253a183d5d154f188c08a02d51a4598
6
+ metadata.gz: c93548f5c0e9d451117b43ab6600bffbfd5ca772861194ba141f06db468ca729bbb96b4426d42266b692ab5ab3cc8fd1f4502cf2ce0c1c5353a470a407e3eb9d
7
+ data.tar.gz: db77a62caecf5bfd9d58af791b4915c4ec325364562fbb06c46286c392df8f0d29da585dc81fc2c410818b9ed1a11ee4199cf74b5509ccab8f29e31c0f8ef7d8
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.2.87
3
- # apidoc:0.11.76 http://www.apidoc.me/flow/api/0.3.6/ruby_client
3
+ # apidoc:0.11.76 http://www.apidoc.me/flow/api/0.3.8/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.76 http://www.apidoc.me/flow/api/0.3.6/ruby_client' unless defined?(Constants::USER_AGENT)
28
+ USER_AGENT = 'apidoc:0.11.76 http://www.apidoc.me/flow/api/0.3.8/ruby_client' unless defined?(Constants::USER_AGENT)
29
29
  VERSION = '0.2.87' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
@@ -4726,6 +4726,8 @@ module Io
4726
4726
  ORGANIZATION_DELETED = 'organization_deleted' unless defined?(ORGANIZATION_DELETED)
4727
4727
  AUTHORIZATION_UPSERTED = 'authorization_upserted' unless defined?(AUTHORIZATION_UPSERTED)
4728
4728
  AUTHORIZATION_DELETED = 'authorization_deleted' unless defined?(AUTHORIZATION_DELETED)
4729
+ CARD_AUTHORIZATION_UPSERTED = 'card_authorization_upserted' unless defined?(CARD_AUTHORIZATION_UPSERTED)
4730
+ ONLINE_AUTHORIZATION_UPSERTED = 'online_authorization_upserted' unless defined?(ONLINE_AUTHORIZATION_UPSERTED)
4729
4731
  CAPTURE_UPSERTED = 'capture_upserted' unless defined?(CAPTURE_UPSERTED)
4730
4732
  CARD_UPSERTED = 'card_upserted' unless defined?(CARD_UPSERTED)
4731
4733
  CARD_DELETED = 'card_deleted' unless defined?(CARD_DELETED)
@@ -4746,7 +4748,7 @@ module Io
4746
4748
  end
4747
4749
 
4748
4750
  def subtype_to_hash
4749
- 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, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, membership_upserted, membership_deleted, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
4751
+ 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, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, membership_upserted, membership_deleted, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, card_authorization_upserted, online_authorization_upserted, capture_upserted, card_upserted, card_deleted, refund_upserted, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
4750
4752
  end
4751
4753
 
4752
4754
  def to_hash
@@ -4814,6 +4816,8 @@ module Io
4814
4816
  when Types::ORGANIZATION_DELETED; OrganizationDeleted.new(hash)
4815
4817
  when Types::AUTHORIZATION_UPSERTED; AuthorizationUpserted.new(hash)
4816
4818
  when Types::AUTHORIZATION_DELETED; AuthorizationDeleted.new(hash)
4819
+ when Types::CARD_AUTHORIZATION_UPSERTED; CardAuthorizationUpserted.new(hash)
4820
+ when Types::ONLINE_AUTHORIZATION_UPSERTED; OnlineAuthorizationUpserted.new(hash)
4817
4821
  when Types::CAPTURE_UPSERTED; CaptureUpserted.new(hash)
4818
4822
  when Types::CARD_UPSERTED; CardUpserted.new(hash)
4819
4823
  when Types::CARD_DELETED; CardDeleted.new(hash)
@@ -7167,7 +7171,7 @@ module Io
7167
7171
  end
7168
7172
 
7169
7173
  def EventType.ALL
7170
- @@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.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.membership_upserted, EventType.membership_deleted, 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.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
7174
+ @@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.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.membership_upserted, EventType.membership_deleted, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.card_authorization_upserted, EventType.online_authorization_upserted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
7171
7175
  end
7172
7176
 
7173
7177
  def EventType.attribute_upserted
@@ -7386,6 +7390,14 @@ module Io
7386
7390
  @@_authorization_deleted ||= EventType.new('authorization_deleted')
7387
7391
  end
7388
7392
 
7393
+ def EventType.card_authorization_upserted
7394
+ @@_card_authorization_upserted ||= EventType.new('card_authorization_upserted')
7395
+ end
7396
+
7397
+ def EventType.online_authorization_upserted
7398
+ @@_online_authorization_upserted ||= EventType.new('online_authorization_upserted')
7399
+ end
7400
+
7389
7401
  def EventType.capture_upserted
7390
7402
  @@_capture_upserted ||= EventType.new('capture_upserted')
7391
7403
  end
@@ -11142,6 +11154,40 @@ module Io
11142
11154
 
11143
11155
  end
11144
11156
 
11157
+ # Represents an authorization for a card payment method
11158
+ class CardAuthorizationUpserted < Event
11159
+
11160
+ attr_reader :event_id, :timestamp, :organization, :authorization
11161
+
11162
+ def initialize(incoming={})
11163
+ super(:discriminator => Event::Types::CARD_AUTHORIZATION_UPSERTED)
11164
+ opts = HttpClient::Helper.symbolize_keys(incoming)
11165
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :authorization], 'CardAuthorizationUpserted')
11166
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
11167
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
11168
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
11169
+ @authorization = (x = opts.delete(:authorization); x.is_a?(::Io::Flow::V0::Models::CardAuthorization) ? x : ::Io::Flow::V0::Models::CardAuthorization.new(x))
11170
+ end
11171
+
11172
+ def to_json
11173
+ JSON.dump(to_hash)
11174
+ end
11175
+
11176
+ def copy(incoming={})
11177
+ CardAuthorizationUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
11178
+ end
11179
+
11180
+ def subtype_to_hash
11181
+ {
11182
+ :event_id => event_id,
11183
+ :timestamp => timestamp,
11184
+ :organization => organization,
11185
+ :authorization => authorization.to_hash
11186
+ }
11187
+ end
11188
+
11189
+ end
11190
+
11145
11191
  class CardDeleted < Event
11146
11192
 
11147
11193
  attr_reader :event_id, :timestamp, :organization, :id
@@ -17664,6 +17710,40 @@ module Io
17664
17710
 
17665
17711
  end
17666
17712
 
17713
+ # Represents an authorization for a card payment method
17714
+ class OnlineAuthorizationUpserted < Event
17715
+
17716
+ attr_reader :event_id, :timestamp, :organization, :authorization
17717
+
17718
+ def initialize(incoming={})
17719
+ super(:discriminator => Event::Types::ONLINE_AUTHORIZATION_UPSERTED)
17720
+ opts = HttpClient::Helper.symbolize_keys(incoming)
17721
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :authorization], 'OnlineAuthorizationUpserted')
17722
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
17723
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
17724
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
17725
+ @authorization = (x = opts.delete(:authorization); x.is_a?(::Io::Flow::V0::Models::OnlineAuthorization) ? x : ::Io::Flow::V0::Models::OnlineAuthorization.new(x))
17726
+ end
17727
+
17728
+ def to_json
17729
+ JSON.dump(to_hash)
17730
+ end
17731
+
17732
+ def copy(incoming={})
17733
+ OnlineAuthorizationUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
17734
+ end
17735
+
17736
+ def subtype_to_hash
17737
+ {
17738
+ :event_id => event_id,
17739
+ :timestamp => timestamp,
17740
+ :organization => organization,
17741
+ :authorization => authorization.to_hash
17742
+ }
17743
+ end
17744
+
17745
+ end
17746
+
17667
17747
  class OptionWeightEstimates
17668
17748
 
17669
17749
  attr_reader :gravitational, :dimensional
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.