Class: Extension::Features::Runtimes::CheckoutPostPurchase

Inherits:
Base
  • Object
show all
Defined in:
lib/project_types/extension/features/runtimes/checkout_post_purchase.rb

Constant Summary collapse

CHECKOUT_UI_EXTENSIONS_RUN =
"@shopify/checkout-ui-extensions-run"
CHECKOUT_POST_PURCHASE =
"CHECKOUT_POST_PURCHASE"
AVAILABLE_FLAGS =
[
  :port,
  :public_url,
]

Instance Method Summary collapse

Methods inherited from Base

#supports?

Instance Method Details

#active_runtime?(cli_package, identifier) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/project_types/extension/features/runtimes/checkout_post_purchase.rb', line 17

def active_runtime?(cli_package, identifier)
  cli_package.name == CHECKOUT_UI_EXTENSIONS_RUN && identifier == CHECKOUT_POST_PURCHASE
end

#available_flagsObject



13
14
15
# File 'lib/project_types/extension/features/runtimes/checkout_post_purchase.rb', line 13

def available_flags
  AVAILABLE_FLAGS
end