@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
80 lines • 2.48 kB
TypeScript
import type { checkout_sessions } from '../models/checkout_sessions.js';
import type { checkout_sessions_create } from '../models/checkout_sessions_create.js';
import type { checkout_sessions_update } from '../models/checkout_sessions_update.js';
import type { CancelablePromise } from '../core/CancelablePromise.js';
export declare class CheckoutSessionService {
/**
* List checkout_sessions
* Retrieve a paginated list of checkout_sessions
* @returns any Successful response
* @throws ApiError
*/
static getCheckoutSessions({ 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<checkout_sessions>;
pagination?: {
limit?: number;
offset?: number;
total?: number;
};
}>;
/**
* Create checkout_session
* Create a new checkout_session
* @returns checkout_sessions Successfully created
* @throws ApiError
*/
static postCheckoutSessions({ requestBody, }: {
requestBody: checkout_sessions_create;
}): CancelablePromise<checkout_sessions>;
/**
* Get checkout_session
* Retrieve a specific checkout_session by ID
* @returns checkout_sessions Successful response
* @throws ApiError
*/
static getCheckoutSessions1({ sessionId, }: {
/**
* The checkout_session ID
*/
sessionId: string;
}): CancelablePromise<checkout_sessions>;
/**
* Update checkout_session
* Update a specific checkout_session
* @returns checkout_sessions Successfully updated
* @throws ApiError
*/
static patchCheckoutSessions({ sessionId, requestBody, }: {
/**
* The checkout_session ID
*/
sessionId: string;
requestBody: checkout_sessions_update;
}): CancelablePromise<checkout_sessions>;
/**
* Delete checkout_session
* Delete a specific checkout_session
* @returns void
* @throws ApiError
*/
static deleteCheckoutSessions({ sessionId, }: {
/**
* The checkout_session ID
*/
sessionId: string;
}): CancelablePromise<void>;
}
//# sourceMappingURL=CheckoutSessionService.d.ts.map