UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

174 lines 5.66 kB
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 { payment_links } from '../models/payment_links.js'; import type { payment_links_create } from '../models/payment_links_create.js'; import type { payment_links_update } from '../models/payment_links_update.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class CheckoutService { /** * List checkout sessions * Checkout sessions - create hosted payment pages * @returns any Successful response with paginated data * @throws ApiError */ static listCheckoutSessions({ limit, offset, sort, }: { /** * Maximum number of items to return (1-100) */ limit?: number; /** * Number of items to skip for pagination */ offset?: number; /** * Sort order. Format: `field:direction` (e.g., `created_at:desc`) */ sort?: string; }): CancelablePromise<{ data?: Array<checkout_sessions>; pagination?: { /** * Number of items per page */ limit?: number; /** * Number of items skipped */ offset?: number; /** * Total number of items available */ total?: number; }; }>; /** * Create checkout session * Checkout sessions - create hosted payment pages * @returns checkout_sessions Checkout_session successfully created * @throws ApiError */ static createCheckoutSession({ requestBody, }: { requestBody: checkout_sessions_create; }): CancelablePromise<checkout_sessions>; /** * Retrieve checkout session * Retrieve a specific checkout session by its unique identifier. * @returns checkout_sessions Checkout_session retrieved successfully * @throws ApiError */ static retrieveCheckoutSession({ sessionId, }: { /** * Unique identifier for the checkout session */ sessionId: string; }): CancelablePromise<checkout_sessions>; /** * Update checkout session * Update a specific checkout session. Only provided fields will be updated. * @returns checkout_sessions Checkout_session successfully updated * @throws ApiError */ static updateCheckoutSession({ sessionId, requestBody, }: { /** * Unique identifier for the checkout session */ sessionId: string; requestBody: checkout_sessions_update; }): CancelablePromise<checkout_sessions>; /** * Delete checkout session * Delete a specific checkout session. This action cannot be undone. * @returns void * @throws ApiError */ static deleteCheckoutSession({ sessionId, }: { /** * Unique identifier for the checkout session */ sessionId: string; }): CancelablePromise<void>; /** * List payment links * Payment links - shareable payment URLs * @returns any Successful response with paginated data * @throws ApiError */ static listPaymentLinks({ limit, offset, sort, }: { /** * Maximum number of items to return (1-100) */ limit?: number; /** * Number of items to skip for pagination */ offset?: number; /** * Sort order. Format: `field:direction` (e.g., `created_at:desc`) */ sort?: string; }): CancelablePromise<{ data?: Array<payment_links>; pagination?: { /** * Number of items per page */ limit?: number; /** * Number of items skipped */ offset?: number; /** * Total number of items available */ total?: number; }; }>; /** * Create payment link * Payment links - shareable payment URLs * @returns payment_links Payment_link successfully created * @throws ApiError */ static createPaymentLink({ requestBody, }: { requestBody: payment_links_create; }): CancelablePromise<payment_links>; /** * Retrieve payment link * Retrieve a specific payment link by its unique identifier. * @returns payment_links Payment_link retrieved successfully * @throws ApiError */ static retrievePaymentLink({ linkId, }: { /** * Unique identifier for the payment link */ linkId: string; }): CancelablePromise<payment_links>; /** * Update payment link * Update a specific payment link. Only provided fields will be updated. * @returns payment_links Payment_link successfully updated * @throws ApiError */ static updatePaymentLink({ linkId, requestBody, }: { /** * Unique identifier for the payment link */ linkId: string; requestBody: payment_links_update; }): CancelablePromise<payment_links>; /** * Delete payment link * Delete a specific payment link. This action cannot be undone. * @returns void * @throws ApiError */ static deletePaymentLink({ linkId, }: { /** * Unique identifier for the payment link */ linkId: string; }): CancelablePromise<void>; } //# sourceMappingURL=CheckoutService.d.ts.map