@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
80 lines • 2.44 kB
TypeScript
import type { discount_coupons } from '../models/discount_coupons.js';
import type { discount_coupons_create } from '../models/discount_coupons_create.js';
import type { discount_coupons_update } from '../models/discount_coupons_update.js';
import type { CancelablePromise } from '../core/CancelablePromise.js';
export declare class DiscountCouponService {
/**
* List discount_coupons
* Retrieve a paginated list of discount_coupons
* @returns any Successful response
* @throws ApiError
*/
static getDiscountCoupons({ limit, offset, sort, }: {
/**
* Maximum number of items to return
*/
limit?: number;
/**
* Number of items to skip
*/
offset?: number;
/**
* Sort order (e.g., created_at:desc)
*/
sort?: string;
}): CancelablePromise<{
data?: Array<discount_coupons>;
pagination?: {
limit?: number;
offset?: number;
total?: number;
};
}>;
/**
* Create discount_coupon
* Create a new discount_coupon
* @returns discount_coupons Successfully created
* @throws ApiError
*/
static postDiscountCoupons({ requestBody, }: {
requestBody: discount_coupons_create;
}): CancelablePromise<discount_coupons>;
/**
* Get discount_coupon
* Retrieve a specific discount_coupon by ID
* @returns discount_coupons Successful response
* @throws ApiError
*/
static getDiscountCoupons1({ couponId, }: {
/**
* The discount_coupon ID
*/
couponId: string;
}): CancelablePromise<discount_coupons>;
/**
* Update discount_coupon
* Update a specific discount_coupon
* @returns discount_coupons Successfully updated
* @throws ApiError
*/
static patchDiscountCoupons({ couponId, requestBody, }: {
/**
* The discount_coupon ID
*/
couponId: string;
requestBody: discount_coupons_update;
}): CancelablePromise<discount_coupons>;
/**
* Delete discount_coupon
* Delete a specific discount_coupon
* @returns void
* @throws ApiError
*/
static deleteDiscountCoupons({ couponId, }: {
/**
* The discount_coupon ID
*/
couponId: string;
}): CancelablePromise<void>;
}
//# sourceMappingURL=DiscountCouponService.d.ts.map