Class: Extension::Models::SpecificationHandlers::CheckoutPostPurchase

Inherits:
Default
  • Object
show all
Defined in:
lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb

Constant Summary collapse

PERMITTED_CONFIG_KEYS =
[:metafields]
RENDERER_PACKAGE_NAME =
"@shopify/post-purchase-ui-extensions"

Instance Attribute Summary

Attributes inherited from Default

#specification

Instance Method Summary collapse

Methods inherited from Default

#argo_runtime, #build_resource_url, #choose_port?, #cli_package, #create, #establish_tunnel?, #extension_context, #graphql_identifier, #identifier, #initialize, #message_for_extension, #name, #renderer_package, #serve, #server_config_file, #server_config_path, #supplies_resource_url?, #tagline, #valid_extension_contexts

Constructor Details

This class inherits a constructor from Extension::Models::SpecificationHandlers::Default

Instance Method Details

#config(context) ⇒ Object



11
12
13
14
15
16
# File 'lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb', line 11

def config(context)
  {
    **Features::ArgoConfig.parse_yaml(context, PERMITTED_CONFIG_KEYS),
    **argo.config(context, include_renderer_version: false),
  }
end