flowcommerce 0.2.67 → 0.2.68
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 +387 -55
- 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: 54189722fdf3cd32c39a6b67ed0a2d9e5f5cbe74
|
4
|
+
data.tar.gz: 5b433f6b50c2f076207bcc0ba5546a3467e74d1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e08999c8b0e544c497663b7ba985f22f90e7ecfc107bf7ac0b2e7084f1152e58ed938ca827a39af25221d96770fd834061900b3e28ebcbb1de980d170be6404a
|
7
|
+
data.tar.gz: 0ec786cbc3fff70326adc4cf0483c29e6b38e1e7944b07d9285549f3201207af64716b4540ce2f1031f10c5e1157ce1fb315b70594dfb84ba500d289c1b91af5
|
@@ -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.30/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.30/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
|
|
@@ -336,6 +336,10 @@ module Io
|
|
336
336
|
@webhook_deliveries ||= ::Io::Flow::V0::Clients::WebhookDeliveries.new(self)
|
337
337
|
end
|
338
338
|
|
339
|
+
def webhook_settings
|
340
|
+
@webhook_settings ||= ::Io::Flow::V0::Clients::WebhookSettings.new(self)
|
341
|
+
end
|
342
|
+
|
339
343
|
def addresses
|
340
344
|
@addresses ||= ::Io::Flow::V0::Clients::Addresses.new(self)
|
341
345
|
end
|
@@ -376,6 +380,10 @@ module Io
|
|
376
380
|
@regions ||= ::Io::Flow::V0::Clients::Regions.new(self)
|
377
381
|
end
|
378
382
|
|
383
|
+
def checkout_tokens
|
384
|
+
@checkout_tokens ||= ::Io::Flow::V0::Clients::CheckoutTokens.new(self)
|
385
|
+
end
|
386
|
+
|
379
387
|
def consumer_invoices
|
380
388
|
@consumer_invoices ||= ::Io::Flow::V0::Clients::ConsumerInvoices.new(self)
|
381
389
|
end
|
@@ -1567,6 +1575,18 @@ module Io
|
|
1567
1575
|
::Io::Flow::V0::Models::OrderBuilder.new(r)
|
1568
1576
|
end
|
1569
1577
|
|
1578
|
+
def put_country_by_number(organization, number, order_builder_destination_country_form, incoming={})
|
1579
|
+
HttpClient::Preconditions.assert_class('organization', organization, String)
|
1580
|
+
HttpClient::Preconditions.assert_class('number', number, String)
|
1581
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
1582
|
+
query = {
|
1583
|
+
:expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) })
|
1584
|
+
}.delete_if { |k, v| v.nil? }
|
1585
|
+
(x = order_builder_destination_country_form; x.is_a?(::Io::Flow::V0::Models::OrderBuilderDestinationCountryForm) ? x : ::Io::Flow::V0::Models::OrderBuilderDestinationCountryForm.new(x))
|
1586
|
+
r = @client.request("/#{CGI.escape(organization)}/order/builders/#{CGI.escape(number)}/country").with_query(query).with_json(order_builder_destination_country_form.to_json).put
|
1587
|
+
::Io::Flow::V0::Models::OrderBuilder.new(r)
|
1588
|
+
end
|
1589
|
+
|
1570
1590
|
def put_destination_by_number(organization, number, order_builder_destination_form, incoming={})
|
1571
1591
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
1572
1592
|
HttpClient::Preconditions.assert_class('number', number, String)
|
@@ -4662,21 +4682,6 @@ module Io
|
|
4662
4682
|
::Io::Flow::V0::Models::Webhook.new(r)
|
4663
4683
|
end
|
4664
4684
|
|
4665
|
-
# Returns the webhook settings for an organization
|
4666
|
-
def get_settings(organization)
|
4667
|
-
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4668
|
-
r = @client.request("/#{CGI.escape(organization)}/webhooks/settings").get
|
4669
|
-
::Io::Flow::V0::Models::WebhookSettings.new(r)
|
4670
|
-
end
|
4671
|
-
|
4672
|
-
# Updates the webhook settings for an organization
|
4673
|
-
def put_settings(organization, webhook_settings)
|
4674
|
-
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4675
|
-
(x = webhook_settings; x.is_a?(::Io::Flow::V0::Models::WebhookSettings) ? x : ::Io::Flow::V0::Models::WebhookSettings.new(x))
|
4676
|
-
r = @client.request("/#{CGI.escape(organization)}/webhooks/settings").with_json(webhook_settings.to_json).put
|
4677
|
-
::Io::Flow::V0::Models::WebhookSettings.new(r)
|
4678
|
-
end
|
4679
|
-
|
4680
4685
|
# Returns information about a specific webhook
|
4681
4686
|
def get_by_id(organization, id)
|
4682
4687
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
@@ -4744,6 +4749,29 @@ module Io
|
|
4744
4749
|
|
4745
4750
|
end
|
4746
4751
|
|
4752
|
+
class WebhookSettings
|
4753
|
+
|
4754
|
+
def initialize(client)
|
4755
|
+
@client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
|
4756
|
+
end
|
4757
|
+
|
4758
|
+
# Returns the webhook settings for an organization
|
4759
|
+
def get(organization)
|
4760
|
+
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4761
|
+
r = @client.request("/#{CGI.escape(organization)}/webhook/settings").get
|
4762
|
+
::Io::Flow::V0::Models::WebhookSettings.new(r)
|
4763
|
+
end
|
4764
|
+
|
4765
|
+
# Updates the webhook settings for an organization
|
4766
|
+
def put(organization, webhook_settings)
|
4767
|
+
HttpClient::Preconditions.assert_class('organization', organization, String)
|
4768
|
+
(x = webhook_settings; x.is_a?(::Io::Flow::V0::Models::WebhookSettings) ? x : ::Io::Flow::V0::Models::WebhookSettings.new(x))
|
4769
|
+
r = @client.request("/#{CGI.escape(organization)}/webhook/settings").with_json(webhook_settings.to_json).put
|
4770
|
+
::Io::Flow::V0::Models::WebhookSettings.new(r)
|
4771
|
+
end
|
4772
|
+
|
4773
|
+
end
|
4774
|
+
|
4747
4775
|
class Addresses
|
4748
4776
|
|
4749
4777
|
def initialize(client)
|
@@ -4970,6 +4998,33 @@ module Io
|
|
4970
4998
|
|
4971
4999
|
end
|
4972
5000
|
|
5001
|
+
class CheckoutTokens
|
5002
|
+
|
5003
|
+
def initialize(client)
|
5004
|
+
@client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
|
5005
|
+
end
|
5006
|
+
|
5007
|
+
def get_checkout_and_tokens_by_id(id)
|
5008
|
+
HttpClient::Preconditions.assert_class('id', id, String)
|
5009
|
+
r = @client.request("/checkout/tokens/#{CGI.escape(id)}").get
|
5010
|
+
::Io::Flow::V0::Models::CheckoutToken.new(r)
|
5011
|
+
end
|
5012
|
+
|
5013
|
+
def delete_checkout_and_tokens_by_id(id)
|
5014
|
+
HttpClient::Preconditions.assert_class('id', id, String)
|
5015
|
+
r = @client.request("/checkout/tokens/#{CGI.escape(id)}").delete
|
5016
|
+
nil
|
5017
|
+
end
|
5018
|
+
|
5019
|
+
def post_checkout_and_tokens_by_organization(organization, checkout_token_form)
|
5020
|
+
HttpClient::Preconditions.assert_class('organization', organization, String)
|
5021
|
+
(x = checkout_token_form; x.is_a?(::Io::Flow::V0::Models::CheckoutTokenForm) ? x : ::Io::Flow::V0::Models::CheckoutTokenForm.new(x))
|
5022
|
+
r = @client.request("/#{CGI.escape(organization)}/checkout/tokens").with_json(checkout_token_form.to_json).post
|
5023
|
+
::Io::Flow::V0::Models::CheckoutToken.new(r)
|
5024
|
+
end
|
5025
|
+
|
5026
|
+
end
|
5027
|
+
|
4973
5028
|
class ConsumerInvoices
|
4974
5029
|
|
4975
5030
|
def initialize(client)
|
@@ -6847,6 +6902,8 @@ module Io
|
|
6847
6902
|
PRICING_DELETED = 'pricing_deleted' unless defined?(PRICING_DELETED)
|
6848
6903
|
PRICING_UPSERTED = 'pricing_upserted' unless defined?(PRICING_UPSERTED)
|
6849
6904
|
FRAUD_STATUS_CHANGED = 'fraud_status_changed' unless defined?(FRAUD_STATUS_CHANGED)
|
6905
|
+
CENTER_UPSERTED = 'center_upserted' unless defined?(CENTER_UPSERTED)
|
6906
|
+
CENTER_DELETED = 'center_deleted' unless defined?(CENTER_DELETED)
|
6850
6907
|
TIER_UPSERTED = 'tier_upserted' unless defined?(TIER_UPSERTED)
|
6851
6908
|
TIER_DELETED = 'tier_deleted' unless defined?(TIER_DELETED)
|
6852
6909
|
DELIVERY_OPTION_UPSERTED = 'delivery_option_upserted' unless defined?(DELIVERY_OPTION_UPSERTED)
|
@@ -6939,7 +6996,7 @@ module Io
|
|
6939
6996
|
end
|
6940
6997
|
|
6941
6998
|
def subtype_to_hash
|
6942
|
-
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, 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'
|
6999
|
+
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'
|
6943
7000
|
end
|
6944
7001
|
|
6945
7002
|
def to_hash
|
@@ -7005,6 +7062,8 @@ module Io
|
|
7005
7062
|
when Types::PRICING_DELETED; PricingDeleted.new(hash)
|
7006
7063
|
when Types::PRICING_UPSERTED; PricingUpserted.new(hash)
|
7007
7064
|
when Types::FRAUD_STATUS_CHANGED; FraudStatusChanged.new(hash)
|
7065
|
+
when Types::CENTER_UPSERTED; CenterUpserted.new(hash)
|
7066
|
+
when Types::CENTER_DELETED; CenterDeleted.new(hash)
|
7008
7067
|
when Types::TIER_UPSERTED; TierUpserted.new(hash)
|
7009
7068
|
when Types::TIER_DELETED; TierDeleted.new(hash)
|
7010
7069
|
when Types::DELIVERY_OPTION_UPSERTED; DeliveryOptionUpserted.new(hash)
|
@@ -11143,7 +11202,7 @@ module Io
|
|
11143
11202
|
end
|
11144
11203
|
|
11145
11204
|
def EventType.ALL
|
11146
|
-
@@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.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]
|
11205
|
+
@@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]
|
11147
11206
|
end
|
11148
11207
|
|
11149
11208
|
def EventType.attribute_upserted
|
@@ -11354,6 +11413,14 @@ module Io
|
|
11354
11413
|
@@_fraud_status_changed ||= EventType.new('fraud_status_changed')
|
11355
11414
|
end
|
11356
11415
|
|
11416
|
+
def EventType.center_upserted
|
11417
|
+
@@_center_upserted ||= EventType.new('center_upserted')
|
11418
|
+
end
|
11419
|
+
|
11420
|
+
def EventType.center_deleted
|
11421
|
+
@@_center_deleted ||= EventType.new('center_deleted')
|
11422
|
+
end
|
11423
|
+
|
11357
11424
|
def EventType.tier_upserted
|
11358
11425
|
@@_tier_upserted ||= EventType.new('tier_upserted')
|
11359
11426
|
end
|
@@ -19275,6 +19342,39 @@ module Io
|
|
19275
19342
|
|
19276
19343
|
end
|
19277
19344
|
|
19345
|
+
class CenterDeleted < Event
|
19346
|
+
|
19347
|
+
attr_reader :event_id, :timestamp, :organization, :center
|
19348
|
+
|
19349
|
+
def initialize(incoming={})
|
19350
|
+
super(:discriminator => Event::Types::CENTER_DELETED)
|
19351
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19352
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :center], 'CenterDeleted')
|
19353
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
19354
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
19355
|
+
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
19356
|
+
@center = (x = opts.delete(:center); x.is_a?(::Io::Flow::V0::Models::Center) ? x : ::Io::Flow::V0::Models::Center.new(x))
|
19357
|
+
end
|
19358
|
+
|
19359
|
+
def to_json
|
19360
|
+
JSON.dump(to_hash)
|
19361
|
+
end
|
19362
|
+
|
19363
|
+
def copy(incoming={})
|
19364
|
+
CenterDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
19365
|
+
end
|
19366
|
+
|
19367
|
+
def subtype_to_hash
|
19368
|
+
{
|
19369
|
+
:event_id => event_id,
|
19370
|
+
:timestamp => timestamp,
|
19371
|
+
:organization => organization,
|
19372
|
+
:center => center.to_hash
|
19373
|
+
}
|
19374
|
+
end
|
19375
|
+
|
19376
|
+
end
|
19377
|
+
|
19278
19378
|
class CenterForm
|
19279
19379
|
|
19280
19380
|
attr_reader :address, :packaging, :name, :services, :schedule, :timezone, :key, :capabilities, :partner_center_form
|
@@ -19400,6 +19500,39 @@ module Io
|
|
19400
19500
|
|
19401
19501
|
end
|
19402
19502
|
|
19503
|
+
class CenterUpserted < Event
|
19504
|
+
|
19505
|
+
attr_reader :event_id, :timestamp, :organization, :center
|
19506
|
+
|
19507
|
+
def initialize(incoming={})
|
19508
|
+
super(:discriminator => Event::Types::CENTER_UPSERTED)
|
19509
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19510
|
+
HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :center], 'CenterUpserted')
|
19511
|
+
@event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
|
19512
|
+
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
19513
|
+
@organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
|
19514
|
+
@center = (x = opts.delete(:center); x.is_a?(::Io::Flow::V0::Models::Center) ? x : ::Io::Flow::V0::Models::Center.new(x))
|
19515
|
+
end
|
19516
|
+
|
19517
|
+
def to_json
|
19518
|
+
JSON.dump(to_hash)
|
19519
|
+
end
|
19520
|
+
|
19521
|
+
def copy(incoming={})
|
19522
|
+
CenterUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
19523
|
+
end
|
19524
|
+
|
19525
|
+
def subtype_to_hash
|
19526
|
+
{
|
19527
|
+
:event_id => event_id,
|
19528
|
+
:timestamp => timestamp,
|
19529
|
+
:organization => organization,
|
19530
|
+
:center => center.to_hash
|
19531
|
+
}
|
19532
|
+
end
|
19533
|
+
|
19534
|
+
end
|
19535
|
+
|
19403
19536
|
class CenterVersion
|
19404
19537
|
|
19405
19538
|
attr_reader :id, :timestamp, :type, :center
|
@@ -19565,6 +19698,123 @@ module Io
|
|
19565
19698
|
|
19566
19699
|
end
|
19567
19700
|
|
19701
|
+
# Represents a secure token that can be used to redirect to Checkout UI
|
19702
|
+
class CheckoutToken
|
19703
|
+
|
19704
|
+
attr_reader :id, :organization, :order, :session, :urls, :expires_at
|
19705
|
+
|
19706
|
+
def initialize(incoming={})
|
19707
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19708
|
+
HttpClient::Preconditions.require_keys(opts, [:id, :organization, :order, :session, :urls, :expires_at], 'CheckoutToken')
|
19709
|
+
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
19710
|
+
@organization = (x = opts.delete(:organization); x.is_a?(::Io::Flow::V0::Models::OrganizationReference) ? x : ::Io::Flow::V0::Models::OrganizationReference.new(x))
|
19711
|
+
@order = (x = opts.delete(:order); x.is_a?(::Io::Flow::V0::Models::OrderNumberReference) ? x : ::Io::Flow::V0::Models::OrderNumberReference.new(x))
|
19712
|
+
@session = (x = opts.delete(:session); x.is_a?(::Io::Flow::V0::Models::SessionReference) ? x : ::Io::Flow::V0::Models::SessionReference.new(x))
|
19713
|
+
@urls = (x = opts.delete(:urls); x.is_a?(::Io::Flow::V0::Models::CheckoutUrls) ? x : ::Io::Flow::V0::Models::CheckoutUrls.new(x))
|
19714
|
+
@expires_at = HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:expires_at)), DateTime)
|
19715
|
+
end
|
19716
|
+
|
19717
|
+
def to_json
|
19718
|
+
JSON.dump(to_hash)
|
19719
|
+
end
|
19720
|
+
|
19721
|
+
def copy(incoming={})
|
19722
|
+
CheckoutToken.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
19723
|
+
end
|
19724
|
+
|
19725
|
+
def to_hash
|
19726
|
+
{
|
19727
|
+
:id => id,
|
19728
|
+
:organization => organization.to_hash,
|
19729
|
+
:order => order.to_hash,
|
19730
|
+
:session => session.to_hash,
|
19731
|
+
:urls => urls.to_hash,
|
19732
|
+
:expires_at => expires_at
|
19733
|
+
}
|
19734
|
+
end
|
19735
|
+
|
19736
|
+
end
|
19737
|
+
|
19738
|
+
class CheckoutTokenForm
|
19739
|
+
|
19740
|
+
attr_reader :order_number, :session_id, :urls
|
19741
|
+
|
19742
|
+
def initialize(incoming={})
|
19743
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19744
|
+
HttpClient::Preconditions.require_keys(opts, [:order_number, :session_id, :urls], 'CheckoutTokenForm')
|
19745
|
+
@order_number = HttpClient::Preconditions.assert_class('order_number', opts.delete(:order_number), String)
|
19746
|
+
@session_id = HttpClient::Preconditions.assert_class('session_id', opts.delete(:session_id), String)
|
19747
|
+
@urls = (x = opts.delete(:urls); x.is_a?(::Io::Flow::V0::Models::CheckoutUrlsForm) ? x : ::Io::Flow::V0::Models::CheckoutUrlsForm.new(x))
|
19748
|
+
end
|
19749
|
+
|
19750
|
+
def to_json
|
19751
|
+
JSON.dump(to_hash)
|
19752
|
+
end
|
19753
|
+
|
19754
|
+
def copy(incoming={})
|
19755
|
+
CheckoutTokenForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
19756
|
+
end
|
19757
|
+
|
19758
|
+
def to_hash
|
19759
|
+
{
|
19760
|
+
:order_number => order_number,
|
19761
|
+
:session_id => session_id,
|
19762
|
+
:urls => urls.to_hash
|
19763
|
+
}
|
19764
|
+
end
|
19765
|
+
|
19766
|
+
end
|
19767
|
+
|
19768
|
+
class CheckoutUrls
|
19769
|
+
|
19770
|
+
attr_reader :continue_shopping
|
19771
|
+
|
19772
|
+
def initialize(incoming={})
|
19773
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19774
|
+
@continue_shopping = (x = opts.delete(:continue_shopping); x.nil? ? nil : HttpClient::Preconditions.assert_class('continue_shopping', x, String))
|
19775
|
+
end
|
19776
|
+
|
19777
|
+
def to_json
|
19778
|
+
JSON.dump(to_hash)
|
19779
|
+
end
|
19780
|
+
|
19781
|
+
def copy(incoming={})
|
19782
|
+
CheckoutUrls.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
19783
|
+
end
|
19784
|
+
|
19785
|
+
def to_hash
|
19786
|
+
{
|
19787
|
+
:continue_shopping => continue_shopping
|
19788
|
+
}
|
19789
|
+
end
|
19790
|
+
|
19791
|
+
end
|
19792
|
+
|
19793
|
+
class CheckoutUrlsForm
|
19794
|
+
|
19795
|
+
attr_reader :continue_shopping
|
19796
|
+
|
19797
|
+
def initialize(incoming={})
|
19798
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19799
|
+
@continue_shopping = (x = opts.delete(:continue_shopping); x.nil? ? nil : HttpClient::Preconditions.assert_class('continue_shopping', x, String))
|
19800
|
+
end
|
19801
|
+
|
19802
|
+
def to_json
|
19803
|
+
JSON.dump(to_hash)
|
19804
|
+
end
|
19805
|
+
|
19806
|
+
def copy(incoming={})
|
19807
|
+
CheckoutUrlsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
19808
|
+
end
|
19809
|
+
|
19810
|
+
def to_hash
|
19811
|
+
{
|
19812
|
+
:continue_shopping => continue_shopping
|
19813
|
+
}
|
19814
|
+
end
|
19815
|
+
|
19816
|
+
end
|
19817
|
+
|
19568
19818
|
# The actual value of the API token. This is modeled as a separate resource as
|
19569
19819
|
# it is fetched only on demand.
|
19570
19820
|
class Cleartext
|
@@ -22966,7 +23216,7 @@ module Io
|
|
22966
23216
|
|
22967
23217
|
class ExportLocalizedItemPrices
|
22968
23218
|
|
22969
|
-
attr_reader :organization, :experience, :item, :prices
|
23219
|
+
attr_reader :organization, :experience, :item, :prices, :status
|
22970
23220
|
|
22971
23221
|
def initialize(incoming={})
|
22972
23222
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -22975,6 +23225,7 @@ module Io
|
|
22975
23225
|
@experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceReference) ? x : ::Io::Flow::V0::Models::ExperienceReference.new(x))
|
22976
23226
|
@item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::CatalogItemReference) ? x : ::Io::Flow::V0::Models::CatalogItemReference.new(x))
|
22977
23227
|
@prices = (x = opts.delete(:prices); x.is_a?(::Io::Flow::V0::Models::ExportLocalizedItemPricesDetail) ? x : ::Io::Flow::V0::Models::ExportLocalizedItemPricesDetail.new(x))
|
23228
|
+
@status = (x = opts.delete(:status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x)))
|
22978
23229
|
end
|
22979
23230
|
|
22980
23231
|
def to_json
|
@@ -22990,7 +23241,8 @@ module Io
|
|
22990
23241
|
:organization => organization.to_hash,
|
22991
23242
|
:experience => experience.to_hash,
|
22992
23243
|
:item => item.to_hash,
|
22993
|
-
:prices => prices.to_hash
|
23244
|
+
:prices => prices.to_hash,
|
23245
|
+
:status => status.nil? ? nil : status.value
|
22994
23246
|
}
|
22995
23247
|
end
|
22996
23248
|
|
@@ -29449,6 +29701,32 @@ module Io
|
|
29449
29701
|
|
29450
29702
|
end
|
29451
29703
|
|
29704
|
+
class OrderBuilderDestinationCountryForm
|
29705
|
+
|
29706
|
+
attr_reader :country
|
29707
|
+
|
29708
|
+
def initialize(incoming={})
|
29709
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
29710
|
+
HttpClient::Preconditions.require_keys(opts, [:country], 'OrderBuilderDestinationCountryForm')
|
29711
|
+
@country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
|
29712
|
+
end
|
29713
|
+
|
29714
|
+
def to_json
|
29715
|
+
JSON.dump(to_hash)
|
29716
|
+
end
|
29717
|
+
|
29718
|
+
def copy(incoming={})
|
29719
|
+
OrderBuilderDestinationCountryForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
29720
|
+
end
|
29721
|
+
|
29722
|
+
def to_hash
|
29723
|
+
{
|
29724
|
+
:country => country
|
29725
|
+
}
|
29726
|
+
end
|
29727
|
+
|
29728
|
+
end
|
29729
|
+
|
29452
29730
|
class OrderBuilderDestinationForm
|
29453
29731
|
|
29454
29732
|
attr_reader :destination
|
@@ -30091,6 +30369,32 @@ module Io
|
|
30091
30369
|
|
30092
30370
|
end
|
30093
30371
|
|
30372
|
+
class OrderNumberReference
|
30373
|
+
|
30374
|
+
attr_reader :number
|
30375
|
+
|
30376
|
+
def initialize(incoming={})
|
30377
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
30378
|
+
HttpClient::Preconditions.require_keys(opts, [:number], 'OrderNumberReference')
|
30379
|
+
@number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
|
30380
|
+
end
|
30381
|
+
|
30382
|
+
def to_json
|
30383
|
+
JSON.dump(to_hash)
|
30384
|
+
end
|
30385
|
+
|
30386
|
+
def copy(incoming={})
|
30387
|
+
OrderNumberReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
30388
|
+
end
|
30389
|
+
|
30390
|
+
def to_hash
|
30391
|
+
{
|
30392
|
+
:number => number
|
30393
|
+
}
|
30394
|
+
end
|
30395
|
+
|
30396
|
+
end
|
30397
|
+
|
30094
30398
|
# An Order Payment represents an individual payment applied to an order. The
|
30095
30399
|
# type of the payment can be used to further lookup transaction level detail
|
30096
30400
|
class OrderPayment
|
@@ -36102,6 +36406,32 @@ module Io
|
|
36102
36406
|
|
36103
36407
|
end
|
36104
36408
|
|
36409
|
+
class SessionReference
|
36410
|
+
|
36411
|
+
attr_reader :id
|
36412
|
+
|
36413
|
+
def initialize(incoming={})
|
36414
|
+
opts = HttpClient::Helper.symbolize_keys(incoming)
|
36415
|
+
HttpClient::Preconditions.require_keys(opts, [:id], 'SessionReference')
|
36416
|
+
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
36417
|
+
end
|
36418
|
+
|
36419
|
+
def to_json
|
36420
|
+
JSON.dump(to_hash)
|
36421
|
+
end
|
36422
|
+
|
36423
|
+
def copy(incoming={})
|
36424
|
+
SessionReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
36425
|
+
end
|
36426
|
+
|
36427
|
+
def to_hash
|
36428
|
+
{
|
36429
|
+
:id => id
|
36430
|
+
}
|
36431
|
+
end
|
36432
|
+
|
36433
|
+
end
|
36434
|
+
|
36105
36435
|
# A session visit expires after a configurable period of inactivity (e.g. 30
|
36106
36436
|
# minutes).
|
36107
36437
|
class SessionVisit
|
@@ -37544,17 +37874,27 @@ module Io
|
|
37544
37874
|
|
37545
37875
|
end
|
37546
37876
|
|
37547
|
-
#
|
37548
|
-
#
|
37549
|
-
|
37877
|
+
# The shopify variant metafield defines the individual metafield values we write
|
37878
|
+
# into Shopify for each variant. This model was introduced to enable server side
|
37879
|
+
# rendering of content (e.g. the price on the product detail page). Each field
|
37880
|
+
# in this model is available as its own metafield within a namespace named
|
37881
|
+
# 'price_abc' where abc is a unique, short identifier for an experience.
|
37882
|
+
class ShopifyVariantFlowMetafield
|
37550
37883
|
|
37551
|
-
attr_reader :
|
37884
|
+
attr_reader :prices_item, :prices_currency, :prices_includes, :prices_vat, :prices_vat_name, :prices_duty, :prices_compare_at, :prices_status, :inventory_status
|
37552
37885
|
|
37553
37886
|
def initialize(incoming={})
|
37554
37887
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
37555
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
37556
|
-
@
|
37557
|
-
@
|
37888
|
+
HttpClient::Preconditions.require_keys(opts, [:prices_item, :prices_currency, :inventory_status], 'ShopifyVariantFlowMetafield')
|
37889
|
+
@prices_item = HttpClient::Preconditions.assert_class('prices_item', opts.delete(:prices_item), String)
|
37890
|
+
@prices_currency = HttpClient::Preconditions.assert_class('prices_currency', opts.delete(:prices_currency), String)
|
37891
|
+
@prices_includes = (x = opts.delete(:prices_includes); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_includes', x, String))
|
37892
|
+
@prices_vat = (x = opts.delete(:prices_vat); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_vat', x, String))
|
37893
|
+
@prices_vat_name = (x = opts.delete(:prices_vat_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_vat_name', x, String))
|
37894
|
+
@prices_duty = (x = opts.delete(:prices_duty); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_duty', x, String))
|
37895
|
+
@prices_compare_at = (x = opts.delete(:prices_compare_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_compare_at', x, String))
|
37896
|
+
@prices_status = (x = opts.delete(:prices_status); x.nil? ? nil : HttpClient::Preconditions.assert_class('prices_status', x, String))
|
37897
|
+
@inventory_status = (x = opts.delete(:inventory_status); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
|
37558
37898
|
end
|
37559
37899
|
|
37560
37900
|
def to_json
|
@@ -37562,38 +37902,36 @@ module Io
|
|
37562
37902
|
end
|
37563
37903
|
|
37564
37904
|
def copy(incoming={})
|
37565
|
-
|
37905
|
+
ShopifyVariantFlowMetafield.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
37566
37906
|
end
|
37567
37907
|
|
37568
37908
|
def to_hash
|
37569
37909
|
{
|
37570
|
-
:
|
37571
|
-
:
|
37910
|
+
:prices_item => prices_item,
|
37911
|
+
:prices_currency => prices_currency,
|
37912
|
+
:prices_includes => prices_includes,
|
37913
|
+
:prices_vat => prices_vat,
|
37914
|
+
:prices_vat_name => prices_vat_name,
|
37915
|
+
:prices_duty => prices_duty,
|
37916
|
+
:prices_compare_at => prices_compare_at,
|
37917
|
+
:prices_status => prices_status,
|
37918
|
+
:inventory_status => inventory_status.value
|
37572
37919
|
}
|
37573
37920
|
end
|
37574
37921
|
|
37575
37922
|
end
|
37576
37923
|
|
37577
|
-
#
|
37578
|
-
#
|
37579
|
-
|
37580
|
-
# in this model is available as its own metafield within a namespace named
|
37581
|
-
# 'price_abc' where abc is a unique, short identifier for an experience.
|
37582
|
-
class ShopifyVariantPriceMetafield
|
37924
|
+
# For enabled organizations, this indicates the total number of available units
|
37925
|
+
# of inventory for customers in this experience.
|
37926
|
+
class ShopifyVariantInventoryMetafield
|
37583
37927
|
|
37584
|
-
attr_reader :
|
37928
|
+
attr_reader :experience, :status
|
37585
37929
|
|
37586
37930
|
def initialize(incoming={})
|
37587
37931
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
37588
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
37589
|
-
@
|
37590
|
-
@
|
37591
|
-
@includes = (x = opts.delete(:includes); x.nil? ? nil : HttpClient::Preconditions.assert_class('includes', x, String))
|
37592
|
-
@vat = (x = opts.delete(:vat); x.nil? ? nil : HttpClient::Preconditions.assert_class('vat', x, String))
|
37593
|
-
@vat_name = (x = opts.delete(:vat_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('vat_name', x, String))
|
37594
|
-
@duty = (x = opts.delete(:duty); x.nil? ? nil : HttpClient::Preconditions.assert_class('duty', x, String))
|
37595
|
-
@compare_at = (x = opts.delete(:compare_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('compare_at', x, String))
|
37596
|
-
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::SubcatalogItemStatus) ? x : ::Io::Flow::V0::Models::SubcatalogItemStatus.apply(x))
|
37932
|
+
HttpClient::Preconditions.require_keys(opts, [:experience, :status], 'ShopifyVariantInventoryMetafield')
|
37933
|
+
@experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceReference) ? x : ::Io::Flow::V0::Models::ExperienceReference.new(x))
|
37934
|
+
@status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ShopifyVariantInventoryMetafieldStatus) ? x : ::Io::Flow::V0::Models::ShopifyVariantInventoryMetafieldStatus.apply(x))
|
37597
37935
|
end
|
37598
37936
|
|
37599
37937
|
def to_json
|
@@ -37601,18 +37939,12 @@ module Io
|
|
37601
37939
|
end
|
37602
37940
|
|
37603
37941
|
def copy(incoming={})
|
37604
|
-
|
37942
|
+
ShopifyVariantInventoryMetafield.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
|
37605
37943
|
end
|
37606
37944
|
|
37607
37945
|
def to_hash
|
37608
37946
|
{
|
37609
|
-
:
|
37610
|
-
:currency => currency,
|
37611
|
-
:includes => includes,
|
37612
|
-
:vat => vat,
|
37613
|
-
:vat_name => vat_name,
|
37614
|
-
:duty => duty,
|
37615
|
-
:compare_at => compare_at,
|
37947
|
+
:experience => experience.to_hash,
|
37616
37948
|
:status => status.value
|
37617
37949
|
}
|
37618
37950
|
end
|
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.68
|
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-08-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|