Class: Io::Flow::V0::Models::Event
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::Event
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Direct Known Subclasses
AllocationDeletedV2, AllocationUpsertedV2, AttributeDeleted, AttributeDeletedV2, AttributeUpserted, AttributeUpsertedV2, AuthorizationDeletedV2, AuthorizationStatusChanged, AvailablePromotionsDeleted, AvailablePromotionsDeletedV2, AvailablePromotionsUpserted, AvailablePromotionsUpsertedV2, B2bCreditMemoDeleted, B2bCreditMemoUpserted, B2bInvoiceDeleted, B2bInvoiceUpserted, BrowseOptinResponsesDeleted, BrowseOptinResponsesUpserted, CaptureDeleted, CaptureIdentifierDeleted, CaptureIdentifierUpserted, CaptureUpsertedV2, CardAuthorizationDeletedV2, CardAuthorizationUpsertedV2, CardDeleted, CardUpsertedV2, CatalogDeleted, CatalogItemDeleted, CatalogItemDeletedV2, CatalogItemUpserted, CatalogItemUpsertedV2, CatalogStatisticsDeleted, CatalogStatisticsUpserted, CatalogUpserted, CenterDeleted, CenterUpserted, ChannelCurrencyDeleted, ChannelCurrencyUpserted, ChannelDeleted, ChannelOrganizationDeleted, ChannelOrganizationUpserted, ChannelPayoutDeleted, ChannelPayoutUpserted, ChannelStatementDeleted, ChannelStatementUpserted, ChannelTransactionDeleted, ChannelTransactionDeletedV2, ChannelTransactionUpserted, ChannelUpserted, CheckoutOptinResponsesDeleted, CheckoutOptinResponsesUpserted, ConsumerInvoiceDeleted, ConsumerInvoiceUpserted, CountryStatusDeleted, CountryStatusUpserted, CreditMemoDeleted, CreditMemoUpserted, CrossdockShipmentUpserted, CurrencyFormatDeleted, CurrencyFormatUpserted, CustomerAddressBookContactDeleted, CustomerAddressBookContactUpserted, CustomerDeleted, CustomerUpserted, EcommercePlatformDeleted, EcommercePlatformUpserted, EmailNotificationDeleted, EmailNotificationUpserted, EventUndefinedType, ExperienceDeleted, ExperienceDeletedV2, ExperienceLogisticsSettingsDeleted, ExperienceLogisticsSettingsUpserted, ExperiencePriceBookMappingDeleted, ExperiencePriceBookMappingUpserted, ExperienceUpserted, ExperienceUpsertedV2, FraudStatusChanged, FullyHarmonizedItemUpserted, HarmonizedLandedCostUpserted, Hs10CodeDeleted, Hs10CodeUpserted, Hs6CodeDeleted, Hs6CodeUpserted, ImportCompletedV2, ImportFailedV2, ItemMarginDeletedV2, ItemMarginUpsertedV2, ItemOriginDeleted, ItemOriginUpserted, ItemSalesMarginDeleted, ItemSalesMarginUpserted, LabelDeletedV2, LabelFormatDeleted, LabelFormatUpserted, LabelUpserted, LabelUpsertedV2, LocalItemDeleted, LocalItemUpserted, ManifestedLabelDeleted, ManifestedLabelUpserted, MembershipDeletedV2, MembershipUpsertedV2, MerchantApplicationDeleted, MerchantApplicationUpserted, NotificationDeletedV2, NotificationUpsertedV2, OnlineAuthorizationDeletedV2, OnlineAuthorizationUpsertedV2, OrderDeleted, OrderDeletedV2, OrderIdentifierDeleted, OrderIdentifierDeletedV2, OrderIdentifierUpserted, OrderIdentifierUpsertedV2, OrderIdentifierUpsertedV3, OrderPlaced, OrderPlacedV2, OrderReplacementDeleted, OrderReplacementUpserted, OrderServiceChangeRequest, OrderUpserted, OrderUpsertedV2, OrganizationDefaultConfigurationsDeleted, OrganizationDefaultConfigurationsUpserted, OrganizationDeleted, OrganizationDeletedV2, OrganizationOnboardingStateDeleted, OrganizationOnboardingStateUpserted, OrganizationPayoutDeleted, OrganizationPayoutUpserted, OrganizationRatesPublished, OrganizationTransactionDeleted, OrganizationTransactionUpserted, OrganizationUpserted, OrganizationUpsertedV2, PaymentDeleted, PaymentRequestDeleted, PaymentRequestUpserted, PaymentUpserted, PriceBookDeleted, PriceBookItemDeleted, PriceBookItemUpserted, PriceBookUpserted, PricingDeleted, PricingUpserted, ProductRestrictionResultDeleted, ProductRestrictionResultUpserted, RateDeleted, RateDeletedV3, RateUpserted, RateUpsertedV3, RatecardDeleted, RatecardLaneDeleted, RatecardLaneUpserted, RatecardUpserted, ReadyToFulfill, ReadyToFulfillV2, RefundCaptureUpsertedV2, RefundDeletedV2, RefundIdentifierDeleted, RefundIdentifierUpserted, RefundUpsertedV2, ReturnDeleted, ReturnDeletedV2, ReturnUpserted, ReturnUpsertedV2, ReversalDeleted, ReversalUpserted, RuleDeleted, RuleUpserted, ShippingConfigurationDeleted, ShippingConfigurationItemAvailabilityDeleted, ShippingConfigurationItemAvailabilityUpserted, ShippingConfigurationItemShippingPricingDeleted, ShippingConfigurationItemShippingPricingUpserted, ShippingConfigurationUpserted, ShippingLaneDeleted, ShippingLaneUpserted, ShopifyLocalizationSettingDeleted, ShopifyLocalizationSettingUpserted, SnapshotDeleted, SnapshotUpserted, StatementDeleted, StatementUpserted, SubcatalogDeleted, SubcatalogItemDeleted, SubcatalogItemUpserted, SubcatalogUpserted, TestUpserted, TierDeletedV2, TierUpsertedV2, TrackingLabelEventUpserted, TransactionUpserted, VirtualCardCaptureDeleted, VirtualCardCaptureUpserted, VirtualCardRefundDeleted, VirtualCardRefundUpserted
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 = {}) ⇒ Event
constructor
A new instance of Event.
- #subtype_to_hash ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ Event
Returns a new instance of Event.
11181 11182 11183 11184 11185 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11181 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:discriminator], 'Event') @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String) end |
Instance Attribute Details
#discriminator ⇒ Object (readonly)
Returns the value of attribute discriminator.
11179 11180 11181 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11179 def discriminator @discriminator end |
Class Method Details
.from_json(hash) ⇒ Object
Instance Method Details
#subtype_to_hash ⇒ Object
11187 11188 11189 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11187 def subtype_to_hash raise 'Cannot serialize an instance of event directly - must use one of the specific types: test_upserted, transaction_upserted, organization_transaction_upserted, organization_transaction_deleted, statement_upserted, statement_deleted, channel_transaction_upserted, channel_transaction_deleted, channel_transaction_deleted_v2, channel_statement_upserted, channel_statement_deleted, channel_payout_upserted, channel_payout_deleted, organization_payout_upserted, organization_payout_deleted, attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, catalog_item_upserted_v2, catalog_item_deleted_v2, subcatalog_item_upserted, subcatalog_item_deleted, catalog_statistics_upserted, catalog_statistics_deleted, channel_upserted, channel_deleted, channel_currency_upserted, channel_currency_deleted, channel_organization_upserted, channel_organization_deleted, b2b_invoice_upserted, b2b_invoice_deleted, b2b_credit_memo_upserted, b2b_credit_memo_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, rate_deleted_v3, rate_upserted_v3, customer_upserted, customer_deleted, customer_address_book_contact_upserted, customer_address_book_contact_deleted, email_notification_upserted, email_notification_deleted, 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, country_status_upserted, country_status_deleted, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, item_margin_deleted_v2, item_margin_upserted_v2, 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, order_identifier_upserted_v3, order_replacement_upserted, order_replacement_deleted, pricing_deleted, pricing_upserted, order_service_change_request, fraud_status_changed, center_upserted, center_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, shipping_configuration_item_availability_upserted, shipping_configuration_item_availability_deleted, shipping_configuration_item_shipping_pricing_upserted, shipping_configuration_item_shipping_pricing_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, import_completed_v2, import_failed_v2, rule_upserted, rule_deleted, snapshot_upserted, snapshot_deleted, label_upserted, label_deleted_v2, label_upserted_v2, notification_upserted_v2, notification_deleted_v2, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, merchant_application_upserted, merchant_application_deleted, checkout_optin_responses_upserted, checkout_optin_responses_deleted, browse_optin_responses_upserted, browse_optin_responses_deleted, order_placed, order_placed_v2, ready_to_fulfill, ready_to_fulfill_v2, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_default_configurations_upserted, organization_default_configurations_deleted, ecommerce_platform_upserted, ecommerce_platform_deleted, organization_onboarding_state_upserted, organization_onboarding_state_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, card_authorization_deleted_v2, online_authorization_upserted_v2, online_authorization_deleted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_deleted_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, payment_request_upserted, payment_request_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, ratecard_lane_upserted, ratecard_lane_deleted, ratecard_upserted, ratecard_deleted, product_restriction_result_upserted, product_restriction_result_deleted, return_upserted, return_deleted, return_upserted_v2, return_deleted_v2, shopify_localization_setting_upserted, shopify_localization_setting_deleted, tracking_label_event_upserted' end |
#to_hash ⇒ Object
11191 11192 11193 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 11191 def to_hash subtype_to_hash.merge(:discriminator => @discriminator) end |