flowcommerce 0.2.86 → 0.2.94

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: c43367d48796d7ff0772ac118136bbbfc4619fb819e6e77be0fcaf6e52bd68b6
4
- data.tar.gz: '08ec019139e90fcb6f32130d5f2d66005a7da03b587b4fd73953f00a99807677'
3
+ metadata.gz: a60e40c706849d2004856a9c87112aa99fed548a53b95c9ca0d3e60f345a6fae
4
+ data.tar.gz: ab0bd8d5cd7d66234fb6f0fd8f9e63b81e136eb9a1031fe14a57df6ec5a3ce62
5
5
  SHA512:
6
- metadata.gz: 4efac635179720a82e4450d1a0f0062fd2afd25b03298bffa0ce974ad221d3a088ddbc53c311cc806661cda0816d6e307eb9922e0c8508695ebf14d61cf3cc0f
7
- data.tar.gz: dd82c7fad28c22a7d9ded9d7b9a8da1458ad1bb3da3906672233f8f6adcd8a7fabba802101f8179f873fa1c8fc120ee5465caaf3a9824e9eec912d081caa1f9f
6
+ metadata.gz: b62c42492d6677d2343e352515ed180c2a30a9508a5ca4ecf3bfb367f75a769214ba28721f5d806151bb50d7085ac47884aaaad9d488f1de2c8459fe5de93908
7
+ data.tar.gz: 56ad62ee37d932cb8c2640fb521feb540bfede31cd708d807337d7c601efa52bcd61bbd781323cc166e738ef01daf8a11561ab286285f374c1666be007e9b4a1
data/README.md CHANGED
@@ -2,13 +2,6 @@
2
2
 
3
3
  Native ruby client to the Flow API (https://api.flow.io)
4
4
 
5
- ## Status
6
-
7
- Please note that this library and APIs are in ALPHA and are subject to
8
- change and will break in the future. Once Flow Commerce releases its
9
- official 1.0 library, API changes will be backwards compatible. Until
10
- then - we are super grateful for your patience as we finalize the API
11
- for our launch.
12
5
 
13
6
  ## Installation
14
7
 
@@ -1,5 +1,5 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.9.74
2
+ # Service version: 0.9.96
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.74' unless defined?(Constants::VERSION)
29
+ VERSION = '0.9.96' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -849,10 +849,14 @@ module Io
849
849
  r.map { |x| ::Io::Flow::V0::Models::CheckoutAttribute.new(x) }
850
850
  end
851
851
 
852
- def post(organization, checkout_attribute_form)
852
+ def post(organization, checkout_attribute_form, incoming={})
853
853
  HttpClient::Preconditions.assert_class('organization', organization, String)
854
+ opts = HttpClient::Helper.symbolize_keys(incoming)
855
+ query = {
856
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
857
+ }.delete_if { |k, v| v.nil? }
854
858
  (x = checkout_attribute_form; x.is_a?(::Io::Flow::V0::Models::CheckoutAttributeForm) ? x : ::Io::Flow::V0::Models::CheckoutAttributeForm.new(x))
855
- r = @client.request("/#{CGI.escape(organization)}/checkout/attributes").with_json(checkout_attribute_form.to_json).post
859
+ r = @client.request("/#{CGI.escape(organization)}/checkout/attributes").with_query(query).with_json(checkout_attribute_form.to_json).post
856
860
  ::Io::Flow::V0::Models::CheckoutAttribute.new(r)
857
861
  end
858
862
 
@@ -863,11 +867,15 @@ module Io
863
867
  ::Io::Flow::V0::Models::CheckoutAttribute.new(r)
864
868
  end
865
869
 
866
- def put_by_id(organization, id, checkout_attribute_form)
870
+ def put_by_id(organization, id, checkout_attribute_form, incoming={})
867
871
  HttpClient::Preconditions.assert_class('organization', organization, String)
868
872
  HttpClient::Preconditions.assert_class('id', id, String)
873
+ opts = HttpClient::Helper.symbolize_keys(incoming)
874
+ query = {
875
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
876
+ }.delete_if { |k, v| v.nil? }
869
877
  (x = checkout_attribute_form; x.is_a?(::Io::Flow::V0::Models::CheckoutAttributeForm) ? x : ::Io::Flow::V0::Models::CheckoutAttributeForm.new(x))
870
- r = @client.request("/#{CGI.escape(organization)}/checkout/attributes/#{CGI.escape(id)}").with_json(checkout_attribute_form.to_json).put
878
+ r = @client.request("/#{CGI.escape(organization)}/checkout/attributes/#{CGI.escape(id)}").with_query(query).with_json(checkout_attribute_form.to_json).put
871
879
  ::Io::Flow::V0::Models::CheckoutAttribute.new(r)
872
880
  end
873
881
 
@@ -896,7 +904,8 @@ module Io
896
904
  query = {
897
905
  :number => (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, Array).map { |v| HttpClient::Preconditions.assert_class('number', v, String) }),
898
906
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
899
- :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer)
907
+ :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
908
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
900
909
  }.delete_if { |k, v| v.nil? }
901
910
  r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/item/content/checkout").with_query(query).get
902
911
  r.map { |x| ::Io::Flow::V0::Models::CheckoutItemContent.new(x) }
@@ -1071,10 +1080,14 @@ module Io
1071
1080
  end
1072
1081
 
1073
1082
  # Add experience
1074
- def post(organization, experience_form)
1083
+ def post(organization, experience_form, incoming={})
1075
1084
  HttpClient::Preconditions.assert_class('organization', organization, String)
1085
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1086
+ query = {
1087
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1088
+ }.delete_if { |k, v| v.nil? }
1076
1089
  (x = experience_form; x.is_a?(::Io::Flow::V0::Models::ExperienceForm) ? x : ::Io::Flow::V0::Models::ExperienceForm.new(x))
1077
- r = @client.request("/#{CGI.escape(organization)}/experiences").with_json(experience_form.to_json).post
1090
+ r = @client.request("/#{CGI.escape(organization)}/experiences").with_query(query).with_json(experience_form.to_json).post
1078
1091
  ::Io::Flow::V0::Models::Experience.new(r)
1079
1092
  end
1080
1093
 
@@ -1151,6 +1164,7 @@ module Io
1151
1164
  query = {
1152
1165
  :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
1153
1166
  :key => (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, Array).map { |v| HttpClient::Preconditions.assert_class('key', v, String) }),
1167
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String)),
1154
1168
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
1155
1169
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
1156
1170
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "journal_timestamp" : x), String)
@@ -1159,18 +1173,26 @@ module Io
1159
1173
  r.map { |x| ::Io::Flow::V0::Models::ExperienceVersion.new(x) }
1160
1174
  end
1161
1175
 
1162
- def get_currency_and_formats_by_experience_key(organization, experience_key)
1176
+ def get_currency_and_formats_by_experience_key(organization, experience_key, incoming={})
1163
1177
  HttpClient::Preconditions.assert_class('organization', organization, String)
1164
1178
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1165
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/currency/formats").get
1179
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1180
+ query = {
1181
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1182
+ }.delete_if { |k, v| v.nil? }
1183
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/currency/formats").with_query(query).get
1166
1184
  ::Io::Flow::V0::Models::ExperienceCurrencyFormat.new(r)
1167
1185
  end
1168
1186
 
1169
- def put_currency_and_formats_by_experience_key(organization, experience_key, experience_currency_format_form)
1187
+ def put_currency_and_formats_by_experience_key(organization, experience_key, experience_currency_format_form, incoming={})
1170
1188
  HttpClient::Preconditions.assert_class('organization', organization, String)
1171
1189
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1190
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1191
+ query = {
1192
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1193
+ }.delete_if { |k, v| v.nil? }
1172
1194
  (x = experience_currency_format_form; x.is_a?(::Io::Flow::V0::Models::ExperienceCurrencyFormatForm) ? x : ::Io::Flow::V0::Models::ExperienceCurrencyFormatForm.new(x))
1173
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/currency/formats").with_json(experience_currency_format_form.to_json).put
1195
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/currency/formats").with_query(query).with_json(experience_currency_format_form.to_json).put
1174
1196
  ::Io::Flow::V0::Models::ExperienceCurrencyFormat.new(r)
1175
1197
  end
1176
1198
 
@@ -1216,11 +1238,15 @@ module Io
1216
1238
  r.map { |x| ::Io::Flow::V0::Models::ItemMargin.new(x) }
1217
1239
  end
1218
1240
 
1219
- def post_margins_by_experience_key(organization, experience_key, item_margin_post_form)
1241
+ def post_margins_by_experience_key(organization, experience_key, item_margin_post_form, incoming={})
1220
1242
  HttpClient::Preconditions.assert_class('organization', organization, String)
1221
1243
  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? }
1222
1248
  (x = item_margin_post_form; x.is_a?(::Io::Flow::V0::Models::ItemMarginPostForm) ? x : ::Io::Flow::V0::Models::ItemMarginPostForm.new(x))
1223
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/margins").with_json(item_margin_post_form.to_json).post
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
1224
1250
  ::Io::Flow::V0::Models::ItemMargin.new(r)
1225
1251
  end
1226
1252
 
@@ -1246,12 +1272,16 @@ module Io
1246
1272
  ::Io::Flow::V0::Models::ItemMargin.new(r)
1247
1273
  end
1248
1274
 
1249
- def put_margins_by_experience_key_and_key(organization, experience_key, key, item_margin_put_form)
1275
+ def put_margins_by_experience_key_and_key(organization, experience_key, key, item_margin_put_form, incoming={})
1250
1276
  HttpClient::Preconditions.assert_class('organization', organization, String)
1251
1277
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1252
1278
  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? }
1253
1283
  (x = item_margin_put_form; x.is_a?(::Io::Flow::V0::Models::ItemMarginPutForm) ? x : ::Io::Flow::V0::Models::ItemMarginPutForm.new(x))
1254
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/margins/#{CGI.escape(key)}").with_json(item_margin_put_form.to_json).put
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
1255
1285
  ::Io::Flow::V0::Models::ItemMargin.new(r)
1256
1286
  end
1257
1287
 
@@ -1269,7 +1299,8 @@ module Io
1269
1299
  opts = HttpClient::Helper.symbolize_keys(incoming)
1270
1300
  query = {
1271
1301
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
1272
- :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer)
1302
+ :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
1303
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1273
1304
  }.delete_if { |k, v| v.nil? }
1274
1305
  r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/payment-method-types").with_query(query).get
1275
1306
  r.map { |x| ::Io::Flow::V0::Models::PaymentMethodType.new(x) }
@@ -1283,7 +1314,8 @@ module Io
1283
1314
  :payment_method_type => (x = opts.delete(:payment_method_type); x.nil? ? nil : HttpClient::Preconditions.assert_class('payment_method_type', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::PaymentMethodType) ? x : ::Io::Flow::V0::Models::PaymentMethodType.apply(x)).value }),
1284
1315
  :tags => (x = opts.delete(:tags); x.nil? ? nil : HttpClient::Preconditions.assert_class('tags', x, Array).map { |v| HttpClient::Preconditions.assert_class('tags', v, String) }),
1285
1316
  :amount => (x = opts.delete(:amount); x.nil? ? nil : HttpClient::Preconditions.assert_class('amount', x, String)),
1286
- :currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String))
1317
+ :currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)),
1318
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1287
1319
  }.delete_if { |k, v| v.nil? }
1288
1320
  r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/payment/method/rules").with_query(query).get
1289
1321
  r.map { |x| ::Io::Flow::V0::Models::PaymentMethodRule.new(x) }
@@ -1291,11 +1323,15 @@ module Io
1291
1323
 
1292
1324
  # Change the ordering or payment tags for an experience. Every post must
1293
1325
  # include one entry for each payment method offered by Flow.
1294
- def put_payment_and_method_and_rules_by_experience_key(organization, experience_key, experience_payment_method_rule_forms)
1326
+ def put_payment_and_method_and_rules_by_experience_key(organization, experience_key, experience_payment_method_rule_forms, incoming={})
1295
1327
  HttpClient::Preconditions.assert_class('organization', organization, String)
1296
1328
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1329
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1330
+ query = {
1331
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1332
+ }.delete_if { |k, v| v.nil? }
1297
1333
  HttpClient::Preconditions.assert_class('experience_payment_method_rule_forms', experience_payment_method_rule_forms, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ExperiencePaymentMethodRuleForm) ? x : ::Io::Flow::V0::Models::ExperiencePaymentMethodRuleForm.new(x)) }
1298
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/payment/method/rules").with_json(experience_payment_method_rule_forms.map { |o| o.to_hash }.to_json).put
1334
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/payment/method/rules").with_query(query).with_json(experience_payment_method_rule_forms.map { |o| o.to_hash }.to_json).put
1299
1335
  r.map { |x| ::Io::Flow::V0::Models::PaymentMethodRule.new(x) }
1300
1336
  end
1301
1337
 
@@ -1314,19 +1350,27 @@ module Io
1314
1350
  r.map { |x| ::Io::Flow::V0::Models::ExperiencePriceBookMapping.new(x) }
1315
1351
  end
1316
1352
 
1317
- def post_price_and_books_by_experience_key(organization, experience_key, experience_price_book_mapping_form)
1353
+ def post_price_and_books_by_experience_key(organization, experience_key, experience_price_book_mapping_form, incoming={})
1318
1354
  HttpClient::Preconditions.assert_class('organization', organization, String)
1319
1355
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1356
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1357
+ query = {
1358
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1359
+ }.delete_if { |k, v| v.nil? }
1320
1360
  (x = experience_price_book_mapping_form; x.is_a?(::Io::Flow::V0::Models::ExperiencePriceBookMappingForm) ? x : ::Io::Flow::V0::Models::ExperiencePriceBookMappingForm.new(x))
1321
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/price/books").with_json(experience_price_book_mapping_form.to_json).post
1361
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/price/books").with_query(query).with_json(experience_price_book_mapping_form.to_json).post
1322
1362
  ::Io::Flow::V0::Models::ExperiencePriceBookMapping.new(r)
1323
1363
  end
1324
1364
 
1325
- def put_price_and_books_by_experience_key(organization, experience_key, experience_price_book_mapping_put_form)
1365
+ def put_price_and_books_by_experience_key(organization, experience_key, experience_price_book_mapping_put_form, incoming={})
1326
1366
  HttpClient::Preconditions.assert_class('organization', organization, String)
1327
1367
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1368
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1369
+ query = {
1370
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1371
+ }.delete_if { |k, v| v.nil? }
1328
1372
  (x = experience_price_book_mapping_put_form; x.is_a?(::Io::Flow::V0::Models::ExperiencePriceBookMappingPutForm) ? x : ::Io::Flow::V0::Models::ExperiencePriceBookMappingPutForm.new(x))
1329
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/price/books").with_json(experience_price_book_mapping_put_form.to_json).put
1373
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/price/books").with_query(query).with_json(experience_price_book_mapping_put_form.to_json).put
1330
1374
  r.map { |x| ::Io::Flow::V0::Models::ExperiencePriceBookMapping.new(x) }
1331
1375
  end
1332
1376
 
@@ -1347,37 +1391,53 @@ module Io
1347
1391
  end
1348
1392
 
1349
1393
  # Returns information about a specific experience.
1350
- def get_by_key(organization, key)
1394
+ def get_by_key(organization, key, incoming={})
1351
1395
  HttpClient::Preconditions.assert_class('organization', organization, String)
1352
1396
  HttpClient::Preconditions.assert_class('key', key, String)
1353
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}").get
1397
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1398
+ query = {
1399
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1400
+ }.delete_if { |k, v| v.nil? }
1401
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}").with_query(query).get
1354
1402
  ::Io::Flow::V0::Models::Experience.new(r)
1355
1403
  end
1356
1404
 
1357
1405
  # Update experience with the specified key, creating if it does not exist.
1358
- def put_by_key(organization, key, experience_form)
1406
+ def put_by_key(organization, key, experience_form, incoming={})
1359
1407
  HttpClient::Preconditions.assert_class('organization', organization, String)
1360
1408
  HttpClient::Preconditions.assert_class('key', key, String)
1409
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1410
+ query = {
1411
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1412
+ }.delete_if { |k, v| v.nil? }
1361
1413
  (x = experience_form; x.is_a?(::Io::Flow::V0::Models::ExperienceForm) ? x : ::Io::Flow::V0::Models::ExperienceForm.new(x))
1362
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}").with_json(experience_form.to_json).put
1414
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}").with_query(query).with_json(experience_form.to_json).put
1363
1415
  ::Io::Flow::V0::Models::Experience.new(r)
1364
1416
  end
1365
1417
 
1366
1418
  # Delete the experience with this key
1367
- def delete_by_key(organization, key)
1419
+ def delete_by_key(organization, key, incoming={})
1368
1420
  HttpClient::Preconditions.assert_class('organization', organization, String)
1369
1421
  HttpClient::Preconditions.assert_class('key', key, String)
1370
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}").delete
1422
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1423
+ query = {
1424
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1425
+ }.delete_if { |k, v| v.nil? }
1426
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}").with_query(query).delete
1371
1427
  nil
1372
1428
  end
1373
1429
 
1374
1430
  # Clones the experience with the specified key, using data from
1375
1431
  # experience_clone_form.
1376
- def post_clone_by_key(organization, key, experience_clone_form)
1432
+ def post_clone_by_key(organization, key, experience_clone_form, incoming={})
1377
1433
  HttpClient::Preconditions.assert_class('organization', organization, String)
1378
1434
  HttpClient::Preconditions.assert_class('key', key, String)
1435
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1436
+ query = {
1437
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1438
+ }.delete_if { |k, v| v.nil? }
1379
1439
  (x = experience_clone_form; x.is_a?(::Io::Flow::V0::Models::ExperienceCloneForm) ? x : ::Io::Flow::V0::Models::ExperienceCloneForm.new(x))
1380
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/clone").with_json(experience_clone_form.to_json).post
1440
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/clone").with_query(query).with_json(experience_clone_form.to_json).post
1381
1441
  ::Io::Flow::V0::Models::ExperienceClone.new(r)
1382
1442
  end
1383
1443
 
@@ -1412,10 +1472,14 @@ module Io
1412
1472
  end
1413
1473
 
1414
1474
  # Get the pricing settings for this experience
1415
- def get_pricing_by_key(organization, key)
1475
+ def get_pricing_by_key(organization, key, incoming={})
1416
1476
  HttpClient::Preconditions.assert_class('organization', organization, String)
1417
1477
  HttpClient::Preconditions.assert_class('key', key, String)
1418
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/pricing").get
1478
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1479
+ query = {
1480
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1481
+ }.delete_if { |k, v| v.nil? }
1482
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/pricing").with_query(query).get
1419
1483
  ::Io::Flow::V0::Models::Pricing.new(r)
1420
1484
  end
1421
1485
 
@@ -1433,19 +1497,27 @@ module Io
1433
1497
  end
1434
1498
 
1435
1499
  # Get available promotions for the experience
1436
- def get_promotions_and_available_by_key(organization, key)
1500
+ def get_promotions_and_available_by_key(organization, key, incoming={})
1437
1501
  HttpClient::Preconditions.assert_class('organization', organization, String)
1438
1502
  HttpClient::Preconditions.assert_class('key', key, String)
1439
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/promotions/available").get
1503
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1504
+ query = {
1505
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1506
+ }.delete_if { |k, v| v.nil? }
1507
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/promotions/available").with_query(query).get
1440
1508
  r.map { |x| ::Io::Flow::V0::Models::Promotion.from_json(x) }
1441
1509
  end
1442
1510
 
1443
1511
  # Updates the status of a given experience.
1444
- def put_status_by_key(organization, key, experience_status_form)
1512
+ def put_status_by_key(organization, key, experience_status_form, incoming={})
1445
1513
  HttpClient::Preconditions.assert_class('organization', organization, String)
1446
1514
  HttpClient::Preconditions.assert_class('key', key, String)
1515
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1516
+ query = {
1517
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1518
+ }.delete_if { |k, v| v.nil? }
1447
1519
  (x = experience_status_form; x.is_a?(::Io::Flow::V0::Models::ExperienceStatusForm) ? x : ::Io::Flow::V0::Models::ExperienceStatusForm.new(x))
1448
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/status").with_json(experience_status_form.to_json).put
1520
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(key)}/status").with_query(query).with_json(experience_status_form.to_json).put
1449
1521
  ::Io::Flow::V0::Models::Experience.new(r)
1450
1522
  end
1451
1523
 
@@ -1457,18 +1529,26 @@ module Io
1457
1529
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
1458
1530
  end
1459
1531
 
1460
- def get(organization, experience_key)
1532
+ def get(organization, experience_key, incoming={})
1461
1533
  HttpClient::Preconditions.assert_class('organization', organization, String)
1462
1534
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1463
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/checkout").get
1535
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1536
+ query = {
1537
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1538
+ }.delete_if { |k, v| v.nil? }
1539
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/checkout").with_query(query).get
1464
1540
  ::Io::Flow::V0::Models::ExperienceCheckoutSettings.new(r)
1465
1541
  end
1466
1542
 
1467
- def put(organization, experience_key, experience_checkout_settings_form)
1543
+ def put(organization, experience_key, experience_checkout_settings_form, incoming={})
1468
1544
  HttpClient::Preconditions.assert_class('organization', organization, String)
1469
1545
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1546
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1547
+ query = {
1548
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1549
+ }.delete_if { |k, v| v.nil? }
1470
1550
  (x = experience_checkout_settings_form; x.is_a?(::Io::Flow::V0::Models::ExperienceCheckoutSettingsForm) ? x : ::Io::Flow::V0::Models::ExperienceCheckoutSettingsForm.new(x))
1471
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/checkout").with_json(experience_checkout_settings_form.to_json).put
1551
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/checkout").with_query(query).with_json(experience_checkout_settings_form.to_json).put
1472
1552
  ::Io::Flow::V0::Models::ExperienceCheckoutSettings.new(r)
1473
1553
  end
1474
1554
 
@@ -1485,7 +1565,8 @@ module Io
1485
1565
  HttpClient::Preconditions.assert_class('organization', organization, String)
1486
1566
  opts = HttpClient::Helper.symbolize_keys(incoming)
1487
1567
  query = {
1488
- :region_id => (x = opts.delete(:region_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('region_id', x, String))
1568
+ :region_id => (x = opts.delete(:region_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('region_id', x, String)),
1569
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1489
1570
  }.delete_if { |k, v| v.nil? }
1490
1571
  r = @client.request("/#{CGI.escape(organization)}/experience/defaults").with_query(query).get
1491
1572
  ::Io::Flow::V0::Models::ExperienceDefaults.new(r)
@@ -1506,11 +1587,15 @@ module Io
1506
1587
  ::Io::Flow::V0::Models::ExperienceLogisticsSettings.new(r)
1507
1588
  end
1508
1589
 
1509
- def put(organization, experience_key, experience_logistics_settings_put_form)
1590
+ def put(organization, experience_key, experience_logistics_settings_put_form, incoming={})
1510
1591
  HttpClient::Preconditions.assert_class('organization', organization, String)
1511
1592
  HttpClient::Preconditions.assert_class('experience_key', experience_key, String)
1593
+ opts = HttpClient::Helper.symbolize_keys(incoming)
1594
+ query = {
1595
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1596
+ }.delete_if { |k, v| v.nil? }
1512
1597
  (x = experience_logistics_settings_put_form; x.is_a?(::Io::Flow::V0::Models::ExperienceLogisticsSettingsPutForm) ? x : ::Io::Flow::V0::Models::ExperienceLogisticsSettingsPutForm.new(x))
1513
- r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/logistics").with_json(experience_logistics_settings_put_form.to_json).put
1598
+ r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/logistics").with_query(query).with_json(experience_logistics_settings_put_form.to_json).put
1514
1599
  ::Io::Flow::V0::Models::ExperienceLogisticsSettings.new(r)
1515
1600
  end
1516
1601
 
@@ -1725,6 +1810,7 @@ module Io
1725
1810
  :customer_number => (x = opts.delete(:customer_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('customer_number', x, String)),
1726
1811
  :submitted_at_on_or_after => (x = opts.delete(:submitted_at_on_or_after); x.nil? ? nil : HttpClient::Preconditions.assert_class('submitted_at_on_or_after', HttpClient::Helper.to_date_time_iso8601(x), DateTime)),
1727
1812
  :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) }),
1813
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String)),
1728
1814
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
1729
1815
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
1730
1816
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "-created_at" : x), String),
@@ -1762,7 +1848,8 @@ module Io
1762
1848
  opts = HttpClient::Helper.symbolize_keys(incoming)
1763
1849
  query = {
1764
1850
  :expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) }),
1765
- :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) })
1851
+ :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) }),
1852
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1766
1853
  }.delete_if { |k, v| v.nil? }
1767
1854
  r = @client.request("/#{CGI.escape(organization)}/orders/identifier/#{CGI.escape(identifier)}").with_query(query).get
1768
1855
  ::Io::Flow::V0::Models::Order.new(r)
@@ -1810,7 +1897,8 @@ module Io
1810
1897
  opts = HttpClient::Helper.symbolize_keys(incoming)
1811
1898
  query = {
1812
1899
  :expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) }),
1813
- :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) })
1900
+ :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) }),
1901
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
1814
1902
  }.delete_if { |k, v| v.nil? }
1815
1903
  r = @client.request("/#{CGI.escape(organization)}/orders/#{CGI.escape(number)}").with_query(query).get
1816
1904
  ::Io::Flow::V0::Models::Order.new(r)
@@ -2033,7 +2121,8 @@ module Io
2033
2121
  opts = HttpClient::Helper.symbolize_keys(incoming)
2034
2122
  query = {
2035
2123
  :expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) }),
2036
- :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) })
2124
+ :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) }),
2125
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
2037
2126
  }.delete_if { |k, v| v.nil? }
2038
2127
  r = @client.request("/#{CGI.escape(organization)}/order/builders/#{CGI.escape(number)}").with_query(query).get
2039
2128
  ::Io::Flow::V0::Models::OrderBuilder.new(r)
@@ -2231,7 +2320,8 @@ module Io
2231
2320
  opts = HttpClient::Helper.symbolize_keys(incoming)
2232
2321
  query = {
2233
2322
  :expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) }),
2234
- :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) })
2323
+ :romanize => (x = opts.delete(:romanize); x.nil? ? nil : HttpClient::Preconditions.assert_class('romanize', x, Array).map { |v| HttpClient::Preconditions.assert_class('romanize', v, String) }),
2324
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
2235
2325
  }.delete_if { |k, v| v.nil? }
2236
2326
  r = @client.request("/#{CGI.escape(organization)}/order-estimates/#{CGI.escape(number)}").with_query(query).get
2237
2327
  ::Io::Flow::V0::Models::Experience.new(r)
@@ -2402,7 +2492,8 @@ module Io
2402
2492
  query = {
2403
2493
  :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
2404
2494
  :country => (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String)),
2405
- :status => HttpClient::Preconditions.assert_class('status', (x = opts.delete(:status); x.nil? ? [] : x), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ExperienceStatus) ? x : ::Io::Flow::V0::Models::ExperienceStatus.apply(x)).value }
2495
+ :status => HttpClient::Preconditions.assert_class('status', (x = opts.delete(:status); x.nil? ? [] : x), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ExperienceStatus) ? x : ::Io::Flow::V0::Models::ExperienceStatus.apply(x)).value },
2496
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
2406
2497
  }.delete_if { |k, v| v.nil? }
2407
2498
  r = @client.request("/#{CGI.escape(organization)}/countries").with_query(query).get
2408
2499
  r.map { |x| ::Io::Flow::V0::Models::Country.new(x) }
@@ -2416,6 +2507,21 @@ module Io
2416
2507
  r.map { |x| ::Io::Flow::V0::Models::Country.new(x) }
2417
2508
  end
2418
2509
 
2510
+ # Status of all countries
2511
+ def get_countries_and_statuses_by_organization(organization)
2512
+ HttpClient::Preconditions.assert_class('organization', organization, String)
2513
+ r = @client.request("/#{CGI.escape(organization)}/countries/statuses").get
2514
+ r.map { |x| ::Io::Flow::V0::Models::CountryStatus.new(x) }
2515
+ end
2516
+
2517
+ def put_countries_and_statuses_by_organization_and_country(organization, country, country_status_form)
2518
+ HttpClient::Preconditions.assert_class('organization', organization, String)
2519
+ HttpClient::Preconditions.assert_class('country', country, String)
2520
+ (x = country_status_form; x.is_a?(::Io::Flow::V0::Models::CountryStatusForm) ? x : ::Io::Flow::V0::Models::CountryStatusForm.new(x))
2521
+ r = @client.request("/#{CGI.escape(organization)}/countries/statuses/#{CGI.escape(country)}").with_json(country_status_form.to_json).put
2522
+ ::Io::Flow::V0::Models::CountryStatus.new(r)
2523
+ end
2524
+
2419
2525
  # Search organizations. Always paginated.
2420
2526
  def get(incoming={})
2421
2527
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -2531,6 +2637,7 @@ module Io
2531
2637
  :currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)),
2532
2638
  :experience => (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)),
2533
2639
  :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
2640
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String)),
2534
2641
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
2535
2642
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
2536
2643
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "display_position" : x), String)
@@ -2548,6 +2655,7 @@ module Io
2548
2655
  :currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)),
2549
2656
  :experience => (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)),
2550
2657
  :ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
2658
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String)),
2551
2659
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
2552
2660
  :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
2553
2661
  :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "display_position" : x), String)
@@ -2563,7 +2671,8 @@ module Io
2563
2671
  query = {
2564
2672
  :experiences => (x = opts.delete(:experiences); x.nil? ? nil : HttpClient::Preconditions.assert_class('experiences', x, Array).map { |v| HttpClient::Preconditions.assert_class('experiences', v, String) }),
2565
2673
  :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
2566
- :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer)
2674
+ :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
2675
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
2567
2676
  }.delete_if { |k, v| v.nil? }
2568
2677
  r = @client.request("/#{CGI.escape(organization)}/payment/method/rules/batch").with_query(query).get
2569
2678
  r.map { |x| ::Io::Flow::V0::Models::ExperiencePaymentMethodRule.new(x) }
@@ -3908,6 +4017,14 @@ module Io
3908
4017
  ::Io::Flow::V0::Models::DimensionEstimate.new(r)
3909
4018
  end
3910
4019
 
4020
+ def put_by_id(organization, id, dimension_estimate_form)
4021
+ HttpClient::Preconditions.assert_class('organization', organization, String)
4022
+ HttpClient::Preconditions.assert_class('id', id, String)
4023
+ (x = dimension_estimate_form; x.is_a?(::Io::Flow::V0::Models::DimensionEstimateForm) ? x : ::Io::Flow::V0::Models::DimensionEstimateForm.new(x))
4024
+ r = @client.request("/#{CGI.escape(organization)}/dimension-estimates/#{CGI.escape(id)}").with_json(dimension_estimate_form.to_json).put
4025
+ ::Io::Flow::V0::Models::DimensionEstimate.new(r)
4026
+ end
4027
+
3911
4028
  def delete_by_id(organization, id)
3912
4029
  HttpClient::Preconditions.assert_class('organization', organization, String)
3913
4030
  HttpClient::Preconditions.assert_class('id', id, String)
@@ -4624,7 +4741,8 @@ module Io
4624
4741
  opts = HttpClient::Helper.symbolize_keys(incoming)
4625
4742
  query = {
4626
4743
  :show_commercial_invoice => (x = opts.delete(:show_commercial_invoice); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('show_commercial_invoice', x)),
4627
- :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
4744
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String)),
4745
+ :force_new => (x = opts.delete(:force_new); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('force_new', x))
4628
4746
  }.delete_if { |k, v| v.nil? }
4629
4747
  (x = shipping_label_form; x.is_a?(::Io::Flow::V0::Models::ShippingLabelForm) ? x : ::Io::Flow::V0::Models::ShippingLabelForm.from_json(x))
4630
4748
  r = @client.request("/#{CGI.escape(organization)}/shipping_labels").with_query(query).with_json(shipping_label_form.to_json).post
@@ -7671,68 +7789,6 @@ module Io
7671
7789
 
7672
7790
  module Models
7673
7791
 
7674
- # Configurations to support payment authentication done in the user experience
7675
- # e.g. card authentication with 3DS by an issuer ACS.
7676
- class ActionConfiguration
7677
-
7678
- module Types
7679
- THREEDS_TWO_BROWSER_ACTION_CONFIGURATION = 'threeds_two_browser_action_configuration' unless defined?(THREEDS_TWO_BROWSER_ACTION_CONFIGURATION)
7680
- end
7681
-
7682
- attr_reader :discriminator
7683
-
7684
- def initialize(incoming={})
7685
- opts = HttpClient::Helper.symbolize_keys(incoming)
7686
- HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ActionConfiguration')
7687
- @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
7688
- end
7689
-
7690
- def subtype_to_hash
7691
- raise 'Cannot serialize an instance of action_configuration directly - must use one of the specific types: threeds_two_browser_action_configuration'
7692
- end
7693
-
7694
- def to_hash
7695
- subtype_to_hash.merge(:discriminator => @discriminator)
7696
- end
7697
-
7698
- def ActionConfiguration.from_json(hash)
7699
- HttpClient::Preconditions.assert_class('hash', hash, Hash)
7700
- discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
7701
- if discriminator.empty?
7702
- raise "Union type[action_configuration] requires a field named 'discriminator'"
7703
- end
7704
- case discriminator
7705
- when Types::THREEDS_TWO_BROWSER_ACTION_CONFIGURATION; ThreedsTwoBrowserActionConfiguration.new(hash)
7706
- else ActionConfigurationUndefinedType.new(:discriminator => discriminator)
7707
- end
7708
- end
7709
-
7710
- end
7711
-
7712
- class ActionConfigurationUndefinedType < ActionConfiguration
7713
-
7714
- attr_reader :name
7715
-
7716
- def initialize(incoming={})
7717
- super(:discriminator => 'undefined_type')
7718
- opts = HttpClient::Helper.symbolize_keys(incoming)
7719
- @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
7720
- end
7721
-
7722
- def subtype_to_hash
7723
- raise 'Unable to serialize undefined type to json'
7724
- end
7725
-
7726
- def copy(incoming={})
7727
- raise 'Operation not supported for undefined type'
7728
- end
7729
-
7730
- def to_hash
7731
- raise 'Operation not supported for undefined type'
7732
- end
7733
-
7734
- end
7735
-
7736
7792
  class AdyenNativeData
7737
7793
 
7738
7794
  module Types
@@ -8325,44 +8381,45 @@ module Io
8325
8381
 
8326
8382
  end
8327
8383
 
8328
- class CheckoutTokenForm
8384
+ # Configurations to support payment authentication done in the browser
8385
+ # experience e.g. card authentication with 3DS by an issuer ACS.
8386
+ class BrowserActionConfiguration
8329
8387
 
8330
8388
  module Types
8331
- CHECKOUT_TOKEN_ORDER_FORM = 'checkout_token_order_form' unless defined?(CHECKOUT_TOKEN_ORDER_FORM)
8332
- CHECKOUT_TOKEN_REFERENCE_FORM = 'checkout_token_reference_form' unless defined?(CHECKOUT_TOKEN_REFERENCE_FORM)
8389
+ CARD_BROWSER_ACTION_CONFIGURATION = 'card_browser_action_configuration' unless defined?(CARD_BROWSER_ACTION_CONFIGURATION)
8333
8390
  end
8334
8391
 
8335
8392
  attr_reader :discriminator
8336
8393
 
8337
8394
  def initialize(incoming={})
8338
8395
  opts = HttpClient::Helper.symbolize_keys(incoming)
8339
- @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator) || 'checkout_token_reference_form', String)
8396
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'BrowserActionConfiguration')
8397
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
8340
8398
  end
8341
8399
 
8342
8400
  def subtype_to_hash
8343
- raise 'Cannot serialize an instance of checkout_token_form directly - must use one of the specific types: checkout_token_order_form, checkout_token_reference_form'
8401
+ raise 'Cannot serialize an instance of browser_action_configuration directly - must use one of the specific types: card_browser_action_configuration'
8344
8402
  end
8345
8403
 
8346
8404
  def to_hash
8347
8405
  subtype_to_hash.merge(:discriminator => @discriminator)
8348
8406
  end
8349
8407
 
8350
- def CheckoutTokenForm.from_json(hash)
8408
+ def BrowserActionConfiguration.from_json(hash)
8351
8409
  HttpClient::Preconditions.assert_class('hash', hash, Hash)
8352
8410
  discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
8353
8411
  if discriminator.empty?
8354
- raise "Union type[checkout_token_form] requires a field named 'discriminator'"
8412
+ raise "Union type[browser_action_configuration] requires a field named 'discriminator'"
8355
8413
  end
8356
8414
  case discriminator
8357
- when Types::CHECKOUT_TOKEN_ORDER_FORM; CheckoutTokenOrderForm.new(hash)
8358
- when Types::CHECKOUT_TOKEN_REFERENCE_FORM; CheckoutTokenReferenceForm.new(hash)
8359
- else CheckoutTokenFormUndefinedType.new(:discriminator => discriminator)
8415
+ when Types::CARD_BROWSER_ACTION_CONFIGURATION; CardBrowserActionConfiguration.new(hash)
8416
+ else BrowserActionConfigurationUndefinedType.new(:discriminator => discriminator)
8360
8417
  end
8361
8418
  end
8362
8419
 
8363
8420
  end
8364
8421
 
8365
- class CheckoutTokenFormUndefinedType < CheckoutTokenForm
8422
+ class BrowserActionConfigurationUndefinedType < BrowserActionConfiguration
8366
8423
 
8367
8424
  attr_reader :name
8368
8425
 
@@ -8386,43 +8443,44 @@ module Io
8386
8443
 
8387
8444
  end
8388
8445
 
8389
- class ConfirmationDetails
8446
+ class CheckoutTokenForm
8390
8447
 
8391
8448
  module Types
8392
- DIRECT_DEBIT = 'direct_debit' unless defined?(DIRECT_DEBIT)
8449
+ CHECKOUT_TOKEN_ORDER_FORM = 'checkout_token_order_form' unless defined?(CHECKOUT_TOKEN_ORDER_FORM)
8450
+ CHECKOUT_TOKEN_REFERENCE_FORM = 'checkout_token_reference_form' unless defined?(CHECKOUT_TOKEN_REFERENCE_FORM)
8393
8451
  end
8394
8452
 
8395
8453
  attr_reader :discriminator
8396
8454
 
8397
8455
  def initialize(incoming={})
8398
8456
  opts = HttpClient::Helper.symbolize_keys(incoming)
8399
- HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConfirmationDetails')
8400
- @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
8457
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator) || 'checkout_token_reference_form', String)
8401
8458
  end
8402
8459
 
8403
8460
  def subtype_to_hash
8404
- raise 'Cannot serialize an instance of confirmation_details directly - must use one of the specific types: direct_debit'
8461
+ raise 'Cannot serialize an instance of checkout_token_form directly - must use one of the specific types: checkout_token_order_form, checkout_token_reference_form'
8405
8462
  end
8406
8463
 
8407
8464
  def to_hash
8408
8465
  subtype_to_hash.merge(:discriminator => @discriminator)
8409
8466
  end
8410
8467
 
8411
- def ConfirmationDetails.from_json(hash)
8468
+ def CheckoutTokenForm.from_json(hash)
8412
8469
  HttpClient::Preconditions.assert_class('hash', hash, Hash)
8413
8470
  discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
8414
8471
  if discriminator.empty?
8415
- raise "Union type[confirmation_details] requires a field named 'discriminator'"
8472
+ raise "Union type[checkout_token_form] requires a field named 'discriminator'"
8416
8473
  end
8417
8474
  case discriminator
8418
- when Types::DIRECT_DEBIT; DirectDebit.new(hash)
8419
- else ConfirmationDetailsUndefinedType.new(:discriminator => discriminator)
8475
+ when Types::CHECKOUT_TOKEN_ORDER_FORM; CheckoutTokenOrderForm.new(hash)
8476
+ when Types::CHECKOUT_TOKEN_REFERENCE_FORM; CheckoutTokenReferenceForm.new(hash)
8477
+ else CheckoutTokenFormUndefinedType.new(:discriminator => discriminator)
8420
8478
  end
8421
8479
  end
8422
8480
 
8423
8481
  end
8424
8482
 
8425
- class ConfirmationDetailsUndefinedType < ConfirmationDetails
8483
+ class CheckoutTokenFormUndefinedType < CheckoutTokenForm
8426
8484
 
8427
8485
  attr_reader :name
8428
8486
 
@@ -8446,47 +8504,43 @@ module Io
8446
8504
 
8447
8505
  end
8448
8506
 
8449
- class ConsumerInvoiceLine
8507
+ class ConfirmationDetails
8450
8508
 
8451
8509
  module Types
8452
- CONSUMER_INVOICE_LINE_ITEM = 'item' unless defined?(CONSUMER_INVOICE_LINE_ITEM)
8453
- CONSUMER_INVOICE_LINE_DISCOUNT = 'discount' unless defined?(CONSUMER_INVOICE_LINE_DISCOUNT)
8454
- CONSUMER_INVOICE_LINE_SHIPPING = 'shipping' unless defined?(CONSUMER_INVOICE_LINE_SHIPPING)
8510
+ DIRECT_DEBIT = 'direct_debit' unless defined?(DIRECT_DEBIT)
8455
8511
  end
8456
8512
 
8457
8513
  attr_reader :discriminator
8458
8514
 
8459
8515
  def initialize(incoming={})
8460
8516
  opts = HttpClient::Helper.symbolize_keys(incoming)
8461
- HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConsumerInvoiceLine')
8517
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConfirmationDetails')
8462
8518
  @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
8463
8519
  end
8464
8520
 
8465
8521
  def subtype_to_hash
8466
- raise 'Cannot serialize an instance of consumer_invoice_line directly - must use one of the specific types: consumer_invoice_line_item, consumer_invoice_line_discount, consumer_invoice_line_shipping'
8522
+ raise 'Cannot serialize an instance of confirmation_details directly - must use one of the specific types: direct_debit'
8467
8523
  end
8468
8524
 
8469
8525
  def to_hash
8470
8526
  subtype_to_hash.merge(:discriminator => @discriminator)
8471
8527
  end
8472
8528
 
8473
- def ConsumerInvoiceLine.from_json(hash)
8529
+ def ConfirmationDetails.from_json(hash)
8474
8530
  HttpClient::Preconditions.assert_class('hash', hash, Hash)
8475
8531
  discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
8476
8532
  if discriminator.empty?
8477
- raise "Union type[consumer_invoice_line] requires a field named 'discriminator'"
8533
+ raise "Union type[confirmation_details] requires a field named 'discriminator'"
8478
8534
  end
8479
8535
  case discriminator
8480
- when Types::CONSUMER_INVOICE_LINE_ITEM; ConsumerInvoiceLineItem.new(hash)
8481
- when Types::CONSUMER_INVOICE_LINE_DISCOUNT; ConsumerInvoiceLineDiscount.new(hash)
8482
- when Types::CONSUMER_INVOICE_LINE_SHIPPING; ConsumerInvoiceLineShipping.new(hash)
8483
- else ConsumerInvoiceLineUndefinedType.new(:discriminator => discriminator)
8536
+ when Types::DIRECT_DEBIT; DirectDebit.new(hash)
8537
+ else ConfirmationDetailsUndefinedType.new(:discriminator => discriminator)
8484
8538
  end
8485
8539
  end
8486
8540
 
8487
8541
  end
8488
8542
 
8489
- class ConsumerInvoiceLineUndefinedType < ConsumerInvoiceLine
8543
+ class ConfirmationDetailsUndefinedType < ConfirmationDetails
8490
8544
 
8491
8545
  attr_reader :name
8492
8546
 
@@ -8510,47 +8564,111 @@ module Io
8510
8564
 
8511
8565
  end
8512
8566
 
8513
- class ConsumerInvoiceLineForm
8567
+ class ConsumerInvoiceLine
8514
8568
 
8515
8569
  module Types
8516
- CONSUMER_INVOICE_LINE_ITEM_FORM = 'item' unless defined?(CONSUMER_INVOICE_LINE_ITEM_FORM)
8517
- CONSUMER_INVOICE_LINE_DISCOUNT_FORM = 'discount' unless defined?(CONSUMER_INVOICE_LINE_DISCOUNT_FORM)
8518
- CONSUMER_INVOICE_LINE_SHIPPING_FORM = 'shipping' unless defined?(CONSUMER_INVOICE_LINE_SHIPPING_FORM)
8570
+ CONSUMER_INVOICE_LINE_ITEM = 'item' unless defined?(CONSUMER_INVOICE_LINE_ITEM)
8571
+ CONSUMER_INVOICE_LINE_DISCOUNT = 'discount' unless defined?(CONSUMER_INVOICE_LINE_DISCOUNT)
8572
+ CONSUMER_INVOICE_LINE_SHIPPING = 'shipping' unless defined?(CONSUMER_INVOICE_LINE_SHIPPING)
8519
8573
  end
8520
8574
 
8521
8575
  attr_reader :discriminator
8522
8576
 
8523
8577
  def initialize(incoming={})
8524
8578
  opts = HttpClient::Helper.symbolize_keys(incoming)
8525
- HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConsumerInvoiceLineForm')
8579
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConsumerInvoiceLine')
8526
8580
  @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
8527
8581
  end
8528
8582
 
8529
8583
  def subtype_to_hash
8530
- raise 'Cannot serialize an instance of consumer_invoice_line_form directly - must use one of the specific types: consumer_invoice_line_item_form, consumer_invoice_line_discount_form, consumer_invoice_line_shipping_form'
8584
+ raise 'Cannot serialize an instance of consumer_invoice_line directly - must use one of the specific types: consumer_invoice_line_item, consumer_invoice_line_discount, consumer_invoice_line_shipping'
8531
8585
  end
8532
8586
 
8533
8587
  def to_hash
8534
8588
  subtype_to_hash.merge(:discriminator => @discriminator)
8535
8589
  end
8536
8590
 
8537
- def ConsumerInvoiceLineForm.from_json(hash)
8591
+ def ConsumerInvoiceLine.from_json(hash)
8538
8592
  HttpClient::Preconditions.assert_class('hash', hash, Hash)
8539
8593
  discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
8540
8594
  if discriminator.empty?
8541
- raise "Union type[consumer_invoice_line_form] requires a field named 'discriminator'"
8595
+ raise "Union type[consumer_invoice_line] requires a field named 'discriminator'"
8542
8596
  end
8543
8597
  case discriminator
8544
- when Types::CONSUMER_INVOICE_LINE_ITEM_FORM; ConsumerInvoiceLineItemForm.new(hash)
8545
- when Types::CONSUMER_INVOICE_LINE_DISCOUNT_FORM; ConsumerInvoiceLineDiscountForm.new(hash)
8546
- when Types::CONSUMER_INVOICE_LINE_SHIPPING_FORM; ConsumerInvoiceLineShippingForm.new(hash)
8547
- else ConsumerInvoiceLineFormUndefinedType.new(:discriminator => discriminator)
8598
+ when Types::CONSUMER_INVOICE_LINE_ITEM; ConsumerInvoiceLineItem.new(hash)
8599
+ when Types::CONSUMER_INVOICE_LINE_DISCOUNT; ConsumerInvoiceLineDiscount.new(hash)
8600
+ when Types::CONSUMER_INVOICE_LINE_SHIPPING; ConsumerInvoiceLineShipping.new(hash)
8601
+ else ConsumerInvoiceLineUndefinedType.new(:discriminator => discriminator)
8548
8602
  end
8549
8603
  end
8550
8604
 
8551
8605
  end
8552
8606
 
8553
- class ConsumerInvoiceLineFormUndefinedType < ConsumerInvoiceLineForm
8607
+ class ConsumerInvoiceLineUndefinedType < ConsumerInvoiceLine
8608
+
8609
+ attr_reader :name
8610
+
8611
+ def initialize(incoming={})
8612
+ super(:discriminator => 'undefined_type')
8613
+ opts = HttpClient::Helper.symbolize_keys(incoming)
8614
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
8615
+ end
8616
+
8617
+ def subtype_to_hash
8618
+ raise 'Unable to serialize undefined type to json'
8619
+ end
8620
+
8621
+ def copy(incoming={})
8622
+ raise 'Operation not supported for undefined type'
8623
+ end
8624
+
8625
+ def to_hash
8626
+ raise 'Operation not supported for undefined type'
8627
+ end
8628
+
8629
+ end
8630
+
8631
+ class ConsumerInvoiceLineForm
8632
+
8633
+ module Types
8634
+ CONSUMER_INVOICE_LINE_ITEM_FORM = 'item' unless defined?(CONSUMER_INVOICE_LINE_ITEM_FORM)
8635
+ CONSUMER_INVOICE_LINE_DISCOUNT_FORM = 'discount' unless defined?(CONSUMER_INVOICE_LINE_DISCOUNT_FORM)
8636
+ CONSUMER_INVOICE_LINE_SHIPPING_FORM = 'shipping' unless defined?(CONSUMER_INVOICE_LINE_SHIPPING_FORM)
8637
+ end
8638
+
8639
+ attr_reader :discriminator
8640
+
8641
+ def initialize(incoming={})
8642
+ opts = HttpClient::Helper.symbolize_keys(incoming)
8643
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConsumerInvoiceLineForm')
8644
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
8645
+ end
8646
+
8647
+ def subtype_to_hash
8648
+ raise 'Cannot serialize an instance of consumer_invoice_line_form directly - must use one of the specific types: consumer_invoice_line_item_form, consumer_invoice_line_discount_form, consumer_invoice_line_shipping_form'
8649
+ end
8650
+
8651
+ def to_hash
8652
+ subtype_to_hash.merge(:discriminator => @discriminator)
8653
+ end
8654
+
8655
+ def ConsumerInvoiceLineForm.from_json(hash)
8656
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
8657
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
8658
+ if discriminator.empty?
8659
+ raise "Union type[consumer_invoice_line_form] requires a field named 'discriminator'"
8660
+ end
8661
+ case discriminator
8662
+ when Types::CONSUMER_INVOICE_LINE_ITEM_FORM; ConsumerInvoiceLineItemForm.new(hash)
8663
+ when Types::CONSUMER_INVOICE_LINE_DISCOUNT_FORM; ConsumerInvoiceLineDiscountForm.new(hash)
8664
+ when Types::CONSUMER_INVOICE_LINE_SHIPPING_FORM; ConsumerInvoiceLineShippingForm.new(hash)
8665
+ else ConsumerInvoiceLineFormUndefinedType.new(:discriminator => discriminator)
8666
+ end
8667
+ end
8668
+
8669
+ end
8670
+
8671
+ class ConsumerInvoiceLineFormUndefinedType < ConsumerInvoiceLineForm
8554
8672
 
8555
8673
  attr_reader :name
8556
8674
 
@@ -9001,6 +9119,8 @@ module Io
9001
9119
  EXPERIENCE_UPSERTED = 'experience_upserted' unless defined?(EXPERIENCE_UPSERTED)
9002
9120
  EXPERIENCE_DELETED_V2 = 'experience_deleted_v2' unless defined?(EXPERIENCE_DELETED_V2)
9003
9121
  EXPERIENCE_UPSERTED_V2 = 'experience_upserted_v2' unless defined?(EXPERIENCE_UPSERTED_V2)
9122
+ COUNTRY_STATUS_UPSERTED = 'country_status_upserted' unless defined?(COUNTRY_STATUS_UPSERTED)
9123
+ COUNTRY_STATUS_DELETED = 'country_status_deleted' unless defined?(COUNTRY_STATUS_DELETED)
9004
9124
  EXPERIENCE_PRICE_BOOK_MAPPING_DELETED = 'experience_price_book_mapping_deleted' unless defined?(EXPERIENCE_PRICE_BOOK_MAPPING_DELETED)
9005
9125
  EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED = 'experience_price_book_mapping_upserted' unless defined?(EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED)
9006
9126
  EXPERIENCE_LOGISTICS_SETTINGS_UPSERTED = 'experience_logistics_settings_upserted' unless defined?(EXPERIENCE_LOGISTICS_SETTINGS_UPSERTED)
@@ -9115,6 +9235,8 @@ module Io
9115
9235
  RATECARD_DELETED = 'ratecard_deleted' unless defined?(RATECARD_DELETED)
9116
9236
  RETURN_UPSERTED = 'return_upserted' unless defined?(RETURN_UPSERTED)
9117
9237
  RETURN_DELETED = 'return_deleted' unless defined?(RETURN_DELETED)
9238
+ RETURN_UPSERTED_V2 = 'return_upserted_v2' unless defined?(RETURN_UPSERTED_V2)
9239
+ RETURN_DELETED_V2 = 'return_deleted_v2' unless defined?(RETURN_DELETED_V2)
9118
9240
  SHOPIFY_LOCALIZATION_SETTING_UPSERTED = 'shopify_localization_setting_upserted' unless defined?(SHOPIFY_LOCALIZATION_SETTING_UPSERTED)
9119
9241
  SHOPIFY_LOCALIZATION_SETTING_DELETED = 'shopify_localization_setting_deleted' unless defined?(SHOPIFY_LOCALIZATION_SETTING_DELETED)
9120
9242
  TRACKING_LABEL_EVENT_UPSERTED = 'tracking_label_event_upserted' unless defined?(TRACKING_LABEL_EVENT_UPSERTED)
@@ -9129,7 +9251,7 @@ module Io
9129
9251
  end
9130
9252
 
9131
9253
  def subtype_to_hash
9132
- raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, catalog_item_upserted_v2, catalog_item_deleted_v2, subcatalog_item_upserted, subcatalog_item_deleted, b2b_invoice_upserted, b2b_invoice_deleted, b2b_credit_memo_upserted, b2b_credit_memo_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, rate_deleted_v3, rate_upserted_v3, customer_upserted, customer_deleted, customer_address_book_contact_upserted, customer_address_book_contact_deleted, email_notification_upserted, email_notification_deleted, available_promotions_upserted, available_promotions_deleted, available_promotions_upserted_v2, available_promotions_deleted_v2, allocation_deleted_v2, allocation_upserted_v2, currency_format_deleted, currency_format_upserted, experience_deleted, experience_upserted, experience_deleted_v2, experience_upserted_v2, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, 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_deleted_v2, order_upserted_v2, order_identifier_deleted, order_identifier_upserted, order_identifier_deleted_v2, order_identifier_upserted_v2, order_identifier_upserted_v3, pricing_deleted, pricing_upserted, order_service_change_request, fraud_status_changed, center_upserted, center_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, shipping_configuration_item_availability_upserted, shipping_configuration_item_availability_deleted, shipping_configuration_item_shipping_pricing_upserted, shipping_configuration_item_shipping_pricing_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, rule_upserted, rule_deleted, snapshot_upserted, snapshot_deleted, label_upserted, label_deleted_v2, label_upserted_v2, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, checkout_optin_responses_upserted, checkout_optin_responses_deleted, browse_optin_responses_upserted, browse_optin_responses_deleted, order_placed, order_placed_v2, ready_to_fulfill, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, organization_default_configurations_upserted, organization_default_configurations_deleted, ecommerce_platform_upserted, ecommerce_platform_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, card_authorization_deleted_v2, online_authorization_upserted_v2, online_authorization_deleted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_deleted_v2, refund_capture_upserted_v2, reversal_upserted, reversal_deleted, capture_identifier_upserted, capture_identifier_deleted, refund_identifier_upserted, refund_identifier_deleted, virtual_card_capture_upserted, virtual_card_capture_deleted, virtual_card_refund_upserted, virtual_card_refund_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, ratecard_lane_upserted, ratecard_lane_deleted, ratecard_upserted, ratecard_deleted, return_upserted, return_deleted, shopify_localization_setting_upserted, shopify_localization_setting_deleted, tracking_label_event_upserted'
9254
+ raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, catalog_item_upserted_v2, catalog_item_deleted_v2, subcatalog_item_upserted, subcatalog_item_deleted, b2b_invoice_upserted, b2b_invoice_deleted, b2b_credit_memo_upserted, b2b_credit_memo_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, rate_deleted_v3, rate_upserted_v3, customer_upserted, customer_deleted, customer_address_book_contact_upserted, customer_address_book_contact_deleted, email_notification_upserted, email_notification_deleted, available_promotions_upserted, available_promotions_deleted, available_promotions_upserted_v2, available_promotions_deleted_v2, allocation_deleted_v2, allocation_upserted_v2, currency_format_deleted, currency_format_upserted, experience_deleted, experience_upserted, experience_deleted_v2, experience_upserted_v2, country_status_upserted, country_status_deleted, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, 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_deleted_v2, order_upserted_v2, order_identifier_deleted, order_identifier_upserted, order_identifier_deleted_v2, order_identifier_upserted_v2, order_identifier_upserted_v3, pricing_deleted, pricing_upserted, order_service_change_request, fraud_status_changed, center_upserted, center_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, shipping_configuration_item_availability_upserted, shipping_configuration_item_availability_deleted, shipping_configuration_item_shipping_pricing_upserted, shipping_configuration_item_shipping_pricing_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, rule_upserted, rule_deleted, snapshot_upserted, snapshot_deleted, label_upserted, label_deleted_v2, label_upserted_v2, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, checkout_optin_responses_upserted, checkout_optin_responses_deleted, browse_optin_responses_upserted, browse_optin_responses_deleted, order_placed, order_placed_v2, ready_to_fulfill, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, organization_default_configurations_upserted, organization_default_configurations_deleted, ecommerce_platform_upserted, ecommerce_platform_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, card_authorization_deleted_v2, online_authorization_upserted_v2, online_authorization_deleted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_deleted_v2, refund_capture_upserted_v2, reversal_upserted, reversal_deleted, capture_identifier_upserted, capture_identifier_deleted, refund_identifier_upserted, refund_identifier_deleted, virtual_card_capture_upserted, virtual_card_capture_deleted, virtual_card_refund_upserted, virtual_card_refund_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, ratecard_lane_upserted, ratecard_lane_deleted, ratecard_upserted, ratecard_deleted, return_upserted, return_deleted, return_upserted_v2, return_deleted_v2, shopify_localization_setting_upserted, shopify_localization_setting_deleted, tracking_label_event_upserted'
9133
9255
  end
9134
9256
 
9135
9257
  def to_hash
@@ -9188,6 +9310,8 @@ module Io
9188
9310
  when Types::EXPERIENCE_UPSERTED; ExperienceUpserted.new(hash)
9189
9311
  when Types::EXPERIENCE_DELETED_V2; ExperienceDeletedV2.new(hash)
9190
9312
  when Types::EXPERIENCE_UPSERTED_V2; ExperienceUpsertedV2.new(hash)
9313
+ when Types::COUNTRY_STATUS_UPSERTED; CountryStatusUpserted.new(hash)
9314
+ when Types::COUNTRY_STATUS_DELETED; CountryStatusDeleted.new(hash)
9191
9315
  when Types::EXPERIENCE_PRICE_BOOK_MAPPING_DELETED; ExperiencePriceBookMappingDeleted.new(hash)
9192
9316
  when Types::EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED; ExperiencePriceBookMappingUpserted.new(hash)
9193
9317
  when Types::EXPERIENCE_LOGISTICS_SETTINGS_UPSERTED; ExperienceLogisticsSettingsUpserted.new(hash)
@@ -9299,6 +9423,8 @@ module Io
9299
9423
  when Types::RATECARD_DELETED; RatecardDeleted.new(hash)
9300
9424
  when Types::RETURN_UPSERTED; ReturnUpserted.new(hash)
9301
9425
  when Types::RETURN_DELETED; ReturnDeleted.new(hash)
9426
+ when Types::RETURN_UPSERTED_V2; ReturnUpsertedV2.new(hash)
9427
+ when Types::RETURN_DELETED_V2; ReturnDeletedV2.new(hash)
9302
9428
  when Types::SHOPIFY_LOCALIZATION_SETTING_UPSERTED; ShopifyLocalizationSettingUpserted.new(hash)
9303
9429
  when Types::SHOPIFY_LOCALIZATION_SETTING_DELETED; ShopifyLocalizationSettingDeleted.new(hash)
9304
9430
  when Types::TRACKING_LABEL_EVENT_UPSERTED; TrackingLabelEventUpserted.new(hash)
@@ -10111,6 +10237,68 @@ module Io
10111
10237
 
10112
10238
  end
10113
10239
 
10240
+ # Configurations to support inline payment authentication experiences. Mobile to
10241
+ # be supported at a future date.
10242
+ class InlineActionConfiguration
10243
+
10244
+ module Types
10245
+ BROWSER_INLINE_ACTION_CONFIGURATION = 'browser_inline_action_configuration' unless defined?(BROWSER_INLINE_ACTION_CONFIGURATION)
10246
+ end
10247
+
10248
+ attr_reader :discriminator
10249
+
10250
+ def initialize(incoming={})
10251
+ opts = HttpClient::Helper.symbolize_keys(incoming)
10252
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'InlineActionConfiguration')
10253
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
10254
+ end
10255
+
10256
+ def subtype_to_hash
10257
+ raise 'Cannot serialize an instance of inline_action_configuration directly - must use one of the specific types: browser_inline_action_configuration'
10258
+ end
10259
+
10260
+ def to_hash
10261
+ subtype_to_hash.merge(:discriminator => @discriminator)
10262
+ end
10263
+
10264
+ def InlineActionConfiguration.from_json(hash)
10265
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
10266
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
10267
+ if discriminator.empty?
10268
+ raise "Union type[inline_action_configuration] requires a field named 'discriminator'"
10269
+ end
10270
+ case discriminator
10271
+ when Types::BROWSER_INLINE_ACTION_CONFIGURATION; BrowserInlineActionConfiguration.new(hash)
10272
+ else InlineActionConfigurationUndefinedType.new(:discriminator => discriminator)
10273
+ end
10274
+ end
10275
+
10276
+ end
10277
+
10278
+ class InlineActionConfigurationUndefinedType < InlineActionConfiguration
10279
+
10280
+ attr_reader :name
10281
+
10282
+ def initialize(incoming={})
10283
+ super(:discriminator => 'undefined_type')
10284
+ opts = HttpClient::Helper.symbolize_keys(incoming)
10285
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
10286
+ end
10287
+
10288
+ def subtype_to_hash
10289
+ raise 'Unable to serialize undefined type to json'
10290
+ end
10291
+
10292
+ def copy(incoming={})
10293
+ raise 'Operation not supported for undefined type'
10294
+ end
10295
+
10296
+ def to_hash
10297
+ raise 'Operation not supported for undefined type'
10298
+ end
10299
+
10300
+ end
10301
+
10114
10302
  class InputSpecificationLimitation
10115
10303
 
10116
10304
  module Types
@@ -11571,6 +11759,68 @@ module Io
11571
11759
 
11572
11760
  end
11573
11761
 
11762
+ class ReturnSource
11763
+
11764
+ module Types
11765
+ RETURN_SOURCE_FLOW = 'return_source_flow' unless defined?(RETURN_SOURCE_FLOW)
11766
+ RETURN_SOURCE_EXTERNAL_VENDOR = 'return_source_external_vendor' unless defined?(RETURN_SOURCE_EXTERNAL_VENDOR)
11767
+ end
11768
+
11769
+ attr_reader :discriminator
11770
+
11771
+ def initialize(incoming={})
11772
+ opts = HttpClient::Helper.symbolize_keys(incoming)
11773
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ReturnSource')
11774
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
11775
+ end
11776
+
11777
+ def subtype_to_hash
11778
+ raise 'Cannot serialize an instance of return_source directly - must use one of the specific types: return_source_flow, return_source_external_vendor'
11779
+ end
11780
+
11781
+ def to_hash
11782
+ subtype_to_hash.merge(:discriminator => @discriminator)
11783
+ end
11784
+
11785
+ def ReturnSource.from_json(hash)
11786
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
11787
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
11788
+ if discriminator.empty?
11789
+ raise "Union type[return_source] requires a field named 'discriminator'"
11790
+ end
11791
+ case discriminator
11792
+ when Types::RETURN_SOURCE_FLOW; ReturnSourceFlow.new(hash)
11793
+ when Types::RETURN_SOURCE_EXTERNAL_VENDOR; ReturnSourceExternalVendor.new(hash)
11794
+ else ReturnSourceUndefinedType.new(:discriminator => discriminator)
11795
+ end
11796
+ end
11797
+
11798
+ end
11799
+
11800
+ class ReturnSourceUndefinedType < ReturnSource
11801
+
11802
+ attr_reader :name
11803
+
11804
+ def initialize(incoming={})
11805
+ super(:discriminator => 'undefined_type')
11806
+ opts = HttpClient::Helper.symbolize_keys(incoming)
11807
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
11808
+ end
11809
+
11810
+ def subtype_to_hash
11811
+ raise 'Unable to serialize undefined type to json'
11812
+ end
11813
+
11814
+ def copy(incoming={})
11815
+ raise 'Operation not supported for undefined type'
11816
+ end
11817
+
11818
+ def to_hash
11819
+ raise 'Operation not supported for undefined type'
11820
+ end
11821
+
11822
+ end
11823
+
11574
11824
  class ServiceFee
11575
11825
 
11576
11826
  module Types
@@ -12731,7 +12981,7 @@ module Io
12731
12981
  end
12732
12982
 
12733
12983
  def AttributeIntent.ALL
12734
- @@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]
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]
12735
12985
  end
12736
12986
 
12737
12987
  # A brand name of the item (for retailers that sell multiple brands)
@@ -12823,6 +13073,11 @@ module Io
12823
13073
  @@_returnable ||= AttributeIntent.new('returnable')
12824
13074
  end
12825
13075
 
13076
+ # Identifies whether the attribute can be used to search for an item.
13077
+ def AttributeIntent.searchable
13078
+ @@_searchable ||= AttributeIntent.new('searchable')
13079
+ end
13080
+
12826
13081
  def to_hash
12827
13082
  value
12828
13083
  end
@@ -12916,7 +13171,7 @@ module Io
12916
13171
  end
12917
13172
 
12918
13173
  def AuthorizationDeclineCode.ALL
12919
- @@all ||= [AuthorizationDeclineCode.expired, AuthorizationDeclineCode.invalid_name, AuthorizationDeclineCode.invalid_number, AuthorizationDeclineCode.invalid_expiration, AuthorizationDeclineCode.invalid_address, AuthorizationDeclineCode.invalid_token_type, AuthorizationDeclineCode.invalid_token, AuthorizationDeclineCode.no_account, AuthorizationDeclineCode.avs, AuthorizationDeclineCode.cvv, AuthorizationDeclineCode.fraud, AuthorizationDeclineCode.duplicate, AuthorizationDeclineCode.not_supported, AuthorizationDeclineCode.unknown]
13174
+ @@all ||= [AuthorizationDeclineCode.expired, AuthorizationDeclineCode.invalid_name, AuthorizationDeclineCode.invalid_number, AuthorizationDeclineCode.invalid_expiration, AuthorizationDeclineCode.invalid_address, AuthorizationDeclineCode.invalid_token_type, AuthorizationDeclineCode.invalid_token, AuthorizationDeclineCode.no_account, AuthorizationDeclineCode.avs, AuthorizationDeclineCode.cvv, AuthorizationDeclineCode.fraud, AuthorizationDeclineCode.duplicate, AuthorizationDeclineCode.not_supported, AuthorizationDeclineCode.unknown, AuthorizationDeclineCode.online_payment_error]
12920
13175
  end
12921
13176
 
12922
13177
  # Payment method has expired
@@ -12990,6 +13245,11 @@ module Io
12990
13245
  @@_unknown ||= AuthorizationDeclineCode.new('unknown')
12991
13246
  end
12992
13247
 
13248
+ # Indicates an online payment error
13249
+ def AuthorizationDeclineCode.online_payment_error
13250
+ @@_online_payment_error ||= AuthorizationDeclineCode.new('online_payment_error')
13251
+ end
13252
+
12993
13253
  def to_hash
12994
13254
  value
12995
13255
  end
@@ -13321,6 +13581,48 @@ module Io
13321
13581
 
13322
13582
  end
13323
13583
 
13584
+ class B2bInvoiceType
13585
+
13586
+ attr_reader :value
13587
+
13588
+ def initialize(value)
13589
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
13590
+ end
13591
+
13592
+ # Returns the instance of B2bInvoiceType for this value, creating a new instance for an unknown value
13593
+ def B2bInvoiceType.apply(value)
13594
+ if value.instance_of?(B2bInvoiceType)
13595
+ value
13596
+ else
13597
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
13598
+ value.nil? ? nil : (from_string(value) || B2bInvoiceType.new(value))
13599
+ end
13600
+ end
13601
+
13602
+ # Returns the instance of B2bInvoiceType for this value, or nil if not found
13603
+ def B2bInvoiceType.from_string(value)
13604
+ HttpClient::Preconditions.assert_class('value', value, String)
13605
+ B2bInvoiceType.ALL.find { |v| v.value == value }
13606
+ end
13607
+
13608
+ def B2bInvoiceType.ALL
13609
+ @@all ||= [B2bInvoiceType.self_bill_invoice, B2bInvoiceType.invoice]
13610
+ end
13611
+
13612
+ def B2bInvoiceType.self_bill_invoice
13613
+ @@_self_bill_invoice ||= B2bInvoiceType.new('self_bill_invoice')
13614
+ end
13615
+
13616
+ def B2bInvoiceType.invoice
13617
+ @@_invoice ||= B2bInvoiceType.new('invoice')
13618
+ end
13619
+
13620
+ def to_hash
13621
+ value
13622
+ end
13623
+
13624
+ end
13625
+
13324
13626
  class Calendar
13325
13627
 
13326
13628
  attr_reader :value
@@ -14987,7 +15289,7 @@ module Io
14987
15289
  end
14988
15290
 
14989
15291
  def EventType.ALL
14990
- @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.attribute_upserted_v2, EventType.attribute_deleted_v2, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.catalog_item_upserted_v2, EventType.catalog_item_deleted_v2, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.b2b_invoice_upserted, EventType.b2b_invoice_deleted, EventType.b2b_credit_memo_upserted, EventType.b2b_credit_memo_deleted, EventType.consumer_invoice_upserted, EventType.consumer_invoice_deleted, EventType.credit_memo_upserted, EventType.credit_memo_deleted, EventType.crossdock_shipment_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.rate_deleted_v3, EventType.rate_upserted_v3, EventType.customer_upserted, EventType.customer_deleted, EventType.customer_address_book_contact_upserted, EventType.customer_address_book_contact_deleted, EventType.email_notification_upserted, EventType.email_notification_deleted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.available_promotions_upserted_v2, EventType.available_promotions_deleted_v2, EventType.allocation_deleted_v2, EventType.allocation_upserted_v2, EventType.currency_format_deleted, EventType.currency_format_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.experience_deleted_v2, EventType.experience_upserted_v2, EventType.experience_price_book_mapping_deleted, EventType.experience_price_book_mapping_upserted, EventType.experience_logistics_settings_upserted, EventType.experience_logistics_settings_deleted, 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_deleted_v2, EventType.order_upserted_v2, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.order_identifier_deleted_v2, EventType.order_identifier_upserted_v2, EventType.order_identifier_upserted_v3, EventType.pricing_deleted, EventType.pricing_upserted, EventType.order_service_change_request, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_deleted, EventType.shipping_configuration_upserted, EventType.shipping_configuration_deleted, EventType.tier_upserted_v2, EventType.tier_deleted_v2, EventType.shipping_lane_upserted, EventType.shipping_lane_deleted, EventType.shipping_configuration_item_availability_upserted, EventType.shipping_configuration_item_availability_deleted, EventType.shipping_configuration_item_shipping_pricing_upserted, EventType.shipping_configuration_item_shipping_pricing_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_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.rule_upserted, EventType.rule_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.label_deleted_v2, EventType.label_upserted_v2, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.checkout_optin_responses_upserted, EventType.checkout_optin_responses_deleted, EventType.browse_optin_responses_upserted, EventType.browse_optin_responses_deleted, EventType.order_placed, EventType.order_placed_v2, EventType.ready_to_fulfill, EventType.membership_upserted_v2, EventType.membership_deleted_v2, EventType.organization_upserted, EventType.organization_deleted, EventType.organization_upserted_v2, EventType.organization_deleted_v2, EventType.organization_short_id_upserted, EventType.organization_short_id_deleted, EventType.organization_default_configurations_upserted, EventType.organization_default_configurations_deleted, EventType.ecommerce_platform_upserted, EventType.ecommerce_platform_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted_v2, EventType.card_authorization_deleted_v2, EventType.online_authorization_upserted_v2, EventType.online_authorization_deleted_v2, EventType.capture_upserted_v2, EventType.capture_deleted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted_v2, EventType.refund_deleted_v2, EventType.refund_capture_upserted_v2, EventType.reversal_upserted, EventType.reversal_deleted, EventType.capture_identifier_upserted, EventType.capture_identifier_deleted, EventType.refund_identifier_upserted, EventType.refund_identifier_deleted, EventType.virtual_card_capture_upserted, EventType.virtual_card_capture_deleted, EventType.virtual_card_refund_upserted, EventType.virtual_card_refund_deleted, EventType.price_book_upserted, EventType.price_book_deleted, EventType.price_book_item_upserted, EventType.price_book_item_deleted, EventType.organization_rates_published, EventType.ratecard_lane_upserted, EventType.ratecard_lane_deleted, EventType.ratecard_upserted, EventType.ratecard_deleted, EventType.return_upserted, EventType.return_deleted, EventType.shopify_localization_setting_upserted, EventType.shopify_localization_setting_deleted, EventType.tracking_label_event_upserted]
15292
+ @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.attribute_upserted_v2, EventType.attribute_deleted_v2, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.catalog_item_upserted_v2, EventType.catalog_item_deleted_v2, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.b2b_invoice_upserted, EventType.b2b_invoice_deleted, EventType.b2b_credit_memo_upserted, EventType.b2b_credit_memo_deleted, EventType.consumer_invoice_upserted, EventType.consumer_invoice_deleted, EventType.credit_memo_upserted, EventType.credit_memo_deleted, EventType.crossdock_shipment_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.rate_deleted_v3, EventType.rate_upserted_v3, EventType.customer_upserted, EventType.customer_deleted, EventType.customer_address_book_contact_upserted, EventType.customer_address_book_contact_deleted, EventType.email_notification_upserted, EventType.email_notification_deleted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.available_promotions_upserted_v2, EventType.available_promotions_deleted_v2, EventType.allocation_deleted_v2, EventType.allocation_upserted_v2, EventType.currency_format_deleted, EventType.currency_format_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.experience_deleted_v2, EventType.experience_upserted_v2, EventType.country_status_upserted, EventType.country_status_deleted, EventType.experience_price_book_mapping_deleted, EventType.experience_price_book_mapping_upserted, EventType.experience_logistics_settings_upserted, EventType.experience_logistics_settings_deleted, 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_deleted_v2, EventType.order_upserted_v2, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.order_identifier_deleted_v2, EventType.order_identifier_upserted_v2, EventType.order_identifier_upserted_v3, EventType.pricing_deleted, EventType.pricing_upserted, EventType.order_service_change_request, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_deleted, EventType.shipping_configuration_upserted, EventType.shipping_configuration_deleted, EventType.tier_upserted_v2, EventType.tier_deleted_v2, EventType.shipping_lane_upserted, EventType.shipping_lane_deleted, EventType.shipping_configuration_item_availability_upserted, EventType.shipping_configuration_item_availability_deleted, EventType.shipping_configuration_item_shipping_pricing_upserted, EventType.shipping_configuration_item_shipping_pricing_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_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.rule_upserted, EventType.rule_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.label_deleted_v2, EventType.label_upserted_v2, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.checkout_optin_responses_upserted, EventType.checkout_optin_responses_deleted, EventType.browse_optin_responses_upserted, EventType.browse_optin_responses_deleted, EventType.order_placed, EventType.order_placed_v2, EventType.ready_to_fulfill, EventType.membership_upserted_v2, EventType.membership_deleted_v2, EventType.organization_upserted, EventType.organization_deleted, EventType.organization_upserted_v2, EventType.organization_deleted_v2, EventType.organization_short_id_upserted, EventType.organization_short_id_deleted, EventType.organization_default_configurations_upserted, EventType.organization_default_configurations_deleted, EventType.ecommerce_platform_upserted, EventType.ecommerce_platform_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted_v2, EventType.card_authorization_deleted_v2, EventType.online_authorization_upserted_v2, EventType.online_authorization_deleted_v2, EventType.capture_upserted_v2, EventType.capture_deleted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted_v2, EventType.refund_deleted_v2, EventType.refund_capture_upserted_v2, EventType.reversal_upserted, EventType.reversal_deleted, EventType.capture_identifier_upserted, EventType.capture_identifier_deleted, EventType.refund_identifier_upserted, EventType.refund_identifier_deleted, EventType.virtual_card_capture_upserted, EventType.virtual_card_capture_deleted, EventType.virtual_card_refund_upserted, EventType.virtual_card_refund_deleted, EventType.price_book_upserted, EventType.price_book_deleted, EventType.price_book_item_upserted, EventType.price_book_item_deleted, EventType.organization_rates_published, EventType.ratecard_lane_upserted, EventType.ratecard_lane_deleted, EventType.ratecard_upserted, EventType.ratecard_deleted, EventType.return_upserted, EventType.return_deleted, EventType.return_upserted_v2, EventType.return_deleted_v2, EventType.shopify_localization_setting_upserted, EventType.shopify_localization_setting_deleted, EventType.tracking_label_event_upserted]
14991
15293
  end
14992
15294
 
14993
15295
  def EventType.attribute_upserted
@@ -15170,6 +15472,14 @@ module Io
15170
15472
  @@_experience_upserted_v2 ||= EventType.new('experience_upserted_v2')
15171
15473
  end
15172
15474
 
15475
+ def EventType.country_status_upserted
15476
+ @@_country_status_upserted ||= EventType.new('country_status_upserted')
15477
+ end
15478
+
15479
+ def EventType.country_status_deleted
15480
+ @@_country_status_deleted ||= EventType.new('country_status_deleted')
15481
+ end
15482
+
15173
15483
  def EventType.experience_price_book_mapping_deleted
15174
15484
  @@_experience_price_book_mapping_deleted ||= EventType.new('experience_price_book_mapping_deleted')
15175
15485
  end
@@ -15614,6 +15924,14 @@ module Io
15614
15924
  @@_return_deleted ||= EventType.new('return_deleted')
15615
15925
  end
15616
15926
 
15927
+ def EventType.return_upserted_v2
15928
+ @@_return_upserted_v2 ||= EventType.new('return_upserted_v2')
15929
+ end
15930
+
15931
+ def EventType.return_deleted_v2
15932
+ @@_return_deleted_v2 ||= EventType.new('return_deleted_v2')
15933
+ end
15934
+
15617
15935
  def EventType.shopify_localization_setting_upserted
15618
15936
  @@_shopify_localization_setting_upserted ||= EventType.new('shopify_localization_setting_upserted')
15619
15937
  end
@@ -15770,6 +16088,48 @@ module Io
15770
16088
 
15771
16089
  end
15772
16090
 
16091
+ class ExperienceCountryStatus
16092
+
16093
+ attr_reader :value
16094
+
16095
+ def initialize(value)
16096
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
16097
+ end
16098
+
16099
+ # Returns the instance of ExperienceCountryStatus for this value, creating a new instance for an unknown value
16100
+ def ExperienceCountryStatus.apply(value)
16101
+ if value.instance_of?(ExperienceCountryStatus)
16102
+ value
16103
+ else
16104
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
16105
+ value.nil? ? nil : (from_string(value) || ExperienceCountryStatus.new(value))
16106
+ end
16107
+ end
16108
+
16109
+ # Returns the instance of ExperienceCountryStatus for this value, or nil if not found
16110
+ def ExperienceCountryStatus.from_string(value)
16111
+ HttpClient::Preconditions.assert_class('value', value, String)
16112
+ ExperienceCountryStatus.ALL.find { |v| v.value == value }
16113
+ end
16114
+
16115
+ def ExperienceCountryStatus.ALL
16116
+ @@all ||= [ExperienceCountryStatus.enabled, ExperienceCountryStatus.disabled]
16117
+ end
16118
+
16119
+ def ExperienceCountryStatus.enabled
16120
+ @@_enabled ||= ExperienceCountryStatus.new('enabled')
16121
+ end
16122
+
16123
+ def ExperienceCountryStatus.disabled
16124
+ @@_disabled ||= ExperienceCountryStatus.new('disabled')
16125
+ end
16126
+
16127
+ def to_hash
16128
+ value
16129
+ end
16130
+
16131
+ end
16132
+
15773
16133
  class ExperiencePaymentMethodTag < PaymentMethodTag
15774
16134
 
15775
16135
  attr_reader :value
@@ -18293,6 +18653,55 @@ module Io
18293
18653
 
18294
18654
  end
18295
18655
 
18656
+ class OrganizationStatus
18657
+
18658
+ attr_reader :value
18659
+
18660
+ def initialize(value)
18661
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
18662
+ end
18663
+
18664
+ # Returns the instance of OrganizationStatus for this value, creating a new instance for an unknown value
18665
+ def OrganizationStatus.apply(value)
18666
+ if value.instance_of?(OrganizationStatus)
18667
+ value
18668
+ else
18669
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
18670
+ value.nil? ? nil : (from_string(value) || OrganizationStatus.new(value))
18671
+ end
18672
+ end
18673
+
18674
+ # Returns the instance of OrganizationStatus for this value, or nil if not found
18675
+ def OrganizationStatus.from_string(value)
18676
+ HttpClient::Preconditions.assert_class('value', value, String)
18677
+ OrganizationStatus.ALL.find { |v| v.value == value }
18678
+ end
18679
+
18680
+ def OrganizationStatus.ALL
18681
+ @@all ||= [OrganizationStatus.active, OrganizationStatus.inactive, OrganizationStatus.deactivated]
18682
+ end
18683
+
18684
+ def OrganizationStatus.active
18685
+ @@_active ||= OrganizationStatus.new('active')
18686
+ end
18687
+
18688
+ # Determined by usage: ex: orders placed, experience updated, catalog items
18689
+ # updated, etc...
18690
+ def OrganizationStatus.inactive
18691
+ @@_inactive ||= OrganizationStatus.new('inactive')
18692
+ end
18693
+
18694
+ # Manually deactivated
18695
+ def OrganizationStatus.deactivated
18696
+ @@_deactivated ||= OrganizationStatus.new('deactivated')
18697
+ end
18698
+
18699
+ def to_hash
18700
+ value
18701
+ end
18702
+
18703
+ end
18704
+
18296
18705
  class PaymentErrorCode
18297
18706
 
18298
18707
  attr_reader :value
@@ -19453,6 +19862,112 @@ module Io
19453
19862
 
19454
19863
  end
19455
19864
 
19865
+ class ReturnTrackingStatus
19866
+
19867
+ attr_reader :value
19868
+
19869
+ def initialize(value)
19870
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
19871
+ end
19872
+
19873
+ # Returns the instance of ReturnTrackingStatus for this value, creating a new instance for an unknown value
19874
+ def ReturnTrackingStatus.apply(value)
19875
+ if value.instance_of?(ReturnTrackingStatus)
19876
+ value
19877
+ else
19878
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
19879
+ value.nil? ? nil : (from_string(value) || ReturnTrackingStatus.new(value))
19880
+ end
19881
+ end
19882
+
19883
+ # Returns the instance of ReturnTrackingStatus for this value, or nil if not found
19884
+ def ReturnTrackingStatus.from_string(value)
19885
+ HttpClient::Preconditions.assert_class('value', value, String)
19886
+ ReturnTrackingStatus.ALL.find { |v| v.value == value }
19887
+ end
19888
+
19889
+ def ReturnTrackingStatus.ALL
19890
+ @@all ||= [ReturnTrackingStatus.awaiting_customs_clearance, ReturnTrackingStatus.cancel_requested, ReturnTrackingStatus.canceled, ReturnTrackingStatus.collection_attempt_failed, ReturnTrackingStatus.customs_clearance_completed, ReturnTrackingStatus.delivered_to_retailer, ReturnTrackingStatus.in_transit_to_local_hub, ReturnTrackingStatus.in_transit_to_retailer, ReturnTrackingStatus.parcel_added_to_pallet, ReturnTrackingStatus.parcel_delayed, ReturnTrackingStatus.parcel_extracted_from_pallet, ReturnTrackingStatus.parcel_lost, ReturnTrackingStatus.parcel_processed_by_retailer, ReturnTrackingStatus.parcel_under_investigation, ReturnTrackingStatus.processed_by_local_hub, ReturnTrackingStatus.received_at_local_hub, ReturnTrackingStatus.received_by_the_carrier, ReturnTrackingStatus.return_registered_online]
19891
+ end
19892
+
19893
+ def ReturnTrackingStatus.awaiting_customs_clearance
19894
+ @@_awaiting_customs_clearance ||= ReturnTrackingStatus.new('awaiting_customs_clearance')
19895
+ end
19896
+
19897
+ def ReturnTrackingStatus.cancel_requested
19898
+ @@_cancel_requested ||= ReturnTrackingStatus.new('cancel_requested')
19899
+ end
19900
+
19901
+ def ReturnTrackingStatus.canceled
19902
+ @@_canceled ||= ReturnTrackingStatus.new('canceled')
19903
+ end
19904
+
19905
+ def ReturnTrackingStatus.collection_attempt_failed
19906
+ @@_collection_attempt_failed ||= ReturnTrackingStatus.new('collection_attempt_failed')
19907
+ end
19908
+
19909
+ def ReturnTrackingStatus.customs_clearance_completed
19910
+ @@_customs_clearance_completed ||= ReturnTrackingStatus.new('customs_clearance_completed')
19911
+ end
19912
+
19913
+ def ReturnTrackingStatus.delivered_to_retailer
19914
+ @@_delivered_to_retailer ||= ReturnTrackingStatus.new('delivered_to_retailer')
19915
+ end
19916
+
19917
+ def ReturnTrackingStatus.in_transit_to_local_hub
19918
+ @@_in_transit_to_local_hub ||= ReturnTrackingStatus.new('in_transit_to_local_hub')
19919
+ end
19920
+
19921
+ def ReturnTrackingStatus.in_transit_to_retailer
19922
+ @@_in_transit_to_retailer ||= ReturnTrackingStatus.new('in_transit_to_retailer')
19923
+ end
19924
+
19925
+ def ReturnTrackingStatus.parcel_added_to_pallet
19926
+ @@_parcel_added_to_pallet ||= ReturnTrackingStatus.new('parcel_added_to_pallet')
19927
+ end
19928
+
19929
+ def ReturnTrackingStatus.parcel_delayed
19930
+ @@_parcel_delayed ||= ReturnTrackingStatus.new('parcel_delayed')
19931
+ end
19932
+
19933
+ def ReturnTrackingStatus.parcel_extracted_from_pallet
19934
+ @@_parcel_extracted_from_pallet ||= ReturnTrackingStatus.new('parcel_extracted_from_pallet')
19935
+ end
19936
+
19937
+ def ReturnTrackingStatus.parcel_lost
19938
+ @@_parcel_lost ||= ReturnTrackingStatus.new('parcel_lost')
19939
+ end
19940
+
19941
+ def ReturnTrackingStatus.parcel_processed_by_retailer
19942
+ @@_parcel_processed_by_retailer ||= ReturnTrackingStatus.new('parcel_processed_by_retailer')
19943
+ end
19944
+
19945
+ def ReturnTrackingStatus.parcel_under_investigation
19946
+ @@_parcel_under_investigation ||= ReturnTrackingStatus.new('parcel_under_investigation')
19947
+ end
19948
+
19949
+ def ReturnTrackingStatus.processed_by_local_hub
19950
+ @@_processed_by_local_hub ||= ReturnTrackingStatus.new('processed_by_local_hub')
19951
+ end
19952
+
19953
+ def ReturnTrackingStatus.received_at_local_hub
19954
+ @@_received_at_local_hub ||= ReturnTrackingStatus.new('received_at_local_hub')
19955
+ end
19956
+
19957
+ def ReturnTrackingStatus.received_by_the_carrier
19958
+ @@_received_by_the_carrier ||= ReturnTrackingStatus.new('received_by_the_carrier')
19959
+ end
19960
+
19961
+ def ReturnTrackingStatus.return_registered_online
19962
+ @@_return_registered_online ||= ReturnTrackingStatus.new('return_registered_online')
19963
+ end
19964
+
19965
+ def to_hash
19966
+ value
19967
+ end
19968
+
19969
+ end
19970
+
19456
19971
  class ReversalErrorCode
19457
19972
 
19458
19973
  attr_reader :value
@@ -23607,7 +24122,7 @@ module Io
23607
24122
  # our clients
23608
24123
  class B2bCreditMemo
23609
24124
 
23610
- attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :invoice, :lines, :documents, :attributes
24125
+ attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :invoice, :lines, :documents, :attributes, :b2b_invoice_type
23611
24126
 
23612
24127
  def initialize(incoming={})
23613
24128
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -23623,6 +24138,7 @@ module Io
23623
24138
  @lines = HttpClient::Preconditions.assert_class('lines', opts.delete(:lines), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceLine) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceLine.from_json(x)) }
23624
24139
  @documents = HttpClient::Preconditions.assert_class('documents', opts.delete(:documents), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceDocument) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceDocument.new(x)) }
23625
24140
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
24141
+ @b2b_invoice_type = (x = (x = opts.delete(:b2b_invoice_type); x.nil? ? "self_bill_invoice" : x); x.is_a?(::Io::Flow::V0::Models::B2bInvoiceType) ? x : ::Io::Flow::V0::Models::B2bInvoiceType.apply(x))
23626
24142
  end
23627
24143
 
23628
24144
  def to_json
@@ -23645,7 +24161,8 @@ module Io
23645
24161
  :invoice => invoice.to_hash,
23646
24162
  :lines => lines.map { |o| o.to_hash },
23647
24163
  :documents => documents.map { |o| o.to_hash },
23648
- :attributes => attributes
24164
+ :attributes => attributes,
24165
+ :b2b_invoice_type => b2b_invoice_type.value
23649
24166
  }
23650
24167
  end
23651
24168
 
@@ -23721,7 +24238,7 @@ module Io
23721
24238
  # (e.g. Flow purchasing inventory to resell to a consumer).
23722
24239
  class B2bInvoice
23723
24240
 
23724
- attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :order, :economic_title_location, :center, :destination, :tax, :lines, :documents, :attributes, :estimated_delivery_date
24241
+ attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :order, :economic_title_location, :center, :destination, :tax, :lines, :documents, :attributes, :estimated_delivery_date, :b2b_invoice_type
23725
24242
 
23726
24243
  def initialize(incoming={})
23727
24244
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -23742,6 +24259,7 @@ module Io
23742
24259
  @documents = HttpClient::Preconditions.assert_class('documents', opts.delete(:documents), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceDocument) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceDocument.new(x)) }
23743
24260
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
23744
24261
  @estimated_delivery_date = (x = opts.delete(:estimated_delivery_date); x.nil? ? nil : HttpClient::Preconditions.assert_class('estimated_delivery_date', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
24262
+ @b2b_invoice_type = (x = (x = opts.delete(:b2b_invoice_type); x.nil? ? "self_bill_invoice" : x); x.is_a?(::Io::Flow::V0::Models::B2bInvoiceType) ? x : ::Io::Flow::V0::Models::B2bInvoiceType.apply(x))
23745
24263
  end
23746
24264
 
23747
24265
  def to_json
@@ -23769,7 +24287,8 @@ module Io
23769
24287
  :lines => lines.map { |o| o.to_hash },
23770
24288
  :documents => documents.map { |o| o.to_hash },
23771
24289
  :attributes => attributes,
23772
- :estimated_delivery_date => estimated_delivery_date
24290
+ :estimated_delivery_date => estimated_delivery_date,
24291
+ :b2b_invoice_type => b2b_invoice_type.value
23773
24292
  }
23774
24293
  end
23775
24294
 
@@ -24077,6 +24596,37 @@ module Io
24077
24596
 
24078
24597
  end
24079
24598
 
24599
+ # Information to be passed to the payment processor about how to handle browser
24600
+ # inline authorization activities.
24601
+ class BrowserInlineActionConfiguration < InlineActionConfiguration
24602
+
24603
+ attr_reader :inline_notification_urls, :action_configuration
24604
+
24605
+ def initialize(incoming={})
24606
+ super(:discriminator => InlineActionConfiguration::Types::BROWSER_INLINE_ACTION_CONFIGURATION)
24607
+ opts = HttpClient::Helper.symbolize_keys(incoming)
24608
+ HttpClient::Preconditions.require_keys(opts, [:inline_notification_urls], 'BrowserInlineActionConfiguration')
24609
+ @inline_notification_urls = (x = opts.delete(:inline_notification_urls); x.is_a?(::Io::Flow::V0::Models::PostPaymentRedirectUrls) ? x : ::Io::Flow::V0::Models::PostPaymentRedirectUrls.new(x))
24610
+ @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserActionConfiguration) ? x : ::Io::Flow::V0::Models::BrowserActionConfiguration.from_json(x)))
24611
+ end
24612
+
24613
+ def to_json
24614
+ JSON.dump(to_hash)
24615
+ end
24616
+
24617
+ def copy(incoming={})
24618
+ BrowserInlineActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
24619
+ end
24620
+
24621
+ def subtype_to_hash
24622
+ {
24623
+ :inline_notification_urls => inline_notification_urls.to_hash,
24624
+ :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
24625
+ }
24626
+ end
24627
+
24628
+ end
24629
+
24080
24630
  # Capture actually transfers funds. You can capture as many times as you'd like
24081
24631
  # up until the total amount of the authorization has been captured or the
24082
24632
  # authorization otherwise becomes unavailable (e.g. expires).
@@ -24603,6 +25153,33 @@ module Io
24603
25153
 
24604
25154
  end
24605
25155
 
25156
+ # Instructions to the card issuer to render challenges to the user
25157
+ class CardBrowserActionConfiguration < BrowserActionConfiguration
25158
+
25159
+ attr_reader :viewport
25160
+
25161
+ def initialize(incoming={})
25162
+ super(:discriminator => BrowserActionConfiguration::Types::CARD_BROWSER_ACTION_CONFIGURATION)
25163
+ opts = HttpClient::Helper.symbolize_keys(incoming)
25164
+ @viewport = (x = (x = opts.delete(:viewport); x.nil? ? "xxx_small" : x); x.is_a?(::Io::Flow::V0::Models::ThreedsTwoChallengeViewport) ? x : ::Io::Flow::V0::Models::ThreedsTwoChallengeViewport.apply(x))
25165
+ end
25166
+
25167
+ def to_json
25168
+ JSON.dump(to_hash)
25169
+ end
25170
+
25171
+ def copy(incoming={})
25172
+ CardBrowserActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
25173
+ end
25174
+
25175
+ def subtype_to_hash
25176
+ {
25177
+ :viewport => viewport.value
25178
+ }
25179
+ end
25180
+
25181
+ end
25182
+
24606
25183
  class CardDeleted < Event
24607
25184
 
24608
25185
  attr_reader :event_id, :timestamp, :organization, :id
@@ -24839,7 +25416,7 @@ module Io
24839
25416
  # Creates an authorization for a transaction from a card payment source.
24840
25417
  class CardPaymentSourceAuthorizationForm < AuthorizationForm
24841
25418
 
24842
- attr_reader :key, :card_payment_source_id, :order_number, :amount, :currency, :browser_info, :action_configuration
25419
+ attr_reader :key, :card_payment_source_id, :order_number, :amount, :currency, :browser_info, :inline_action_configuration
24843
25420
 
24844
25421
  def initialize(incoming={})
24845
25422
  super(:discriminator => AuthorizationForm::Types::CARD_PAYMENT_SOURCE_AUTHORIZATION_FORM)
@@ -24851,7 +25428,7 @@ module Io
24851
25428
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
24852
25429
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
24853
25430
  @browser_info = (x = opts.delete(:browser_info); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserInfo) ? x : ::Io::Flow::V0::Models::BrowserInfo.new(x)))
24854
- @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ActionConfiguration) ? x : ::Io::Flow::V0::Models::ActionConfiguration.from_json(x)))
25431
+ @inline_action_configuration = (x = opts.delete(:inline_action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::InlineActionConfiguration) ? x : ::Io::Flow::V0::Models::InlineActionConfiguration.from_json(x)))
24855
25432
  end
24856
25433
 
24857
25434
  def to_json
@@ -24870,7 +25447,7 @@ module Io
24870
25447
  :amount => amount.to_f.to_s,
24871
25448
  :currency => currency,
24872
25449
  :browser_info => browser_info.nil? ? nil : browser_info.to_hash,
24873
- :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
25450
+ :inline_action_configuration => inline_action_configuration.nil? ? nil : inline_action_configuration.to_hash
24874
25451
  }
24875
25452
  end
24876
25453
 
@@ -27413,6 +27990,128 @@ module Io
27413
27990
 
27414
27991
  end
27415
27992
 
27993
+ class CountryStatus
27994
+
27995
+ attr_reader :id, :country, :status
27996
+
27997
+ def initialize(incoming={})
27998
+ opts = HttpClient::Helper.symbolize_keys(incoming)
27999
+ HttpClient::Preconditions.require_keys(opts, [:id, :country, :status], 'CountryStatus')
28000
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
28001
+ @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
28002
+ @status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ExperienceCountryStatus) ? x : ::Io::Flow::V0::Models::ExperienceCountryStatus.apply(x))
28003
+ end
28004
+
28005
+ def to_json
28006
+ JSON.dump(to_hash)
28007
+ end
28008
+
28009
+ def copy(incoming={})
28010
+ CountryStatus.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28011
+ end
28012
+
28013
+ def to_hash
28014
+ {
28015
+ :id => id,
28016
+ :country => country,
28017
+ :status => status.value
28018
+ }
28019
+ end
28020
+
28021
+ end
28022
+
28023
+ class CountryStatusDeleted < Event
28024
+
28025
+ attr_reader :event_id, :timestamp, :organization, :country_status
28026
+
28027
+ def initialize(incoming={})
28028
+ super(:discriminator => Event::Types::COUNTRY_STATUS_DELETED)
28029
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28030
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :country_status], 'CountryStatusDeleted')
28031
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
28032
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
28033
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
28034
+ @country_status = (x = opts.delete(:country_status); x.is_a?(::Io::Flow::V0::Models::CountryStatus) ? x : ::Io::Flow::V0::Models::CountryStatus.new(x))
28035
+ end
28036
+
28037
+ def to_json
28038
+ JSON.dump(to_hash)
28039
+ end
28040
+
28041
+ def copy(incoming={})
28042
+ CountryStatusDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28043
+ end
28044
+
28045
+ def subtype_to_hash
28046
+ {
28047
+ :event_id => event_id,
28048
+ :timestamp => timestamp,
28049
+ :organization => organization,
28050
+ :country_status => country_status.to_hash
28051
+ }
28052
+ end
28053
+
28054
+ end
28055
+
28056
+ class CountryStatusForm
28057
+
28058
+ attr_reader :status
28059
+
28060
+ def initialize(incoming={})
28061
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28062
+ HttpClient::Preconditions.require_keys(opts, [:status], 'CountryStatusForm')
28063
+ @status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ExperienceCountryStatus) ? x : ::Io::Flow::V0::Models::ExperienceCountryStatus.apply(x))
28064
+ end
28065
+
28066
+ def to_json
28067
+ JSON.dump(to_hash)
28068
+ end
28069
+
28070
+ def copy(incoming={})
28071
+ CountryStatusForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28072
+ end
28073
+
28074
+ def to_hash
28075
+ {
28076
+ :status => status.value
28077
+ }
28078
+ end
28079
+
28080
+ end
28081
+
28082
+ class CountryStatusUpserted < Event
28083
+
28084
+ attr_reader :event_id, :timestamp, :organization, :country_status
28085
+
28086
+ def initialize(incoming={})
28087
+ super(:discriminator => Event::Types::COUNTRY_STATUS_UPSERTED)
28088
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28089
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :country_status], 'CountryStatusUpserted')
28090
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
28091
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
28092
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
28093
+ @country_status = (x = opts.delete(:country_status); x.is_a?(::Io::Flow::V0::Models::CountryStatus) ? x : ::Io::Flow::V0::Models::CountryStatus.new(x))
28094
+ end
28095
+
28096
+ def to_json
28097
+ JSON.dump(to_hash)
28098
+ end
28099
+
28100
+ def copy(incoming={})
28101
+ CountryStatusUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28102
+ end
28103
+
28104
+ def subtype_to_hash
28105
+ {
28106
+ :event_id => event_id,
28107
+ :timestamp => timestamp,
28108
+ :organization => organization,
28109
+ :country_status => country_status.to_hash
28110
+ }
28111
+ end
28112
+
28113
+ end
28114
+
27416
28115
  # The credit memo represents the details of a refund and the reasons for the
27417
28116
  # issuance of the refund.
27418
28117
  class CreditMemo
@@ -29746,7 +30445,7 @@ module Io
29746
30445
  # you can capture up to the amount of the authorization.
29747
30446
  class DirectAuthorizationForm < AuthorizationForm
29748
30447
 
29749
- attr_reader :token, :amount, :currency, :customer, :key, :cvv, :attributes, :destination, :billing_address, :ip, :options, :redirect_urls, :browser_info, :action_configuration
30448
+ attr_reader :token, :amount, :currency, :customer, :key, :cvv, :attributes, :destination, :billing_address, :ip, :options, :redirect_urls, :browser_info, :inline_action_configuration
29750
30449
 
29751
30450
  def initialize(incoming={})
29752
30451
  super(:discriminator => AuthorizationForm::Types::DIRECT_AUTHORIZATION_FORM)
@@ -29765,7 +30464,7 @@ module Io
29765
30464
  @options = (x = opts.delete(:options); x.nil? ? nil : HttpClient::Preconditions.assert_class('options', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::AuthorizationOption) ? x : ::Io::Flow::V0::Models::AuthorizationOption.apply(x)) })
29766
30465
  @redirect_urls = (x = opts.delete(:redirect_urls); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PostPaymentRedirectUrls) ? x : ::Io::Flow::V0::Models::PostPaymentRedirectUrls.new(x)))
29767
30466
  @browser_info = (x = opts.delete(:browser_info); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserInfo) ? x : ::Io::Flow::V0::Models::BrowserInfo.new(x)))
29768
- @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ActionConfiguration) ? x : ::Io::Flow::V0::Models::ActionConfiguration.from_json(x)))
30467
+ @inline_action_configuration = (x = opts.delete(:inline_action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::InlineActionConfiguration) ? x : ::Io::Flow::V0::Models::InlineActionConfiguration.from_json(x)))
29769
30468
  end
29770
30469
 
29771
30470
  def to_json
@@ -29791,7 +30490,7 @@ module Io
29791
30490
  :options => options.nil? ? nil : options.map { |o| o.value },
29792
30491
  :redirect_urls => redirect_urls.nil? ? nil : redirect_urls.to_hash,
29793
30492
  :browser_info => browser_info.nil? ? nil : browser_info.to_hash,
29794
- :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
30493
+ :inline_action_configuration => inline_action_configuration.nil? ? nil : inline_action_configuration.to_hash
29795
30494
  }
29796
30495
  end
29797
30496
 
@@ -36037,7 +36736,7 @@ module Io
36037
36736
  # many clients, this will map to a Sku.
36038
36737
  class Item
36039
36738
 
36040
- attr_reader :id, :number, :locale, :name, :price, :categories, :description, :attributes, :dimensions, :images, :local
36739
+ attr_reader :id, :number, :locale, :name, :price, :categories, :description, :attributes, :dimensions, :images, :local, :created_at, :updated_at
36041
36740
 
36042
36741
  def initialize(incoming={})
36043
36742
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -36053,6 +36752,8 @@ module Io
36053
36752
  @dimensions = (x = opts.delete(:dimensions); x.is_a?(::Io::Flow::V0::Models::Dimensions) ? x : ::Io::Flow::V0::Models::Dimensions.new(x))
36054
36753
  @images = HttpClient::Preconditions.assert_class('images', (x = opts.delete(:images); x.nil? ? [] : x), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Image) ? x : ::Io::Flow::V0::Models::Image.new(x)) }
36055
36754
  @local = (x = opts.delete(:local); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Local) ? x : ::Io::Flow::V0::Models::Local.new(x)))
36755
+ @created_at = (x = opts.delete(:created_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
36756
+ @updated_at = (x = opts.delete(:updated_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('updated_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
36056
36757
  end
36057
36758
 
36058
36759
  def to_json
@@ -36075,7 +36776,9 @@ module Io
36075
36776
  :attributes => attributes,
36076
36777
  :dimensions => dimensions.to_hash,
36077
36778
  :images => images.map { |o| o.to_hash },
36078
- :local => local.nil? ? nil : local.to_hash
36779
+ :local => local.nil? ? nil : local.to_hash,
36780
+ :created_at => created_at,
36781
+ :updated_at => updated_at
36079
36782
  }
36080
36783
  end
36081
36784
 
@@ -37559,6 +38262,39 @@ module Io
37559
38262
 
37560
38263
  end
37561
38264
 
38265
+ # Localized item attribute pricing information
38266
+ class LocalItemAttributePricing
38267
+
38268
+ attr_reader :pretax_price, :vat, :duty, :price
38269
+
38270
+ def initialize(incoming={})
38271
+ opts = HttpClient::Helper.symbolize_keys(incoming)
38272
+ HttpClient::Preconditions.require_keys(opts, [:pretax_price, :price], 'LocalItemAttributePricing')
38273
+ @pretax_price = (x = opts.delete(:pretax_price); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
38274
+ @vat = (x = opts.delete(:vat); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemVat) ? x : ::Io::Flow::V0::Models::LocalizedItemVat.new(x)))
38275
+ @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemDuty) ? x : ::Io::Flow::V0::Models::LocalizedItemDuty.new(x)))
38276
+ @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::LocalizedItemPrice) ? x : ::Io::Flow::V0::Models::LocalizedItemPrice.new(x))
38277
+ end
38278
+
38279
+ def to_json
38280
+ JSON.dump(to_hash)
38281
+ end
38282
+
38283
+ def copy(incoming={})
38284
+ LocalItemAttributePricing.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
38285
+ end
38286
+
38287
+ def to_hash
38288
+ {
38289
+ :pretax_price => pretax_price.to_hash,
38290
+ :vat => vat.nil? ? nil : vat.to_hash,
38291
+ :duty => duty.nil? ? nil : duty.to_hash,
38292
+ :price => price.to_hash
38293
+ }
38294
+ end
38295
+
38296
+ end
38297
+
37562
38298
  class LocalItemDeleted < Event
37563
38299
 
37564
38300
  attr_reader :event_id, :timestamp, :organization, :local_item
@@ -37595,7 +38331,7 @@ module Io
37595
38331
  # Localized item pricing information
37596
38332
  class LocalItemPricing
37597
38333
 
37598
- attr_reader :price, :vat, :duty, :attributes
38334
+ attr_reader :price, :vat, :duty, :attributes, :price_attributes
37599
38335
 
37600
38336
  def initialize(incoming={})
37601
38337
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -37604,6 +38340,7 @@ module Io
37604
38340
  @vat = (x = opts.delete(:vat); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemVat) ? x : ::Io::Flow::V0::Models::LocalizedItemVat.new(x)))
37605
38341
  @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemDuty) ? x : ::Io::Flow::V0::Models::LocalizedItemDuty.new(x)))
37606
38342
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = (x = d[1]; x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x)); h }
38343
+ @price_attributes = (x = opts.delete(:price_attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('price_attributes', x, Hash).inject({}) { |h, d| h[d[0]] = (x = d[1]; x.is_a?(::Io::Flow::V0::Models::LocalItemAttributePricing) ? x : ::Io::Flow::V0::Models::LocalItemAttributePricing.new(x)); h })
37607
38344
  end
37608
38345
 
37609
38346
  def to_json
@@ -37619,7 +38356,8 @@ module Io
37619
38356
  :price => price.to_hash,
37620
38357
  :vat => vat.nil? ? nil : vat.to_hash,
37621
38358
  :duty => duty.nil? ? nil : duty.to_hash,
37622
- :attributes => attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash }
38359
+ :attributes => attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash },
38360
+ :price_attributes => price_attributes.nil? ? nil : price_attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash }
37623
38361
  }
37624
38362
  end
37625
38363
 
@@ -38790,7 +39528,7 @@ module Io
38790
39528
  # you can capture up to the amount of the authorization
38791
39529
  class MerchantOfRecordAuthorizationForm < AuthorizationForm
38792
39530
 
38793
- attr_reader :token, :order_number, :amount, :currency, :key, :cvv, :attributes, :ip, :options, :redirect_urls, :browser_info, :action_configuration
39531
+ attr_reader :token, :order_number, :amount, :currency, :key, :cvv, :attributes, :ip, :options, :redirect_urls, :browser_info, :inline_action_configuration
38794
39532
 
38795
39533
  def initialize(incoming={})
38796
39534
  super(:discriminator => AuthorizationForm::Types::MERCHANT_OF_RECORD_AUTHORIZATION_FORM)
@@ -38807,7 +39545,7 @@ module Io
38807
39545
  @options = (x = opts.delete(:options); x.nil? ? nil : HttpClient::Preconditions.assert_class('options', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::AuthorizationOption) ? x : ::Io::Flow::V0::Models::AuthorizationOption.apply(x)) })
38808
39546
  @redirect_urls = (x = opts.delete(:redirect_urls); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PostPaymentRedirectUrls) ? x : ::Io::Flow::V0::Models::PostPaymentRedirectUrls.new(x)))
38809
39547
  @browser_info = (x = opts.delete(:browser_info); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserInfo) ? x : ::Io::Flow::V0::Models::BrowserInfo.new(x)))
38810
- @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ActionConfiguration) ? x : ::Io::Flow::V0::Models::ActionConfiguration.from_json(x)))
39548
+ @inline_action_configuration = (x = opts.delete(:inline_action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::InlineActionConfiguration) ? x : ::Io::Flow::V0::Models::InlineActionConfiguration.from_json(x)))
38811
39549
  end
38812
39550
 
38813
39551
  def to_json
@@ -38831,7 +39569,7 @@ module Io
38831
39569
  :options => options.nil? ? nil : options.map { |o| o.value },
38832
39570
  :redirect_urls => redirect_urls.nil? ? nil : redirect_urls.to_hash,
38833
39571
  :browser_info => browser_info.nil? ? nil : browser_info.to_hash,
38834
- :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
39572
+ :inline_action_configuration => inline_action_configuration.nil? ? nil : inline_action_configuration.to_hash
38835
39573
  }
38836
39574
  end
38837
39575
 
@@ -41753,7 +42491,7 @@ module Io
41753
42491
  # currently operating in.
41754
42492
  class Organization < ExpandableOrganization
41755
42493
 
41756
- attr_reader :id, :name, :environment, :parent, :defaults, :created_at
42494
+ attr_reader :id, :name, :environment, :parent, :defaults, :created_at, :status
41757
42495
 
41758
42496
  def initialize(incoming={})
41759
42497
  super(:discriminator => ExpandableOrganization::Types::ORGANIZATION)
@@ -41765,6 +42503,7 @@ module Io
41765
42503
  @parent = (x = opts.delete(:parent); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationReference) ? x : ::Io::Flow::V0::Models::OrganizationReference.new(x)))
41766
42504
  @defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
41767
42505
  @created_at = (x = opts.delete(:created_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
42506
+ @status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::OrganizationStatus) ? x : ::Io::Flow::V0::Models::OrganizationStatus.apply(x))
41768
42507
  end
41769
42508
 
41770
42509
  def to_json
@@ -41782,7 +42521,8 @@ module Io
41782
42521
  :environment => environment.value,
41783
42522
  :parent => parent.nil? ? nil : parent.to_hash,
41784
42523
  :defaults => defaults.nil? ? nil : defaults.to_hash,
41785
- :created_at => created_at
42524
+ :created_at => created_at,
42525
+ :status => status.value
41786
42526
  }
41787
42527
  end
41788
42528
 
@@ -42186,7 +42926,7 @@ module Io
42186
42926
  # Either id or name is required.
42187
42927
  class OrganizationForm
42188
42928
 
42189
- attr_reader :id, :name, :environment, :parent_id, :defaults
42929
+ attr_reader :id, :name, :environment, :parent_id, :defaults, :status
42190
42930
 
42191
42931
  def initialize(incoming={})
42192
42932
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -42195,6 +42935,7 @@ module Io
42195
42935
  @environment = (x = (x = opts.delete(:environment); x.nil? ? "production" : x); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
42196
42936
  @parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
42197
42937
  @defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
42938
+ @status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::OrganizationStatus) ? x : ::Io::Flow::V0::Models::OrganizationStatus.apply(x))
42198
42939
  end
42199
42940
 
42200
42941
  def to_json
@@ -42211,7 +42952,8 @@ module Io
42211
42952
  :name => name,
42212
42953
  :environment => environment.value,
42213
42954
  :parent_id => parent_id,
42214
- :defaults => defaults.nil? ? nil : defaults.to_hash
42955
+ :defaults => defaults.nil? ? nil : defaults.to_hash,
42956
+ :status => status.value
42215
42957
  }
42216
42958
  end
42217
42959
 
@@ -42220,7 +42962,7 @@ module Io
42220
42962
  # Data required to upsert an organization.
42221
42963
  class OrganizationPutForm
42222
42964
 
42223
- attr_reader :name, :environment, :parent_id, :defaults
42965
+ attr_reader :name, :environment, :parent_id, :defaults, :status
42224
42966
 
42225
42967
  def initialize(incoming={})
42226
42968
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -42228,6 +42970,7 @@ module Io
42228
42970
  @environment = (x = opts.delete(:environment); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x)))
42229
42971
  @parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
42230
42972
  @defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
42973
+ @status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::OrganizationStatus) ? x : ::Io::Flow::V0::Models::OrganizationStatus.apply(x))
42231
42974
  end
42232
42975
 
42233
42976
  def to_json
@@ -42243,7 +42986,8 @@ module Io
42243
42986
  :name => name,
42244
42987
  :environment => environment.nil? ? nil : environment.value,
42245
42988
  :parent_id => parent_id,
42246
- :defaults => defaults.nil? ? nil : defaults.to_hash
42989
+ :defaults => defaults.nil? ? nil : defaults.to_hash,
42990
+ :status => status.value
42247
42991
  }
42248
42992
  end
42249
42993
 
@@ -42522,13 +43266,14 @@ module Io
42522
43266
 
42523
43267
  class OrganizationSummary
42524
43268
 
42525
- attr_reader :id, :name
43269
+ attr_reader :id, :name, :environment
42526
43270
 
42527
43271
  def initialize(incoming={})
42528
43272
  opts = HttpClient::Helper.symbolize_keys(incoming)
42529
- HttpClient::Preconditions.require_keys(opts, [:id, :name], 'OrganizationSummary')
43273
+ HttpClient::Preconditions.require_keys(opts, [:id, :name, :environment], 'OrganizationSummary')
42530
43274
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
42531
43275
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
43276
+ @environment = (x = opts.delete(:environment); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
42532
43277
  end
42533
43278
 
42534
43279
  def to_json
@@ -42542,7 +43287,8 @@ module Io
42542
43287
  def to_hash
42543
43288
  {
42544
43289
  :id => id,
42545
- :name => name
43290
+ :name => name,
43291
+ :environment => environment.value
42546
43292
  }
42547
43293
  end
42548
43294
 
@@ -47830,15 +48576,23 @@ module Io
47830
48576
 
47831
48577
  class Return
47832
48578
 
47833
- attr_reader :id, :key, :items, :labels
48579
+ attr_reader :id, :key, :order, :service, :items, :labels, :origin, :destination, :source, :tracking_status, :tracking_status_timestamp, :carrier_tracking_number
47834
48580
 
47835
48581
  def initialize(incoming={})
47836
48582
  opts = HttpClient::Helper.symbolize_keys(incoming)
47837
- HttpClient::Preconditions.require_keys(opts, [:id, :key, :items, :labels], 'Return')
48583
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :service, :items, :origin, :destination, :source], 'Return')
47838
48584
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
47839
48585
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48586
+ @order = (x = opts.delete(:order); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnOrderReference) ? x : ::Io::Flow::V0::Models::ReturnOrderReference.new(x)))
48587
+ @service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x))
47840
48588
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ReturnLineItem) ? x : ::Io::Flow::V0::Models::ReturnLineItem.new(x)) }
47841
- @labels = HttpClient::Preconditions.assert_class('labels', opts.delete(:labels), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) }
48589
+ @labels = (x = opts.delete(:labels); x.nil? ? nil : HttpClient::Preconditions.assert_class('labels', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) })
48590
+ @origin = (x = opts.delete(:origin); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48591
+ @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48592
+ @source = (x = opts.delete(:source); x.is_a?(::Io::Flow::V0::Models::ReturnSource) ? x : ::Io::Flow::V0::Models::ReturnSource.from_json(x))
48593
+ @tracking_status = (x = opts.delete(:tracking_status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnTrackingStatus) ? x : ::Io::Flow::V0::Models::ReturnTrackingStatus.apply(x)))
48594
+ @tracking_status_timestamp = (x = opts.delete(:tracking_status_timestamp); x.nil? ? nil : HttpClient::Preconditions.assert_class('tracking_status_timestamp', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
48595
+ @carrier_tracking_number = (x = opts.delete(:carrier_tracking_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('carrier_tracking_number', x, String))
47842
48596
  end
47843
48597
 
47844
48598
  def to_json
@@ -47853,8 +48607,16 @@ module Io
47853
48607
  {
47854
48608
  :id => id,
47855
48609
  :key => key,
48610
+ :order => order.nil? ? nil : order.to_hash,
48611
+ :service => service.to_hash,
47856
48612
  :items => items.map { |o| o.to_hash },
47857
- :labels => labels.map { |o| o.to_hash }
48613
+ :labels => labels.nil? ? nil : labels.map { |o| o.to_hash },
48614
+ :origin => origin.to_hash,
48615
+ :destination => destination.to_hash,
48616
+ :source => source.to_hash,
48617
+ :tracking_status => tracking_status.nil? ? nil : tracking_status.value,
48618
+ :tracking_status_timestamp => tracking_status_timestamp,
48619
+ :carrier_tracking_number => carrier_tracking_number
47858
48620
  }
47859
48621
  end
47860
48622
 
@@ -47891,9 +48653,42 @@ module Io
47891
48653
 
47892
48654
  end
47893
48655
 
48656
+ class ReturnDeletedV2 < Event
48657
+
48658
+ attr_reader :event_id, :timestamp, :organization, :return_
48659
+
48660
+ def initialize(incoming={})
48661
+ super(:discriminator => Event::Types::RETURN_DELETED_V2)
48662
+ opts = HttpClient::Helper.symbolize_keys(incoming)
48663
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :return_], 'ReturnDeletedV2')
48664
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
48665
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
48666
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
48667
+ @return_ = (x = opts.delete(:return); x.is_a?(::Io::Flow::V0::Models::Return) ? x : ::Io::Flow::V0::Models::Return.new(x))
48668
+ end
48669
+
48670
+ def to_json
48671
+ JSON.dump(to_hash)
48672
+ end
48673
+
48674
+ def copy(incoming={})
48675
+ ReturnDeletedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
48676
+ end
48677
+
48678
+ def subtype_to_hash
48679
+ {
48680
+ :event_id => event_id,
48681
+ :timestamp => timestamp,
48682
+ :organization => organization,
48683
+ :return => return_.to_hash
48684
+ }
48685
+ end
48686
+
48687
+ end
48688
+
47894
48689
  class ReturnForm
47895
48690
 
47896
- attr_reader :items, :tier_id, :order_number, :service, :destination, :key, :origin, :center_key
48691
+ attr_reader :items, :tier_id, :order_number, :service, :destination, :key, :origin, :center_key, :source, :tracking_status, :tracking_status_timestamp, :carrier_tracking_number
47897
48692
 
47898
48693
  def initialize(incoming={})
47899
48694
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -47906,6 +48701,10 @@ module Io
47906
48701
  @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
47907
48702
  @origin = (x = opts.delete(:origin); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x)))
47908
48703
  @center_key = (x = opts.delete(:center_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('center_key', x, String))
48704
+ @source = (x = opts.delete(:source); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnSource) ? x : ::Io::Flow::V0::Models::ReturnSource.from_json(x)))
48705
+ @tracking_status = (x = opts.delete(:tracking_status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnTrackingStatus) ? x : ::Io::Flow::V0::Models::ReturnTrackingStatus.apply(x)))
48706
+ @tracking_status_timestamp = (x = opts.delete(:tracking_status_timestamp); x.nil? ? nil : HttpClient::Preconditions.assert_class('tracking_status_timestamp', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
48707
+ @carrier_tracking_number = (x = opts.delete(:carrier_tracking_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('carrier_tracking_number', x, String))
47909
48708
  end
47910
48709
 
47911
48710
  def to_json
@@ -47925,7 +48724,11 @@ module Io
47925
48724
  :destination => destination.nil? ? nil : destination.to_hash,
47926
48725
  :key => key,
47927
48726
  :origin => origin.nil? ? nil : origin.to_hash,
47928
- :center_key => center_key
48727
+ :center_key => center_key,
48728
+ :source => source.nil? ? nil : source.to_hash,
48729
+ :tracking_status => tracking_status.nil? ? nil : tracking_status.value,
48730
+ :tracking_status_timestamp => tracking_status_timestamp,
48731
+ :carrier_tracking_number => carrier_tracking_number
47929
48732
  }
47930
48733
  end
47931
48734
 
@@ -47959,7 +48762,7 @@ module Io
47959
48762
 
47960
48763
  class ReturnLineItem
47961
48764
 
47962
- attr_reader :item_number, :order_number, :quantity, :reason, :notes
48765
+ attr_reader :item_number, :order_number, :quantity, :reason, :notes, :attributes
47963
48766
 
47964
48767
  def initialize(incoming={})
47965
48768
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -47969,6 +48772,7 @@ module Io
47969
48772
  @quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
47970
48773
  @reason = (x = opts.delete(:reason); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnReason) ? x : ::Io::Flow::V0::Models::ReturnReason.new(x)))
47971
48774
  @notes = (x = opts.delete(:notes); x.nil? ? nil : HttpClient::Preconditions.assert_class('notes', x, String))
48775
+ @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
47972
48776
  end
47973
48777
 
47974
48778
  def to_json
@@ -47985,7 +48789,8 @@ module Io
47985
48789
  :order_number => order_number,
47986
48790
  :quantity => quantity,
47987
48791
  :reason => reason.nil? ? nil : reason.to_hash,
47988
- :notes => notes
48792
+ :notes => notes,
48793
+ :attributes => attributes.nil? ? nil : attributes
47989
48794
  }
47990
48795
  end
47991
48796
 
@@ -48046,12 +48851,11 @@ module Io
48046
48851
 
48047
48852
  class ReturnReason
48048
48853
 
48049
- attr_reader :key, :name
48854
+ attr_reader :name
48050
48855
 
48051
48856
  def initialize(incoming={})
48052
48857
  opts = HttpClient::Helper.symbolize_keys(incoming)
48053
- HttpClient::Preconditions.require_keys(opts, [:key, :name], 'ReturnReason')
48054
- @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48858
+ HttpClient::Preconditions.require_keys(opts, [:name], 'ReturnReason')
48055
48859
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
48056
48860
  end
48057
48861
 
@@ -48065,7 +48869,6 @@ module Io
48065
48869
 
48066
48870
  def to_hash
48067
48871
  {
48068
- :key => key,
48069
48872
  :name => name
48070
48873
  }
48071
48874
  end
@@ -48074,11 +48877,10 @@ module Io
48074
48877
 
48075
48878
  class ReturnReasonForm
48076
48879
 
48077
- attr_reader :key, :name
48880
+ attr_reader :name
48078
48881
 
48079
48882
  def initialize(incoming={})
48080
48883
  opts = HttpClient::Helper.symbolize_keys(incoming)
48081
- @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
48082
48884
  @name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String))
48083
48885
  end
48084
48886
 
@@ -48092,7 +48894,6 @@ module Io
48092
48894
 
48093
48895
  def to_hash
48094
48896
  {
48095
- :key => key,
48096
48897
  :name => name
48097
48898
  }
48098
48899
  end
@@ -48124,6 +48925,59 @@ module Io
48124
48925
 
48125
48926
  end
48126
48927
 
48928
+ class ReturnSourceExternalVendor < ReturnSource
48929
+
48930
+ attr_reader :key
48931
+
48932
+ def initialize(incoming={})
48933
+ super(:discriminator => ReturnSource::Types::RETURN_SOURCE_EXTERNAL_VENDOR)
48934
+ opts = HttpClient::Helper.symbolize_keys(incoming)
48935
+ HttpClient::Preconditions.require_keys(opts, [:key], 'ReturnSourceExternalVendor')
48936
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48937
+ end
48938
+
48939
+ def to_json
48940
+ JSON.dump(to_hash)
48941
+ end
48942
+
48943
+ def copy(incoming={})
48944
+ ReturnSourceExternalVendor.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
48945
+ end
48946
+
48947
+ def subtype_to_hash
48948
+ {
48949
+ :key => key
48950
+ }
48951
+ end
48952
+
48953
+ end
48954
+
48955
+ class ReturnSourceFlow < ReturnSource
48956
+
48957
+ attr_reader :attributes
48958
+
48959
+ def initialize(incoming={})
48960
+ super(:discriminator => ReturnSource::Types::RETURN_SOURCE_FLOW)
48961
+ opts = HttpClient::Helper.symbolize_keys(incoming)
48962
+ @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
48963
+ end
48964
+
48965
+ def to_json
48966
+ JSON.dump(to_hash)
48967
+ end
48968
+
48969
+ def copy(incoming={})
48970
+ ReturnSourceFlow.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
48971
+ end
48972
+
48973
+ def subtype_to_hash
48974
+ {
48975
+ :attributes => attributes.nil? ? nil : attributes
48976
+ }
48977
+ end
48978
+
48979
+ end
48980
+
48127
48981
  class ReturnUpserted < Event
48128
48982
 
48129
48983
  attr_reader :event_id, :timestamp, :id, :organization, :destination, :items, :key, :labels, :service, :origin
@@ -48131,7 +48985,7 @@ module Io
48131
48985
  def initialize(incoming={})
48132
48986
  super(:discriminator => Event::Types::RETURN_UPSERTED)
48133
48987
  opts = HttpClient::Helper.symbolize_keys(incoming)
48134
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :organization, :destination, :items, :key, :labels, :service, :origin], 'ReturnUpserted')
48988
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :organization, :destination, :items, :key, :service, :origin], 'ReturnUpserted')
48135
48989
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
48136
48990
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
48137
48991
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
@@ -48139,7 +48993,7 @@ module Io
48139
48993
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48140
48994
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ReturnLineItem) ? x : ::Io::Flow::V0::Models::ReturnLineItem.new(x)) }
48141
48995
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48142
- @labels = HttpClient::Preconditions.assert_class('labels', opts.delete(:labels), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) }
48996
+ @labels = (x = opts.delete(:labels); x.nil? ? nil : HttpClient::Preconditions.assert_class('labels', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) })
48143
48997
  @service = HttpClient::Preconditions.assert_class('service', opts.delete(:service), String)
48144
48998
  @origin = (x = opts.delete(:origin); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48145
48999
  end
@@ -48161,7 +49015,7 @@ module Io
48161
49015
  :destination => destination.to_hash,
48162
49016
  :items => items.map { |o| o.to_hash },
48163
49017
  :key => key,
48164
- :labels => labels.map { |o| o.to_hash },
49018
+ :labels => labels.nil? ? nil : labels.map { |o| o.to_hash },
48165
49019
  :service => service,
48166
49020
  :origin => origin.to_hash
48167
49021
  }
@@ -48169,6 +49023,39 @@ module Io
48169
49023
 
48170
49024
  end
48171
49025
 
49026
+ class ReturnUpsertedV2 < Event
49027
+
49028
+ attr_reader :event_id, :timestamp, :organization, :return_
49029
+
49030
+ def initialize(incoming={})
49031
+ super(:discriminator => Event::Types::RETURN_UPSERTED_V2)
49032
+ opts = HttpClient::Helper.symbolize_keys(incoming)
49033
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :return_], 'ReturnUpsertedV2')
49034
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
49035
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
49036
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
49037
+ @return_ = (x = opts.delete(:return); x.is_a?(::Io::Flow::V0::Models::Return) ? x : ::Io::Flow::V0::Models::Return.new(x))
49038
+ end
49039
+
49040
+ def to_json
49041
+ JSON.dump(to_hash)
49042
+ end
49043
+
49044
+ def copy(incoming={})
49045
+ ReturnUpsertedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
49046
+ end
49047
+
49048
+ def subtype_to_hash
49049
+ {
49050
+ :event_id => event_id,
49051
+ :timestamp => timestamp,
49052
+ :organization => organization,
49053
+ :return => return_.to_hash
49054
+ }
49055
+ end
49056
+
49057
+ end
49058
+
48172
49059
  class ReturnVersion
48173
49060
 
48174
49061
  attr_reader :id, :timestamp, :type, :return_
@@ -52857,33 +53744,6 @@ module Io
52857
53744
 
52858
53745
  end
52859
53746
 
52860
- # Instructions to the card issuer to render challenges to the user
52861
- class ThreedsTwoBrowserActionConfiguration < ActionConfiguration
52862
-
52863
- attr_reader :viewport
52864
-
52865
- def initialize(incoming={})
52866
- super(:discriminator => ActionConfiguration::Types::THREEDS_TWO_BROWSER_ACTION_CONFIGURATION)
52867
- opts = HttpClient::Helper.symbolize_keys(incoming)
52868
- @viewport = (x = (x = opts.delete(:viewport); x.nil? ? "xxx_small" : x); x.is_a?(::Io::Flow::V0::Models::ThreedsTwoChallengeViewport) ? x : ::Io::Flow::V0::Models::ThreedsTwoChallengeViewport.apply(x))
52869
- end
52870
-
52871
- def to_json
52872
- JSON.dump(to_hash)
52873
- end
52874
-
52875
- def copy(incoming={})
52876
- ThreedsTwoBrowserActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
52877
- end
52878
-
52879
- def subtype_to_hash
52880
- {
52881
- :viewport => viewport.value
52882
- }
52883
- end
52884
-
52885
- end
52886
-
52887
53747
  # Data that must be passed to the 3DS Client to help the issuer ACS render a
52888
53748
  # challenge for the user.
52889
53749
  class ThreedsTwoChallengeRequest < ThreedsChallengeAction