import gql from 'graphql-tag';

export const CONTRACT_DISCOUNTS = gql`
  query ContractDiscounts($input: DiscountInput!) {
    contractDiscounts(input: $input) {
      contractId
      description
      end
      id
      isExpired
      offerId
      offerReasonId
      start
      status
      offer {
        id
        name
        description
        amount
        length
        unit
        isAvailable
        reasons {
          id
          title
        }
      }
    }
  }
`;

export const CONTRACT_DISCOUNT = gql`
  query ContractDiscount($input: SingleDiscountInput!) {
    contractDiscount(input: $input) {
      contractId
      description
      end
      id
      isExpired
      offerId
      offerReasonId
      start
      status
    }
  }
`;
