# -*- coding: utf-8 -*-
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

from __future__ import unicode_literals

import frappe
from frappe.model.document import Document


class WebsiteOffer(Document):
	pass

@frappe.whitelist(allow_guest=True)
def get_offer_details(offer_id):
	return frappe.db.get_value('Website Offer', {'name': offer_id}, ['offer_details'])
