flowcommerce 0.2.69 → 0.2.70
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flow_commerce/flow_api_v0_client.rb +372 -69
- 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: 344b115ecd577331f251bde2fd751f6e19ac7865
|
4
|
+
data.tar.gz: 51e7376275bbb8d339d22db3978a77214c57d37a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24af73699ce2c351483d8c8efb094b6f6eab928abfa52202a283dd17946d17b0a19948849fd57029d1658e4b53002d21f883fdc70a22a57b52b97bddc3b1801d
|
7
|
+
data.tar.gz: cd69eba2a9db6dbd46afddacd9728419b9ec7e5d22496da3985f74a82523c952d0a8e67c7744f4d3a556ddf642077554b8caf46a04ce16907f4814f86ceecd5c
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
2
|
# Service version: 0.6.19
|
3
|
-
# apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.
|
3
|
+
# apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.39/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.14.3 app.apibuilder.io/flow/api/0.6.
|
28
|
+
USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.39/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
29
|
VERSION = '0.6.19' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
@@ -827,6 +827,7 @@ module Io
|
|
827
827
|
:subcatalog => (x = opts.delete(:subcatalog); x.nil? ? nil : HttpClient::Preconditions.assert_class('subcatalog', x, String)),
|
828
828
|
:ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
|
829
829
|
:status => (x = opts.delete(:status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExperienceStatus) ? x : ::Io::Flow::V0::Models::ExperienceStatus.apply(x)).value),
|
830
|
+
:shipping_configuration_key => (x = opts.delete(:shipping_configuration_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('shipping_configuration_key', x, String)),
|
830
831
|
:limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
|
831
832
|
:offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
|
832
833
|
:sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "position" : x), String)
|
@@ -4201,11 +4202,15 @@ module Io
|
|
4201
4202
|
::Io::Flow::V0::Models::ShippingConfiguration.new(r)
|
4202
4203
|
end
|
4203
4204
|
|
4204
|
-
def put_by_key(organization, key, shipping_configuration_form)
|
4205
|
+
def put_by_key(organization, key, shipping_configuration_form, incoming={})
|
4205
4206
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4206
4207
|
HttpClient::Preconditions.assert_class('key', key, String)
|
4208
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4209
|
+
query = {
|
4210
|
+
:expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) })
|
4211
|
+
}.delete_if { |k, v| v.nil? }
|
4207
4212
|
(x = shipping_configuration_form; x.is_a?(::Io::Flow::V0::Models::ShippingConfigurationForm) ? x : ::Io::Flow::V0::Models::ShippingConfigurationForm.new(x))
|
4208
|
-
r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}").with_json(shipping_configuration_form.to_json).put
|
4213
|
+
r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}").with_query(query).with_json(shipping_configuration_form.to_json).put
|
4209
4214
|
::Io::Flow::V0::Models::ShippingConfiguration.new(r)
|
4210
4215
|
end
|
4211
4216
|
|
@@ -4232,11 +4237,15 @@ module Io
|
|
4232
4237
|
r.map { |x| ::Io::Flow::V0::Models::ShippingLane.new(x) }
|
4233
4238
|
end
|
4234
4239
|
|
4235
|
-
def post_lanes_by_key(organization, key, shipping_lane_form)
|
4240
|
+
def post_lanes_by_key(organization, key, shipping_lane_form, incoming={})
|
4236
4241
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4237
4242
|
HttpClient::Preconditions.assert_class('key', key, String)
|
4243
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4244
|
+
query = {
|
4245
|
+
:expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) })
|
4246
|
+
}.delete_if { |k, v| v.nil? }
|
4238
4247
|
(x = shipping_lane_form; x.is_a?(::Io::Flow::V0::Models::ShippingLaneForm) ? x : ::Io::Flow::V0::Models::ShippingLaneForm.new(x))
|
4239
|
-
r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}/lanes").with_json(shipping_lane_form.to_json).post
|
4248
|
+
r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}/lanes").with_query(query).with_json(shipping_lane_form.to_json).post
|
4240
4249
|
::Io::Flow::V0::Models::ShippingLane.new(r)
|
4241
4250
|
end
|
4242
4251
|
|
@@ -4252,12 +4261,16 @@ module Io
|
|
4252
4261
|
::Io::Flow::V0::Models::ShippingLane.new(r)
|
4253
4262
|
end
|
4254
4263
|
|
4255
|
-
def put_lanes_by_key_and_id(organization, key, id, shipping_lane_form)
|
4264
|
+
def put_lanes_by_key_and_id(organization, key, id, shipping_lane_form, incoming={})
|
4256
4265
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4257
4266
|
HttpClient::Preconditions.assert_class('key', key, String)
|
4258
4267
|
HttpClient::Preconditions.assert_class('id', id, String)
|
4268
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
4269
|
+
query = {
|
4270
|
+
:expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) })
|
4271
|
+
}.delete_if { |k, v| v.nil? }
|
4259
4272
|
(x = shipping_lane_form; x.is_a?(::Io::Flow::V0::Models::ShippingLaneForm) ? x : ::Io::Flow::V0::Models::ShippingLaneForm.new(x))
|
4260
|
-
r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}/lanes/#{CGI.escape(id)}").with_json(shipping_lane_form.to_json).put
|
4273
|
+
r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}/lanes/#{CGI.escape(id)}").with_query(query).with_json(shipping_lane_form.to_json).put
|
4261
4274
|
::Io::Flow::V0::Models::ShippingLane.new(r)
|
4262
4275
|
end
|
4263
4276
|
|
@@ -6629,6 +6642,66 @@ module Io
|
|
6629
6642
|
|
6630
6643
|
end
|
6631
6644
|
|
6645
|
+
class ConfirmationDetails
|
6646
|
+
|
6647
|
+
module Types
|
6648
|
+
DIRECT_DEBIT = 'direct_debit' unless defined?(DIRECT_DEBIT)
|
6649
|
+
end
|
6650
|
+
|
6651
|
+
attr_reader :discriminator
|
6652
|
+
|
6653
|
+
def initialize(incoming={})
|
6654
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
6655
|
+
HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ConfirmationDetails')
|
6656
|
+
@discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
|
6657
|
+
end
|
6658
|
+
|
6659
|
+
def subtype_to_hash
|
6660
|
+
raise 'Cannot serialize an instance of confirmation_details directly - must use one of the specific types: direct_debit'
|
6661
|
+
end
|
6662
|
+
|
6663
|
+
def to_hash
|
6664
|
+
subtype_to_hash.merge(:discriminator => @discriminator)
|
6665
|
+
end
|
6666
|
+
|
6667
|
+
def ConfirmationDetails.from_json(hash)
|
6668
|
+
HttpClient::Preconditions.assert_class('hash', hash, Hash)
|
6669
|
+
discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
|
6670
|
+
if discriminator.empty?
|
6671
|
+
raise "Union type[confirmation_details] requires a field named 'discriminator'"
|
6672
|
+
end
|
6673
|
+
case discriminator
|
6674
|
+
when Types::DIRECT_DEBIT; DirectDebit.new(hash)
|
6675
|
+
else ConfirmationDetailsUndefinedType.new(:discriminator => discriminator)
|
6676
|
+
end
|
6677
|
+
end
|
6678
|
+
|
6679
|
+
end
|
6680
|
+
|
6681
|
+
class ConfirmationDetailsUndefinedType < ConfirmationDetails
|
6682
|
+
|
6683
|
+
attr_reader :name
|
6684
|
+
|
6685
|
+
def initialize(incoming={})
|
6686
|
+
super(:discriminator => 'undefined_type')
|
6687
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
6688
|
+
@name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
|
6689
|
+
end
|
6690
|
+
|
6691
|
+
def subtype_to_hash
|
6692
|
+
raise 'Unable to serialize undefined type to json'
|
6693
|
+
end
|
6694
|
+
|
6695
|
+
def copy(incoming={})
|
6696
|
+
raise 'Operation not supported for undefined type'
|
6697
|
+
end
|
6698
|
+
|
6699
|
+
def to_hash
|
6700
|
+
raise 'Operation not supported for undefined type'
|
6701
|
+
end
|
6702
|
+
|
6703
|
+
end
|
6704
|
+
|
6632
6705
|
class ConsumerInvoiceLine
|
6633
6706
|
|
6634
6707
|
module Types
|
@@ -7025,6 +7098,8 @@ module Io
|
|
7025
7098
|
HARMONIZED_ITEM_DELETED = 'harmonized_item_deleted' unless defined?(HARMONIZED_ITEM_DELETED)
|
7026
7099
|
HARMONIZED_LANDED_COST_UPSERTED = 'harmonized_landed_cost_upserted' unless defined?(HARMONIZED_LANDED_COST_UPSERTED)
|
7027
7100
|
FULLY_HARMONIZED_ITEM_UPSERTED = 'fully_harmonized_item_upserted' unless defined?(FULLY_HARMONIZED_ITEM_UPSERTED)
|
7101
|
+
EXPERIENCE_INVENTORY_ITEM_UPSERTED = 'experience_inventory_item_upserted' unless defined?(EXPERIENCE_INVENTORY_ITEM_UPSERTED)
|
7102
|
+
EXPERIENCE_INVENTORY_ITEM_DELETED = 'experience_inventory_item_deleted' unless defined?(EXPERIENCE_INVENTORY_ITEM_DELETED)
|
7028
7103
|
RULE_UPSERTED = 'rule_upserted' unless defined?(RULE_UPSERTED)
|
7029
7104
|
RULE_DELETED = 'rule_deleted' unless defined?(RULE_DELETED)
|
7030
7105
|
SERIAL_UPSERTED = 'serial_upserted' unless defined?(SERIAL_UPSERTED)
|
@@ -7097,7 +7172,7 @@ module Io
|
|
7097
7172
|
end
|
7098
7173
|
|
7099
7174
|
def subtype_to_hash
|
7100
|
-
raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, available_promotions_upserted_v2, available_promotions_deleted_v2, allocation_deleted_v2, allocation_upserted_v2, currency_format_deleted, currency_format_upserted, experience_deleted, experience_upserted, experience_deleted_v2, experience_upserted_v2, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_deleted_v2, order_upserted_v2, order_identifier_deleted, order_identifier_upserted, order_identifier_deleted_v2, order_identifier_upserted_v2, pricing_deleted, pricing_upserted, fraud_status_changed, center_upserted, center_deleted, tier_upserted, tier_deleted, delivery_option_upserted, delivery_option_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_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, fully_harmonized_item_upserted, rule_upserted, rule_deleted, serial_upserted, serial_deleted, 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, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, online_authorization_upserted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_capture_upserted_v2, reversal_upserted, reversal_deleted, capture_identifier_upserted, capture_identifier_deleted, refund_identifier_upserted, refund_identifier_deleted, virtual_card_capture_upserted, virtual_card_capture_deleted, virtual_card_refund_upserted, virtual_card_refund_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, organization_countries_published, organization_ratecard_transit_windows_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, targeting_item_deleted_v2, tracking_label_event_upserted'
|
7175
|
+
raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, available_promotions_upserted_v2, available_promotions_deleted_v2, allocation_deleted_v2, allocation_upserted_v2, currency_format_deleted, currency_format_upserted, experience_deleted, experience_upserted, experience_deleted_v2, experience_upserted_v2, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_deleted_v2, order_upserted_v2, order_identifier_deleted, order_identifier_upserted, order_identifier_deleted_v2, order_identifier_upserted_v2, pricing_deleted, pricing_upserted, fraud_status_changed, center_upserted, center_deleted, tier_upserted, tier_deleted, delivery_option_upserted, delivery_option_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_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, fully_harmonized_item_upserted, experience_inventory_item_upserted, experience_inventory_item_deleted, rule_upserted, rule_deleted, serial_upserted, serial_deleted, 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, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, online_authorization_upserted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_capture_upserted_v2, reversal_upserted, reversal_deleted, capture_identifier_upserted, capture_identifier_deleted, refund_identifier_upserted, refund_identifier_deleted, virtual_card_capture_upserted, virtual_card_capture_deleted, virtual_card_refund_upserted, virtual_card_refund_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, organization_countries_published, organization_ratecard_transit_windows_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, targeting_item_deleted_v2, tracking_label_event_upserted'
|
7101
7176
|
end
|
7102
7177
|
|
7103
7178
|
def to_hash
|
@@ -7185,6 +7260,8 @@ module Io
|
|
7185
7260
|
when Types::HARMONIZED_ITEM_DELETED; HarmonizedItemDeleted.new(hash)
|
7186
7261
|
when Types::HARMONIZED_LANDED_COST_UPSERTED; HarmonizedLandedCostUpserted.new(hash)
|
7187
7262
|
when Types::FULLY_HARMONIZED_ITEM_UPSERTED; FullyHarmonizedItemUpserted.new(hash)
|
7263
|
+
when Types::EXPERIENCE_INVENTORY_ITEM_UPSERTED; ExperienceInventoryItemUpserted.new(hash)
|
7264
|
+
when Types::EXPERIENCE_INVENTORY_ITEM_DELETED; ExperienceInventoryItemDeleted.new(hash)
|
7188
7265
|
when Types::RULE_UPSERTED; RuleUpserted.new(hash)
|
7189
7266
|
when Types::RULE_DELETED; RuleDeleted.new(hash)
|
7190
7267
|
when Types::SERIAL_UPSERTED; SerialUpserted.new(hash)
|
@@ -11614,7 +11691,7 @@ module Io
|
|
11614
11691
|
end
|
11615
11692
|
|
11616
11693
|
def EventType.ALL
|
11617
|
-
@@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.attribute_upserted_v2, EventType.attribute_deleted_v2, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.consumer_invoice_upserted, EventType.consumer_invoice_deleted, EventType.credit_memo_upserted, EventType.credit_memo_deleted, EventType.crossdock_shipment_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.available_promotions_upserted_v2, EventType.available_promotions_deleted_v2, EventType.allocation_deleted_v2, EventType.allocation_upserted_v2, EventType.currency_format_deleted, EventType.currency_format_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.experience_deleted_v2, EventType.experience_upserted_v2, EventType.experience_price_book_mapping_deleted, EventType.experience_price_book_mapping_upserted, EventType.experience_logistics_settings_upserted, EventType.experience_logistics_settings_deleted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_deleted_v2, EventType.order_upserted_v2, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.order_identifier_deleted_v2, EventType.order_identifier_upserted_v2, EventType.pricing_deleted, EventType.pricing_upserted, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_deleted, EventType.tier_upserted, EventType.tier_deleted, EventType.delivery_option_upserted, EventType.delivery_option_deleted, EventType.shipping_configuration_upserted, EventType.shipping_configuration_deleted, EventType.tier_upserted_v2, EventType.tier_deleted_v2, EventType.shipping_lane_upserted, EventType.shipping_lane_deleted, EventType.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.fully_harmonized_item_upserted, EventType.rule_upserted, EventType.rule_deleted, EventType.serial_upserted, EventType.serial_deleted, 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.membership_upserted_v2, EventType.membership_deleted_v2, EventType.organization_upserted, EventType.organization_deleted, EventType.organization_upserted_v2, EventType.organization_deleted_v2, EventType.organization_short_id_upserted, EventType.organization_short_id_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted_v2, EventType.capture_upserted_v2, EventType.capture_deleted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted_v2, EventType.refund_capture_upserted_v2, EventType.reversal_upserted, EventType.reversal_deleted, EventType.capture_identifier_upserted, EventType.capture_identifier_deleted, EventType.refund_identifier_upserted, EventType.refund_identifier_deleted, EventType.virtual_card_capture_upserted, EventType.virtual_card_capture_deleted, EventType.virtual_card_refund_upserted, EventType.virtual_card_refund_deleted, EventType.price_book_upserted, EventType.price_book_deleted, EventType.price_book_item_upserted, EventType.price_book_item_deleted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.organization_ratecard_transit_windows_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.targeting_item_deleted_v2, EventType.tracking_label_event_upserted]
|
11694
|
+
@@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.attribute_upserted_v2, EventType.attribute_deleted_v2, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.consumer_invoice_upserted, EventType.consumer_invoice_deleted, EventType.credit_memo_upserted, EventType.credit_memo_deleted, EventType.crossdock_shipment_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.available_promotions_upserted_v2, EventType.available_promotions_deleted_v2, EventType.allocation_deleted_v2, EventType.allocation_upserted_v2, EventType.currency_format_deleted, EventType.currency_format_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.experience_deleted_v2, EventType.experience_upserted_v2, EventType.experience_price_book_mapping_deleted, EventType.experience_price_book_mapping_upserted, EventType.experience_logistics_settings_upserted, EventType.experience_logistics_settings_deleted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_deleted_v2, EventType.order_upserted_v2, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.order_identifier_deleted_v2, EventType.order_identifier_upserted_v2, EventType.pricing_deleted, EventType.pricing_upserted, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_deleted, EventType.tier_upserted, EventType.tier_deleted, EventType.delivery_option_upserted, EventType.delivery_option_deleted, EventType.shipping_configuration_upserted, EventType.shipping_configuration_deleted, EventType.tier_upserted_v2, EventType.tier_deleted_v2, EventType.shipping_lane_upserted, EventType.shipping_lane_deleted, EventType.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.fully_harmonized_item_upserted, EventType.experience_inventory_item_upserted, EventType.experience_inventory_item_deleted, EventType.rule_upserted, EventType.rule_deleted, EventType.serial_upserted, EventType.serial_deleted, 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.membership_upserted_v2, EventType.membership_deleted_v2, EventType.organization_upserted, EventType.organization_deleted, EventType.organization_upserted_v2, EventType.organization_deleted_v2, EventType.organization_short_id_upserted, EventType.organization_short_id_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted_v2, EventType.capture_upserted_v2, EventType.capture_deleted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted_v2, EventType.refund_capture_upserted_v2, EventType.reversal_upserted, EventType.reversal_deleted, EventType.capture_identifier_upserted, EventType.capture_identifier_deleted, EventType.refund_identifier_upserted, EventType.refund_identifier_deleted, EventType.virtual_card_capture_upserted, EventType.virtual_card_capture_deleted, EventType.virtual_card_refund_upserted, EventType.virtual_card_refund_deleted, EventType.price_book_upserted, EventType.price_book_deleted, EventType.price_book_item_upserted, EventType.price_book_item_deleted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.organization_ratecard_transit_windows_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.targeting_item_deleted_v2, EventType.tracking_label_event_upserted]
|
11618
11695
|
end
|
11619
11696
|
|
11620
11697
|
def EventType.attribute_upserted
|
@@ -11913,6 +11990,14 @@ module Io
|
|
11913
11990
|
@@_fully_harmonized_item_upserted ||= EventType.new('fully_harmonized_item_upserted')
|
11914
11991
|
end
|
11915
11992
|
|
11993
|
+
def EventType.experience_inventory_item_upserted
|
11994
|
+
@@_experience_inventory_item_upserted ||= EventType.new('experience_inventory_item_upserted')
|
11995
|
+
end
|
11996
|
+
|
11997
|
+
def EventType.experience_inventory_item_deleted
|
11998
|
+
@@_experience_inventory_item_deleted ||= EventType.new('experience_inventory_item_deleted')
|
11999
|
+
end
|
12000
|
+
|
11916
12001
|
def EventType.rule_upserted
|
11917
12002
|
@@_rule_upserted ||= EventType.new('rule_upserted')
|
11918
12003
|
end
|
@@ -12193,6 +12278,59 @@ module Io
|
|
12193
12278
|
|
12194
12279
|
end
|
12195
12280
|
|
12281
|
+
class ExperienceInventoryItemStatus
|
12282
|
+
|
12283
|
+
attr_reader :value
|
12284
|
+
|
12285
|
+
def initialize(value)
|
12286
|
+
@value = HttpClient::Preconditions.assert_class('value', value, String)
|
12287
|
+
end
|
12288
|
+
|
12289
|
+
# Returns the instance of ExperienceInventoryItemStatus for this value, creating a new instance for an unknown value
|
12290
|
+
def ExperienceInventoryItemStatus.apply(value)
|
12291
|
+
if value.instance_of?(ExperienceInventoryItemStatus)
|
12292
|
+
value
|
12293
|
+
else
|
12294
|
+
HttpClient::Preconditions.assert_class_or_nil('value', value, String)
|
12295
|
+
value.nil? ? nil : (from_string(value) || ExperienceInventoryItemStatus.new(value))
|
12296
|
+
end
|
12297
|
+
end
|
12298
|
+
|
12299
|
+
# Returns the instance of ExperienceInventoryItemStatus for this value, or nil if not found
|
12300
|
+
def ExperienceInventoryItemStatus.from_string(value)
|
12301
|
+
HttpClient::Preconditions.assert_class('value', value, String)
|
12302
|
+
ExperienceInventoryItemStatus.ALL.find { |v| v.value == value }
|
12303
|
+
end
|
12304
|
+
|
12305
|
+
def ExperienceInventoryItemStatus.ALL
|
12306
|
+
@@all ||= [ExperienceInventoryItemStatus.available, ExperienceInventoryItemStatus.low, ExperienceInventoryItemStatus.out_of_stock]
|
12307
|
+
end
|
12308
|
+
|
12309
|
+
# Inventory is generally available for purchase
|
12310
|
+
def ExperienceInventoryItemStatus.available
|
12311
|
+
@@_available ||= ExperienceInventoryItemStatus.new('available')
|
12312
|
+
end
|
12313
|
+
|
12314
|
+
# Inventory is low and may soon become unavailable for purchase. Unless there is
|
12315
|
+
# a specific use case for low inventory, it can be treated the same as
|
12316
|
+
# 'available'
|
12317
|
+
def ExperienceInventoryItemStatus.low
|
12318
|
+
@@_low ||= ExperienceInventoryItemStatus.new('low')
|
12319
|
+
end
|
12320
|
+
|
12321
|
+
# There is no inventory available and is not available for purchase. Sample
|
12322
|
+
# actions that can be taken are hiding the item or marking as `sold out` on the
|
12323
|
+
# frontend
|
12324
|
+
def ExperienceInventoryItemStatus.out_of_stock
|
12325
|
+
@@_out_of_stock ||= ExperienceInventoryItemStatus.new('out_of_stock')
|
12326
|
+
end
|
12327
|
+
|
12328
|
+
def to_hash
|
12329
|
+
value
|
12330
|
+
end
|
12331
|
+
|
12332
|
+
end
|
12333
|
+
|
12196
12334
|
class ExperiencePaymentMethodTag < PaymentMethodTag
|
12197
12335
|
|
12198
12336
|
attr_reader :value
|
@@ -13816,7 +13954,7 @@ module Io
|
|
13816
13954
|
@@_duty_deminimis ||= OrderPriceDetailComponentKey.new('duty_deminimis')
|
13817
13955
|
end
|
13818
13956
|
|
13819
|
-
# The
|
13957
|
+
# The duty owed on the price of the order's items, including any added margins
|
13820
13958
|
# and rounding.
|
13821
13959
|
def OrderPriceDetailComponentKey.duties_item_price
|
13822
13960
|
@@_duties_item_price ||= OrderPriceDetailComponentKey.new('duties_item_price')
|
@@ -15578,52 +15716,6 @@ module Io
|
|
15578
15716
|
|
15579
15717
|
end
|
15580
15718
|
|
15581
|
-
class ShopifyVariantInventoryMetafieldStatus
|
15582
|
-
|
15583
|
-
attr_reader :value
|
15584
|
-
|
15585
|
-
def initialize(value)
|
15586
|
-
@value = HttpClient::Preconditions.assert_class('value', value, String)
|
15587
|
-
end
|
15588
|
-
|
15589
|
-
# Returns the instance of ShopifyVariantInventoryMetafieldStatus for this value, creating a new instance for an unknown value
|
15590
|
-
def ShopifyVariantInventoryMetafieldStatus.apply(value)
|
15591
|
-
if value.instance_of?(ShopifyVariantInventoryMetafieldStatus)
|
15592
|
-
value
|
15593
|
-
else
|
15594
|
-
HttpClient::Preconditions.assert_class_or_nil('value', value, String)
|
15595
|
-
value.nil? ? nil : (from_string(value) || ShopifyVariantInventoryMetafieldStatus.new(value))
|
15596
|
-
end
|
15597
|
-
end
|
15598
|
-
|
15599
|
-
# Returns the instance of ShopifyVariantInventoryMetafieldStatus for this value, or nil if not found
|
15600
|
-
def ShopifyVariantInventoryMetafieldStatus.from_string(value)
|
15601
|
-
HttpClient::Preconditions.assert_class('value', value, String)
|
15602
|
-
ShopifyVariantInventoryMetafieldStatus.ALL.find { |v| v.value == value }
|
15603
|
-
end
|
15604
|
-
|
15605
|
-
def ShopifyVariantInventoryMetafieldStatus.ALL
|
15606
|
-
@@all ||= [ShopifyVariantInventoryMetafieldStatus.available, ShopifyVariantInventoryMetafieldStatus.low, ShopifyVariantInventoryMetafieldStatus.out_of_stock]
|
15607
|
-
end
|
15608
|
-
|
15609
|
-
def ShopifyVariantInventoryMetafieldStatus.available
|
15610
|
-
@@_available ||= ShopifyVariantInventoryMetafieldStatus.new('available')
|
15611
|
-
end
|
15612
|
-
|
15613
|
-
def ShopifyVariantInventoryMetafieldStatus.low
|
15614
|
-
@@_low ||= ShopifyVariantInventoryMetafieldStatus.new('low')
|
15615
|
-
end
|
15616
|
-
|
15617
|
-
def ShopifyVariantInventoryMetafieldStatus.out_of_stock
|
15618
|
-
@@_out_of_stock ||= ShopifyVariantInventoryMetafieldStatus.new('out_of_stock')
|
15619
|
-
end
|
15620
|
-
|
15621
|
-
def to_hash
|
15622
|
-
value
|
15623
|
-
end
|
15624
|
-
|
15625
|
-
end
|
15626
|
-
|
15627
15719
|
class SortDirection
|
15628
15720
|
|
15629
15721
|
attr_reader :value
|
@@ -18237,6 +18329,58 @@ module Io
|
|
18237
18329
|
|
18238
18330
|
end
|
18239
18331
|
|
18332
|
+
# The b2b invoice represents a transaction between Flow and one of our clients
|
18333
|
+
# (e.g. Flow purchasing inventory to resell to a consumer).
|
18334
|
+
class B2bInvoice
|
18335
|
+
|
18336
|
+
attr_reader :id, :buyer, :seller, :status, :date, :key, :order, :economic_title_location, :center, :destination, :lines, :documents, :attributes
|
18337
|
+
|
18338
|
+
def initialize(incoming={})
|
18339
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
18340
|
+
HttpClient::Preconditions.require_keys(opts, [:id, :buyer, :seller, :status, :date, :key, :order, :economic_title_location, :lines, :documents, :attributes], 'B2bInvoice')
|
18341
|
+
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
18342
|
+
@buyer = (x = opts.delete(:buyer); x.is_a?(::Io::Flow::V0::Models::MerchantOfRecordEntity) ? x : ::Io::Flow::V0::Models::MerchantOfRecordEntity.new(x))
|
18343
|
+
@seller = (x = opts.delete(:seller); x.is_a?(::Io::Flow::V0::Models::MerchantOfRecordEntity) ? x : ::Io::Flow::V0::Models::MerchantOfRecordEntity.new(x))
|
18344
|
+
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceStatus) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceStatus.apply(x))
|
18345
|
+
@date = HttpClient::Preconditions.assert_class('date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:date)), DateTime)
|
18346
|
+
@key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
|
18347
|
+
@order = (x = opts.delete(:order); x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceOrderSummary) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceOrderSummary.new(x))
|
18348
|
+
@economic_title_location = HttpClient::Preconditions.assert_class('economic_title_location', opts.delete(:economic_title_location), String)
|
18349
|
+
@center = (x = opts.delete(:center); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceCenterReference) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceCenterReference.new(x)))
|
18350
|
+
@destination = (x = opts.delete(:destination); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrderAddress) ? x : ::Io::Flow::V0::Models::OrderAddress.new(x)))
|
18351
|
+
@lines = HttpClient::Preconditions.assert_class('lines', opts.delete(:lines), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceLine) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceLine.from_json(x)) }
|
18352
|
+
@documents = HttpClient::Preconditions.assert_class('documents', opts.delete(:documents), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceDocument) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceDocument.new(x)) }
|
18353
|
+
@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 }
|
18354
|
+
end
|
18355
|
+
|
18356
|
+
def to_json
|
18357
|
+
JSON.dump(to_hash)
|
18358
|
+
end
|
18359
|
+
|
18360
|
+
def copy(incoming={})
|
18361
|
+
B2bInvoice.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
18362
|
+
end
|
18363
|
+
|
18364
|
+
def to_hash
|
18365
|
+
{
|
18366
|
+
:id => id,
|
18367
|
+
:buyer => buyer.to_hash,
|
18368
|
+
:seller => seller.to_hash,
|
18369
|
+
:status => status.value,
|
18370
|
+
:date => date,
|
18371
|
+
:key => key,
|
18372
|
+
:order => order.to_hash,
|
18373
|
+
:economic_title_location => economic_title_location,
|
18374
|
+
:center => center.nil? ? nil : center.to_hash,
|
18375
|
+
:destination => destination.nil? ? nil : destination.to_hash,
|
18376
|
+
:lines => lines.map { |o| o.to_hash },
|
18377
|
+
:documents => documents.map { |o| o.to_hash },
|
18378
|
+
:attributes => attributes
|
18379
|
+
}
|
18380
|
+
end
|
18381
|
+
|
18382
|
+
end
|
18383
|
+
|
18240
18384
|
class BillingAddress
|
18241
18385
|
|
18242
18386
|
attr_reader :name, :streets, :city, :province, :postal, :country, :company
|
@@ -22419,6 +22563,36 @@ module Io
|
|
22419
22563
|
|
22420
22564
|
end
|
22421
22565
|
|
22566
|
+
# Represents an online direct debit payment.
|
22567
|
+
class DirectDebit < ConfirmationDetails
|
22568
|
+
|
22569
|
+
attr_reader :routing_number, :last4
|
22570
|
+
|
22571
|
+
def initialize(incoming={})
|
22572
|
+
super(:discriminator => ConfirmationDetails::Types::DIRECT_DEBIT)
|
22573
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
22574
|
+
HttpClient::Preconditions.require_keys(opts, [:routing_number, :last4], 'DirectDebit')
|
22575
|
+
@routing_number = HttpClient::Preconditions.assert_class('routing_number', opts.delete(:routing_number), String)
|
22576
|
+
@last4 = HttpClient::Preconditions.assert_class('last4', opts.delete(:last4), String)
|
22577
|
+
end
|
22578
|
+
|
22579
|
+
def to_json
|
22580
|
+
JSON.dump(to_hash)
|
22581
|
+
end
|
22582
|
+
|
22583
|
+
def copy(incoming={})
|
22584
|
+
DirectDebit.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
22585
|
+
end
|
22586
|
+
|
22587
|
+
def subtype_to_hash
|
22588
|
+
{
|
22589
|
+
:routing_number => routing_number,
|
22590
|
+
:last4 => last4
|
22591
|
+
}
|
22592
|
+
end
|
22593
|
+
|
22594
|
+
end
|
22595
|
+
|
22422
22596
|
class Discount < Promotion
|
22423
22597
|
|
22424
22598
|
attr_reader :id, :code, :label, :price, :attributes
|
@@ -22933,6 +23107,105 @@ module Io
|
|
22933
23107
|
|
22934
23108
|
end
|
22935
23109
|
|
23110
|
+
# Model for status of an item in an experience
|
23111
|
+
class ExperienceInventoryItem
|
23112
|
+
|
23113
|
+
attr_reader :id, :experience, :item, :status
|
23114
|
+
|
23115
|
+
def initialize(incoming={})
|
23116
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
23117
|
+
HttpClient::Preconditions.require_keys(opts, [:id, :experience, :item, :status], 'ExperienceInventoryItem')
|
23118
|
+
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
23119
|
+
@experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::InventoryExperienceReference) ? x : ::Io::Flow::V0::Models::InventoryExperienceReference.new(x))
|
23120
|
+
@item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::ItemReference) ? x : ::Io::Flow::V0::Models::ItemReference.new(x))
|
23121
|
+
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ExperienceInventoryItemStatus) ? x : ::Io::Flow::V0::Models::ExperienceInventoryItemStatus.apply(x))
|
23122
|
+
end
|
23123
|
+
|
23124
|
+
def to_json
|
23125
|
+
JSON.dump(to_hash)
|
23126
|
+
end
|
23127
|
+
|
23128
|
+
def copy(incoming={})
|
23129
|
+
ExperienceInventoryItem.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
23130
|
+
end
|
23131
|
+
|
23132
|
+
def to_hash
|
23133
|
+
{
|
23134
|
+
:id => id,
|
23135
|
+
:experience => experience.to_hash,
|
23136
|
+
:item => item.to_hash,
|
23137
|
+
:status => status.value
|
23138
|
+
}
|
23139
|
+
end
|
23140
|
+
|
23141
|
+
end
|
23142
|
+
|
23143
|
+
class ExperienceInventoryItemDeleted < Event
|
23144
|
+
|
23145
|
+
attr_reader :event_id, :timestamp, :organization_id, :experience_inventory_item
|
23146
|
+
|
23147
|
+
def initialize(incoming={})
|
23148
|
+
super(:discriminator => Event::Types::EXPERIENCE_INVENTORY_ITEM_DELETED)
|
23149
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
23150
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_id, :experience_inventory_item], 'ExperienceInventoryItemDeleted')
|
23151
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
23152
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
23153
|
+
@organization_id = HttpClient::Preconditions.assert_class('organization_id', opts.delete(:organization_id), String)
|
23154
|
+
@experience_inventory_item = (x = opts.delete(:experience_inventory_item); x.is_a?(::Io::Flow::V0::Models::ExperienceInventoryItem) ? x : ::Io::Flow::V0::Models::ExperienceInventoryItem.new(x))
|
23155
|
+
end
|
23156
|
+
|
23157
|
+
def to_json
|
23158
|
+
JSON.dump(to_hash)
|
23159
|
+
end
|
23160
|
+
|
23161
|
+
def copy(incoming={})
|
23162
|
+
ExperienceInventoryItemDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
23163
|
+
end
|
23164
|
+
|
23165
|
+
def subtype_to_hash
|
23166
|
+
{
|
23167
|
+
:event_id => event_id,
|
23168
|
+
:timestamp => timestamp,
|
23169
|
+
:organization_id => organization_id,
|
23170
|
+
:experience_inventory_item => experience_inventory_item.to_hash
|
23171
|
+
}
|
23172
|
+
end
|
23173
|
+
|
23174
|
+
end
|
23175
|
+
|
23176
|
+
class ExperienceInventoryItemUpserted < Event
|
23177
|
+
|
23178
|
+
attr_reader :event_id, :timestamp, :organization_id, :experience_inventory_item
|
23179
|
+
|
23180
|
+
def initialize(incoming={})
|
23181
|
+
super(:discriminator => Event::Types::EXPERIENCE_INVENTORY_ITEM_UPSERTED)
|
23182
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
23183
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_id, :experience_inventory_item], 'ExperienceInventoryItemUpserted')
|
23184
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
23185
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
23186
|
+
@organization_id = HttpClient::Preconditions.assert_class('organization_id', opts.delete(:organization_id), String)
|
23187
|
+
@experience_inventory_item = (x = opts.delete(:experience_inventory_item); x.is_a?(::Io::Flow::V0::Models::ExperienceInventoryItem) ? x : ::Io::Flow::V0::Models::ExperienceInventoryItem.new(x))
|
23188
|
+
end
|
23189
|
+
|
23190
|
+
def to_json
|
23191
|
+
JSON.dump(to_hash)
|
23192
|
+
end
|
23193
|
+
|
23194
|
+
def copy(incoming={})
|
23195
|
+
ExperienceInventoryItemUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
23196
|
+
end
|
23197
|
+
|
23198
|
+
def subtype_to_hash
|
23199
|
+
{
|
23200
|
+
:event_id => event_id,
|
23201
|
+
:timestamp => timestamp,
|
23202
|
+
:organization_id => organization_id,
|
23203
|
+
:experience_inventory_item => experience_inventory_item.to_hash
|
23204
|
+
}
|
23205
|
+
end
|
23206
|
+
|
23207
|
+
end
|
23208
|
+
|
22936
23209
|
class ExperienceLogisticsSettings
|
22937
23210
|
|
22938
23211
|
attr_reader :id, :experience, :shipping_configuration
|
@@ -25928,14 +26201,15 @@ module Io
|
|
25928
26201
|
# payment processor before entering their payment information.
|
25929
26202
|
class InlineAuthorizationDetails < OnlineAuthorizationDetails
|
25930
26203
|
|
25931
|
-
attr_reader :id, :client_token
|
26204
|
+
attr_reader :id, :client_token, :parameters
|
25932
26205
|
|
25933
26206
|
def initialize(incoming={})
|
25934
26207
|
super(:discriminator => OnlineAuthorizationDetails::Types::INLINE_AUTHORIZATION_DETAILS)
|
25935
26208
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
25936
|
-
HttpClient::Preconditions.require_keys(opts, [:id
|
26209
|
+
HttpClient::Preconditions.require_keys(opts, [:id], 'InlineAuthorizationDetails')
|
25937
26210
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
25938
|
-
@client_token = HttpClient::Preconditions.assert_class('client_token',
|
26211
|
+
@client_token = (x = opts.delete(:client_token); x.nil? ? nil : HttpClient::Preconditions.assert_class('client_token', x, String))
|
26212
|
+
@parameters = (x = opts.delete(:parameters); x.nil? ? nil : HttpClient::Preconditions.assert_class('parameters', HttpClient::Helper.to_object(x), Hash))
|
25939
26213
|
end
|
25940
26214
|
|
25941
26215
|
def to_json
|
@@ -25949,7 +26223,8 @@ module Io
|
|
25949
26223
|
def subtype_to_hash
|
25950
26224
|
{
|
25951
26225
|
:id => id,
|
25952
|
-
:client_token => client_token
|
26226
|
+
:client_token => client_token,
|
26227
|
+
:parameters => parameters
|
25953
26228
|
}
|
25954
26229
|
end
|
25955
26230
|
|
@@ -26336,6 +26611,32 @@ module Io
|
|
26336
26611
|
|
26337
26612
|
end
|
26338
26613
|
|
26614
|
+
class InventoryExperienceReference
|
26615
|
+
|
26616
|
+
attr_reader :key
|
26617
|
+
|
26618
|
+
def initialize(incoming={})
|
26619
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
26620
|
+
HttpClient::Preconditions.require_keys(opts, [:key], 'InventoryExperienceReference')
|
26621
|
+
@key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
|
26622
|
+
end
|
26623
|
+
|
26624
|
+
def to_json
|
26625
|
+
JSON.dump(to_hash)
|
26626
|
+
end
|
26627
|
+
|
26628
|
+
def copy(incoming={})
|
26629
|
+
InventoryExperienceReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
26630
|
+
end
|
26631
|
+
|
26632
|
+
def to_hash
|
26633
|
+
{
|
26634
|
+
:key => key
|
26635
|
+
}
|
26636
|
+
end
|
26637
|
+
|
26638
|
+
end
|
26639
|
+
|
26339
26640
|
class InventoryItemReference
|
26340
26641
|
|
26341
26642
|
attr_reader :number
|
@@ -34983,7 +35284,7 @@ module Io
|
|
34983
35284
|
# site before entering their payment information.
|
34984
35285
|
class RedirectAuthorizationDetails < OnlineAuthorizationDetails
|
34985
35286
|
|
34986
|
-
attr_reader :id, :payment_redirect_url
|
35287
|
+
attr_reader :id, :payment_redirect_url, :confirmation_details
|
34987
35288
|
|
34988
35289
|
def initialize(incoming={})
|
34989
35290
|
super(:discriminator => OnlineAuthorizationDetails::Types::REDIRECT_AUTHORIZATION_DETAILS)
|
@@ -34991,6 +35292,7 @@ module Io
|
|
34991
35292
|
HttpClient::Preconditions.require_keys(opts, [:id, :payment_redirect_url], 'RedirectAuthorizationDetails')
|
34992
35293
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
34993
35294
|
@payment_redirect_url = HttpClient::Preconditions.assert_class('payment_redirect_url', opts.delete(:payment_redirect_url), String)
|
35295
|
+
@confirmation_details = (x = opts.delete(:confirmation_details); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ConfirmationDetails) ? x : ::Io::Flow::V0::Models::ConfirmationDetails.from_json(x)))
|
34994
35296
|
end
|
34995
35297
|
|
34996
35298
|
def to_json
|
@@ -35004,7 +35306,8 @@ module Io
|
|
35004
35306
|
def subtype_to_hash
|
35005
35307
|
{
|
35006
35308
|
:id => id,
|
35007
|
-
:payment_redirect_url => payment_redirect_url
|
35309
|
+
:payment_redirect_url => payment_redirect_url,
|
35310
|
+
:confirmation_details => confirmation_details.nil? ? nil : confirmation_details.to_hash
|
35008
35311
|
}
|
35009
35312
|
end
|
35010
35313
|
|
@@ -38650,7 +38953,7 @@ module Io
|
|
38650
38953
|
|
38651
38954
|
def initialize(incoming={})
|
38652
38955
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
38653
|
-
HttpClient::Preconditions.require_keys(opts, [:prices_item, :prices_currency, :
|
38956
|
+
HttpClient::Preconditions.require_keys(opts, [:prices_item, :prices_currency, :prices_status], 'ShopifyVariantFlowMetafield')
|
38654
38957
|
@prices_item = HttpClient::Preconditions.assert_class('prices_item', opts.delete(:prices_item), String)
|
38655
38958
|
@prices_currency = HttpClient::Preconditions.assert_class('prices_currency', opts.delete(:prices_currency), String)
|
38656
38959
|
@prices_includes = (x = opts.delete(:prices_includes); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_includes', x, String))
|
@@ -38658,8 +38961,8 @@ module Io
|
|
38658
38961
|
@prices_vat_name = (x = opts.delete(:prices_vat_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_vat_name', x, String))
|
38659
38962
|
@prices_duty = (x = opts.delete(:prices_duty); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_duty', x, String))
|
38660
38963
|
@prices_compare_at = (x = opts.delete(:prices_compare_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_compare_at', x, String))
|
38661
|
-
@prices_status = (x = opts.delete(:prices_status); x.
|
38662
|
-
@inventory_status = (x = opts.delete(:inventory_status); x.is_a?(::Io::Flow::V0::Models::
|
38964
|
+
@prices_status = (x = opts.delete(:prices_status); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
|
38965
|
+
@inventory_status = (x = opts.delete(:inventory_status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExperienceInventoryItemStatus) ? x : ::Io::Flow::V0::Models::ExperienceInventoryItemStatus.apply(x)))
|
38663
38966
|
end
|
38664
38967
|
|
38665
38968
|
def to_json
|
@@ -38679,8 +38982,8 @@ module Io
|
|
38679
38982
|
:prices_vat_name => prices_vat_name,
|
38680
38983
|
:prices_duty => prices_duty,
|
38681
38984
|
:prices_compare_at => prices_compare_at,
|
38682
|
-
:prices_status => prices_status,
|
38683
|
-
:inventory_status => inventory_status.value
|
38985
|
+
:prices_status => prices_status.value,
|
38986
|
+
:inventory_status => inventory_status.nil? ? nil : inventory_status.value
|
38684
38987
|
}
|
38685
38988
|
end
|
38686
38989
|
|
@@ -38696,7 +38999,7 @@ module Io
|
|
38696
38999
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
38697
39000
|
HttpClient::Preconditions.require_keys(opts, [:experience, :status], 'ShopifyVariantInventoryMetafield')
|
38698
39001
|
@experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceReference) ? x : ::Io::Flow::V0::Models::ExperienceReference.new(x))
|
38699
|
-
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::
|
39002
|
+
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ExperienceInventoryItemStatus) ? x : ::Io::Flow::V0::Models::ExperienceInventoryItemStatus.apply(x))
|
38700
39003
|
end
|
38701
39004
|
|
38702
39005
|
def to_json
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flowcommerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flow Commerce, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|