Class: Io::Flow::V0::Models::ExportType
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExportType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Defines the specific export data that defines which records are exported and into which format
Direct Known Subclasses
AccountOrdersExportType, AccountTransactionsExportType, AnalyticsExportType, CatalogItemExportType, ExclusionRulesExportType, ExperienceExportType, ExportTypeUndefinedType, HarmonizationHs10ExportType, HarmonizationHs6ExportType, HarmonizationOverviewExportType, HarmonizationTariffCodesExportType, LocalizedItemPricesExportType, MarketingFeedsExportType, OrderExportType, PriceBookItemExportType, SolidusProductExportType, SolidusVariantExportType, UnharmonizedItemExportType
Defined Under Namespace
Modules: Types
Instance Attribute Summary collapse
-
#discriminator ⇒ Object
readonly
Returns the value of attribute discriminator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(incoming = {}) ⇒ ExportType
constructor
A new instance of ExportType.
- #subtype_to_hash ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ExportType
Returns a new instance of ExportType.
12020 12021 12022 12023 12024 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12020 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ExportType') @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String) end |
Instance Attribute Details
#discriminator ⇒ Object (readonly)
Returns the value of attribute discriminator.
12018 12019 12020 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12018 def discriminator @discriminator end |
Class Method Details
.from_json(hash) ⇒ Object
Instance Method Details
#subtype_to_hash ⇒ Object
12026 12027 12028 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12026 def subtype_to_hash raise 'Cannot serialize an instance of export_type directly - must use one of the specific types: account_transactions_export_type, account_orders_export_type, analytics_export_type, catalog_item_export_type, experience_export_type, harmonization_overview_export_type, harmonization_hs6_export_type, harmonization_hs10_export_type, harmonization_tariff_codes_export_type, unharmonized_item_export_type, order_export_type, price_book_item_export_type, solidus_product_export_type, solidus_variant_export_type, localized_item_prices_export_type, marketing_feeds_export_type, exclusion_rules_export_type' end |
#to_hash ⇒ Object
12030 12031 12032 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 12030 def to_hash subtype_to_hash.merge(:discriminator => @discriminator) end |