Sha256: 968c8a2f1d57cee53d074de33ebb53f511ac00f33157c8dbfb7b9c625bbaa24c
Contents?: true
Size: 598 Bytes
Versions: 20
Compression:
Stored size: 598 Bytes
Contents
module Extension module Tasks class FetchSpecifications include ShopifyCLI::MethodObject property :context property :api_key def call response = ShopifyCLI::PartnersAPI .query(context, "fetch_specifications", api_key: api_key) .dig("data", "extensionSpecifications") context.abort(context.message("tasks.errors.parse_error")) if response.nil? response.reject do |line| ::Extension::Features::Runtimes::CheckoutUiExtension::IDENTIFIERS.include?(line["identifier"].upcase) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems