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, 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.
9955 9956 9957 9958 9959 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9955 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.
9953 9954 9955 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9953 def discriminator @discriminator end |
Class Method Details
.from_json(hash) ⇒ Object
Instance Method Details
#subtype_to_hash ⇒ Object
9961 9962 9963 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9961 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' end |
#to_hash ⇒ Object
9965 9966 9967 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 9965 def to_hash subtype_to_hash.merge(:discriminator => @discriminator) end |