/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { receiptsCreate } from "../funcs/receiptsCreate.js"; import { receiptsList } from "../funcs/receiptsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Receipts extends ClientSDK { /** * Create receipts for transfers and scheduled transfers. * * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) * you'll need to specify the `/accounts/{accountID}/transfers.write` scope. */ async create( request: Array, options?: RequestOptions, ): Promise { return unwrapAsync(receiptsCreate( this, request, options, )); } /** * List receipts by transferID, scheduleID, or occurrenceID. * * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) * you'll need to specify the `/accounts/{accountID}/transfers.read` scope. */ async list( request: operations.ListReceiptsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(receiptsList( this, request, options, )); } }