Sha256: 1f52b357bda1500b3fe0d8d16fd4ca07263723c638495039def3f0fea86f4e4b

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 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.create(directory_name, IDENTIFIER, context)
        end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shopify-cli-1.2.0 lib/project_types/extension/models/types/checkout_post_purchase.rb