Sha256: 5538c7c609f8e8fdf889d80b8ff83cb53abe957ffb9db9f1462b828b0fc0bf81
Contents?: true
Size: 788 Bytes
Versions: 15
Compression:
Stored size: 788 Bytes
Contents
# frozen_string_literal: true module Extension module Models module ServerConfig class DevelopmentRenderer < Base include SmartProperties VALID_RENDERERS = [ "@shopify/admin-ui-extensions", "@shopify/post-purchase-ui-extensions", "@shopify/checkout-ui-extensions", ] property! :name, accepts: VALID_RENDERERS def self.find(type) case type.downcase when "product_subscription" new(name: "@shopify/admin-ui-extensions") when "checkout_ui_extension" new(name: "@shopify/checkout-ui-extensions") when "checkout_post_purchase" new(name: "@shopify/post-purchase-ui-extensions") end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems