Sha256: 69481540a7861fe57a25b4e3481b598e7a13dbb9b2bbeb447ad75e5565d7ae79
Contents?: true
Size: 747 Bytes
Versions: 11
Compression:
Stored size: 747 Bytes
Contents
require "shopify_cli" module Rails 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( "rails.populate.customer.added", ret["displayName"], ShopifyCli::Project.current.env.shop, admin_url, id ) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems