Open walteryaron opened 4 years ago
SDK 2020-01,2020-04 When using existing email on customer create: let input = Storefront.CustomerCreateInput.create( email: userEmail, password: password, firstName: .value(firstname), lastName: .value(lastname), acceptsMarketing: .value(true) ) Storefront.buildMutation { $0 .customerCreate(input: input) { $0 .customer { $0 .id() .email() .firstName() .lastName() } .customerUserErrors { $0 .code() .field() .message() } } } the response is" "<Mutation: ["customerCreate": { customer = ""; customerUserErrors = ( { code = "CUSTOMER_DISABLED"; field = ""; message = "We have sent an email to xxxx@xxxxx.com, please click the link included to verify your email address."; } ); }]>"
SDK 2020-01,2020-04 When using existing email on customer create: let input = Storefront.CustomerCreateInput.create( email: userEmail, password: password, firstName: .value(firstname), lastName: .value(lastname), acceptsMarketing: .value(true) ) Storefront.buildMutation { $0 .customerCreate(input: input) { $0 .customer { $0 .id() .email() .firstName() .lastName() } .customerUserErrors { $0 .code() .field() .message() } } } the response is" "<Mutation: ["customerCreate": { customer = "";
customerUserErrors = (
{
code = "CUSTOMER_DISABLED";
field = "";
message = "We have sent an email to xxxx@xxxxx.com, please click the link included to verify your email address.";
}
);
}]>"