UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

46 lines 1.55 kB
import { OpenAPI } from '../core/OpenAPI.js'; import { request as __request } from '../core/request.js'; export class SpiAccountAliasesService { /** * List spi account aliases * SPI account aliases - manage SPI payment aliases * @returns any Successful response with paginated data * @throws ApiError */ static listSpiAccountAliases({ limit = 20, offset, sort, }) { return __request(OpenAPI, { method: 'GET', url: '/spi_account_aliases', query: { 'limit': limit, 'offset': offset, 'sort': sort, }, errors: { 401: `Unauthorized - Invalid or missing API key`, 500: `Internal server error`, }, }); } /** * Retrieve spi account aliase * Retrieve a specific spi account aliase by its unique identifier. * @returns spi_account_aliases Spi_account_aliase retrieved successfully * @throws ApiError */ static retrieveSpiAccountAliase({ aliasId, }) { return __request(OpenAPI, { method: 'GET', url: '/spi_account_aliases/{alias_id}', path: { 'alias_id': aliasId, }, errors: { 401: `Unauthorized - Invalid or missing API key`, 404: `Not found - Resource does not exist`, 500: `Internal server error`, }, }); } } //# sourceMappingURL=SpiAccountAliasesService.js.map