import OrderappClientApi from './index' export default class PromocodeApi { api: OrderappClientApi constructor (api: OrderappClientApi) { this.api = api } async getPromocodeValidate (merchantId: string, code: string): Promise { const endpoint = '/c/promocode/validate' const params = { merchantId, code, } const response = await this.api.axiosGo.get(endpoint, { params }) return response.data } }