/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { GetAcceptEnum, statementsGet } from "../funcs/statementsGet.js"; import { statementsList } from "../funcs/statementsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export { GetAcceptEnum } from "../funcs/statementsGet.js"; export class Statements extends ClientSDK { /** * Retrieve all statements associated with an account. * * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) * you'll need to specify the `/accounts/{accountID}/profile.read` scope. */ async list( request: operations.ListStatementsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(statementsList( this, request, options, )); } /** * Retrieve a statement by its ID. * * Use the `Accept` header to specify the format of the response. Supported formats are `application/json` and `application/pdf`. * * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) * you'll need to specify the `/accounts/{accountID}/profile.read` scope. */ async get( request: operations.GetStatementRequest, options?: RequestOptions & { acceptHeaderOverride?: GetAcceptEnum }, ): Promise { return unwrapAsync(statementsGet( this, request, options, )); } }