checkoutCustomerDisassociate method
Disassociates the Customer
from the Checkout that checkoutId
belongs to.
Implementation
Future<void> checkoutCustomerDisassociate(String checkoutId,
{bool deleteThisPartOfCache = false}) async {
final MutationOptions _options = MutationOptions(
document: gql(checkoutCustomerDisassociateMutation),
variables: {'id': checkoutId});
final QueryResult result = await _graphQLClient!.mutate(_options);
checkForError(
result,
key: 'checkoutCustomerDisassociateV2',
errorKey: 'checkoutUserErrors',
);
if (deleteThisPartOfCache) {
_graphQLClient!.cache.writeQuery(_options.asRequest, data: {});
}
}