/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { paymentMethodsGet } from "../funcs/paymentMethodsGet.js"; import { paymentMethodsList } from "../funcs/paymentMethodsList.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class PaymentMethods extends ClientSDK { /** * Retrieve a list of payment methods associated with a Moov account. Read our [payment methods * guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn more. * * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) * you'll need to specify the `/accounts/{accountID}/payment-methods.read` scope. */ async list( request: operations.ListPaymentMethodsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(paymentMethodsList( this, request, options, )); } /** * Get the specified payment method associated with a Moov account. Read our [payment methods guide](https://docs.moov.io/guides/money-movement/payment-methods/) to learn more. * * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) * you'll need to specify the `/accounts/{accountID}/payment-methods.read` scope. */ async get( request: operations.GetPaymentMethodRequest, options?: RequestOptions, ): Promise { return unwrapAsync(paymentMethodsGet( this, request, options, )); } }