UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

41 lines 1 kB
/** * DiscountCouponsService * AUTO-GENERATED - Do not edit manually * * Discount coupons - create and manage promotional codes */ import { request } from '../core/request.js'; export class DiscountCouponsService { /** * List discount_coupons * Discount coupons - create and manage promotional codes */ static async list(options) { return await request({ method: 'GET', url: '/discount-coupons', query: options, }); } /** * Get a single discount_coupon */ static async get(id) { return await request({ method: 'GET', url: '/discount-coupons/{id}', path: { id }, }); } /** * Create a new discount_coupon */ static async create(data) { return await request({ method: 'POST', url: '/discount-coupons', body: data, }); } } //# sourceMappingURL=DiscountCouponsService.js.map