Sha256: cc943f3585f86320eb436c06912a5b2868658affa2a65374da7d5b72283aec8d
Contents?: true
Size: 648 Bytes
Versions: 9
Compression:
Stored size: 648 Bytes
Contents
require "shopify_cli" module ShopifyCli 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("core.populate.customer.added", ret["displayName"], @shop, admin_url, id) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems