flowcommerce 0.2.38 → 0.2.39
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/flow_commerce/flow_api_v0_client.rb +20 -127
- metadata +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
2
|
# Service version: 0.3.65
|
3
|
-
# apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.
|
3
|
+
# apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.89/ruby_client
|
4
4
|
|
5
5
|
require 'cgi'
|
6
6
|
require 'net/http'
|
@@ -25,7 +25,7 @@ module Io
|
|
25
25
|
|
26
26
|
BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
|
27
27
|
NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
|
28
|
-
USER_AGENT = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.
|
28
|
+
USER_AGENT = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.89/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
29
|
VERSION = '0.3.65' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
@@ -536,11 +536,10 @@ module Io
|
|
536
536
|
end
|
537
537
|
|
538
538
|
# Upsert a global restriction
|
539
|
-
def put_catalog_and_restrictions_by_number(organization, number
|
539
|
+
def put_catalog_and_restrictions_by_number(organization, number)
|
540
540
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
541
541
|
HttpClient::Preconditions.assert_class('number', number, String)
|
542
|
-
|
543
|
-
r = @client.request("/#{CGI.escape(organization)}/catalog/restrictions/#{CGI.escape(number)}").with_json(hash.to_json).put
|
542
|
+
r = @client.request("/#{CGI.escape(organization)}/catalog/restrictions/#{CGI.escape(number)}").put
|
544
543
|
::Io::Flow::V0::Models::Item.new(r)
|
545
544
|
end
|
546
545
|
|
@@ -1096,11 +1095,10 @@ module Io
|
|
1096
1095
|
# expired (and a new quote could not be automatically recreated for a lower or
|
1097
1096
|
# same price). This method is idempotent - submitting an order a second time
|
1098
1097
|
# has no effect.
|
1099
|
-
def put_submissions_by_number(organization, number
|
1098
|
+
def put_submissions_by_number(organization, number)
|
1100
1099
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
1101
1100
|
HttpClient::Preconditions.assert_class('number', number, String)
|
1102
|
-
|
1103
|
-
r = @client.request("/#{CGI.escape(organization)}/orders/#{CGI.escape(number)}/submissions").with_json(hash.to_json).put
|
1101
|
+
r = @client.request("/#{CGI.escape(organization)}/orders/#{CGI.escape(number)}/submissions").put
|
1104
1102
|
::Io::Flow::V0::Models::Order.new(r)
|
1105
1103
|
end
|
1106
1104
|
|
@@ -1544,12 +1542,11 @@ module Io
|
|
1544
1542
|
end
|
1545
1543
|
|
1546
1544
|
# Add exclusion
|
1547
|
-
def put_exclusions_by_subcatalog_id_and_number(organization, subcatalog_id, number
|
1545
|
+
def put_exclusions_by_subcatalog_id_and_number(organization, subcatalog_id, number)
|
1548
1546
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
1549
1547
|
HttpClient::Preconditions.assert_class('subcatalog_id', subcatalog_id, String)
|
1550
1548
|
HttpClient::Preconditions.assert_class('number', number, String)
|
1551
|
-
|
1552
|
-
r = @client.request("/#{CGI.escape(organization)}/catalog/subcatalogs/#{CGI.escape(subcatalog_id)}/exclusions/#{CGI.escape(number)}").with_json(hash.to_json).put
|
1549
|
+
r = @client.request("/#{CGI.escape(organization)}/catalog/subcatalogs/#{CGI.escape(subcatalog_id)}/exclusions/#{CGI.escape(number)}").put
|
1553
1550
|
::Io::Flow::V0::Models::Item.new(r)
|
1554
1551
|
end
|
1555
1552
|
|
@@ -1646,12 +1643,11 @@ module Io
|
|
1646
1643
|
end
|
1647
1644
|
|
1648
1645
|
# Add inclusion
|
1649
|
-
def put_inclusions_by_subcatalog_id_and_number(organization, subcatalog_id, number
|
1646
|
+
def put_inclusions_by_subcatalog_id_and_number(organization, subcatalog_id, number)
|
1650
1647
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
1651
1648
|
HttpClient::Preconditions.assert_class('subcatalog_id', subcatalog_id, String)
|
1652
1649
|
HttpClient::Preconditions.assert_class('number', number, String)
|
1653
|
-
|
1654
|
-
r = @client.request("/#{CGI.escape(organization)}/catalog/subcatalogs/#{CGI.escape(subcatalog_id)}/inclusions/#{CGI.escape(number)}").with_json(hash.to_json).put
|
1650
|
+
r = @client.request("/#{CGI.escape(organization)}/catalog/subcatalogs/#{CGI.escape(subcatalog_id)}/inclusions/#{CGI.escape(number)}").put
|
1655
1651
|
::Io::Flow::V0::Models::Item.new(r)
|
1656
1652
|
end
|
1657
1653
|
|
@@ -3772,11 +3768,10 @@ module Io
|
|
3772
3768
|
|
3773
3769
|
# Redeliver a webhook request. This created a new webhook request to requeue
|
3774
3770
|
# delivery
|
3775
|
-
def post_requests_by_id(organization, id
|
3771
|
+
def post_requests_by_id(organization, id)
|
3776
3772
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
3777
3773
|
HttpClient::Preconditions.assert_class('id', id, String)
|
3778
|
-
|
3779
|
-
r = @client.request("/#{CGI.escape(organization)}/webhook/deliveries/#{CGI.escape(id)}/requests").with_json(hash.to_json).post
|
3774
|
+
r = @client.request("/#{CGI.escape(organization)}/webhook/deliveries/#{CGI.escape(id)}/requests").post
|
3780
3775
|
::Io::Flow::V0::Models::WebhookRequest.new(r)
|
3781
3776
|
end
|
3782
3777
|
|
@@ -4052,10 +4047,9 @@ module Io
|
|
4052
4047
|
@client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
|
4053
4048
|
end
|
4054
4049
|
|
4055
|
-
def post_by_token(token
|
4050
|
+
def post_by_token(token)
|
4056
4051
|
HttpClient::Preconditions.assert_class('token', token, String)
|
4057
|
-
|
4058
|
-
r = @client.request("/users/emails/verifications/#{CGI.escape(token)}").with_json(hash.to_json).post
|
4052
|
+
r = @client.request("/users/emails/verifications/#{CGI.escape(token)}").post
|
4059
4053
|
::Io::Flow::V0::Models::EmailVerification.new(r)
|
4060
4054
|
end
|
4061
4055
|
|
@@ -4304,10 +4298,9 @@ module Io
|
|
4304
4298
|
# Invitations are one time use only - you will get a validation error if the
|
4305
4299
|
# invitation has previously been accepted or if the user's email addresses do
|
4306
4300
|
# not match the email on the invite.
|
4307
|
-
def put_tokens_by_token(token
|
4301
|
+
def put_tokens_by_token(token)
|
4308
4302
|
HttpClient::Preconditions.assert_class('token', token, String)
|
4309
|
-
|
4310
|
-
r = @client.request("/invitations/tokens/#{CGI.escape(token)}").with_json(hash.to_json).put
|
4303
|
+
r = @client.request("/invitations/tokens/#{CGI.escape(token)}").put
|
4311
4304
|
::Io::Flow::V0::Models::Membership.new(r)
|
4312
4305
|
end
|
4313
4306
|
|
@@ -4766,11 +4759,10 @@ module Io
|
|
4766
4759
|
@client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
|
4767
4760
|
end
|
4768
4761
|
|
4769
|
-
def post_by_name(organization, name
|
4762
|
+
def post_by_name(organization, name)
|
4770
4763
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4771
4764
|
HttpClient::Preconditions.assert_class('name', name, String)
|
4772
|
-
|
4773
|
-
r = @client.request("/#{CGI.escape(organization)}/uploads/#{CGI.escape(name)}").with_json(hash.to_json).post
|
4765
|
+
r = @client.request("/#{CGI.escape(organization)}/uploads/#{CGI.escape(name)}").post
|
4774
4766
|
::Io::Flow::V0::Models::Upload.new(r)
|
4775
4767
|
end
|
4776
4768
|
|
@@ -5465,7 +5457,6 @@ module Io
|
|
5465
5457
|
REFUND_UPSERTED = 'refund_upserted' unless defined?(REFUND_UPSERTED)
|
5466
5458
|
REFUND_UPSERTED_V2 = 'refund_upserted_v2' unless defined?(REFUND_UPSERTED_V2)
|
5467
5459
|
REVERSAL_UPSERTED = 'reversal_upserted' unless defined?(REVERSAL_UPSERTED)
|
5468
|
-
CATALOG_ITEM_COUNTRY_STATES_PUBLISHED = 'catalog_item_country_states_published' unless defined?(CATALOG_ITEM_COUNTRY_STATES_PUBLISHED)
|
5469
5460
|
ORGANIZATION_RATES_PUBLISHED = 'organization_rates_published' unless defined?(ORGANIZATION_RATES_PUBLISHED)
|
5470
5461
|
ORGANIZATION_COUNTRIES_PUBLISHED = 'organization_countries_published' unless defined?(ORGANIZATION_COUNTRIES_PUBLISHED)
|
5471
5462
|
RETURN_UPSERTED = 'return_upserted' unless defined?(RETURN_UPSERTED)
|
@@ -5484,7 +5475,7 @@ module Io
|
|
5484
5475
|
end
|
5485
5476
|
|
5486
5477
|
def subtype_to_hash
|
5487
|
-
raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, allocation_deleted, allocation_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_identifier_deleted, order_identifier_upserted, pricing_deleted, pricing_upserted, tier_upserted, tier_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, harmonized_landed_cost_upserted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, membership_upserted, membership_deleted, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted, card_authorization_upserted_v2, online_authorization_upserted, online_authorization_upserted_v2, capture_upserted, capture_upserted_v2, card_upserted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted, refund_upserted_v2, reversal_upserted,
|
5478
|
+
raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, allocation_deleted, allocation_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_identifier_deleted, order_identifier_upserted, pricing_deleted, pricing_upserted, tier_upserted, tier_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, harmonized_landed_cost_upserted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, membership_upserted, membership_deleted, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted, card_authorization_upserted_v2, online_authorization_upserted, online_authorization_upserted_v2, capture_upserted, capture_upserted_v2, card_upserted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted, refund_upserted_v2, reversal_upserted, organization_rates_published, organization_countries_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
|
5488
5479
|
end
|
5489
5480
|
|
5490
5481
|
def to_hash
|
@@ -5570,7 +5561,6 @@ module Io
|
|
5570
5561
|
when Types::REFUND_UPSERTED; RefundUpserted.new(hash)
|
5571
5562
|
when Types::REFUND_UPSERTED_V2; RefundUpsertedV2.new(hash)
|
5572
5563
|
when Types::REVERSAL_UPSERTED; ReversalUpserted.new(hash)
|
5573
|
-
when Types::CATALOG_ITEM_COUNTRY_STATES_PUBLISHED; CatalogItemCountryStatesPublished.new(hash)
|
5574
5564
|
when Types::ORGANIZATION_RATES_PUBLISHED; OrganizationRatesPublished.new(hash)
|
5575
5565
|
when Types::ORGANIZATION_COUNTRIES_PUBLISHED; OrganizationCountriesPublished.new(hash)
|
5576
5566
|
when Types::RETURN_UPSERTED; ReturnUpserted.new(hash)
|
@@ -8417,7 +8407,7 @@ module Io
|
|
8417
8407
|
end
|
8418
8408
|
|
8419
8409
|
def EventType.ALL
|
8420
|
-
@@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.allocation_deleted, EventType.allocation_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.pricing_deleted, EventType.pricing_upserted, EventType.tier_upserted, EventType.tier_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.harmonized_landed_cost_upserted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.membership_upserted, EventType.membership_deleted, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted, EventType.online_authorization_upserted_v2, EventType.capture_upserted, EventType.capture_upserted_v2, EventType.card_upserted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted, EventType.refund_upserted_v2, EventType.reversal_upserted, EventType.
|
8410
|
+
@@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.allocation_deleted, EventType.allocation_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.pricing_deleted, EventType.pricing_upserted, EventType.tier_upserted, EventType.tier_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.harmonized_landed_cost_upserted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.membership_upserted, EventType.membership_deleted, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted, EventType.online_authorization_upserted_v2, EventType.capture_upserted, EventType.capture_upserted_v2, EventType.card_upserted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted, EventType.refund_upserted_v2, EventType.reversal_upserted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
|
8421
8411
|
end
|
8422
8412
|
|
8423
8413
|
def EventType.attribute_upserted
|
@@ -8708,10 +8698,6 @@ module Io
|
|
8708
8698
|
@@_reversal_upserted ||= EventType.new('reversal_upserted')
|
8709
8699
|
end
|
8710
8700
|
|
8711
|
-
def EventType.catalog_item_country_states_published
|
8712
|
-
@@_catalog_item_country_states_published ||= EventType.new('catalog_item_country_states_published')
|
8713
|
-
end
|
8714
|
-
|
8715
8701
|
def EventType.organization_rates_published
|
8716
8702
|
@@_organization_rates_published ||= EventType.new('organization_rates_published')
|
8717
8703
|
end
|
@@ -14351,99 +14337,6 @@ module Io
|
|
14351
14337
|
|
14352
14338
|
end
|
14353
14339
|
|
14354
|
-
class CatalogItemCountryStates
|
14355
|
-
|
14356
|
-
attr_reader :country, :statuses
|
14357
|
-
|
14358
|
-
def initialize(incoming={})
|
14359
|
-
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14360
|
-
HttpClient::Preconditions.require_keys(opts, [:country, :statuses], 'CatalogItemCountryStates')
|
14361
|
-
@country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
|
14362
|
-
@statuses = HttpClient::Preconditions.assert_class('statuses', opts.delete(:statuses), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x)) }
|
14363
|
-
end
|
14364
|
-
|
14365
|
-
def to_json
|
14366
|
-
JSON.dump(to_hash)
|
14367
|
-
end
|
14368
|
-
|
14369
|
-
def copy(incoming={})
|
14370
|
-
CatalogItemCountryStates.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
14371
|
-
end
|
14372
|
-
|
14373
|
-
def to_hash
|
14374
|
-
{
|
14375
|
-
:country => country,
|
14376
|
-
:statuses => statuses.map { |o| o.value }
|
14377
|
-
}
|
14378
|
-
end
|
14379
|
-
|
14380
|
-
end
|
14381
|
-
|
14382
|
-
class CatalogItemCountryStatesData
|
14383
|
-
|
14384
|
-
attr_reader :item_number, :countries
|
14385
|
-
|
14386
|
-
def initialize(incoming={})
|
14387
|
-
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14388
|
-
HttpClient::Preconditions.require_keys(opts, [:item_number, :countries], 'CatalogItemCountryStatesData')
|
14389
|
-
@item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
|
14390
|
-
@countries = HttpClient::Preconditions.assert_class('countries', opts.delete(:countries), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::CatalogItemCountryStates) ? x : ::Io::Flow::V0::Models::CatalogItemCountryStates.new(x)) }
|
14391
|
-
end
|
14392
|
-
|
14393
|
-
def to_json
|
14394
|
-
JSON.dump(to_hash)
|
14395
|
-
end
|
14396
|
-
|
14397
|
-
def copy(incoming={})
|
14398
|
-
CatalogItemCountryStatesData.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
14399
|
-
end
|
14400
|
-
|
14401
|
-
def to_hash
|
14402
|
-
{
|
14403
|
-
:item_number => item_number,
|
14404
|
-
:countries => countries.map { |o| o.to_hash }
|
14405
|
-
}
|
14406
|
-
end
|
14407
|
-
|
14408
|
-
end
|
14409
|
-
|
14410
|
-
# Represents a catalog item and a list of countries with the item's availability
|
14411
|
-
# in each. This is a bulk event - meaning any time an individual item status
|
14412
|
-
# changes, we publish the new complete list of the item's country availability
|
14413
|
-
# statuses.
|
14414
|
-
class CatalogItemCountryStatesPublished < Event
|
14415
|
-
|
14416
|
-
attr_reader :event_id, :timestamp, :organization, :data
|
14417
|
-
|
14418
|
-
def initialize(incoming={})
|
14419
|
-
super(:discriminator => Event::Types::CATALOG_ITEM_COUNTRY_STATES_PUBLISHED)
|
14420
|
-
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14421
|
-
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :data], 'CatalogItemCountryStatesPublished')
|
14422
|
-
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
14423
|
-
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
14424
|
-
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
14425
|
-
@data = (x = opts.delete(:data); x.is_a?(::Io::Flow::V0::Models::CatalogItemCountryStatesData) ? x : ::Io::Flow::V0::Models::CatalogItemCountryStatesData.new(x))
|
14426
|
-
end
|
14427
|
-
|
14428
|
-
def to_json
|
14429
|
-
JSON.dump(to_hash)
|
14430
|
-
end
|
14431
|
-
|
14432
|
-
def copy(incoming={})
|
14433
|
-
CatalogItemCountryStatesPublished.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
14434
|
-
end
|
14435
|
-
|
14436
|
-
def subtype_to_hash
|
14437
|
-
{
|
14438
|
-
:event_id => event_id,
|
14439
|
-
:timestamp => timestamp,
|
14440
|
-
:organization => organization,
|
14441
|
-
:data => data.to_hash
|
14442
|
-
}
|
14443
|
-
end
|
14444
|
-
|
14445
|
-
end
|
14446
|
-
|
14447
14340
|
class CatalogItemDeleted < Event
|
14448
14341
|
|
14449
14342
|
attr_reader :event_id, :timestamp, :organization, :number, :catalog
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flowcommerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.39
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|