@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
41 lines • 996 B
JavaScript
/**
* CheckoutSessionsService
* AUTO-GENERATED - Do not edit manually
*
* Checkout sessions - create hosted payment pages
*/
import { request } from '../core/request.js';
export class CheckoutSessionsService {
/**
* List checkout_sessions
* Checkout sessions - create hosted payment pages
*/
static async list(options) {
return await request({
method: 'GET',
url: '/checkout-sessions',
query: options,
});
}
/**
* Get a single checkout_session
*/
static async get(id) {
return await request({
method: 'GET',
url: '/checkout-sessions/{id}',
path: { id },
});
}
/**
* Create a new checkout_session
*/
static async create(data) {
return await request({
method: 'POST',
url: '/checkout-sessions',
body: data,
});
}
}
//# sourceMappingURL=CheckoutSessionsService.js.map