Sha256: 3229e43eed15b1689c7b15ac71d5005f07b7c276afa17e547fdd62048558d2c2
Contents?: true
Size: 745 Bytes
Versions: 20
Compression:
Stored size: 745 Bytes
Contents
require 'shopify_cli' module Node module Commands class Populate class Customer < ShopifyCli::AdminAPI::PopulateResourceCommand @input_type = :CustomerInput def defaults first_name, last_name = ShopifyCli::Helpers::Haikunator.name { firstName: first_name, lastName: last_name, } end def message(data) ret = data['customerCreate']['customer'] id = ShopifyCli::API.gid_to_id(ret['id']) @ctx.message( 'node.populate.customer.added', ret['displayName'], ShopifyCli::Project.current.env.shop, admin_url, id ) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems