public void InputObjectToString() { CustomerAccessTokenCreateInput input = new CustomerAccessTokenCreateInput(email: "*****@*****.**", password: "******"); Assert.AreEqual( "{email:\"[email protected]\",password:\"123456\"}", input.ToString() ); }
/// <summary> /// Creates a customer access token. /// The customer access token is required to modify the customer object in any way. /// </summary> public MutationQuery customerAccessTokenCreate(CustomerAccessTokenCreatePayloadDelegate buildQuery, CustomerAccessTokenCreateInput input, string alias = null) { if (alias != null) { ValidationUtils.ValidateAlias(alias); Query.Append("customerAccessTokenCreate___"); Query.Append(alias); Query.Append(":"); } Query.Append("customerAccessTokenCreate "); Arguments args = new Arguments(); args.Add("input", input); Query.Append(args.ToString()); Query.Append("{"); buildQuery(new CustomerAccessTokenCreatePayloadQuery(Query)); Query.Append("}"); return(this); }