flowcommerce 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/flow_commerce/flow_api_v0_client.rb +408 -195
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2204e4d2e020718854824f59c77e82f1a0ad3c1f
|
4
|
+
data.tar.gz: 63016261af041e1a56d30504b71586d508f77fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d422dd7ece80ba2b6a80932ea956d447c6085a4ff889f90ffe577f63ba606abcba9328b044e1ab5d0aa32ae79d0db1dde53fb9511326bc0b47aa6d1659c10276
|
7
|
+
data.tar.gz: e55eea9dacce2d957c425de7028ab73cdb2ba594ebfb140b208477e5c866950da73856d5cd9c7ea235b50efec3bacce2ac0596838aef8e830be3bd8abef1b248
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by apidoc - http://www.apidoc.me
|
2
2
|
# Service version: 0.1.77
|
3
|
-
# apidoc:0.11.
|
3
|
+
# apidoc:0.11.51 http://www.apidoc.me/flow/api/0.2.21/ruby_client
|
4
4
|
|
5
5
|
require 'cgi'
|
6
6
|
require 'net/http'
|
@@ -25,7 +25,7 @@ module Io
|
|
25
25
|
|
26
26
|
BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
|
27
27
|
NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
|
28
|
-
USER_AGENT = 'apidoc:0.11.
|
28
|
+
USER_AGENT = 'apidoc:0.11.51 http://www.apidoc.me/flow/api/0.2.21/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
29
|
VERSION = '0.1.77' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
@@ -3926,8 +3926,8 @@ module Io
|
|
3926
3926
|
|
3927
3927
|
def initialize(incoming={})
|
3928
3928
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
3929
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
3930
|
-
@
|
3929
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'AuthorizationForm')
|
3930
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
3931
3931
|
end
|
3932
3932
|
|
3933
3933
|
def subtype_to_hash
|
@@ -3935,7 +3935,7 @@ module Io
|
|
3935
3935
|
end
|
3936
3936
|
|
3937
3937
|
def to_hash
|
3938
|
-
subtype_to_hash.merge(:discriminator => @
|
3938
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
3939
3939
|
end
|
3940
3940
|
|
3941
3941
|
def AuthorizationForm.from_json(hash)
|
@@ -3947,7 +3947,7 @@ module Io
|
|
3947
3947
|
case discriminator
|
3948
3948
|
when Types::DIRECT_AUTHORIZATION_FORM; DirectAuthorizationForm.new(hash)
|
3949
3949
|
when Types::MERCHANT_OF_RECORD_AUTHORIZATION_FORM; MerchantOfRecordAuthorizationForm.new(hash)
|
3950
|
-
else AuthorizationFormUndefinedType.new(:
|
3950
|
+
else AuthorizationFormUndefinedType.new(:discriminator => discriminator)
|
3951
3951
|
end
|
3952
3952
|
end
|
3953
3953
|
|
@@ -3958,9 +3958,9 @@ module Io
|
|
3958
3958
|
attr_reader :name
|
3959
3959
|
|
3960
3960
|
def initialize(incoming={})
|
3961
|
-
super(:
|
3961
|
+
super(:discriminator => 'undefined_type')
|
3962
3962
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
3963
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
3963
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
3964
3964
|
end
|
3965
3965
|
|
3966
3966
|
def subtype_to_hash
|
@@ -3989,8 +3989,8 @@ module Io
|
|
3989
3989
|
|
3990
3990
|
def initialize(incoming={})
|
3991
3991
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
3992
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
3993
|
-
@
|
3992
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'Deminimis')
|
3993
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
3994
3994
|
end
|
3995
3995
|
|
3996
3996
|
def subtype_to_hash
|
@@ -3998,7 +3998,7 @@ module Io
|
|
3998
3998
|
end
|
3999
3999
|
|
4000
4000
|
def to_hash
|
4001
|
-
subtype_to_hash.merge(:discriminator => @
|
4001
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4002
4002
|
end
|
4003
4003
|
|
4004
4004
|
def Deminimis.from_json(hash)
|
@@ -4010,7 +4010,7 @@ module Io
|
|
4010
4010
|
case discriminator
|
4011
4011
|
when Types::DEMINIMIS_SIMPLE; DeminimisSimple.new(hash)
|
4012
4012
|
when Types::DEMINIMIS_PER_ITEM; DeminimisPerItem.new(hash)
|
4013
|
-
else DeminimisUndefinedType.new(:
|
4013
|
+
else DeminimisUndefinedType.new(:discriminator => discriminator)
|
4014
4014
|
end
|
4015
4015
|
end
|
4016
4016
|
|
@@ -4021,9 +4021,9 @@ module Io
|
|
4021
4021
|
attr_reader :name
|
4022
4022
|
|
4023
4023
|
def initialize(incoming={})
|
4024
|
-
super(:
|
4024
|
+
super(:discriminator => 'undefined_type')
|
4025
4025
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4026
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4026
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4027
4027
|
end
|
4028
4028
|
|
4029
4029
|
def subtype_to_hash
|
@@ -4049,8 +4049,8 @@ module Io
|
|
4049
4049
|
|
4050
4050
|
def initialize(incoming={})
|
4051
4051
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4052
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4053
|
-
@
|
4052
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'Document')
|
4053
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4054
4054
|
end
|
4055
4055
|
|
4056
4056
|
def subtype_to_hash
|
@@ -4058,7 +4058,7 @@ module Io
|
|
4058
4058
|
end
|
4059
4059
|
|
4060
4060
|
def to_hash
|
4061
|
-
subtype_to_hash.merge(:discriminator => @
|
4061
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4062
4062
|
end
|
4063
4063
|
|
4064
4064
|
def Document.from_json(hash)
|
@@ -4070,7 +4070,7 @@ module Io
|
|
4070
4070
|
case discriminator
|
4071
4071
|
when Types::CATALOG_ITEM_DOCUMENT; CatalogItemDocument.new(hash)
|
4072
4072
|
when Types::HARMONIZATION_DOCUMENT; HarmonizationDocument.new(hash)
|
4073
|
-
else DocumentUndefinedType.new(:
|
4073
|
+
else DocumentUndefinedType.new(:discriminator => discriminator)
|
4074
4074
|
end
|
4075
4075
|
end
|
4076
4076
|
|
@@ -4081,9 +4081,9 @@ module Io
|
|
4081
4081
|
attr_reader :name
|
4082
4082
|
|
4083
4083
|
def initialize(incoming={})
|
4084
|
-
super(:
|
4084
|
+
super(:discriminator => 'undefined_type')
|
4085
4085
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4086
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4086
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4087
4087
|
end
|
4088
4088
|
|
4089
4089
|
def subtype_to_hash
|
@@ -4132,6 +4132,10 @@ module Io
|
|
4132
4132
|
HS6_CODE_DELETED = 'hs6_code_deleted' unless defined?(HS6_CODE_DELETED)
|
4133
4133
|
HS10_CODE_UPSERTED = 'hs10_code_upserted' unless defined?(HS10_CODE_UPSERTED)
|
4134
4134
|
HS10_CODE_DELETED = 'hs10_code_deleted' unless defined?(HS10_CODE_DELETED)
|
4135
|
+
ITEM_ORIGIN_UPSERTED = 'item_origin_upserted' unless defined?(ITEM_ORIGIN_UPSERTED)
|
4136
|
+
ITEM_ORIGIN_DELETED = 'item_origin_deleted' unless defined?(ITEM_ORIGIN_DELETED)
|
4137
|
+
HARMONIZED_ITEM_UPSERTED = 'harmonized_item_upserted' unless defined?(HARMONIZED_ITEM_UPSERTED)
|
4138
|
+
HARMONIZED_ITEM_DELETED = 'harmonized_item_deleted' unless defined?(HARMONIZED_ITEM_DELETED)
|
4135
4139
|
LABEL_UPSERTED = 'label_upserted' unless defined?(LABEL_UPSERTED)
|
4136
4140
|
NOTIFICATION_UPSERTED = 'notification_upserted' unless defined?(NOTIFICATION_UPSERTED)
|
4137
4141
|
NOTIFICATION_DELETED = 'notification_deleted' unless defined?(NOTIFICATION_DELETED)
|
@@ -4153,16 +4157,16 @@ module Io
|
|
4153
4157
|
|
4154
4158
|
def initialize(incoming={})
|
4155
4159
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4156
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4157
|
-
@
|
4160
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'Event')
|
4161
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4158
4162
|
end
|
4159
4163
|
|
4160
4164
|
def subtype_to_hash
|
4161
|
-
raise 'Cannot serialize an instance of event directly - must use one of the specific types: catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, flow_currency_setting_deleted, flow_currency_setting_upserted, rate_deleted, rate_upserted, spot_rate_deleted, spot_rate_upserted, organization_currency_setting_deleted, organization_currency_setting_upserted, contracted_rate_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, order_deleted, order_upserted, order_booking_deleted, order_booking_upserted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, label_upserted, notification_upserted, notification_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
|
4165
|
+
raise 'Cannot serialize an instance of event directly - must use one of the specific types: catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, flow_currency_setting_deleted, flow_currency_setting_upserted, rate_deleted, rate_upserted, spot_rate_deleted, spot_rate_upserted, organization_currency_setting_deleted, organization_currency_setting_upserted, contracted_rate_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, order_deleted, order_upserted, order_booking_deleted, order_booking_upserted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, label_upserted, notification_upserted, notification_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
|
4162
4166
|
end
|
4163
4167
|
|
4164
4168
|
def to_hash
|
4165
|
-
subtype_to_hash.merge(:discriminator => @
|
4169
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4166
4170
|
end
|
4167
4171
|
|
4168
4172
|
def Event.from_json(hash)
|
@@ -4201,6 +4205,10 @@ module Io
|
|
4201
4205
|
when Types::HS6_CODE_DELETED; Hs6CodeDeleted.new(hash)
|
4202
4206
|
when Types::HS10_CODE_UPSERTED; Hs10CodeUpserted.new(hash)
|
4203
4207
|
when Types::HS10_CODE_DELETED; Hs10CodeDeleted.new(hash)
|
4208
|
+
when Types::ITEM_ORIGIN_UPSERTED; ItemOriginUpserted.new(hash)
|
4209
|
+
when Types::ITEM_ORIGIN_DELETED; ItemOriginDeleted.new(hash)
|
4210
|
+
when Types::HARMONIZED_ITEM_UPSERTED; HarmonizedItemUpserted.new(hash)
|
4211
|
+
when Types::HARMONIZED_ITEM_DELETED; HarmonizedItemDeleted.new(hash)
|
4204
4212
|
when Types::LABEL_UPSERTED; LabelUpserted.new(hash)
|
4205
4213
|
when Types::NOTIFICATION_UPSERTED; NotificationUpserted.new(hash)
|
4206
4214
|
when Types::NOTIFICATION_DELETED; NotificationDeleted.new(hash)
|
@@ -4218,7 +4226,7 @@ module Io
|
|
4218
4226
|
when Types::TARGETING_ITEM_UPSERTED; TargetingItemUpserted.new(hash)
|
4219
4227
|
when Types::TARGETING_ITEM_DELETED; TargetingItemDeleted.new(hash)
|
4220
4228
|
when Types::TRACKING_LABEL_EVENT_UPSERTED; TrackingLabelEventUpserted.new(hash)
|
4221
|
-
else EventUndefinedType.new(:
|
4229
|
+
else EventUndefinedType.new(:discriminator => discriminator)
|
4222
4230
|
end
|
4223
4231
|
end
|
4224
4232
|
|
@@ -4229,9 +4237,9 @@ module Io
|
|
4229
4237
|
attr_reader :name
|
4230
4238
|
|
4231
4239
|
def initialize(incoming={})
|
4232
|
-
super(:
|
4240
|
+
super(:discriminator => 'undefined_type')
|
4233
4241
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4234
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4242
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4235
4243
|
end
|
4236
4244
|
|
4237
4245
|
def subtype_to_hash
|
@@ -4258,8 +4266,8 @@ module Io
|
|
4258
4266
|
|
4259
4267
|
def initialize(incoming={})
|
4260
4268
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4261
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4262
|
-
@
|
4269
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExpandableItemFunction')
|
4270
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4263
4271
|
end
|
4264
4272
|
|
4265
4273
|
def subtype_to_hash
|
@@ -4267,7 +4275,7 @@ module Io
|
|
4267
4275
|
end
|
4268
4276
|
|
4269
4277
|
def to_hash
|
4270
|
-
subtype_to_hash.merge(:discriminator => @
|
4278
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4271
4279
|
end
|
4272
4280
|
|
4273
4281
|
def ExpandableItemFunction.from_json(hash)
|
@@ -4279,7 +4287,7 @@ module Io
|
|
4279
4287
|
case discriminator
|
4280
4288
|
when Types::ITEM_FUNCTION; ItemFunction.new(hash)
|
4281
4289
|
when Types::ITEM_FUNCTION_REFERENCE; ItemFunctionReference.new(hash)
|
4282
|
-
else ExpandableItemFunctionUndefinedType.new(:
|
4290
|
+
else ExpandableItemFunctionUndefinedType.new(:discriminator => discriminator)
|
4283
4291
|
end
|
4284
4292
|
end
|
4285
4293
|
|
@@ -4290,9 +4298,9 @@ module Io
|
|
4290
4298
|
attr_reader :name
|
4291
4299
|
|
4292
4300
|
def initialize(incoming={})
|
4293
|
-
super(:
|
4301
|
+
super(:discriminator => 'undefined_type')
|
4294
4302
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4295
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4303
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4296
4304
|
end
|
4297
4305
|
|
4298
4306
|
def subtype_to_hash
|
@@ -4318,8 +4326,8 @@ module Io
|
|
4318
4326
|
|
4319
4327
|
def initialize(incoming={})
|
4320
4328
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4321
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4322
|
-
@
|
4329
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExpandableOrganization')
|
4330
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4323
4331
|
end
|
4324
4332
|
|
4325
4333
|
def subtype_to_hash
|
@@ -4327,7 +4335,7 @@ module Io
|
|
4327
4335
|
end
|
4328
4336
|
|
4329
4337
|
def to_hash
|
4330
|
-
subtype_to_hash.merge(:discriminator => @
|
4338
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4331
4339
|
end
|
4332
4340
|
|
4333
4341
|
def ExpandableOrganization.from_json(hash)
|
@@ -4339,7 +4347,7 @@ module Io
|
|
4339
4347
|
case discriminator
|
4340
4348
|
when Types::ORGANIZATION; Organization.new(hash)
|
4341
4349
|
when Types::ORGANIZATION_REFERENCE; OrganizationReference.new(hash)
|
4342
|
-
else ExpandableOrganizationUndefinedType.new(:
|
4350
|
+
else ExpandableOrganizationUndefinedType.new(:discriminator => discriminator)
|
4343
4351
|
end
|
4344
4352
|
end
|
4345
4353
|
|
@@ -4350,9 +4358,9 @@ module Io
|
|
4350
4358
|
attr_reader :name
|
4351
4359
|
|
4352
4360
|
def initialize(incoming={})
|
4353
|
-
super(:
|
4361
|
+
super(:discriminator => 'undefined_type')
|
4354
4362
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4355
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4363
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4356
4364
|
end
|
4357
4365
|
|
4358
4366
|
def subtype_to_hash
|
@@ -4379,8 +4387,8 @@ module Io
|
|
4379
4387
|
|
4380
4388
|
def initialize(incoming={})
|
4381
4389
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4382
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4383
|
-
@
|
4390
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExpandableSubcatalog')
|
4391
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4384
4392
|
end
|
4385
4393
|
|
4386
4394
|
def subtype_to_hash
|
@@ -4388,7 +4396,7 @@ module Io
|
|
4388
4396
|
end
|
4389
4397
|
|
4390
4398
|
def to_hash
|
4391
|
-
subtype_to_hash.merge(:discriminator => @
|
4399
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4392
4400
|
end
|
4393
4401
|
|
4394
4402
|
def ExpandableSubcatalog.from_json(hash)
|
@@ -4400,7 +4408,7 @@ module Io
|
|
4400
4408
|
case discriminator
|
4401
4409
|
when Types::SUBCATALOG; Subcatalog.new(hash)
|
4402
4410
|
when Types::SUBCATALOG_REFERENCE; SubcatalogReference.new(hash)
|
4403
|
-
else ExpandableSubcatalogUndefinedType.new(:
|
4411
|
+
else ExpandableSubcatalogUndefinedType.new(:discriminator => discriminator)
|
4404
4412
|
end
|
4405
4413
|
end
|
4406
4414
|
|
@@ -4411,9 +4419,9 @@ module Io
|
|
4411
4419
|
attr_reader :name
|
4412
4420
|
|
4413
4421
|
def initialize(incoming={})
|
4414
|
-
super(:
|
4422
|
+
super(:discriminator => 'undefined_type')
|
4415
4423
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4416
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4424
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4417
4425
|
end
|
4418
4426
|
|
4419
4427
|
def subtype_to_hash
|
@@ -4439,8 +4447,8 @@ module Io
|
|
4439
4447
|
|
4440
4448
|
def initialize(incoming={})
|
4441
4449
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4442
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4443
|
-
@
|
4450
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExpandableUser')
|
4451
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4444
4452
|
end
|
4445
4453
|
|
4446
4454
|
def subtype_to_hash
|
@@ -4448,7 +4456,7 @@ module Io
|
|
4448
4456
|
end
|
4449
4457
|
|
4450
4458
|
def to_hash
|
4451
|
-
subtype_to_hash.merge(:discriminator => @
|
4459
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4452
4460
|
end
|
4453
4461
|
|
4454
4462
|
def ExpandableUser.from_json(hash)
|
@@ -4460,7 +4468,7 @@ module Io
|
|
4460
4468
|
case discriminator
|
4461
4469
|
when Types::USER; User.new(hash)
|
4462
4470
|
when Types::USER_REFERENCE; UserReference.new(hash)
|
4463
|
-
else ExpandableUserUndefinedType.new(:
|
4471
|
+
else ExpandableUserUndefinedType.new(:discriminator => discriminator)
|
4464
4472
|
end
|
4465
4473
|
end
|
4466
4474
|
|
@@ -4471,9 +4479,9 @@ module Io
|
|
4471
4479
|
attr_reader :name
|
4472
4480
|
|
4473
4481
|
def initialize(incoming={})
|
4474
|
-
super(:
|
4482
|
+
super(:discriminator => 'undefined_type')
|
4475
4483
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4476
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4484
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4477
4485
|
end
|
4478
4486
|
|
4479
4487
|
def subtype_to_hash
|
@@ -4502,8 +4510,8 @@ module Io
|
|
4502
4510
|
|
4503
4511
|
def initialize(incoming={})
|
4504
4512
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4505
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4506
|
-
@
|
4513
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExportDelivery')
|
4514
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4507
4515
|
end
|
4508
4516
|
|
4509
4517
|
def subtype_to_hash
|
@@ -4511,7 +4519,7 @@ module Io
|
|
4511
4519
|
end
|
4512
4520
|
|
4513
4521
|
def to_hash
|
4514
|
-
subtype_to_hash.merge(:discriminator => @
|
4522
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4515
4523
|
end
|
4516
4524
|
|
4517
4525
|
def ExportDelivery.from_json(hash)
|
@@ -4522,7 +4530,7 @@ module Io
|
|
4522
4530
|
end
|
4523
4531
|
case discriminator
|
4524
4532
|
when Types::EXPORT_DELIVERY_EMAIL; ExportDeliveryEmail.new(hash)
|
4525
|
-
else ExportDeliveryUndefinedType.new(:
|
4533
|
+
else ExportDeliveryUndefinedType.new(:discriminator => discriminator)
|
4526
4534
|
end
|
4527
4535
|
end
|
4528
4536
|
|
@@ -4533,9 +4541,9 @@ module Io
|
|
4533
4541
|
attr_reader :name
|
4534
4542
|
|
4535
4543
|
def initialize(incoming={})
|
4536
|
-
super(:
|
4544
|
+
super(:discriminator => 'undefined_type')
|
4537
4545
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4538
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4546
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4539
4547
|
end
|
4540
4548
|
|
4541
4549
|
def subtype_to_hash
|
@@ -4564,8 +4572,8 @@ module Io
|
|
4564
4572
|
|
4565
4573
|
def initialize(incoming={})
|
4566
4574
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4567
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4568
|
-
@
|
4575
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExportType')
|
4576
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4569
4577
|
end
|
4570
4578
|
|
4571
4579
|
def subtype_to_hash
|
@@ -4573,7 +4581,7 @@ module Io
|
|
4573
4581
|
end
|
4574
4582
|
|
4575
4583
|
def to_hash
|
4576
|
-
subtype_to_hash.merge(:discriminator => @
|
4584
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4577
4585
|
end
|
4578
4586
|
|
4579
4587
|
def ExportType.from_json(hash)
|
@@ -4586,7 +4594,7 @@ module Io
|
|
4586
4594
|
when Types::CATALOG_ITEM_EXPORT_TYPE; CatalogItemExportType.new(hash)
|
4587
4595
|
when Types::SOLIDUS_PRODUCT_EXPORT_TYPE; SolidusProductExportType.new(hash)
|
4588
4596
|
when Types::SOLIDUS_VARIANT_EXPORT_TYPE; SolidusVariantExportType.new(hash)
|
4589
|
-
else ExportTypeUndefinedType.new(:
|
4597
|
+
else ExportTypeUndefinedType.new(:discriminator => discriminator)
|
4590
4598
|
end
|
4591
4599
|
end
|
4592
4600
|
|
@@ -4597,9 +4605,9 @@ module Io
|
|
4597
4605
|
attr_reader :name
|
4598
4606
|
|
4599
4607
|
def initialize(incoming={})
|
4600
|
-
super(:
|
4608
|
+
super(:discriminator => 'undefined_type')
|
4601
4609
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4602
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4610
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4603
4611
|
end
|
4604
4612
|
|
4605
4613
|
def subtype_to_hash
|
@@ -4635,8 +4643,8 @@ module Io
|
|
4635
4643
|
|
4636
4644
|
def initialize(incoming={})
|
4637
4645
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4638
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4639
|
-
@
|
4646
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'InventoryStrategy')
|
4647
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4640
4648
|
end
|
4641
4649
|
|
4642
4650
|
def subtype_to_hash
|
@@ -4644,7 +4652,7 @@ module Io
|
|
4644
4652
|
end
|
4645
4653
|
|
4646
4654
|
def to_hash
|
4647
|
-
subtype_to_hash.merge(:discriminator => @
|
4655
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4648
4656
|
end
|
4649
4657
|
|
4650
4658
|
def InventoryStrategy.from_json(hash)
|
@@ -4657,7 +4665,7 @@ module Io
|
|
4657
4665
|
when Types::INVENTORY_BACKORDER; InventoryBackorder.new(hash)
|
4658
4666
|
when Types::INVENTORY_STOCK; InventoryStock.new(hash)
|
4659
4667
|
when Types::INVENTORY_UNLIMITED; InventoryUnlimited.new(hash)
|
4660
|
-
else InventoryStrategyUndefinedType.new(:
|
4668
|
+
else InventoryStrategyUndefinedType.new(:discriminator => discriminator)
|
4661
4669
|
end
|
4662
4670
|
end
|
4663
4671
|
|
@@ -4668,9 +4676,9 @@ module Io
|
|
4668
4676
|
attr_reader :name
|
4669
4677
|
|
4670
4678
|
def initialize(incoming={})
|
4671
|
-
super(:
|
4679
|
+
super(:discriminator => 'undefined_type')
|
4672
4680
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4673
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4681
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4674
4682
|
end
|
4675
4683
|
|
4676
4684
|
def subtype_to_hash
|
@@ -4700,8 +4708,8 @@ module Io
|
|
4700
4708
|
|
4701
4709
|
def initialize(incoming={})
|
4702
4710
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4703
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4704
|
-
@
|
4711
|
+
HttpClient::Preconditions.require_keys(opts, [:key], 'LocalizedPrice')
|
4712
|
+
@key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
|
4705
4713
|
end
|
4706
4714
|
|
4707
4715
|
def subtype_to_hash
|
@@ -4709,7 +4717,7 @@ module Io
|
|
4709
4717
|
end
|
4710
4718
|
|
4711
4719
|
def to_hash
|
4712
|
-
subtype_to_hash.merge(:key => @
|
4720
|
+
subtype_to_hash.merge(:key => @key)
|
4713
4721
|
end
|
4714
4722
|
|
4715
4723
|
def LocalizedPrice.from_json(hash)
|
@@ -4723,7 +4731,7 @@ module Io
|
|
4723
4731
|
when Types::LOCALIZED_ITEM_VAT; LocalizedItemVat.new(hash)
|
4724
4732
|
when Types::LOCALIZED_ITEM_DUTY; LocalizedItemDuty.new(hash)
|
4725
4733
|
when Types::LOCALIZED_TOTAL; LocalizedTotal.new(hash)
|
4726
|
-
else LocalizedPriceUndefinedType.new(:
|
4734
|
+
else LocalizedPriceUndefinedType.new(:key => discriminator)
|
4727
4735
|
end
|
4728
4736
|
end
|
4729
4737
|
|
@@ -4734,9 +4742,9 @@ module Io
|
|
4734
4742
|
attr_reader :name
|
4735
4743
|
|
4736
4744
|
def initialize(incoming={})
|
4737
|
-
super(:
|
4745
|
+
super(:key => 'undefined_type')
|
4738
4746
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4739
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4747
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:key), String)
|
4740
4748
|
end
|
4741
4749
|
|
4742
4750
|
def subtype_to_hash
|
@@ -4767,8 +4775,8 @@ module Io
|
|
4767
4775
|
|
4768
4776
|
def initialize(incoming={})
|
4769
4777
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4770
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4771
|
-
@
|
4778
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'TierRuleOutcome')
|
4779
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4772
4780
|
end
|
4773
4781
|
|
4774
4782
|
def subtype_to_hash
|
@@ -4776,7 +4784,7 @@ module Io
|
|
4776
4784
|
end
|
4777
4785
|
|
4778
4786
|
def to_hash
|
4779
|
-
subtype_to_hash.merge(:discriminator => @
|
4787
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4780
4788
|
end
|
4781
4789
|
|
4782
4790
|
def TierRuleOutcome.from_json(hash)
|
@@ -4790,7 +4798,7 @@ module Io
|
|
4790
4798
|
when Types::AT_COST; AtCost.new(hash)
|
4791
4799
|
when Types::FLAT_RATE; FlatRate.new(hash)
|
4792
4800
|
when Types::PERCENT_MARGIN; PercentMargin.new(hash)
|
4793
|
-
else TierRuleOutcomeUndefinedType.new(:
|
4801
|
+
else TierRuleOutcomeUndefinedType.new(:discriminator => discriminator)
|
4794
4802
|
end
|
4795
4803
|
end
|
4796
4804
|
|
@@ -4801,9 +4809,9 @@ module Io
|
|
4801
4809
|
attr_reader :name
|
4802
4810
|
|
4803
4811
|
def initialize(incoming={})
|
4804
|
-
super(:
|
4812
|
+
super(:discriminator => 'undefined_type')
|
4805
4813
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4806
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4814
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4807
4815
|
end
|
4808
4816
|
|
4809
4817
|
def subtype_to_hash
|
@@ -4829,8 +4837,8 @@ module Io
|
|
4829
4837
|
|
4830
4838
|
def initialize(incoming={})
|
4831
4839
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4832
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4833
|
-
@
|
4840
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'Token')
|
4841
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4834
4842
|
end
|
4835
4843
|
|
4836
4844
|
def subtype_to_hash
|
@@ -4838,7 +4846,7 @@ module Io
|
|
4838
4846
|
end
|
4839
4847
|
|
4840
4848
|
def to_hash
|
4841
|
-
subtype_to_hash.merge(:discriminator => @
|
4849
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4842
4850
|
end
|
4843
4851
|
|
4844
4852
|
def Token.from_json(hash)
|
@@ -4850,7 +4858,7 @@ module Io
|
|
4850
4858
|
case discriminator
|
4851
4859
|
when Types::ORGANIZATION_TOKEN; OrganizationToken.new(hash)
|
4852
4860
|
when Types::PARTNER_TOKEN; PartnerToken.new(hash)
|
4853
|
-
else TokenUndefinedType.new(:
|
4861
|
+
else TokenUndefinedType.new(:discriminator => discriminator)
|
4854
4862
|
end
|
4855
4863
|
end
|
4856
4864
|
|
@@ -4861,9 +4869,9 @@ module Io
|
|
4861
4869
|
attr_reader :name
|
4862
4870
|
|
4863
4871
|
def initialize(incoming={})
|
4864
|
-
super(:
|
4872
|
+
super(:discriminator => 'undefined_type')
|
4865
4873
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4866
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4874
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4867
4875
|
end
|
4868
4876
|
|
4869
4877
|
def subtype_to_hash
|
@@ -4889,8 +4897,8 @@ module Io
|
|
4889
4897
|
|
4890
4898
|
def initialize(incoming={})
|
4891
4899
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4892
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4893
|
-
@
|
4900
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'TokenForm')
|
4901
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4894
4902
|
end
|
4895
4903
|
|
4896
4904
|
def subtype_to_hash
|
@@ -4898,7 +4906,7 @@ module Io
|
|
4898
4906
|
end
|
4899
4907
|
|
4900
4908
|
def to_hash
|
4901
|
-
subtype_to_hash.merge(:discriminator => @
|
4909
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4902
4910
|
end
|
4903
4911
|
|
4904
4912
|
def TokenForm.from_json(hash)
|
@@ -4910,7 +4918,7 @@ module Io
|
|
4910
4918
|
case discriminator
|
4911
4919
|
when Types::ORGANIZATION_TOKEN_FORM; OrganizationTokenForm.new(hash)
|
4912
4920
|
when Types::PARTNER_TOKEN_FORM; PartnerTokenForm.new(hash)
|
4913
|
-
else TokenFormUndefinedType.new(:
|
4921
|
+
else TokenFormUndefinedType.new(:discriminator => discriminator)
|
4914
4922
|
end
|
4915
4923
|
end
|
4916
4924
|
|
@@ -4921,9 +4929,9 @@ module Io
|
|
4921
4929
|
attr_reader :name
|
4922
4930
|
|
4923
4931
|
def initialize(incoming={})
|
4924
|
-
super(:
|
4932
|
+
super(:discriminator => 'undefined_type')
|
4925
4933
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4926
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4934
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4927
4935
|
end
|
4928
4936
|
|
4929
4937
|
def subtype_to_hash
|
@@ -4949,8 +4957,8 @@ module Io
|
|
4949
4957
|
|
4950
4958
|
def initialize(incoming={})
|
4951
4959
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4952
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
4953
|
-
@
|
4960
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'TokenReference')
|
4961
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
4954
4962
|
end
|
4955
4963
|
|
4956
4964
|
def subtype_to_hash
|
@@ -4958,7 +4966,7 @@ module Io
|
|
4958
4966
|
end
|
4959
4967
|
|
4960
4968
|
def to_hash
|
4961
|
-
subtype_to_hash.merge(:discriminator => @
|
4969
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
4962
4970
|
end
|
4963
4971
|
|
4964
4972
|
def TokenReference.from_json(hash)
|
@@ -4970,7 +4978,7 @@ module Io
|
|
4970
4978
|
case discriminator
|
4971
4979
|
when Types::ORGANIZATION_TOKEN_REFERENCE; OrganizationTokenReference.new(hash)
|
4972
4980
|
when Types::PARTNER_TOKEN_REFERENCE; PartnerTokenReference.new(hash)
|
4973
|
-
else TokenReferenceUndefinedType.new(:
|
4981
|
+
else TokenReferenceUndefinedType.new(:discriminator => discriminator)
|
4974
4982
|
end
|
4975
4983
|
end
|
4976
4984
|
|
@@ -4981,9 +4989,9 @@ module Io
|
|
4981
4989
|
attr_reader :name
|
4982
4990
|
|
4983
4991
|
def initialize(incoming={})
|
4984
|
-
super(:
|
4992
|
+
super(:discriminator => 'undefined_type')
|
4985
4993
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4986
|
-
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:
|
4994
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
4987
4995
|
end
|
4988
4996
|
|
4989
4997
|
def subtype_to_hash
|
@@ -5805,7 +5813,7 @@ module Io
|
|
5805
5813
|
end
|
5806
5814
|
|
5807
5815
|
def EventType.ALL
|
5808
|
-
@@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.flow_currency_setting_deleted, EventType.flow_currency_setting_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.spot_rate_deleted, EventType.spot_rate_upserted, EventType.organization_currency_setting_deleted, EventType.organization_currency_setting_upserted, EventType.contracted_rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_booking_deleted, EventType.order_booking_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
|
5816
|
+
@@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.flow_currency_setting_deleted, EventType.flow_currency_setting_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.spot_rate_deleted, EventType.spot_rate_upserted, EventType.organization_currency_setting_deleted, EventType.organization_currency_setting_upserted, EventType.contracted_rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_booking_deleted, EventType.order_booking_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
|
5809
5817
|
end
|
5810
5818
|
|
5811
5819
|
def EventType.catalog_upserted
|
@@ -5924,6 +5932,22 @@ module Io
|
|
5924
5932
|
@@_hs10_code_deleted ||= EventType.new('hs10_code_deleted')
|
5925
5933
|
end
|
5926
5934
|
|
5935
|
+
def EventType.item_origin_upserted
|
5936
|
+
@@_item_origin_upserted ||= EventType.new('item_origin_upserted')
|
5937
|
+
end
|
5938
|
+
|
5939
|
+
def EventType.item_origin_deleted
|
5940
|
+
@@_item_origin_deleted ||= EventType.new('item_origin_deleted')
|
5941
|
+
end
|
5942
|
+
|
5943
|
+
def EventType.harmonized_item_upserted
|
5944
|
+
@@_harmonized_item_upserted ||= EventType.new('harmonized_item_upserted')
|
5945
|
+
end
|
5946
|
+
|
5947
|
+
def EventType.harmonized_item_deleted
|
5948
|
+
@@_harmonized_item_deleted ||= EventType.new('harmonized_item_deleted')
|
5949
|
+
end
|
5950
|
+
|
5927
5951
|
def EventType.label_upserted
|
5928
5952
|
@@_label_upserted ||= EventType.new('label_upserted')
|
5929
5953
|
end
|
@@ -8127,7 +8151,7 @@ module Io
|
|
8127
8151
|
attr_reader :addition
|
8128
8152
|
|
8129
8153
|
def initialize(incoming={})
|
8130
|
-
super(:
|
8154
|
+
super(:discriminator => TierRuleOutcome::Types::AMOUNT_MARGIN)
|
8131
8155
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8132
8156
|
HttpClient::Preconditions.require_keys(opts, [:addition], 'AmountMargin')
|
8133
8157
|
@addition = (x = opts.delete(:addition); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
|
@@ -8155,7 +8179,7 @@ module Io
|
|
8155
8179
|
attr_reader :ignore
|
8156
8180
|
|
8157
8181
|
def initialize(incoming={})
|
8158
|
-
super(:
|
8182
|
+
super(:discriminator => TierRuleOutcome::Types::AT_COST)
|
8159
8183
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8160
8184
|
@ignore = (x = opts.delete(:ignore); x.nil? ? nil : HttpClient::Preconditions.assert_class('ignore', x, String))
|
8161
8185
|
end
|
@@ -8384,7 +8408,7 @@ module Io
|
|
8384
8408
|
attr_reader :event_id, :timestamp, :organization, :key
|
8385
8409
|
|
8386
8410
|
def initialize(incoming={})
|
8387
|
-
super(:
|
8411
|
+
super(:discriminator => Event::Types::AUTHORIZATION_DELETED)
|
8388
8412
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8389
8413
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key], 'AuthorizationDeleted')
|
8390
8414
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -8479,7 +8503,7 @@ module Io
|
|
8479
8503
|
attr_reader :event_id, :timestamp, :organization, :key, :order_number, :card, :amount, :currency, :customer, :attributes, :destination, :result, :ip, :created_at
|
8480
8504
|
|
8481
8505
|
def initialize(incoming={})
|
8482
|
-
super(:
|
8506
|
+
super(:discriminator => Event::Types::AUTHORIZATION_UPSERTED)
|
8483
8507
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8484
8508
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :card, :amount, :currency, :customer, :attributes, :result, :created_at], 'AuthorizationUpserted')
|
8485
8509
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -8701,7 +8725,7 @@ module Io
|
|
8701
8725
|
attr_reader :event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :created_at
|
8702
8726
|
|
8703
8727
|
def initialize(incoming={})
|
8704
|
-
super(:
|
8728
|
+
super(:discriminator => Event::Types::CAPTURE_UPSERTED)
|
8705
8729
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8706
8730
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :created_at], 'CaptureUpserted')
|
8707
8731
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -8822,7 +8846,7 @@ module Io
|
|
8822
8846
|
attr_reader :event_id, :timestamp, :organization, :token
|
8823
8847
|
|
8824
8848
|
def initialize(incoming={})
|
8825
|
-
super(:
|
8849
|
+
super(:discriminator => Event::Types::CARD_DELETED)
|
8826
8850
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8827
8851
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :token], 'CardDeleted')
|
8828
8852
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -8988,7 +9012,7 @@ module Io
|
|
8988
9012
|
attr_reader :event_id, :timestamp, :organization, :token, :type, :expiration, :iin, :last4, :name, :address
|
8989
9013
|
|
8990
9014
|
def initialize(incoming={})
|
8991
|
-
super(:
|
9015
|
+
super(:discriminator => Event::Types::CARD_UPSERTED)
|
8992
9016
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
8993
9017
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :token, :type, :expiration, :iin, :last4, :name], 'CardUpserted')
|
8994
9018
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -9151,7 +9175,7 @@ module Io
|
|
9151
9175
|
attr_reader :event_id, :timestamp, :organization, :catalog
|
9152
9176
|
|
9153
9177
|
def initialize(incoming={})
|
9154
|
-
super(:
|
9178
|
+
super(:discriminator => Event::Types::CATALOG_DELETED)
|
9155
9179
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9156
9180
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog], 'CatalogDeleted')
|
9157
9181
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -9184,7 +9208,7 @@ module Io
|
|
9184
9208
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog
|
9185
9209
|
|
9186
9210
|
def initialize(incoming={})
|
9187
|
-
super(:
|
9211
|
+
super(:discriminator => Event::Types::CATALOG_ITEM_DELETED)
|
9188
9212
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9189
9213
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog], 'CatalogItemDeleted')
|
9190
9214
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -9219,7 +9243,7 @@ module Io
|
|
9219
9243
|
attr_reader :number, :name, :categories, :experiences, :attributes, :images
|
9220
9244
|
|
9221
9245
|
def initialize(incoming={})
|
9222
|
-
super(:
|
9246
|
+
super(:discriminator => Document::Types::CATALOG_ITEM_DOCUMENT)
|
9223
9247
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9224
9248
|
HttpClient::Preconditions.require_keys(opts, [:number, :name, :categories, :experiences, :attributes, :images], 'CatalogItemDocument')
|
9225
9249
|
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
@@ -9309,7 +9333,7 @@ module Io
|
|
9309
9333
|
attr_reader :numbers, :q, :sort
|
9310
9334
|
|
9311
9335
|
def initialize(incoming={})
|
9312
|
-
super(:
|
9336
|
+
super(:discriminator => ExportType::Types::CATALOG_ITEM_EXPORT_TYPE)
|
9313
9337
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9314
9338
|
@numbers = (x = opts.delete(:numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('numbers', v, String) })
|
9315
9339
|
@q = (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
|
@@ -9339,7 +9363,7 @@ module Io
|
|
9339
9363
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog, :locale, :name, :currency, :price, :categories, :description, :attributes, :dimensions, :images
|
9340
9364
|
|
9341
9365
|
def initialize(incoming={})
|
9342
|
-
super(:
|
9366
|
+
super(:discriminator => Event::Types::CATALOG_ITEM_UPSERTED)
|
9343
9367
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9344
9368
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :locale, :name, :currency, :price, :categories, :attributes, :dimensions, :images], 'CatalogItemUpserted')
|
9345
9369
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -9448,7 +9472,7 @@ module Io
|
|
9448
9472
|
attr_reader :event_id, :timestamp, :organization, :catalog
|
9449
9473
|
|
9450
9474
|
def initialize(incoming={})
|
9451
|
-
super(:
|
9475
|
+
super(:discriminator => Event::Types::CATALOG_UPSERTED)
|
9452
9476
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9453
9477
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog], 'CatalogUpserted')
|
9454
9478
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -9740,7 +9764,7 @@ module Io
|
|
9740
9764
|
attr_reader :event_id, :timestamp, :organization_id, :base, :target, :effective_at, :value
|
9741
9765
|
|
9742
9766
|
def initialize(incoming={})
|
9743
|
-
super(:
|
9767
|
+
super(:discriminator => Event::Types::CONTRACTED_RATE_UPSERTED)
|
9744
9768
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
9745
9769
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_id, :base, :target, :effective_at, :value], 'ContractedRateUpserted')
|
9746
9770
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -10364,7 +10388,7 @@ module Io
|
|
10364
10388
|
attr_reader :currency, :minimum, :maximum
|
10365
10389
|
|
10366
10390
|
def initialize(incoming={})
|
10367
|
-
super(:
|
10391
|
+
super(:discriminator => Deminimis::Types::DEMINIMIS_PER_ITEM)
|
10368
10392
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10369
10393
|
HttpClient::Preconditions.require_keys(opts, [:currency], 'DeminimisPerItem')
|
10370
10394
|
@currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
|
@@ -10397,7 +10421,7 @@ module Io
|
|
10397
10421
|
attr_reader :value, :currency, :components, :minimum
|
10398
10422
|
|
10399
10423
|
def initialize(incoming={})
|
10400
|
-
super(:
|
10424
|
+
super(:discriminator => Deminimis::Types::DEMINIMIS_SIMPLE)
|
10401
10425
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10402
10426
|
HttpClient::Preconditions.require_keys(opts, [:currency, :components], 'DeminimisSimple')
|
10403
10427
|
@value = (x = opts.delete(:value); x.nil? ? nil : HttpClient::Preconditions.assert_class('value', HttpClient::Helper.to_big_decimal(x), BigDecimal))
|
@@ -10494,7 +10518,7 @@ module Io
|
|
10494
10518
|
attr_reader :token, :amount, :currency, :customer, :key, :cvv, :attributes, :destination, :ip
|
10495
10519
|
|
10496
10520
|
def initialize(incoming={})
|
10497
|
-
super(:
|
10521
|
+
super(:discriminator => AuthorizationForm::Types::DIRECT_AUTHORIZATION_FORM)
|
10498
10522
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10499
10523
|
HttpClient::Preconditions.require_keys(opts, [:token, :amount, :currency], 'DirectAuthorizationForm')
|
10500
10524
|
@token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String)
|
@@ -10773,7 +10797,7 @@ module Io
|
|
10773
10797
|
attr_reader :event_id, :timestamp, :organization, :key, :subcatalog_id
|
10774
10798
|
|
10775
10799
|
def initialize(incoming={})
|
10776
|
-
super(:
|
10800
|
+
super(:discriminator => Event::Types::EXPERIENCE_DELETED)
|
10777
10801
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10778
10802
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :subcatalog_id], 'ExperienceDeleted')
|
10779
10803
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -10910,7 +10934,7 @@ module Io
|
|
10910
10934
|
attr_reader :event_id, :timestamp, :organization, :key, :name, :delivered_duty, :subcatalog_id, :region_id, :country, :currency, :language, :measurement_system, :position
|
10911
10935
|
|
10912
10936
|
def initialize(incoming={})
|
10913
|
-
super(:
|
10937
|
+
super(:discriminator => Event::Types::EXPERIENCE_UPSERTED)
|
10914
10938
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
10915
10939
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :name, :delivered_duty, :subcatalog_id, :region_id, :country, :currency, :language, :measurement_system, :position], 'ExperienceUpserted')
|
10916
10940
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -11065,7 +11089,7 @@ module Io
|
|
11065
11089
|
attr_reader :email
|
11066
11090
|
|
11067
11091
|
def initialize(incoming={})
|
11068
|
-
super(:
|
11092
|
+
super(:discriminator => ExportDelivery::Types::EXPORT_DELIVERY_EMAIL)
|
11069
11093
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11070
11094
|
HttpClient::Preconditions.require_keys(opts, [:email], 'ExportDeliveryEmail')
|
11071
11095
|
@email = HttpClient::Preconditions.assert_class('email', opts.delete(:email), String)
|
@@ -11156,7 +11180,7 @@ module Io
|
|
11156
11180
|
attr_reader :price
|
11157
11181
|
|
11158
11182
|
def initialize(incoming={})
|
11159
|
-
super(:
|
11183
|
+
super(:discriminator => TierRuleOutcome::Types::FLAT_RATE)
|
11160
11184
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11161
11185
|
HttpClient::Preconditions.require_keys(opts, [:price], 'FlatRate')
|
11162
11186
|
@price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
|
@@ -11183,7 +11207,7 @@ module Io
|
|
11183
11207
|
attr_reader :event_id, :timestamp, :flow_currency_setting_id
|
11184
11208
|
|
11185
11209
|
def initialize(incoming={})
|
11186
|
-
super(:
|
11210
|
+
super(:discriminator => Event::Types::FLOW_CURRENCY_SETTING_DELETED)
|
11187
11211
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11188
11212
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :flow_currency_setting_id], 'FlowCurrencySettingDeleted')
|
11189
11213
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -11214,7 +11238,7 @@ module Io
|
|
11214
11238
|
attr_reader :event_id, :timestamp, :flow_currency_setting_id, :organization_id, :base, :target, :margin, :rate_lock_unit, :rate_lock_value
|
11215
11239
|
|
11216
11240
|
def initialize(incoming={})
|
11217
|
-
super(:
|
11241
|
+
super(:discriminator => Event::Types::FLOW_CURRENCY_SETTING_UPSERTED)
|
11218
11242
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11219
11243
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :flow_currency_setting_id, :organization_id, :base, :target, :margin, :rate_lock_unit, :rate_lock_value], 'FlowCurrencySettingUpserted')
|
11220
11244
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -11341,7 +11365,7 @@ module Io
|
|
11341
11365
|
attr_reader :code, :categories, :origin
|
11342
11366
|
|
11343
11367
|
def initialize(incoming={})
|
11344
|
-
super(:
|
11368
|
+
super(:discriminator => Document::Types::HARMONIZATION_DOCUMENT)
|
11345
11369
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11346
11370
|
HttpClient::Preconditions.require_keys(opts, [:code, :categories], 'HarmonizationDocument')
|
11347
11371
|
@code = HttpClient::Preconditions.assert_class('code', opts.delete(:code), String)
|
@@ -11485,7 +11509,7 @@ module Io
|
|
11485
11509
|
# assigned, codes will be available via the hs6 and hs10 resources
|
11486
11510
|
class HarmonizedItem
|
11487
11511
|
|
11488
|
-
attr_reader :id, :number, :name, :
|
11512
|
+
attr_reader :id, :number, :name, :categories, :attributes, :description
|
11489
11513
|
|
11490
11514
|
def initialize(incoming={})
|
11491
11515
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -11493,9 +11517,9 @@ module Io
|
|
11493
11517
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
11494
11518
|
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
11495
11519
|
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
|
11496
|
-
@description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
|
11497
11520
|
@categories = HttpClient::Preconditions.assert_class('categories', (x = opts.delete(:categories); x.nil? ? [] : x), Array).map { |v| HttpClient::Preconditions.assert_class('categories', v, String) }
|
11498
11521
|
@attributes = HttpClient::Preconditions.assert_class('attributes', (x = opts.delete(:attributes); x.nil? ? {} : x), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
|
11522
|
+
@description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
|
11499
11523
|
end
|
11500
11524
|
|
11501
11525
|
def to_json
|
@@ -11511,9 +11535,42 @@ module Io
|
|
11511
11535
|
:id => id,
|
11512
11536
|
:number => number,
|
11513
11537
|
:name => name,
|
11514
|
-
:description => description,
|
11515
11538
|
:categories => categories,
|
11516
|
-
:attributes => attributes
|
11539
|
+
:attributes => attributes,
|
11540
|
+
:description => description
|
11541
|
+
}
|
11542
|
+
end
|
11543
|
+
|
11544
|
+
end
|
11545
|
+
|
11546
|
+
class HarmonizedItemDeleted < Event
|
11547
|
+
|
11548
|
+
attr_reader :event_id, :timestamp, :organization, :number
|
11549
|
+
|
11550
|
+
def initialize(incoming={})
|
11551
|
+
super(:discriminator => Event::Types::HARMONIZED_ITEM_DELETED)
|
11552
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11553
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number], 'HarmonizedItemDeleted')
|
11554
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
11555
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
11556
|
+
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
11557
|
+
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
11558
|
+
end
|
11559
|
+
|
11560
|
+
def to_json
|
11561
|
+
JSON.dump(to_hash)
|
11562
|
+
end
|
11563
|
+
|
11564
|
+
def copy(incoming={})
|
11565
|
+
HarmonizedItemDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
11566
|
+
end
|
11567
|
+
|
11568
|
+
def subtype_to_hash
|
11569
|
+
{
|
11570
|
+
:event_id => event_id,
|
11571
|
+
:timestamp => timestamp,
|
11572
|
+
:organization => organization,
|
11573
|
+
:number => number
|
11517
11574
|
}
|
11518
11575
|
end
|
11519
11576
|
|
@@ -11712,6 +11769,47 @@ module Io
|
|
11712
11769
|
|
11713
11770
|
end
|
11714
11771
|
|
11772
|
+
class HarmonizedItemUpserted < Event
|
11773
|
+
|
11774
|
+
attr_reader :event_id, :timestamp, :organization, :number, :name, :categories, :attributes, :description
|
11775
|
+
|
11776
|
+
def initialize(incoming={})
|
11777
|
+
super(:discriminator => Event::Types::HARMONIZED_ITEM_UPSERTED)
|
11778
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11779
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :name, :categories, :attributes], 'HarmonizedItemUpserted')
|
11780
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
11781
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
11782
|
+
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
11783
|
+
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
11784
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
|
11785
|
+
@categories = HttpClient::Preconditions.assert_class('categories', opts.delete(:categories), Array).map { |v| HttpClient::Preconditions.assert_class('categories', v, String) }
|
11786
|
+
@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 }
|
11787
|
+
@description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
|
11788
|
+
end
|
11789
|
+
|
11790
|
+
def to_json
|
11791
|
+
JSON.dump(to_hash)
|
11792
|
+
end
|
11793
|
+
|
11794
|
+
def copy(incoming={})
|
11795
|
+
HarmonizedItemUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
11796
|
+
end
|
11797
|
+
|
11798
|
+
def subtype_to_hash
|
11799
|
+
{
|
11800
|
+
:event_id => event_id,
|
11801
|
+
:timestamp => timestamp,
|
11802
|
+
:organization => organization,
|
11803
|
+
:number => number,
|
11804
|
+
:name => name,
|
11805
|
+
:categories => categories,
|
11806
|
+
:attributes => attributes,
|
11807
|
+
:description => description
|
11808
|
+
}
|
11809
|
+
end
|
11810
|
+
|
11811
|
+
end
|
11812
|
+
|
11715
11813
|
class HarmonizedItemVersion
|
11716
11814
|
|
11717
11815
|
attr_reader :id, :timestamp, :type, :harmonized_item
|
@@ -11933,7 +12031,7 @@ module Io
|
|
11933
12031
|
attr_reader :event_id, :timestamp, :organization, :number, :origin, :destination
|
11934
12032
|
|
11935
12033
|
def initialize(incoming={})
|
11936
|
-
super(:
|
12034
|
+
super(:discriminator => Event::Types::HS10_CODE_DELETED)
|
11937
12035
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11938
12036
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :origin, :destination], 'Hs10CodeDeleted')
|
11939
12037
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -11971,7 +12069,7 @@ module Io
|
|
11971
12069
|
attr_reader :event_id, :timestamp, :organization, :number, :origin, :destination, :code
|
11972
12070
|
|
11973
12071
|
def initialize(incoming={})
|
11974
|
-
super(:
|
12072
|
+
super(:discriminator => Event::Types::HS10_CODE_UPSERTED)
|
11975
12073
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
11976
12074
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :origin, :destination, :code], 'Hs10CodeUpserted')
|
11977
12075
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -12074,7 +12172,7 @@ module Io
|
|
12074
12172
|
attr_reader :event_id, :timestamp, :organization, :number
|
12075
12173
|
|
12076
12174
|
def initialize(incoming={})
|
12077
|
-
super(:
|
12175
|
+
super(:discriminator => Event::Types::HS6_CODE_DELETED)
|
12078
12176
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
12079
12177
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number], 'Hs6CodeDeleted')
|
12080
12178
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -12108,7 +12206,7 @@ module Io
|
|
12108
12206
|
attr_reader :event_id, :timestamp, :organization, :number, :code
|
12109
12207
|
|
12110
12208
|
def initialize(incoming={})
|
12111
|
-
super(:
|
12209
|
+
super(:discriminator => Event::Types::HS6_CODE_UPSERTED)
|
12112
12210
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
12113
12211
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :code], 'Hs6CodeUpserted')
|
12114
12212
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -12406,7 +12504,7 @@ module Io
|
|
12406
12504
|
attr_reader :quantity
|
12407
12505
|
|
12408
12506
|
def initialize(incoming={})
|
12409
|
-
super(:
|
12507
|
+
super(:discriminator => InventoryStrategy::Types::INVENTORY_BACKORDER)
|
12410
12508
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
12411
12509
|
HttpClient::Preconditions.require_keys(opts, [:quantity], 'InventoryBackorder')
|
12412
12510
|
@quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
|
@@ -12652,7 +12750,7 @@ module Io
|
|
12652
12750
|
attr_reader :quantity
|
12653
12751
|
|
12654
12752
|
def initialize(incoming={})
|
12655
|
-
super(:
|
12753
|
+
super(:discriminator => InventoryStrategy::Types::INVENTORY_STOCK)
|
12656
12754
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
12657
12755
|
HttpClient::Preconditions.require_keys(opts, [:quantity], 'InventoryStock')
|
12658
12756
|
@quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
|
@@ -12681,7 +12779,7 @@ module Io
|
|
12681
12779
|
attr_reader :quantity
|
12682
12780
|
|
12683
12781
|
def initialize(incoming={})
|
12684
|
-
super(:
|
12782
|
+
super(:discriminator => InventoryStrategy::Types::INVENTORY_UNLIMITED)
|
12685
12783
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
12686
12784
|
@quantity = HttpClient::Preconditions.assert_class('quantity', (x = opts.delete(:quantity); x.nil? ? "unlimited" : x), String)
|
12687
12785
|
end
|
@@ -13048,7 +13146,7 @@ module Io
|
|
13048
13146
|
attr_reader :id, :key, :description, :code
|
13049
13147
|
|
13050
13148
|
def initialize(incoming={})
|
13051
|
-
super(:
|
13149
|
+
super(:discriminator => ExpandableItemFunction::Types::ITEM_FUNCTION)
|
13052
13150
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13053
13151
|
HttpClient::Preconditions.require_keys(opts, [:id, :key, :description, :code], 'ItemFunction')
|
13054
13152
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -13153,7 +13251,7 @@ module Io
|
|
13153
13251
|
attr_reader :id
|
13154
13252
|
|
13155
13253
|
def initialize(incoming={})
|
13156
|
-
super(:
|
13254
|
+
super(:discriminator => ExpandableItemFunction::Types::ITEM_FUNCTION_REFERENCE)
|
13157
13255
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13158
13256
|
HttpClient::Preconditions.require_keys(opts, [:id], 'ItemFunctionReference')
|
13159
13257
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -13249,7 +13347,7 @@ module Io
|
|
13249
13347
|
attr_reader :event_id, :timestamp, :item_margin_id, :organization_id, :experience_key
|
13250
13348
|
|
13251
13349
|
def initialize(incoming={})
|
13252
|
-
super(:
|
13350
|
+
super(:discriminator => Event::Types::ITEM_MARGIN_DELETED)
|
13253
13351
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13254
13352
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :item_margin_id, :organization_id, :experience_key], 'ItemMarginDeleted')
|
13255
13353
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -13319,7 +13417,7 @@ module Io
|
|
13319
13417
|
attr_reader :event_id, :timestamp, :item_margin_id, :organization_id, :experience_key, :name, :q, :fixed, :percent, :position
|
13320
13418
|
|
13321
13419
|
def initialize(incoming={})
|
13322
|
-
super(:
|
13420
|
+
super(:discriminator => Event::Types::ITEM_MARGIN_UPSERTED)
|
13323
13421
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13324
13422
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :item_margin_id, :organization_id, :experience_key, :name, :q, :fixed, :percent, :position], 'ItemMarginUpserted')
|
13325
13423
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -13391,6 +13489,78 @@ module Io
|
|
13391
13489
|
|
13392
13490
|
end
|
13393
13491
|
|
13492
|
+
class ItemOriginDeleted < Event
|
13493
|
+
|
13494
|
+
attr_reader :event_id, :timestamp, :organization, :number, :origin
|
13495
|
+
|
13496
|
+
def initialize(incoming={})
|
13497
|
+
super(:discriminator => Event::Types::ITEM_ORIGIN_DELETED)
|
13498
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13499
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :origin], 'ItemOriginDeleted')
|
13500
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
13501
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
13502
|
+
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
13503
|
+
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
13504
|
+
@origin = HttpClient::Preconditions.assert_class('origin', opts.delete(:origin), String)
|
13505
|
+
end
|
13506
|
+
|
13507
|
+
def to_json
|
13508
|
+
JSON.dump(to_hash)
|
13509
|
+
end
|
13510
|
+
|
13511
|
+
def copy(incoming={})
|
13512
|
+
ItemOriginDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
13513
|
+
end
|
13514
|
+
|
13515
|
+
def subtype_to_hash
|
13516
|
+
{
|
13517
|
+
:event_id => event_id,
|
13518
|
+
:timestamp => timestamp,
|
13519
|
+
:organization => organization,
|
13520
|
+
:number => number,
|
13521
|
+
:origin => origin
|
13522
|
+
}
|
13523
|
+
end
|
13524
|
+
|
13525
|
+
end
|
13526
|
+
|
13527
|
+
# Event raised whenever an item is assigned a country of origin. Note that one
|
13528
|
+
# item may have multiple countries of origin.
|
13529
|
+
class ItemOriginUpserted < Event
|
13530
|
+
|
13531
|
+
attr_reader :event_id, :timestamp, :organization, :number, :origin
|
13532
|
+
|
13533
|
+
def initialize(incoming={})
|
13534
|
+
super(:discriminator => Event::Types::ITEM_ORIGIN_UPSERTED)
|
13535
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13536
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :origin], 'ItemOriginUpserted')
|
13537
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
13538
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
13539
|
+
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
13540
|
+
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
13541
|
+
@origin = HttpClient::Preconditions.assert_class('origin', opts.delete(:origin), String)
|
13542
|
+
end
|
13543
|
+
|
13544
|
+
def to_json
|
13545
|
+
JSON.dump(to_hash)
|
13546
|
+
end
|
13547
|
+
|
13548
|
+
def copy(incoming={})
|
13549
|
+
ItemOriginUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
13550
|
+
end
|
13551
|
+
|
13552
|
+
def subtype_to_hash
|
13553
|
+
{
|
13554
|
+
:event_id => event_id,
|
13555
|
+
:timestamp => timestamp,
|
13556
|
+
:organization => organization,
|
13557
|
+
:number => number,
|
13558
|
+
:origin => origin
|
13559
|
+
}
|
13560
|
+
end
|
13561
|
+
|
13562
|
+
end
|
13563
|
+
|
13394
13564
|
# Statistics covering product catalog item information, including total catalog
|
13395
13565
|
# item count, number of distinct categories, etc.
|
13396
13566
|
class ItemStatistics
|
@@ -13519,7 +13689,7 @@ module Io
|
|
13519
13689
|
attr_reader :event_id, :timestamp, :organization, :label_id, :carrier_tracking_number, :flow_tracking_number, :data, :destination, :origin, :carrier, :service, :commercial_invoice, :pdf, :png, :order
|
13520
13690
|
|
13521
13691
|
def initialize(incoming={})
|
13522
|
-
super(:
|
13692
|
+
super(:discriminator => Event::Types::LABEL_UPSERTED)
|
13523
13693
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13524
13694
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :label_id, :carrier_tracking_number, :flow_tracking_number, :data, :destination, :origin, :carrier, :service], 'LabelUpserted')
|
13525
13695
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -13598,6 +13768,39 @@ module Io
|
|
13598
13768
|
|
13599
13769
|
end
|
13600
13770
|
|
13771
|
+
# Provides display data for a line item.
|
13772
|
+
class Line
|
13773
|
+
|
13774
|
+
attr_reader :item_number, :quantity, :price, :total
|
13775
|
+
|
13776
|
+
def initialize(incoming={})
|
13777
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13778
|
+
HttpClient::Preconditions.require_keys(opts, [:item_number, :quantity, :price, :total], 'Line')
|
13779
|
+
@item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
|
13780
|
+
@quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
|
13781
|
+
@price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
|
13782
|
+
@total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
|
13783
|
+
end
|
13784
|
+
|
13785
|
+
def to_json
|
13786
|
+
JSON.dump(to_hash)
|
13787
|
+
end
|
13788
|
+
|
13789
|
+
def copy(incoming={})
|
13790
|
+
Line.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
13791
|
+
end
|
13792
|
+
|
13793
|
+
def to_hash
|
13794
|
+
{
|
13795
|
+
:item_number => item_number,
|
13796
|
+
:quantity => quantity,
|
13797
|
+
:price => price.to_hash,
|
13798
|
+
:total => total.to_hash
|
13799
|
+
}
|
13800
|
+
end
|
13801
|
+
|
13802
|
+
end
|
13803
|
+
|
13601
13804
|
# Line items represent the items a consumer is purchasing, including additional
|
13602
13805
|
# information to complete the transaction. Note that you may pass in as many
|
13603
13806
|
# line items as you like - including repeating item numbers across line items.
|
@@ -13678,7 +13881,7 @@ module Io
|
|
13678
13881
|
|
13679
13882
|
class Local
|
13680
13883
|
|
13681
|
-
attr_reader :experience, :prices, :rates, :spot_rates, :status
|
13884
|
+
attr_reader :experience, :prices, :rates, :spot_rates, :status, :line
|
13682
13885
|
|
13683
13886
|
def initialize(incoming={})
|
13684
13887
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -13688,6 +13891,7 @@ module Io
|
|
13688
13891
|
@rates = HttpClient::Preconditions.assert_class('rates', opts.delete(:rates), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Rate) ? x : ::Io::Flow::V0::Models::Rate.new(x)) }
|
13689
13892
|
@spot_rates = HttpClient::Preconditions.assert_class('spot_rates', opts.delete(:spot_rates), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::SpotRate) ? x : ::Io::Flow::V0::Models::SpotRate.new(x)) }
|
13690
13893
|
@status = (x = (x = opts.delete(:status); x.nil? ? "included" : x); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
|
13894
|
+
@line = (x = opts.delete(:line); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Line) ? x : ::Io::Flow::V0::Models::Line.new(x)))
|
13691
13895
|
end
|
13692
13896
|
|
13693
13897
|
def to_json
|
@@ -13704,7 +13908,8 @@ module Io
|
|
13704
13908
|
:prices => prices.map { |o| o.to_hash },
|
13705
13909
|
:rates => rates.map { |o| o.to_hash },
|
13706
13910
|
:spot_rates => spot_rates.map { |o| o.to_hash },
|
13707
|
-
:status => status.value
|
13911
|
+
:status => status.value,
|
13912
|
+
:line => line.nil? ? nil : line.to_hash
|
13708
13913
|
}
|
13709
13914
|
end
|
13710
13915
|
|
@@ -13777,7 +13982,7 @@ module Io
|
|
13777
13982
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog
|
13778
13983
|
|
13779
13984
|
def initialize(incoming={})
|
13780
|
-
super(:
|
13985
|
+
super(:discriminator => Event::Types::LOCALIZED_ITEM_DELETED)
|
13781
13986
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13782
13987
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog], 'LocalizedItemDeleted')
|
13783
13988
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -13812,7 +14017,7 @@ module Io
|
|
13812
14017
|
attr_reader :currency, :amount, :label, :base, :adjustment
|
13813
14018
|
|
13814
14019
|
def initialize(incoming={})
|
13815
|
-
super(:
|
14020
|
+
super(:key => LocalizedPrice::Types::LOCALIZED_ITEM_DUTY)
|
13816
14021
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13817
14022
|
HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base], 'LocalizedItemDuty')
|
13818
14023
|
@currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
|
@@ -13847,7 +14052,7 @@ module Io
|
|
13847
14052
|
attr_reader :currency, :amount, :label, :base, :includes
|
13848
14053
|
|
13849
14054
|
def initialize(incoming={})
|
13850
|
-
super(:
|
14055
|
+
super(:key => LocalizedPrice::Types::LOCALIZED_ITEM_PRICE)
|
13851
14056
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13852
14057
|
HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base], 'LocalizedItemPrice')
|
13853
14058
|
@currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
|
@@ -13882,7 +14087,7 @@ module Io
|
|
13882
14087
|
attr_reader :event_id, :timestamp, :organization, :subcatalog_id, :url
|
13883
14088
|
|
13884
14089
|
def initialize(incoming={})
|
13885
|
-
super(:
|
14090
|
+
super(:discriminator => Event::Types::LOCALIZED_ITEM_SNAPSHOT)
|
13886
14091
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13887
14092
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :subcatalog_id, :url], 'LocalizedItemSnapshot')
|
13888
14093
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -13917,7 +14122,7 @@ module Io
|
|
13917
14122
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog, :locale, :name, :currency, :price, :categories, :description, :attributes, :dimensions, :images, :local
|
13918
14123
|
|
13919
14124
|
def initialize(incoming={})
|
13920
|
-
super(:
|
14125
|
+
super(:discriminator => Event::Types::LOCALIZED_ITEM_UPSERTED)
|
13921
14126
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13922
14127
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :locale, :name, :currency, :price, :categories, :attributes, :dimensions, :images, :local], 'LocalizedItemUpserted')
|
13923
14128
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -13972,7 +14177,7 @@ module Io
|
|
13972
14177
|
attr_reader :currency, :amount, :label, :base, :name, :adjustment
|
13973
14178
|
|
13974
14179
|
def initialize(incoming={})
|
13975
|
-
super(:
|
14180
|
+
super(:key => LocalizedPrice::Types::LOCALIZED_ITEM_VAT)
|
13976
14181
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
13977
14182
|
HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base, :name], 'LocalizedItemVat')
|
13978
14183
|
@currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
|
@@ -14050,7 +14255,7 @@ module Io
|
|
14050
14255
|
attr_reader :currency, :amount, :label, :base
|
14051
14256
|
|
14052
14257
|
def initialize(incoming={})
|
14053
|
-
super(:
|
14258
|
+
super(:key => LocalizedPrice::Types::LOCALIZED_TOTAL)
|
14054
14259
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14055
14260
|
HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label, :base], 'LocalizedTotal')
|
14056
14261
|
@currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
|
@@ -14269,7 +14474,7 @@ module Io
|
|
14269
14474
|
attr_reader :token, :order_number, :key, :cvv, :attributes, :ip
|
14270
14475
|
|
14271
14476
|
def initialize(incoming={})
|
14272
|
-
super(:
|
14477
|
+
super(:discriminator => AuthorizationForm::Types::MERCHANT_OF_RECORD_AUTHORIZATION_FORM)
|
14273
14478
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14274
14479
|
HttpClient::Preconditions.require_keys(opts, [:token, :order_number], 'MerchantOfRecordAuthorizationForm')
|
14275
14480
|
@token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String)
|
@@ -14389,7 +14594,7 @@ module Io
|
|
14389
14594
|
attr_reader :event_id, :timestamp, :organization, :notification_id, :carrier_tracking_number, :flow_tracking_number, :destination, :origin, :carrier, :service, :order, :package
|
14390
14595
|
|
14391
14596
|
def initialize(incoming={})
|
14392
|
-
super(:
|
14597
|
+
super(:discriminator => Event::Types::NOTIFICATION_DELETED)
|
14393
14598
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14394
14599
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :notification_id, :carrier_tracking_number, :flow_tracking_number, :destination, :origin, :carrier, :service, :order, :package], 'NotificationDeleted')
|
14395
14600
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -14438,7 +14643,7 @@ module Io
|
|
14438
14643
|
attr_reader :event_id, :timestamp, :organization, :notification_id, :carrier_tracking_number, :flow_tracking_number, :destination, :origin, :carrier, :service, :order, :package
|
14439
14644
|
|
14440
14645
|
def initialize(incoming={})
|
14441
|
-
super(:
|
14646
|
+
super(:discriminator => Event::Types::NOTIFICATION_UPSERTED)
|
14442
14647
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14443
14648
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :notification_id, :carrier_tracking_number, :flow_tracking_number, :destination, :origin, :carrier, :service, :order, :package], 'NotificationUpserted')
|
14444
14649
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -14643,7 +14848,7 @@ module Io
|
|
14643
14848
|
attr_reader :event_id, :timestamp, :organization, :order_number
|
14644
14849
|
|
14645
14850
|
def initialize(incoming={})
|
14646
|
-
super(:
|
14851
|
+
super(:discriminator => Event::Types::ORDER_BOOKING_DELETED)
|
14647
14852
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14648
14853
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :order_number], 'OrderBookingDeleted')
|
14649
14854
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -14676,7 +14881,7 @@ module Io
|
|
14676
14881
|
attr_reader :event_id, :timestamp, :organization, :order_number
|
14677
14882
|
|
14678
14883
|
def initialize(incoming={})
|
14679
|
-
super(:
|
14884
|
+
super(:discriminator => Event::Types::ORDER_BOOKING_UPSERTED)
|
14680
14885
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14681
14886
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :order_number], 'OrderBookingUpserted')
|
14682
14887
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -14709,7 +14914,7 @@ module Io
|
|
14709
14914
|
attr_reader :event_id, :timestamp, :organization, :number
|
14710
14915
|
|
14711
14916
|
def initialize(incoming={})
|
14712
|
-
super(:
|
14917
|
+
super(:discriminator => Event::Types::ORDER_DELETED)
|
14713
14918
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14714
14919
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number], 'OrderDeleted')
|
14715
14920
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -14874,7 +15079,7 @@ module Io
|
|
14874
15079
|
# Represents a top-level order price detail, e.g. 'Subtotal' or 'VAT'.
|
14875
15080
|
class OrderPriceDetail
|
14876
15081
|
|
14877
|
-
attr_reader :key, :currency, :amount, :label, :base, :components
|
15082
|
+
attr_reader :key, :currency, :amount, :label, :base, :components, :name
|
14878
15083
|
|
14879
15084
|
def initialize(incoming={})
|
14880
15085
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -14885,6 +15090,7 @@ module Io
|
|
14885
15090
|
@label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
|
14886
15091
|
@base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
|
14887
15092
|
@components = HttpClient::Preconditions.assert_class('components', opts.delete(:components), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OrderPriceDetailComponent) ? x : ::Io::Flow::V0::Models::OrderPriceDetailComponent.new(x)) }
|
15093
|
+
@name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String))
|
14888
15094
|
end
|
14889
15095
|
|
14890
15096
|
def to_json
|
@@ -14902,7 +15108,8 @@ module Io
|
|
14902
15108
|
:amount => amount,
|
14903
15109
|
:label => label,
|
14904
15110
|
:base => base.to_hash,
|
14905
|
-
:components => components.map { |o| o.to_hash }
|
15111
|
+
:components => components.map { |o| o.to_hash },
|
15112
|
+
:name => name
|
14906
15113
|
}
|
14907
15114
|
end
|
14908
15115
|
|
@@ -14910,7 +15117,7 @@ module Io
|
|
14910
15117
|
|
14911
15118
|
class OrderPriceDetailComponent
|
14912
15119
|
|
14913
|
-
attr_reader :key, :currency, :amount, :label, :base
|
15120
|
+
attr_reader :key, :currency, :amount, :label, :base, :name
|
14914
15121
|
|
14915
15122
|
def initialize(incoming={})
|
14916
15123
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -14920,6 +15127,7 @@ module Io
|
|
14920
15127
|
@amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
|
14921
15128
|
@label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
|
14922
15129
|
@base = (x = opts.delete(:base); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
|
15130
|
+
@name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String))
|
14923
15131
|
end
|
14924
15132
|
|
14925
15133
|
def to_json
|
@@ -14936,7 +15144,8 @@ module Io
|
|
14936
15144
|
:currency => currency,
|
14937
15145
|
:amount => amount,
|
14938
15146
|
:label => label,
|
14939
|
-
:base => base.to_hash
|
15147
|
+
:base => base.to_hash,
|
15148
|
+
:name => name
|
14940
15149
|
}
|
14941
15150
|
end
|
14942
15151
|
|
@@ -15013,7 +15222,7 @@ module Io
|
|
15013
15222
|
attr_reader :event_id, :timestamp, :organization, :number, :environment, :experience_id, :expires_at, :customer, :selections, :items, :destination, :deliveries, :prices, :discount, :total
|
15014
15223
|
|
15015
15224
|
def initialize(incoming={})
|
15016
|
-
super(:
|
15225
|
+
super(:discriminator => Event::Types::ORDER_UPSERTED)
|
15017
15226
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15018
15227
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :environment, :experience_id, :expires_at, :customer, :selections, :items, :destination, :deliveries, :prices, :total], 'OrderUpserted')
|
15019
15228
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -15102,7 +15311,7 @@ module Io
|
|
15102
15311
|
attr_reader :id, :name, :environment, :parent
|
15103
15312
|
|
15104
15313
|
def initialize(incoming={})
|
15105
|
-
super(:
|
15314
|
+
super(:discriminator => ExpandableOrganization::Types::ORGANIZATION)
|
15106
15315
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15107
15316
|
HttpClient::Preconditions.require_keys(opts, [:id, :name, :environment], 'Organization')
|
15108
15317
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -15225,7 +15434,7 @@ module Io
|
|
15225
15434
|
attr_reader :event_id, :timestamp, :organization_currency_setting_id
|
15226
15435
|
|
15227
15436
|
def initialize(incoming={})
|
15228
|
-
super(:
|
15437
|
+
super(:discriminator => Event::Types::ORGANIZATION_CURRENCY_SETTING_DELETED)
|
15229
15438
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15230
15439
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_currency_setting_id], 'OrganizationCurrencySettingDeleted')
|
15231
15440
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -15287,7 +15496,7 @@ module Io
|
|
15287
15496
|
attr_reader :event_id, :timestamp, :organization_currency_setting_id, :organization_id, :base, :target, :margin
|
15288
15497
|
|
15289
15498
|
def initialize(incoming={})
|
15290
|
-
super(:
|
15499
|
+
super(:discriminator => Event::Types::ORGANIZATION_CURRENCY_SETTING_UPSERTED)
|
15291
15500
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15292
15501
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_currency_setting_id, :organization_id, :base, :target, :margin], 'OrganizationCurrencySettingUpserted')
|
15293
15502
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -15358,7 +15567,7 @@ module Io
|
|
15358
15567
|
attr_reader :event_id, :timestamp, :id
|
15359
15568
|
|
15360
15569
|
def initialize(incoming={})
|
15361
|
-
super(:
|
15570
|
+
super(:discriminator => Event::Types::ORGANIZATION_DELETED)
|
15362
15571
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15363
15572
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id], 'OrganizationDeleted')
|
15364
15573
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -15451,7 +15660,7 @@ module Io
|
|
15451
15660
|
attr_reader :id
|
15452
15661
|
|
15453
15662
|
def initialize(incoming={})
|
15454
|
-
super(:
|
15663
|
+
super(:discriminator => ExpandableOrganization::Types::ORGANIZATION_REFERENCE)
|
15455
15664
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15456
15665
|
HttpClient::Preconditions.require_keys(opts, [:id], 'OrganizationReference')
|
15457
15666
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -15507,7 +15716,7 @@ module Io
|
|
15507
15716
|
attr_reader :id, :organization, :user, :environment, :partial, :created_at, :description
|
15508
15717
|
|
15509
15718
|
def initialize(incoming={})
|
15510
|
-
super(:
|
15719
|
+
super(:discriminator => Token::Types::ORGANIZATION_TOKEN)
|
15511
15720
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15512
15721
|
HttpClient::Preconditions.require_keys(opts, [:id, :organization, :user, :environment, :partial, :created_at], 'OrganizationToken')
|
15513
15722
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -15548,7 +15757,7 @@ module Io
|
|
15548
15757
|
attr_reader :organization, :environment, :description
|
15549
15758
|
|
15550
15759
|
def initialize(incoming={})
|
15551
|
-
super(:
|
15760
|
+
super(:discriminator => TokenForm::Types::ORGANIZATION_TOKEN_FORM)
|
15552
15761
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15553
15762
|
HttpClient::Preconditions.require_keys(opts, [:organization, :environment], 'OrganizationTokenForm')
|
15554
15763
|
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
@@ -15580,7 +15789,7 @@ module Io
|
|
15580
15789
|
attr_reader :id, :organization, :environment, :user
|
15581
15790
|
|
15582
15791
|
def initialize(incoming={})
|
15583
|
-
super(:
|
15792
|
+
super(:discriminator => TokenReference::Types::ORGANIZATION_TOKEN_REFERENCE)
|
15584
15793
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15585
15794
|
HttpClient::Preconditions.require_keys(opts, [:id, :organization, :environment, :user], 'OrganizationTokenReference')
|
15586
15795
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -15613,7 +15822,7 @@ module Io
|
|
15613
15822
|
attr_reader :event_id, :timestamp, :id, :name, :environment, :currencies, :parent_id
|
15614
15823
|
|
15615
15824
|
def initialize(incoming={})
|
15616
|
-
super(:
|
15825
|
+
super(:discriminator => Event::Types::ORGANIZATION_UPSERTED)
|
15617
15826
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15618
15827
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :name, :environment, :currencies], 'OrganizationUpserted')
|
15619
15828
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -15742,7 +15951,7 @@ module Io
|
|
15742
15951
|
attr_reader :id, :partner, :user, :environment, :partial, :created_at, :description
|
15743
15952
|
|
15744
15953
|
def initialize(incoming={})
|
15745
|
-
super(:
|
15954
|
+
super(:discriminator => Token::Types::PARTNER_TOKEN)
|
15746
15955
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15747
15956
|
HttpClient::Preconditions.require_keys(opts, [:id, :partner, :user, :environment, :partial, :created_at], 'PartnerToken')
|
15748
15957
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -15783,7 +15992,7 @@ module Io
|
|
15783
15992
|
attr_reader :partner, :environment, :description
|
15784
15993
|
|
15785
15994
|
def initialize(incoming={})
|
15786
|
-
super(:
|
15995
|
+
super(:discriminator => TokenForm::Types::PARTNER_TOKEN_FORM)
|
15787
15996
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15788
15997
|
HttpClient::Preconditions.require_keys(opts, [:partner, :environment], 'PartnerTokenForm')
|
15789
15998
|
@partner = HttpClient::Preconditions.assert_class('partner', opts.delete(:partner), String)
|
@@ -15815,7 +16024,7 @@ module Io
|
|
15815
16024
|
attr_reader :id, :partner, :environment, :user
|
15816
16025
|
|
15817
16026
|
def initialize(incoming={})
|
15818
|
-
super(:
|
16027
|
+
super(:discriminator => TokenReference::Types::PARTNER_TOKEN_REFERENCE)
|
15819
16028
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15820
16029
|
HttpClient::Preconditions.require_keys(opts, [:id, :partner, :environment, :user], 'PartnerTokenReference')
|
15821
16030
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -15932,7 +16141,7 @@ module Io
|
|
15932
16141
|
attr_reader :percentage
|
15933
16142
|
|
15934
16143
|
def initialize(incoming={})
|
15935
|
-
super(:
|
16144
|
+
super(:discriminator => TierRuleOutcome::Types::PERCENT_MARGIN)
|
15936
16145
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
15937
16146
|
HttpClient::Preconditions.require_keys(opts, [:percentage], 'PercentMargin')
|
15938
16147
|
@percentage = HttpClient::Preconditions.assert_class('percentage', opts.delete(:percentage), Numeric)
|
@@ -16016,7 +16225,7 @@ module Io
|
|
16016
16225
|
# Represents a top-level price detail, e.g. 'Subtotal' or 'VAT'.
|
16017
16226
|
class PriceDetail
|
16018
16227
|
|
16019
|
-
attr_reader :key, :components, :amount, :label
|
16228
|
+
attr_reader :key, :components, :amount, :label, :name
|
16020
16229
|
|
16021
16230
|
def initialize(incoming={})
|
16022
16231
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -16025,6 +16234,7 @@ module Io
|
|
16025
16234
|
@components = HttpClient::Preconditions.assert_class('components', opts.delete(:components), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::PriceDetailComponent) ? x : ::Io::Flow::V0::Models::PriceDetailComponent.new(x)) }
|
16026
16235
|
@amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
|
16027
16236
|
@label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
|
16237
|
+
@name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String))
|
16028
16238
|
end
|
16029
16239
|
|
16030
16240
|
def to_json
|
@@ -16040,7 +16250,8 @@ module Io
|
|
16040
16250
|
:key => key.value,
|
16041
16251
|
:components => components.map { |o| o.to_hash },
|
16042
16252
|
:amount => amount,
|
16043
|
-
:label => label
|
16253
|
+
:label => label,
|
16254
|
+
:name => name
|
16044
16255
|
}
|
16045
16256
|
end
|
16046
16257
|
|
@@ -16048,7 +16259,7 @@ module Io
|
|
16048
16259
|
|
16049
16260
|
class PriceDetailComponent
|
16050
16261
|
|
16051
|
-
attr_reader :key, :amount, :label
|
16262
|
+
attr_reader :key, :amount, :label, :name
|
16052
16263
|
|
16053
16264
|
def initialize(incoming={})
|
16054
16265
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -16056,6 +16267,7 @@ module Io
|
|
16056
16267
|
@key = (x = opts.delete(:key); x.is_a?(::Io::Flow::V0::Models::PriceDetailComponentKey) ? x : ::Io::Flow::V0::Models::PriceDetailComponentKey.apply(x))
|
16057
16268
|
@amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
|
16058
16269
|
@label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
|
16270
|
+
@name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String))
|
16059
16271
|
end
|
16060
16272
|
|
16061
16273
|
def to_json
|
@@ -16070,7 +16282,8 @@ module Io
|
|
16070
16282
|
{
|
16071
16283
|
:key => key.value,
|
16072
16284
|
:amount => amount,
|
16073
|
-
:label => label
|
16285
|
+
:label => label,
|
16286
|
+
:name => name
|
16074
16287
|
}
|
16075
16288
|
end
|
16076
16289
|
|
@@ -16599,7 +16812,7 @@ module Io
|
|
16599
16812
|
attr_reader :event_id, :timestamp, :rate_id
|
16600
16813
|
|
16601
16814
|
def initialize(incoming={})
|
16602
|
-
super(:
|
16815
|
+
super(:discriminator => Event::Types::RATE_DELETED)
|
16603
16816
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
16604
16817
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :rate_id], 'RateDeleted')
|
16605
16818
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -16661,7 +16874,7 @@ module Io
|
|
16661
16874
|
attr_reader :event_id, :timestamp, :rate_id, :organization_id, :base, :target, :effective_at, :value
|
16662
16875
|
|
16663
16876
|
def initialize(incoming={})
|
16664
|
-
super(:
|
16877
|
+
super(:discriminator => Event::Types::RATE_UPSERTED)
|
16665
16878
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
16666
16879
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :rate_id, :organization_id, :base, :target, :effective_at, :value], 'RateUpserted')
|
16667
16880
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -16911,7 +17124,7 @@ module Io
|
|
16911
17124
|
attr_reader :event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :captures, :created_at
|
16912
17125
|
|
16913
17126
|
def initialize(incoming={})
|
16914
|
-
super(:
|
17127
|
+
super(:discriminator => Event::Types::REFUND_UPSERTED)
|
16915
17128
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
16916
17129
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :key, :authorization_key, :amount, :currency, :captures, :created_at], 'RefundUpserted')
|
16917
17130
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -17516,7 +17729,7 @@ module Io
|
|
17516
17729
|
attr_reader :numbers, :sort
|
17517
17730
|
|
17518
17731
|
def initialize(incoming={})
|
17519
|
-
super(:
|
17732
|
+
super(:discriminator => ExportType::Types::SOLIDUS_PRODUCT_EXPORT_TYPE)
|
17520
17733
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17521
17734
|
@numbers = (x = opts.delete(:numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('numbers', v, String) })
|
17522
17735
|
@sort = (x = opts.delete(:sort); x.nil? ? nil : HttpClient::Preconditions.assert_class('sort', x, String))
|
@@ -17545,7 +17758,7 @@ module Io
|
|
17545
17758
|
attr_reader :numbers, :sort
|
17546
17759
|
|
17547
17760
|
def initialize(incoming={})
|
17548
|
-
super(:
|
17761
|
+
super(:discriminator => ExportType::Types::SOLIDUS_VARIANT_EXPORT_TYPE)
|
17549
17762
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17550
17763
|
@numbers = (x = opts.delete(:numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('numbers', v, String) })
|
17551
17764
|
@sort = (x = opts.delete(:sort); x.nil? ? nil : HttpClient::Preconditions.assert_class('sort', x, String))
|
@@ -17607,7 +17820,7 @@ module Io
|
|
17607
17820
|
attr_reader :event_id, :timestamp, :spot_rate_id
|
17608
17821
|
|
17609
17822
|
def initialize(incoming={})
|
17610
|
-
super(:
|
17823
|
+
super(:discriminator => Event::Types::SPOT_RATE_DELETED)
|
17611
17824
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17612
17825
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :spot_rate_id], 'SpotRateDeleted')
|
17613
17826
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -17670,7 +17883,7 @@ module Io
|
|
17670
17883
|
attr_reader :event_id, :timestamp, :spot_rate_id, :base, :target, :value, :effective_at
|
17671
17884
|
|
17672
17885
|
def initialize(incoming={})
|
17673
|
-
super(:
|
17886
|
+
super(:discriminator => Event::Types::SPOT_RATE_UPSERTED)
|
17674
17887
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17675
17888
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :spot_rate_id, :base, :target, :value, :effective_at], 'SpotRateUpserted')
|
17676
17889
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -17743,7 +17956,7 @@ module Io
|
|
17743
17956
|
attr_reader :id, :catalog, :settings
|
17744
17957
|
|
17745
17958
|
def initialize(incoming={})
|
17746
|
-
super(:
|
17959
|
+
super(:discriminator => ExpandableSubcatalog::Types::SUBCATALOG)
|
17747
17960
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17748
17961
|
HttpClient::Preconditions.require_keys(opts, [:id, :catalog, :settings], 'Subcatalog')
|
17749
17962
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -17774,7 +17987,7 @@ module Io
|
|
17774
17987
|
attr_reader :event_id, :timestamp, :organization, :catalog, :subcatalog_id
|
17775
17988
|
|
17776
17989
|
def initialize(incoming={})
|
17777
|
-
super(:
|
17990
|
+
super(:discriminator => Event::Types::SUBCATALOG_DELETED)
|
17778
17991
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17779
17992
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog, :subcatalog_id], 'SubcatalogDeleted')
|
17780
17993
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -17961,7 +18174,7 @@ module Io
|
|
17961
18174
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id
|
17962
18175
|
|
17963
18176
|
def initialize(incoming={})
|
17964
|
-
super(:
|
18177
|
+
super(:discriminator => Event::Types::SUBCATALOG_ITEM_DELETED)
|
17965
18178
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
17966
18179
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id], 'SubcatalogItemDeleted')
|
17967
18180
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -17998,7 +18211,7 @@ module Io
|
|
17998
18211
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id, :status, :function_id
|
17999
18212
|
|
18000
18213
|
def initialize(incoming={})
|
18001
|
-
super(:
|
18214
|
+
super(:discriminator => Event::Types::SUBCATALOG_ITEM_UPSERTED)
|
18002
18215
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
18003
18216
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :number, :catalog, :subcatalog_id, :status], 'SubcatalogItemUpserted')
|
18004
18217
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -18039,7 +18252,7 @@ module Io
|
|
18039
18252
|
attr_reader :id
|
18040
18253
|
|
18041
18254
|
def initialize(incoming={})
|
18042
|
-
super(:
|
18255
|
+
super(:discriminator => ExpandableSubcatalog::Types::SUBCATALOG_REFERENCE)
|
18043
18256
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
18044
18257
|
HttpClient::Preconditions.require_keys(opts, [:id], 'SubcatalogReference')
|
18045
18258
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -18152,7 +18365,7 @@ module Io
|
|
18152
18365
|
attr_reader :event_id, :timestamp, :organization, :catalog, :subcatalog_id
|
18153
18366
|
|
18154
18367
|
def initialize(incoming={})
|
18155
|
-
super(:
|
18368
|
+
super(:discriminator => Event::Types::SUBCATALOG_UPSERTED)
|
18156
18369
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
18157
18370
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :catalog, :subcatalog_id], 'SubcatalogUpserted')
|
18158
18371
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -18344,7 +18557,7 @@ module Io
|
|
18344
18557
|
attr_reader :event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key, :subcatalog_id
|
18345
18558
|
|
18346
18559
|
def initialize(incoming={})
|
18347
|
-
super(:
|
18560
|
+
super(:discriminator => Event::Types::TARGETING_ITEM_DELETED)
|
18348
18561
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
18349
18562
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key], 'TargetingItemDeleted')
|
18350
18563
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -18387,7 +18600,7 @@ module Io
|
|
18387
18600
|
attr_reader :event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key, :subcatalog_id
|
18388
18601
|
|
18389
18602
|
def initialize(incoming={})
|
18390
|
-
super(:
|
18603
|
+
super(:discriminator => Event::Types::TARGETING_ITEM_UPSERTED)
|
18391
18604
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
18392
18605
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item_number, :q, :outcome_id, :catalog_id, :key], 'TargetingItemUpserted')
|
18393
18606
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -19318,7 +19531,7 @@ module Io
|
|
19318
19531
|
attr_reader :event_id, :timestamp, :organization, :address, :carrier, :carrier_timestamp, :carrier_tracking_number, :flow_tracking_number, :status, :delivery_estimate, :description, :order_number
|
19319
19532
|
|
19320
19533
|
def initialize(incoming={})
|
19321
|
-
super(:
|
19534
|
+
super(:discriminator => Event::Types::TRACKING_LABEL_EVENT_UPSERTED)
|
19322
19535
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19323
19536
|
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :address, :carrier, :carrier_timestamp, :carrier_tracking_number, :flow_tracking_number, :status], 'TrackingLabelEventUpserted')
|
19324
19537
|
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
@@ -19569,7 +19782,7 @@ module Io
|
|
19569
19782
|
attr_reader :id, :email, :name, :status
|
19570
19783
|
|
19571
19784
|
def initialize(incoming={})
|
19572
|
-
super(:
|
19785
|
+
super(:discriminator => ExpandableUser::Types::USER)
|
19573
19786
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19574
19787
|
HttpClient::Preconditions.require_keys(opts, [:id, :name], 'User')
|
19575
19788
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
@@ -19658,7 +19871,7 @@ module Io
|
|
19658
19871
|
attr_reader :id
|
19659
19872
|
|
19660
19873
|
def initialize(incoming={})
|
19661
|
-
super(:
|
19874
|
+
super(:discriminator => ExpandableUser::Types::USER_REFERENCE)
|
19662
19875
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19663
19876
|
HttpClient::Preconditions.require_keys(opts, [:id], 'UserReference')
|
19664
19877
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|