@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
80 lines • 2.14 kB
TypeScript
import type { refunds } from '../models/refunds.js';
import type { refunds_create } from '../models/refunds_create.js';
import type { refunds_update } from '../models/refunds_update.js';
import type { CancelablePromise } from '../core/CancelablePromise.js';
export declare class RefundService {
/**
* List refunds
* Retrieve a paginated list of refunds
* @returns any Successful response
* @throws ApiError
*/
static getRefunds({ 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<refunds>;
pagination?: {
limit?: number;
offset?: number;
total?: number;
};
}>;
/**
* Create refund
* Create a new refund
* @returns refunds Successfully created
* @throws ApiError
*/
static postRefunds({ requestBody, }: {
requestBody: refunds_create;
}): CancelablePromise<refunds>;
/**
* Get refund
* Retrieve a specific refund by ID
* @returns refunds Successful response
* @throws ApiError
*/
static getRefunds1({ refundId, }: {
/**
* The refund ID
*/
refundId: string;
}): CancelablePromise<refunds>;
/**
* Update refund
* Update a specific refund
* @returns refunds Successfully updated
* @throws ApiError
*/
static patchRefunds({ refundId, requestBody, }: {
/**
* The refund ID
*/
refundId: string;
requestBody: refunds_update;
}): CancelablePromise<refunds>;
/**
* Delete refund
* Delete a specific refund
* @returns void
* @throws ApiError
*/
static deleteRefunds({ refundId, }: {
/**
* The refund ID
*/
refundId: string;
}): CancelablePromise<void>;
}
//# sourceMappingURL=RefundService.d.ts.map