Sha256: 2b564a2ac454d552f159e8b108e0cfe4bd39d00bc12de358655f2595f62c7dd0

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true
require 'base64'

module Extension
  module Models
    module Types
      class CheckoutPostPurchase < Models::Type
        IDENTIFIER = 'CHECKOUT_POST_PURCHASE'
        PERMITTED_CONFIG_KEYS = [:metafields]
        def create(directory_name, context)
          Features::Argo::Checkout.new.create(directory_name, IDENTIFIER, context)
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shopify-cli-1.5.0 lib/project_types/extension/models/types/checkout_post_purchase.rb
shopify-cli-1.4.1 lib/project_types/extension/models/types/checkout_post_purchase.rb
shopify-cli-1.4.0 lib/project_types/extension/models/types/checkout_post_purchase.rb
shopify-cli-1.3.1 lib/project_types/extension/models/types/checkout_post_purchase.rb
shopify-cli-1.3.0 lib/project_types/extension/models/types/checkout_post_purchase.rb