pub(crate) const CUSTOMER_CREATE: &str = r#"
mutation ($input: CustomerCreateInput!) {
customerCreate(input: $input) {
didSucceed
inputErrors { code message path }
customer {
id name firstName lastName displayId
email mobile phone fax tollFree website
internalNotes isArchived
address {
addressLine1 addressLine2 city
province { code name }
country { code name }
postalCode
}
currency { code symbol name }
createdAt modifiedAt
}
}
}
"#;
pub(crate) const CUSTOMER_PATCH: &str = r#"
mutation ($input: CustomerPatchInput!) {
customerPatch(input: $input) {
didSucceed
inputErrors { code message path }
customer {
id name firstName lastName displayId
email mobile phone fax tollFree website
internalNotes isArchived
address {
addressLine1 addressLine2 city
province { code name }
country { code name }
postalCode
}
currency { code symbol name }
createdAt modifiedAt
}
}
}
"#;
pub(crate) const CUSTOMER_DELETE: &str = r#"
mutation ($input: CustomerDeleteInput!) {
customerDelete(input: $input) {
didSucceed
inputErrors { code message path }
}
}
"#;