import { PAYMENT_API_URL } from 'config'
import { callApi } from 'helpers'

export const cancelSubscribe = (id: number): Promise<unknown> => {
  const config = {
    method: 'DELETE',
  }

  return callApi({
    config,
    url: `${PAYMENT_API_URL}/api/v2/general/subscription/${id}`,
  })
}
