UNPKG

portal-www

Version:

Nova Portal Website. Based on Next starter by Ueno

57 lines (53 loc) 1.05 kB
import gql from 'graphql-tag'; export const ADD_ITEMS_TO_CART = gql` mutation AddItemsToCart($input: AddItemsToCartInput!) { addItemsToCart(input: $input) { cart { id items { price quantity rentalFee subscriptionFee subscriptionFeeDueNow } paymentInputRequired paymentRequirements { requiresPaymentInfo requiresRecurringPaymentInfo } totalDue totalAmount totalRentalFee totalSubscriptionFee } } } `; export const ADD_PAYMENT_METHOD_TO_CONTRACT = gql` mutation AddPaymentMethodToCart($input: AddToCartInput!) { addToCart(input: $input) { cart { id items { variant { name } } } } } `; export const CREATE_ORDER = gql` mutation CreateOrder($input: CreateOrderInput!) { createOrder(input: $input) { order { id } error { message code } } } `;