checkoutGiftCardAppend method
Appends the giftCardCodes
to the Checkout that checkoutId
belongs to.
Implementation
Future<void> checkoutGiftCardAppend(
String checkoutId,
List<String> giftCardCodes,
) async {
final MutationOptions _options = MutationOptions(
document: gql(checkoutGiftCardsAppendMutation),
variables: {'checkoutId': checkoutId, 'giftCardCodes': giftCardCodes});
final QueryResult result = await _graphQLClient!.mutate(_options);
checkForError(
result,
key: 'checkoutGiftCardsAppend',
errorKey: 'checkoutUserErrors',
);
}