Sha256: 2804ba9cf10853965e7b8c6419bcb96e211d02acd63a04b70da5a2d142d2bb3a

Contents?: true

Size: 698 Bytes

Versions: 9

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true
require "base64"

module Extension
  module Models
    module SpecificationHandlers
      class CheckoutPostPurchase < Default
        PERMITTED_CONFIG_KEYS = [:metafields]
        RENDERER_PACKAGE_NAME = "@shopify/post-purchase-ui-extensions"

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

        protected

        def argo
          Features::Argo.new(
            git_template: specification.features.argo.git_template,
            renderer_package_name: RENDERER_PACKAGE_NAME
          )
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify-cli-2.6.3 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.6.2 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.6.1 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.6.0 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.5.0 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.4.0 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.3.0 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.2.2 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb
shopify-cli-2.2.1 lib/project_types/extension/models/specification_handlers/checkout_post_purchase.rb