checkoutDiscountCodeApplyMutation top-level constant

String const checkoutDiscountCodeApplyMutation

Mutation to apply a discount code to a checkout

Implementation

const String checkoutDiscountCodeApplyMutation = r'''
mutation checkoutDiscountCodeApply($checkoutId : ID!, $discountCode : String!) {
  checkoutDiscountCodeApplyV2(checkoutId: $checkoutId, discountCode: $discountCode) {
    checkoutUserErrors {
      message
      field
      code
    }
  }
}
''';