import { gql, TypedDocumentNode } from "@apollo/client";
import {CreateCheckoutShippingMethodData} from "@/types/checkout/type";

export const CREATE_CHECKOUT_SHIPPING_METHODS: TypedDocumentNode<CreateCheckoutShippingMethodData> = gql`
  mutation CreateCheckoutShippingMethod(
    $shippingMethod: String!
  ) {
    createCheckoutShippingMethod(
      input: {
        shippingMethod: $shippingMethod
      }
    ) {
      checkoutShippingMethod {
        success
        id
        message
      }
    }
  }
`;
