imsujan276 / shopify_flutter

A flutter package that works as a bridge between your Shopify Store and Flutter Application
https://pub.dev/packages/shopify_flutter
MIT License
27 stars 24 forks source link

checkoutDiscountCodeApplyV2 should return a Checkout #12

Closed vptcnt closed 1 year ago

vptcnt commented 1 year ago

Hello,

I think that checkoutDiscountCodeApplyV2 should return a Checkout to get the new total...

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

It should be available in v1.0.17