We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
When running the updateCustomer mutation, the allowed shipping input variables include:
updateCustomer
email phone
email
phone
According to The WC REST API Customer Properties documentation, these are not valid properties of the Shipping object.
To Reproduce Steps to reproduce the behavior:
With email input variable:
mutation UPDATE_CUSTOMER { updateCustomer(input: {shipping: { email: "test@test.com"}, clientMutationId: "some-set-of-strings"}) { clientMutationId } }
Response:
{ "errors": [ { "debugMessage": "Call to undefined method WC_Customer::set_shipping_email()", "message": "Internal server error", "category": "internal", "locations": [ { "line": 2, "column": 3 } ], "path": [ "updateCustomer" ] } ], "data": { "updateCustomer": null } }
With phone input variable:
mutation UPDATE_CUSTOMER { updateCustomer(input: {shipping: {phone: "+19175551234", }, clientMutationId: "some-set-of-strings"}) { clientMutationId } }
{ "errors": [ { "debugMessage": "Call to undefined method WC_Customer::set_shipping_phone()", "message": "Internal server error", "category": "internal", "locations": [ { "line": 2, "column": 3 } ], "path": [ "updateCustomer" ] } ], "data": { "updateCustomer": null } }
Expected behavior
Shouldn't have the option to add shipping email or phone as input variables.
Screenshots
The text was updated successfully, but these errors were encountered:
@ardiewen Yea, the CustomerAddressInput type used is by both the billing and shipping input fields.
CustomerAddressInput
billing
shipping
It should be fine, if the mutation resolver just made to ignore the email and phone fields on the shipping field. 🤔
Sorry, something went wrong.
kidunot89
Successfully merging a pull request may close this issue.
Describe the bug
When running the
updateCustomer
mutation, the allowed shipping input variables include:email
phone
According to The WC REST API Customer Properties documentation, these are not valid properties of the Shipping object.
To Reproduce
Steps to reproduce the behavior:
updateCustomer
mutation:With email input variable:
Response:
With phone input variable:
Response:
Expected behavior
Shouldn't have the option to add shipping email or phone as input variables.
Screenshots
The text was updated successfully, but these errors were encountered: