flowcommerce 0.2.94 → 0.2.96

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
  SHA256:
3
- metadata.gz: a60e40c706849d2004856a9c87112aa99fed548a53b95c9ca0d3e60f345a6fae
4
- data.tar.gz: ab0bd8d5cd7d66234fb6f0fd8f9e63b81e136eb9a1031fe14a57df6ec5a3ce62
3
+ metadata.gz: ba2fa0d6f1f69d6b4b31921a0dd4c76a345333a70526d54865e3e79e154cebc7
4
+ data.tar.gz: 7d45949ae48d32ca63bf1ef1681246ca8bff8f02b1df47cd80c90e559ef41932
5
5
  SHA512:
6
- metadata.gz: b62c42492d6677d2343e352515ed180c2a30a9508a5ca4ecf3bfb367f75a769214ba28721f5d806151bb50d7085ac47884aaaad9d488f1de2c8459fe5de93908
7
- data.tar.gz: 56ad62ee37d932cb8c2640fb521feb540bfede31cd708d807337d7c601efa52bcd61bbd781323cc166e738ef01daf8a11561ab286285f374c1666be007e9b4a1
6
+ metadata.gz: 492b8c89f1aee57bd163fe670d86a0ae9c1285ef168122ebaff8dc2999d22f289ab869262810d19f20d7bfbfb805d1fd062000b0865ddd945b22fce62730be95
7
+ data.tar.gz: 2fe0335165764acc0a3f5fae3e0db24e617adb2a5b7756c91fea78b9f10aa218dbbb4df0077c7496b3c167903aef98110506b965f3f83bf34be8993b0553217b
@@ -1,5 +1,5 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.9.96
2
+ # Service version: 0.10.12
3
3
  # apibuilder 0.15.11 app.apibuilder.io/flow/api/latest/ruby_client
4
4
 
5
5
  require 'cgi'
@@ -26,7 +26,7 @@ module Io
26
26
  BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
27
27
  NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
28
28
  USER_AGENT = 'apibuilder 0.15.11 app.apibuilder.io/flow/api/latest/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.9.96' unless defined?(Constants::VERSION)
29
+ VERSION = '0.10.12' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -188,10 +188,6 @@ module Io
188
188
  @rates ||= ::Io::Flow::V0::Clients::Rates.new(self)
189
189
  end
190
190
 
191
- def harmonized_categories
192
- @harmonized_categories ||= ::Io::Flow::V0::Clients::HarmonizedCategories.new(self)
193
- end
194
-
195
191
  def harmonized_landed_costs
196
192
  @harmonized_landed_costs ||= ::Io::Flow::V0::Clients::HarmonizedLandedCosts.new(self)
197
193
  end
@@ -572,6 +568,10 @@ module Io
572
568
  @permission_checks ||= ::Io::Flow::V0::Clients::PermissionChecks.new(self)
573
569
  end
574
570
 
571
+ def price_book_item_export_options
572
+ @price_book_item_export_options ||= ::Io::Flow::V0::Clients::PriceBookItemExportOptions.new(self)
573
+ end
574
+
575
575
  def scheduled_exports
576
576
  @scheduled_exports ||= ::Io::Flow::V0::Clients::ScheduledExports.new(self)
577
577
  end
@@ -701,6 +701,7 @@ module Io
701
701
  query = {
702
702
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
703
703
  :key => (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, Array).map { |v| HttpClient::Preconditions.assert_class('key', v, String) }),
704
+ :intent => (x = opts.delete(:intent); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::AttributeIntent) ? x : ::Io::Flow::V0::Models::AttributeIntent.apply(x)).value),
704
705
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
705
706
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
706
707
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "position" : x), String)
@@ -1238,15 +1239,11 @@ module Io
1238
1239
  r.map { |x| ::Io::Flow::V0::Models::ItemMargin.new(x) }
1239
1240
  end
1240
1241
 
1241
- def post_margins_by_experience_key(organization, experience_key, item_margin_post_form, incoming={})
1242
+ def post_margins_by_experience_key(organization, experience_key, item_margin_post_form)
1242
1243
  HttpClient::Preconditions.assert_class('organization', organization, String)
1243
1244
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1244
- opts = HttpClient::Helper.symbolize_keys(incoming)
1245
- query = {
1246
- :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1247
- }.delete_if { |k, v| v.nil? }
1248
1245
  (x = item_margin_post_form; x.is_a?(::Io::Flow::V0::Models::ItemMarginPostForm) ? x : ::Io::Flow::V0::Models::ItemMarginPostForm.new(x))
1249
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/margins").with_query(query).with_json(item_margin_post_form.to_json).post
1246
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/margins").with_json(item_margin_post_form.to_json).post
1250
1247
  ::Io::Flow::V0::Models::ItemMargin.new(r)
1251
1248
  end
1252
1249
 
@@ -1272,16 +1269,12 @@ module Io
1272
1269
  ::Io::Flow::V0::Models::ItemMargin.new(r)
1273
1270
  end
1274
1271
 
1275
- def put_margins_by_experience_key_and_key(organization, experience_key, key, item_margin_put_form, incoming={})
1272
+ def put_margins_by_experience_key_and_key(organization, experience_key, key, item_margin_put_form)
1276
1273
  HttpClient::Preconditions.assert_class('organization', organization, String)
1277
1274
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1278
1275
  HttpClient::Preconditions.assert_class('key', key, String)
1279
- opts = HttpClient::Helper.symbolize_keys(incoming)
1280
- query = {
1281
- :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1282
- }.delete_if { |k, v| v.nil? }
1283
1276
  (x = item_margin_put_form; x.is_a?(::Io::Flow::V0::Models::ItemMarginPutForm) ? x : ::Io::Flow::V0::Models::ItemMarginPutForm.new(x))
1284
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/margins/#{CGI.escape(key)}").with_query(query).with_json(item_margin_put_form.to_json).put
1277
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/margins/#{CGI.escape(key)}").with_json(item_margin_put_form.to_json).put
1285
1278
  ::Io::Flow::V0::Models::ItemMargin.new(r)
1286
1279
  end
1287
1280
 
@@ -1950,7 +1943,6 @@ module Io
1950
1943
  HttpClient::Preconditions.assert_class('number', number, String)
1951
1944
  opts = HttpClient::Helper.symbolize_keys(incoming)
1952
1945
  query = {
1953
- :expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) }),
1954
1946
  :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1955
1947
  }.delete_if { |k, v| v.nil? }
1956
1948
  (x = authorization_form; x.is_a?(::Io::Flow::V0::Models::AuthorizationForm) ? x : ::Io::Flow::V0::Models::AuthorizationForm.from_json(x))
@@ -3052,27 +3044,6 @@ module Io
3052
3044
 
3053
3045
  end
3054
3046
 
3055
- class HarmonizedCategories
3056
-
3057
- def initialize(client)
3058
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
3059
- end
3060
-
3061
- def get(organization, incoming={})
3062
- HttpClient::Preconditions.assert_class('organization', organization, String)
3063
- opts = HttpClient::Helper.symbolize_keys(incoming)
3064
- query = {
3065
- :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
3066
- :parent_id => (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String)),
3067
- :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
3068
- :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer)
3069
- }.delete_if { |k, v| v.nil? }
3070
- r = @client.request("/#{CGI.escape(organization)}/harmonization/categories").with_query(query).get
3071
- r.map { |x| ::Io::Flow::V0::Models::HarmonizedCategory.new(x) }
3072
- end
3073
-
3074
- end
3075
-
3076
3047
  class HarmonizedLandedCosts
3077
3048
 
3078
3049
  def initialize(client)
@@ -6897,6 +6868,20 @@ module Io
6897
6868
 
6898
6869
  end
6899
6870
 
6871
+ class PriceBookItemExportOptions
6872
+
6873
+ def initialize(client)
6874
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
6875
+ end
6876
+
6877
+ def get(organization)
6878
+ HttpClient::Preconditions.assert_class('organization', organization, String)
6879
+ r = @client.request("/#{CGI.escape(organization)}/export/options/price_book_item").get
6880
+ ::Io::Flow::V0::Models::PriceBookItemExportOptions.new(r)
6881
+ end
6882
+
6883
+ end
6884
+
6900
6885
  class ScheduledExports
6901
6886
 
6902
6887
  def initialize(client)
@@ -9770,6 +9755,70 @@ module Io
9770
9755
 
9771
9756
  end
9772
9757
 
9758
+ # Information about which payment processor performed the transaction and how it
9759
+ # can be tracked in their system
9760
+ class ExpandablePaymentProcessor
9761
+
9762
+ module Types
9763
+ PAYMENT_PROCESSOR = 'payment_processor' unless defined?(PAYMENT_PROCESSOR)
9764
+ PAYMENT_PROCESSOR_REFERENCE = 'payment_processor_reference' unless defined?(PAYMENT_PROCESSOR_REFERENCE)
9765
+ end
9766
+
9767
+ attr_reader :discriminator
9768
+
9769
+ def initialize(incoming={})
9770
+ opts = HttpClient::Helper.symbolize_keys(incoming)
9771
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExpandablePaymentProcessor')
9772
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
9773
+ end
9774
+
9775
+ def subtype_to_hash
9776
+ raise 'Cannot serialize an instance of expandable_payment_processor directly - must use one of the specific types: payment_processor, payment_processor_reference'
9777
+ end
9778
+
9779
+ def to_hash
9780
+ subtype_to_hash.merge(:discriminator => @discriminator)
9781
+ end
9782
+
9783
+ def ExpandablePaymentProcessor.from_json(hash)
9784
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
9785
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
9786
+ if discriminator.empty?
9787
+ raise "Union type[expandable_payment_processor] requires a field named 'discriminator'"
9788
+ end
9789
+ case discriminator
9790
+ when Types::PAYMENT_PROCESSOR; PaymentProcessor.new(hash)
9791
+ when Types::PAYMENT_PROCESSOR_REFERENCE; PaymentProcessorReference.new(hash)
9792
+ else ExpandablePaymentProcessorUndefinedType.new(:discriminator => discriminator)
9793
+ end
9794
+ end
9795
+
9796
+ end
9797
+
9798
+ class ExpandablePaymentProcessorUndefinedType < ExpandablePaymentProcessor
9799
+
9800
+ attr_reader :name
9801
+
9802
+ def initialize(incoming={})
9803
+ super(:discriminator => 'undefined_type')
9804
+ opts = HttpClient::Helper.symbolize_keys(incoming)
9805
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
9806
+ end
9807
+
9808
+ def subtype_to_hash
9809
+ raise 'Unable to serialize undefined type to json'
9810
+ end
9811
+
9812
+ def copy(incoming={})
9813
+ raise 'Operation not supported for undefined type'
9814
+ end
9815
+
9816
+ def to_hash
9817
+ raise 'Operation not supported for undefined type'
9818
+ end
9819
+
9820
+ end
9821
+
9773
9822
  # A subcatalog can be represented with just it's ID, or the entire model
9774
9823
  class ExpandableSubcatalog
9775
9824
 
@@ -12926,7 +12975,7 @@ module Io
12926
12975
  end
12927
12976
 
12928
12977
  def AttributeDataType.ALL
12929
- @@all ||= [AttributeDataType.boolean, AttributeDataType.decimal, AttributeDataType.string, AttributeDataType.json_array]
12978
+ @@all ||= [AttributeDataType.boolean, AttributeDataType.integer, AttributeDataType.decimal, AttributeDataType.string, AttributeDataType.json_array]
12930
12979
  end
12931
12980
 
12932
12981
  # Boolean true/false data type
@@ -12934,6 +12983,11 @@ module Io
12934
12983
  @@_boolean ||= AttributeDataType.new('boolean')
12935
12984
  end
12936
12985
 
12986
+ # Value of the attribute must be an integer
12987
+ def AttributeDataType.integer
12988
+ @@_integer ||= AttributeDataType.new('integer')
12989
+ end
12990
+
12937
12991
  # Decimal datatype without size or precision restrictions. Commonly used for
12938
12992
  # currency values.
12939
12993
  def AttributeDataType.decimal
@@ -12981,7 +13035,7 @@ module Io
12981
13035
  end
12982
13036
 
12983
13037
  def AttributeIntent.ALL
12984
- @@all ||= [AttributeIntent.brand, AttributeIntent.color, AttributeIntent.countries_of_origin, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability, AttributeIntent.consumer_url, AttributeIntent.gtin, AttributeIntent.mpn, AttributeIntent.facet, AttributeIntent.eccn, AttributeIntent.returnable, AttributeIntent.searchable]
13038
+ @@all ||= [AttributeIntent.brand, AttributeIntent.color, AttributeIntent.countries_of_origin, AttributeIntent.product_id, AttributeIntent.fulfillment_method, AttributeIntent.hazardous, AttributeIntent.price, AttributeIntent.size, AttributeIntent.sku, AttributeIntent.taxability, AttributeIntent.consumer_url, AttributeIntent.gtin, AttributeIntent.mpn, AttributeIntent.facet, AttributeIntent.eccn, AttributeIntent.returnable, AttributeIntent.searchable, AttributeIntent.barcode, AttributeIntent.min_days_to_ship, AttributeIntent.max_days_to_ship]
12985
13039
  end
12986
13040
 
12987
13041
  # A brand name of the item (for retailers that sell multiple brands)
@@ -13078,6 +13132,23 @@ module Io
13078
13132
  @@_searchable ||= AttributeIntent.new('searchable')
13079
13133
  end
13080
13134
 
13135
+ # The barcode of this item.
13136
+ def AttributeIntent.barcode
13137
+ @@_barcode ||= AttributeIntent.new('barcode')
13138
+ end
13139
+
13140
+ # Indicates a lead time to prepare an item for shipment. If specified, we will
13141
+ # include this lead time in the delivery window calculation
13142
+ def AttributeIntent.min_days_to_ship
13143
+ @@_min_days_to_ship ||= AttributeIntent.new('min_days_to_ship')
13144
+ end
13145
+
13146
+ # Indicates a lead time to prepare an item for shipment. If specified, we will
13147
+ # include this lead time in the delivery window calculation
13148
+ def AttributeIntent.max_days_to_ship
13149
+ @@_max_days_to_ship ||= AttributeIntent.new('max_days_to_ship')
13150
+ end
13151
+
13081
13152
  def to_hash
13082
13153
  value
13083
13154
  end
@@ -20947,6 +21018,48 @@ module Io
20947
21018
 
20948
21019
  end
20949
21020
 
21021
+ class TaxReportType
21022
+
21023
+ attr_reader :value
21024
+
21025
+ def initialize(value)
21026
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
21027
+ end
21028
+
21029
+ # Returns the instance of TaxReportType for this value, creating a new instance for an unknown value
21030
+ def TaxReportType.apply(value)
21031
+ if value.instance_of?(TaxReportType)
21032
+ value
21033
+ else
21034
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
21035
+ value.nil? ? nil : (from_string(value) || TaxReportType.new(value))
21036
+ end
21037
+ end
21038
+
21039
+ # Returns the instance of TaxReportType for this value, or nil if not found
21040
+ def TaxReportType.from_string(value)
21041
+ HttpClient::Preconditions.assert_class('value', value, String)
21042
+ TaxReportType.ALL.find { |v| v.value == value }
21043
+ end
21044
+
21045
+ def TaxReportType.ALL
21046
+ @@all ||= [TaxReportType.consumer, TaxReportType.b2b]
21047
+ end
21048
+
21049
+ def TaxReportType.consumer
21050
+ @@_consumer ||= TaxReportType.new('consumer')
21051
+ end
21052
+
21053
+ def TaxReportType.b2b
21054
+ @@_b2b ||= TaxReportType.new('b2b')
21055
+ end
21056
+
21057
+ def to_hash
21058
+ value
21059
+ end
21060
+
21061
+ end
21062
+
20950
21063
  class TaxVerificationResult
20951
21064
 
20952
21065
  attr_reader :value
@@ -24023,15 +24136,12 @@ module Io
24023
24136
 
24024
24137
  class AvalaraTaxCsvSetting < TaxSetting
24025
24138
 
24026
- attr_reader :schedule, :timezone, :email_recipients
24139
+ attr_reader :reports
24027
24140
 
24028
24141
  def initialize(incoming={})
24029
24142
  super(:discriminator => TaxSetting::Types::AVALARA_TAX_CSV_SETTING)
24030
24143
  opts = HttpClient::Helper.symbolize_keys(incoming)
24031
- HttpClient::Preconditions.require_keys(opts, [:schedule, :timezone], 'AvalaraTaxCsvSetting')
24032
- @schedule = (x = opts.delete(:schedule); x.is_a?(::Io::Flow::V0::Models::RepeatSchedule) ? x : ::Io::Flow::V0::Models::RepeatSchedule.from_json(x))
24033
- @timezone = HttpClient::Preconditions.assert_class('timezone', opts.delete(:timezone), String)
24034
- @email_recipients = (x = opts.delete(:email_recipients); x.nil? ? nil : HttpClient::Preconditions.assert_class('email_recipients', x, Array).map { |v| HttpClient::Preconditions.assert_class('email_recipients', v, String) })
24144
+ @reports = (x = opts.delete(:reports); x.nil? ? nil : HttpClient::Preconditions.assert_class('reports', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::TaxReport) ? x : ::Io::Flow::V0::Models::TaxReport.new(x)) })
24035
24145
  end
24036
24146
 
24037
24147
  def to_json
@@ -24044,9 +24154,7 @@ module Io
24044
24154
 
24045
24155
  def subtype_to_hash
24046
24156
  {
24047
- :schedule => schedule.to_hash,
24048
- :timezone => timezone,
24049
- :email_recipients => email_recipients.nil? ? nil : email_recipients
24157
+ :reports => reports.nil? ? nil : reports.map { |o| o.to_hash }
24050
24158
  }
24051
24159
  end
24052
24160
 
@@ -25025,7 +25133,7 @@ module Io
25025
25133
  # capture up to the amount of the authorization.
25026
25134
  class CardAuthorization < Authorization
25027
25135
 
25028
- attr_reader :id, :key, :merchant_of_record, :method, :card, :amount, :currency, :requested, :customer, :attributes, :destination, :billing_address, :order, :ip, :result, :created_at, :expires_at, :base
25136
+ attr_reader :id, :key, :merchant_of_record, :method, :card, :amount, :currency, :requested, :customer, :attributes, :destination, :billing_address, :order, :ip, :result, :created_at, :expires_at, :base, :processor
25029
25137
 
25030
25138
  def initialize(incoming={})
25031
25139
  super(:discriminator => Authorization::Types::CARD_AUTHORIZATION)
@@ -25049,6 +25157,7 @@ module Io
25049
25157
  @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
25050
25158
  @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
25051
25159
  @base = (x = opts.delete(:base); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Money) ? x : ::Io::Flow::V0::Models::Money.new(x)))
25160
+ @processor = (x = opts.delete(:processor); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExpandablePaymentProcessor) ? x : ::Io::Flow::V0::Models::ExpandablePaymentProcessor.from_json(x)))
25052
25161
  end
25053
25162
 
25054
25163
  def to_json
@@ -25078,7 +25187,8 @@ module Io
25078
25187
  :result => result.to_hash,
25079
25188
  :created_at => created_at,
25080
25189
  :expires_at => expires_at,
25081
- :base => base.nil? ? nil : base.to_hash
25190
+ :base => base.nil? ? nil : base.to_hash,
25191
+ :processor => processor.nil? ? nil : processor.to_hash
25082
25192
  }
25083
25193
  end
25084
25194
 
@@ -25820,16 +25930,15 @@ module Io
25820
25930
 
25821
25931
  class CatalogDeleted < Event
25822
25932
 
25823
- attr_reader :event_id, :timestamp, :organization, :catalog
25933
+ attr_reader :event_id, :timestamp, :organization
25824
25934
 
25825
25935
  def initialize(incoming={})
25826
25936
  super(:discriminator => Event::Types::CATALOG_DELETED)
25827
25937
  opts = HttpClient::Helper.symbolize_keys(incoming)
25828
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog], 'CatalogDeleted')
25938
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization], 'CatalogDeleted')
25829
25939
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
25830
25940
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
25831
25941
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
25832
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
25833
25942
  end
25834
25943
 
25835
25944
  def to_json
@@ -25844,8 +25953,7 @@ module Io
25844
25953
  {
25845
25954
  :event_id => event_id,
25846
25955
  :timestamp => timestamp,
25847
- :organization => organization,
25848
- :catalog => catalog
25956
+ :organization => organization
25849
25957
  }
25850
25958
  end
25851
25959
 
@@ -25853,17 +25961,16 @@ module Io
25853
25961
 
25854
25962
  class CatalogItemDeleted < Event
25855
25963
 
25856
- attr_reader :event_id, :timestamp, :organization, :number, :catalog
25964
+ attr_reader :event_id, :timestamp, :organization, :number
25857
25965
 
25858
25966
  def initialize(incoming={})
25859
25967
  super(:discriminator => Event::Types::CATALOG_ITEM_DELETED)
25860
25968
  opts = HttpClient::Helper.symbolize_keys(incoming)
25861
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog], 'CatalogItemDeleted')
25969
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number], 'CatalogItemDeleted')
25862
25970
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
25863
25971
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
25864
25972
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
25865
25973
  @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
25866
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
25867
25974
  end
25868
25975
 
25869
25976
  def to_json
@@ -25879,8 +25986,7 @@ module Io
25879
25986
  :event_id => event_id,
25880
25987
  :timestamp => timestamp,
25881
25988
  :organization => organization,
25882
- :number => number,
25883
- :catalog => catalog
25989
+ :number => number
25884
25990
  }
25885
25991
  end
25886
25992
 
@@ -26073,17 +26179,16 @@ module Io
26073
26179
 
26074
26180
  class CatalogItemUpserted < Event
26075
26181
 
26076
- attr_reader :event_id, :timestamp, :organization, :number, :catalog, :locale, :name, :currency, :price, :categories, :description, :attributes, :dimensions, :images
26182
+ attr_reader :event_id, :timestamp, :organization, :number, :locale, :name, :currency, :price, :categories, :description, :attributes, :dimensions, :images
26077
26183
 
26078
26184
  def initialize(incoming={})
26079
26185
  super(:discriminator => Event::Types::CATALOG_ITEM_UPSERTED)
26080
26186
  opts = HttpClient::Helper.symbolize_keys(incoming)
26081
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :locale, :name, :currency, :price, :categories, :attributes, :dimensions, :images], 'CatalogItemUpserted')
26187
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :locale, :name, :currency, :price, :categories, :attributes, :dimensions, :images], 'CatalogItemUpserted')
26082
26188
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
26083
26189
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
26084
26190
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
26085
26191
  @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
26086
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
26087
26192
  @locale = HttpClient::Preconditions.assert_class('locale', opts.delete(:locale), String)
26088
26193
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
26089
26194
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
@@ -26109,7 +26214,6 @@ module Io
26109
26214
  :timestamp => timestamp,
26110
26215
  :organization => organization,
26111
26216
  :number => number,
26112
- :catalog => catalog,
26113
26217
  :locale => locale,
26114
26218
  :name => name,
26115
26219
  :currency => currency,
@@ -26252,16 +26356,15 @@ module Io
26252
26356
 
26253
26357
  class CatalogUpserted < Event
26254
26358
 
26255
- attr_reader :event_id, :timestamp, :organization, :catalog
26359
+ attr_reader :event_id, :timestamp, :organization
26256
26360
 
26257
26361
  def initialize(incoming={})
26258
26362
  super(:discriminator => Event::Types::CATALOG_UPSERTED)
26259
26363
  opts = HttpClient::Helper.symbolize_keys(incoming)
26260
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog], 'CatalogUpserted')
26364
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization], 'CatalogUpserted')
26261
26365
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
26262
26366
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
26263
26367
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
26264
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
26265
26368
  end
26266
26369
 
26267
26370
  def to_json
@@ -26276,8 +26379,7 @@ module Io
26276
26379
  {
26277
26380
  :event_id => event_id,
26278
26381
  :timestamp => timestamp,
26279
- :organization => organization,
26280
- :catalog => catalog
26382
+ :organization => organization
26281
26383
  }
26282
26384
  end
26283
26385
 
@@ -28528,23 +28630,20 @@ module Io
28528
28630
 
28529
28631
  end
28530
28632
 
28531
- # Represents the format used to export price book item documents
28532
- class CsvPriceBookItemExportRow
28633
+ class CsvPriceBookItemExportRowByItemNumber
28533
28634
 
28534
- attr_reader :price_book_key, :price_book_item_key, :item_number, :sku, :item_name, :amount, :item_attributes, :starts_at, :ends_at
28635
+ attr_reader :item_number, :price_book_key, :price_book_item_key, :item_name, :amount, :item_attributes, :schedule
28535
28636
 
28536
28637
  def initialize(incoming={})
28537
28638
  opts = HttpClient::Helper.symbolize_keys(incoming)
28538
- HttpClient::Preconditions.require_keys(opts, [:price_book_key, :price_book_item_key, :item_number, :sku, :item_name, :amount, :starts_at], 'CsvPriceBookItemExportRow')
28639
+ HttpClient::Preconditions.require_keys(opts, [:item_number, :price_book_key, :price_book_item_key, :item_name, :amount, :schedule], 'CsvPriceBookItemExportRowByItemNumber')
28640
+ @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
28539
28641
  @price_book_key = HttpClient::Preconditions.assert_class('price_book_key', opts.delete(:price_book_key), String)
28540
28642
  @price_book_item_key = HttpClient::Preconditions.assert_class('price_book_item_key', opts.delete(:price_book_item_key), String)
28541
- @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
28542
- @sku = HttpClient::Preconditions.assert_class('sku', opts.delete(:sku), String)
28543
28643
  @item_name = HttpClient::Preconditions.assert_class('item_name', opts.delete(:item_name), String)
28544
28644
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
28545
28645
  @item_attributes = (x = opts.delete(:item_attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('item_attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('item_attributes', d[1], String); h })
28546
- @starts_at = HttpClient::Preconditions.assert_class('starts_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:starts_at)), DateTime)
28547
- @ends_at = (x = opts.delete(:ends_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('ends_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
28646
+ @schedule = (x = opts.delete(:schedule); x.is_a?(::Io::Flow::V0::Models::PriceBookItemSchedule) ? x : ::Io::Flow::V0::Models::PriceBookItemSchedule.new(x))
28548
28647
  end
28549
28648
 
28550
28649
  def to_json
@@ -28552,20 +28651,56 @@ module Io
28552
28651
  end
28553
28652
 
28554
28653
  def copy(incoming={})
28555
- CsvPriceBookItemExportRow.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28654
+ CsvPriceBookItemExportRowByItemNumber.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28556
28655
  end
28557
28656
 
28558
28657
  def to_hash
28559
28658
  {
28659
+ :item_number => item_number,
28560
28660
  :price_book_key => price_book_key,
28561
28661
  :price_book_item_key => price_book_item_key,
28562
- :item_number => item_number,
28662
+ :item_name => item_name,
28663
+ :amount => amount.to_f.to_s,
28664
+ :item_attributes => item_attributes.nil? ? nil : item_attributes,
28665
+ :schedule => schedule.to_hash
28666
+ }
28667
+ end
28668
+
28669
+ end
28670
+
28671
+ class CsvPriceBookItemExportRowBySku
28672
+
28673
+ attr_reader :sku, :price_book_key, :price_book_item_key, :item_name, :amount, :item_attributes, :schedule
28674
+
28675
+ def initialize(incoming={})
28676
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28677
+ HttpClient::Preconditions.require_keys(opts, [:sku, :price_book_key, :price_book_item_key, :item_name, :amount, :schedule], 'CsvPriceBookItemExportRowBySku')
28678
+ @sku = HttpClient::Preconditions.assert_class('sku', opts.delete(:sku), String)
28679
+ @price_book_key = HttpClient::Preconditions.assert_class('price_book_key', opts.delete(:price_book_key), String)
28680
+ @price_book_item_key = HttpClient::Preconditions.assert_class('price_book_item_key', opts.delete(:price_book_item_key), String)
28681
+ @item_name = HttpClient::Preconditions.assert_class('item_name', opts.delete(:item_name), String)
28682
+ @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
28683
+ @item_attributes = (x = opts.delete(:item_attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('item_attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('item_attributes', d[1], String); h })
28684
+ @schedule = (x = opts.delete(:schedule); x.is_a?(::Io::Flow::V0::Models::PriceBookItemSchedule) ? x : ::Io::Flow::V0::Models::PriceBookItemSchedule.new(x))
28685
+ end
28686
+
28687
+ def to_json
28688
+ JSON.dump(to_hash)
28689
+ end
28690
+
28691
+ def copy(incoming={})
28692
+ CsvPriceBookItemExportRowBySku.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28693
+ end
28694
+
28695
+ def to_hash
28696
+ {
28563
28697
  :sku => sku,
28698
+ :price_book_key => price_book_key,
28699
+ :price_book_item_key => price_book_item_key,
28564
28700
  :item_name => item_name,
28565
28701
  :amount => amount.to_f.to_s,
28566
28702
  :item_attributes => item_attributes.nil? ? nil : item_attributes,
28567
- :starts_at => starts_at,
28568
- :ends_at => ends_at
28703
+ :schedule => schedule.to_hash
28569
28704
  }
28570
28705
  end
28571
28706
 
@@ -32017,7 +32152,7 @@ module Io
32017
32152
  # Experiences define a local experience for a given geographic region
32018
32153
  class ExperienceForm
32019
32154
 
32020
- attr_reader :region_id, :name, :delivered_duty, :country, :currency, :language, :key, :measurement_system, :subcatalog_id
32155
+ attr_reader :region_id, :name, :delivered_duty, :country, :currency, :language, :key, :position, :measurement_system, :subcatalog_id
32021
32156
 
32022
32157
  def initialize(incoming={})
32023
32158
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -32029,6 +32164,7 @@ module Io
32029
32164
  @currency = (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String))
32030
32165
  @language = (x = opts.delete(:language); x.nil? ? nil : HttpClient::Preconditions.assert_class('language', x, String))
32031
32166
  @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
32167
+ @position = (x = opts.delete(:position); x.nil? ? nil : HttpClient::Preconditions.assert_class('position', x, Integer))
32032
32168
  @measurement_system = (x = opts.delete(:measurement_system); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::MeasurementSystem) ? x : ::Io::Flow::V0::Models::MeasurementSystem.apply(x)))
32033
32169
  @subcatalog_id = (x = opts.delete(:subcatalog_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('subcatalog_id', x, String))
32034
32170
  end
@@ -32050,6 +32186,7 @@ module Io
32050
32186
  :currency => currency,
32051
32187
  :language => language,
32052
32188
  :key => key,
32189
+ :position => position,
32053
32190
  :measurement_system => measurement_system.nil? ? nil : measurement_system.value,
32054
32191
  :subcatalog_id => subcatalog_id
32055
32192
  }
@@ -33457,7 +33594,7 @@ module Io
33457
33594
 
33458
33595
  end
33459
33596
 
33460
- # Rule to apply to enable white-listing and black-listing for an email address.
33597
+ # Rule to apply to enable allow-listing and deny-listing for an email address.
33461
33598
  class FraudEmailRule
33462
33599
 
33463
33600
  attr_reader :id, :email, :decision
@@ -34603,37 +34740,6 @@ module Io
34603
34740
 
34604
34741
  end
34605
34742
 
34606
- # Categories optimized for harmonization
34607
- class HarmonizedCategory
34608
-
34609
- attr_reader :id, :name, :parent
34610
-
34611
- def initialize(incoming={})
34612
- opts = HttpClient::Helper.symbolize_keys(incoming)
34613
- HttpClient::Preconditions.require_keys(opts, [:id, :name], 'HarmonizedCategory')
34614
- @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
34615
- @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
34616
- @parent = (x = opts.delete(:parent); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::HarmonizedCategoryReference) ? x : ::Io::Flow::V0::Models::HarmonizedCategoryReference.new(x)))
34617
- end
34618
-
34619
- def to_json
34620
- JSON.dump(to_hash)
34621
- end
34622
-
34623
- def copy(incoming={})
34624
- HarmonizedCategory.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
34625
- end
34626
-
34627
- def to_hash
34628
- {
34629
- :id => id,
34630
- :name => name,
34631
- :parent => parent.nil? ? nil : parent.to_hash
34632
- }
34633
- end
34634
-
34635
- end
34636
-
34637
34743
  class HarmonizedCategoryReference
34638
34744
 
34639
34745
  attr_reader :id
@@ -40019,7 +40125,7 @@ module Io
40019
40125
 
40020
40126
  class OnlineAuthorization < Authorization
40021
40127
 
40022
- attr_reader :id, :key, :method, :merchant_of_record, :details, :payment, :amount, :currency, :requested, :customer, :attributes, :destination, :billing_address, :order, :ip, :result, :created_at, :expires_at, :base
40128
+ attr_reader :id, :key, :method, :merchant_of_record, :details, :payment, :amount, :currency, :requested, :customer, :attributes, :destination, :billing_address, :order, :ip, :result, :created_at, :expires_at, :base, :processor
40023
40129
 
40024
40130
  def initialize(incoming={})
40025
40131
  super(:discriminator => Authorization::Types::ONLINE_AUTHORIZATION)
@@ -40044,6 +40150,7 @@ module Io
40044
40150
  @created_at = HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:created_at)), DateTime)
40045
40151
  @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
40046
40152
  @base = (x = opts.delete(:base); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Money) ? x : ::Io::Flow::V0::Models::Money.new(x)))
40153
+ @processor = (x = opts.delete(:processor); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExpandablePaymentProcessor) ? x : ::Io::Flow::V0::Models::ExpandablePaymentProcessor.from_json(x)))
40047
40154
  end
40048
40155
 
40049
40156
  def to_json
@@ -40074,7 +40181,8 @@ module Io
40074
40181
  :result => result.to_hash,
40075
40182
  :created_at => created_at,
40076
40183
  :expires_at => expires_at,
40077
- :base => base.nil? ? nil : base.to_hash
40184
+ :base => base.nil? ? nil : base.to_hash,
40185
+ :processor => processor.nil? ? nil : processor.to_hash
40078
40186
  }
40079
40187
  end
40080
40188
 
@@ -44232,6 +44340,155 @@ module Io
44232
44340
 
44233
44341
  end
44234
44342
 
44343
+ # Information about which payment processor performed the transaction and how it
44344
+ # can be tracked in their system
44345
+ class PaymentProcessor < ExpandablePaymentProcessor
44346
+
44347
+ attr_reader :processor, :operation_identifier, :account
44348
+
44349
+ def initialize(incoming={})
44350
+ super(:discriminator => ExpandablePaymentProcessor::Types::PAYMENT_PROCESSOR)
44351
+ opts = HttpClient::Helper.symbolize_keys(incoming)
44352
+ HttpClient::Preconditions.require_keys(opts, [:processor], 'PaymentProcessor')
44353
+ @processor = HttpClient::Preconditions.assert_class('processor', opts.delete(:processor), String)
44354
+ @operation_identifier = (x = opts.delete(:operation_identifier); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PaymentProcessorIdentifier) ? x : ::Io::Flow::V0::Models::PaymentProcessorIdentifier.new(x)))
44355
+ @account = (x = opts.delete(:account); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PaymentProcessorAccount) ? x : ::Io::Flow::V0::Models::PaymentProcessorAccount.new(x)))
44356
+ end
44357
+
44358
+ def to_json
44359
+ JSON.dump(to_hash)
44360
+ end
44361
+
44362
+ def copy(incoming={})
44363
+ PaymentProcessor.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
44364
+ end
44365
+
44366
+ def subtype_to_hash
44367
+ {
44368
+ :processor => processor,
44369
+ :operation_identifier => operation_identifier.nil? ? nil : operation_identifier.to_hash,
44370
+ :account => account.nil? ? nil : account.to_hash
44371
+ }
44372
+ end
44373
+
44374
+ end
44375
+
44376
+ # Information about an account with a payment processor
44377
+ class PaymentProcessorAccount
44378
+
44379
+ attr_reader :organization, :key, :identifier, :parent_account
44380
+
44381
+ def initialize(incoming={})
44382
+ opts = HttpClient::Helper.symbolize_keys(incoming)
44383
+ HttpClient::Preconditions.require_keys(opts, [:organization, :key, :identifier], 'PaymentProcessorAccount')
44384
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
44385
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
44386
+ @identifier = (x = opts.delete(:identifier); x.is_a?(::Io::Flow::V0::Models::PaymentProcessorIdentifier) ? x : ::Io::Flow::V0::Models::PaymentProcessorIdentifier.new(x))
44387
+ @parent_account = (x = opts.delete(:parent_account); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PaymentProcessorAccountReference) ? x : ::Io::Flow::V0::Models::PaymentProcessorAccountReference.new(x)))
44388
+ end
44389
+
44390
+ def to_json
44391
+ JSON.dump(to_hash)
44392
+ end
44393
+
44394
+ def copy(incoming={})
44395
+ PaymentProcessorAccount.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
44396
+ end
44397
+
44398
+ def to_hash
44399
+ {
44400
+ :organization => organization,
44401
+ :key => key,
44402
+ :identifier => identifier.to_hash,
44403
+ :parent_account => parent_account.nil? ? nil : parent_account.to_hash
44404
+ }
44405
+ end
44406
+
44407
+ end
44408
+
44409
+ class PaymentProcessorAccountReference
44410
+
44411
+ attr_reader :organization, :key
44412
+
44413
+ def initialize(incoming={})
44414
+ opts = HttpClient::Helper.symbolize_keys(incoming)
44415
+ HttpClient::Preconditions.require_keys(opts, [:organization, :key], 'PaymentProcessorAccountReference')
44416
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
44417
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
44418
+ end
44419
+
44420
+ def to_json
44421
+ JSON.dump(to_hash)
44422
+ end
44423
+
44424
+ def copy(incoming={})
44425
+ PaymentProcessorAccountReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
44426
+ end
44427
+
44428
+ def to_hash
44429
+ {
44430
+ :organization => organization,
44431
+ :key => key
44432
+ }
44433
+ end
44434
+
44435
+ end
44436
+
44437
+ class PaymentProcessorIdentifier
44438
+
44439
+ attr_reader :id, :label
44440
+
44441
+ def initialize(incoming={})
44442
+ opts = HttpClient::Helper.symbolize_keys(incoming)
44443
+ HttpClient::Preconditions.require_keys(opts, [:id, :label], 'PaymentProcessorIdentifier')
44444
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
44445
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
44446
+ end
44447
+
44448
+ def to_json
44449
+ JSON.dump(to_hash)
44450
+ end
44451
+
44452
+ def copy(incoming={})
44453
+ PaymentProcessorIdentifier.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
44454
+ end
44455
+
44456
+ def to_hash
44457
+ {
44458
+ :id => id,
44459
+ :label => label
44460
+ }
44461
+ end
44462
+
44463
+ end
44464
+
44465
+ class PaymentProcessorReference < ExpandablePaymentProcessor
44466
+
44467
+ attr_reader :processor
44468
+
44469
+ def initialize(incoming={})
44470
+ super(:discriminator => ExpandablePaymentProcessor::Types::PAYMENT_PROCESSOR_REFERENCE)
44471
+ opts = HttpClient::Helper.symbolize_keys(incoming)
44472
+ HttpClient::Preconditions.require_keys(opts, [:processor], 'PaymentProcessorReference')
44473
+ @processor = HttpClient::Preconditions.assert_class('processor', opts.delete(:processor), String)
44474
+ end
44475
+
44476
+ def to_json
44477
+ JSON.dump(to_hash)
44478
+ end
44479
+
44480
+ def copy(incoming={})
44481
+ PaymentProcessorReference.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
44482
+ end
44483
+
44484
+ def subtype_to_hash
44485
+ {
44486
+ :processor => processor
44487
+ }
44488
+ end
44489
+
44490
+ end
44491
+
44235
44492
  class PaymentReference
44236
44493
 
44237
44494
  attr_reader :id
@@ -44949,6 +45206,32 @@ module Io
44949
45206
 
44950
45207
  end
44951
45208
 
45209
+ class PriceBookItemExportOptions
45210
+
45211
+ attr_reader :available_identifiers
45212
+
45213
+ def initialize(incoming={})
45214
+ opts = HttpClient::Helper.symbolize_keys(incoming)
45215
+ HttpClient::Preconditions.require_keys(opts, [:available_identifiers], 'PriceBookItemExportOptions')
45216
+ @available_identifiers = HttpClient::Preconditions.assert_class('available_identifiers', opts.delete(:available_identifiers), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ItemIdentifier) ? x : ::Io::Flow::V0::Models::ItemIdentifier.apply(x)) }
45217
+ end
45218
+
45219
+ def to_json
45220
+ JSON.dump(to_hash)
45221
+ end
45222
+
45223
+ def copy(incoming={})
45224
+ PriceBookItemExportOptions.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
45225
+ end
45226
+
45227
+ def to_hash
45228
+ {
45229
+ :available_identifiers => available_identifiers.map { |o| o.value }
45230
+ }
45231
+ end
45232
+
45233
+ end
45234
+
44952
45235
  # Defines the filters that can be applied when requesting a price book item data
44953
45236
  # export
44954
45237
  class PriceBookItemExportType < ExportType
@@ -50637,7 +50920,7 @@ module Io
50637
50920
  # shipper to transport a package from a given origin to destination
50638
50921
  class ShippingLabel
50639
50922
 
50640
- attr_reader :id, :attributes, :carrier_tracking_number, :carrier_tracking_number_url, :cost, :destination, :flow_tracking_number, :flow_tracking_number_url, :origin, :service, :window, :label, :invoice, :return_, :order, :package, :order_identifier, :fulfillment_key, :shipment_recipient
50923
+ attr_reader :id, :attributes, :carrier_tracking_number, :carrier_tracking_number_url, :cost, :destination, :flow_tracking_number, :flow_tracking_number_url, :origin, :service, :window, :label, :invoice, :return_, :order, :package, :order_identifier, :fulfillment_key, :shipment_recipient, :created_at, :updated_at
50641
50924
 
50642
50925
  def initialize(incoming={})
50643
50926
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -50661,6 +50944,8 @@ module Io
50661
50944
  @order_identifier = (x = opts.delete(:order_identifier); x.nil? ? nil : HttpClient::Preconditions.assert_class('order_identifier', x, String))
50662
50945
  @fulfillment_key = (x = opts.delete(:fulfillment_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('fulfillment_key', x, String))
50663
50946
  @shipment_recipient = (x = opts.delete(:shipment_recipient); x.is_a?(::Io::Flow::V0::Models::ShipmentRecipient) ? x : ::Io::Flow::V0::Models::ShipmentRecipient.apply(x))
50947
+ @created_at = (x = opts.delete(:created_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
50948
+ @updated_at = (x = opts.delete(:updated_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('updated_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
50664
50949
  end
50665
50950
 
50666
50951
  def to_json
@@ -50691,7 +50976,9 @@ module Io
50691
50976
  :package => package.nil? ? nil : package.to_hash,
50692
50977
  :order_identifier => order_identifier,
50693
50978
  :fulfillment_key => fulfillment_key,
50694
- :shipment_recipient => shipment_recipient.value
50979
+ :shipment_recipient => shipment_recipient.value,
50980
+ :created_at => created_at,
50981
+ :updated_at => updated_at
50695
50982
  }
50696
50983
  end
50697
50984
 
@@ -52119,12 +52406,13 @@ module Io
52119
52406
  # Model to represent romanized order detail metafield
52120
52407
  class ShopifyOrderRomanizationMetafield
52121
52408
 
52122
- attr_reader :destination
52409
+ attr_reader :destination, :billing
52123
52410
 
52124
52411
  def initialize(incoming={})
52125
52412
  opts = HttpClient::Helper.symbolize_keys(incoming)
52126
52413
  HttpClient::Preconditions.require_keys(opts, [:destination], 'ShopifyOrderRomanizationMetafield')
52127
52414
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::OrderAddress) ? x : ::Io::Flow::V0::Models::OrderAddress.new(x))
52415
+ @billing = (x = opts.delete(:billing); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BillingAddress) ? x : ::Io::Flow::V0::Models::BillingAddress.new(x)))
52128
52416
  end
52129
52417
 
52130
52418
  def to_json
@@ -52137,7 +52425,8 @@ module Io
52137
52425
 
52138
52426
  def to_hash
52139
52427
  {
52140
- :destination => destination.to_hash
52428
+ :destination => destination.to_hash,
52429
+ :billing => billing.nil? ? nil : billing.to_hash
52141
52430
  }
52142
52431
  end
52143
52432
 
@@ -52638,8 +52927,8 @@ module Io
52638
52927
 
52639
52928
  end
52640
52929
 
52641
- # A configuration with custom query to select a subset of master catalog items
52642
- # for a localized experience
52930
+ # A configuration with custom query to select a subset of the catalog items for
52931
+ # a localized experience
52643
52932
  class Subcatalog < ExpandableSubcatalog
52644
52933
 
52645
52934
  attr_reader :id, :catalog, :settings
@@ -52673,16 +52962,15 @@ module Io
52673
52962
 
52674
52963
  class SubcatalogDeleted < Event
52675
52964
 
52676
- attr_reader :event_id, :timestamp, :organization, :catalog, :subcatalog_id
52965
+ attr_reader :event_id, :timestamp, :organization, :subcatalog_id
52677
52966
 
52678
52967
  def initialize(incoming={})
52679
52968
  super(:discriminator => Event::Types::SUBCATALOG_DELETED)
52680
52969
  opts = HttpClient::Helper.symbolize_keys(incoming)
52681
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog, :subcatalog_id], 'SubcatalogDeleted')
52970
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :subcatalog_id], 'SubcatalogDeleted')
52682
52971
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
52683
52972
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
52684
52973
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
52685
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
52686
52974
  @subcatalog_id = HttpClient::Preconditions.assert_class('subcatalog_id', opts.delete(:subcatalog_id), String)
52687
52975
  end
52688
52976
 
@@ -52699,7 +52987,6 @@ module Io
52699
52987
  :event_id => event_id,
52700
52988
  :timestamp => timestamp,
52701
52989
  :organization => organization,
52702
- :catalog => catalog,
52703
52990
  :subcatalog_id => subcatalog_id
52704
52991
  }
52705
52992
  end
@@ -52764,17 +53051,16 @@ module Io
52764
53051
 
52765
53052
  class SubcatalogItemDeleted < Event
52766
53053
 
52767
- attr_reader :event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id
53054
+ attr_reader :event_id, :timestamp, :organization, :number, :subcatalog_id
52768
53055
 
52769
53056
  def initialize(incoming={})
52770
53057
  super(:discriminator => Event::Types::SUBCATALOG_ITEM_DELETED)
52771
53058
  opts = HttpClient::Helper.symbolize_keys(incoming)
52772
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id], 'SubcatalogItemDeleted')
53059
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :subcatalog_id], 'SubcatalogItemDeleted')
52773
53060
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
52774
53061
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
52775
53062
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
52776
53063
  @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
52777
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
52778
53064
  @subcatalog_id = HttpClient::Preconditions.assert_class('subcatalog_id', opts.delete(:subcatalog_id), String)
52779
53065
  end
52780
53066
 
@@ -52792,7 +53078,6 @@ module Io
52792
53078
  :timestamp => timestamp,
52793
53079
  :organization => organization,
52794
53080
  :number => number,
52795
- :catalog => catalog,
52796
53081
  :subcatalog_id => subcatalog_id
52797
53082
  }
52798
53083
  end
@@ -52801,17 +53086,16 @@ module Io
52801
53086
 
52802
53087
  class SubcatalogItemUpserted < Event
52803
53088
 
52804
- attr_reader :event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id, :status
53089
+ attr_reader :event_id, :timestamp, :organization, :number, :subcatalog_id, :status
52805
53090
 
52806
53091
  def initialize(incoming={})
52807
53092
  super(:discriminator => Event::Types::SUBCATALOG_ITEM_UPSERTED)
52808
53093
  opts = HttpClient::Helper.symbolize_keys(incoming)
52809
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id, :status], 'SubcatalogItemUpserted')
53094
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :subcatalog_id, :status], 'SubcatalogItemUpserted')
52810
53095
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
52811
53096
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
52812
53097
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
52813
53098
  @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
52814
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
52815
53099
  @subcatalog_id = HttpClient::Preconditions.assert_class('subcatalog_id', opts.delete(:subcatalog_id), String)
52816
53100
  @status = HttpClient::Preconditions.assert_class('status', opts.delete(:status), String)
52817
53101
  end
@@ -52830,7 +53114,6 @@ module Io
52830
53114
  :timestamp => timestamp,
52831
53115
  :organization => organization,
52832
53116
  :number => number,
52833
- :catalog => catalog,
52834
53117
  :subcatalog_id => subcatalog_id,
52835
53118
  :status => status
52836
53119
  }
@@ -52985,16 +53268,15 @@ module Io
52985
53268
 
52986
53269
  class SubcatalogUpserted < Event
52987
53270
 
52988
- attr_reader :event_id, :timestamp, :organization, :catalog, :subcatalog_id
53271
+ attr_reader :event_id, :timestamp, :organization, :subcatalog_id
52989
53272
 
52990
53273
  def initialize(incoming={})
52991
53274
  super(:discriminator => Event::Types::SUBCATALOG_UPSERTED)
52992
53275
  opts = HttpClient::Helper.symbolize_keys(incoming)
52993
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog, :subcatalog_id], 'SubcatalogUpserted')
53276
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :subcatalog_id], 'SubcatalogUpserted')
52994
53277
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
52995
53278
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
52996
53279
  @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
52997
- @catalog = HttpClient::Preconditions.assert_class('catalog', opts.delete(:catalog), String)
52998
53280
  @subcatalog_id = HttpClient::Preconditions.assert_class('subcatalog_id', opts.delete(:subcatalog_id), String)
52999
53281
  end
53000
53282
 
@@ -53011,7 +53293,6 @@ module Io
53011
53293
  :event_id => event_id,
53012
53294
  :timestamp => timestamp,
53013
53295
  :organization => organization,
53014
- :catalog => catalog,
53015
53296
  :subcatalog_id => subcatalog_id
53016
53297
  }
53017
53298
  end
@@ -53653,6 +53934,38 @@ module Io
53653
53934
 
53654
53935
  end
53655
53936
 
53937
+ class TaxReport
53938
+
53939
+ attr_reader :schedule, :timezone, :types, :email_recipients
53940
+
53941
+ def initialize(incoming={})
53942
+ opts = HttpClient::Helper.symbolize_keys(incoming)
53943
+ HttpClient::Preconditions.require_keys(opts, [:schedule, :timezone], 'TaxReport')
53944
+ @schedule = (x = opts.delete(:schedule); x.is_a?(::Io::Flow::V0::Models::RepeatSchedule) ? x : ::Io::Flow::V0::Models::RepeatSchedule.from_json(x))
53945
+ @timezone = HttpClient::Preconditions.assert_class('timezone', opts.delete(:timezone), String)
53946
+ @types = HttpClient::Preconditions.assert_class('types', (x = opts.delete(:types); x.nil? ? ["consumer","b2b"] : x), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::TaxReportType) ? x : ::Io::Flow::V0::Models::TaxReportType.apply(x)) }
53947
+ @email_recipients = (x = opts.delete(:email_recipients); x.nil? ? nil : HttpClient::Preconditions.assert_class('email_recipients', x, Array).map { |v| HttpClient::Preconditions.assert_class('email_recipients', v, String) })
53948
+ end
53949
+
53950
+ def to_json
53951
+ JSON.dump(to_hash)
53952
+ end
53953
+
53954
+ def copy(incoming={})
53955
+ TaxReport.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
53956
+ end
53957
+
53958
+ def to_hash
53959
+ {
53960
+ :schedule => schedule.to_hash,
53961
+ :timezone => timezone,
53962
+ :types => types.map { |o| o.value },
53963
+ :email_recipients => email_recipients.nil? ? nil : email_recipients
53964
+ }
53965
+ end
53966
+
53967
+ end
53968
+
53656
53969
  # Represents the results from 3D Secure, if applied to an authorization
53657
53970
  class ThreeDSecure
53658
53971
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.94
4
+ version: 0.2.96
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: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json