/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { payoutsCreate } from "../funcs/payoutsCreate.js"; import { payoutsGet } from "../funcs/payoutsGet.js"; import { payoutsList } from "../funcs/payoutsList.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"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Payouts extends ClientSDK { /** * List payouts created * * @remarks * Returns a list of payouts made. */ async list( request?: operations.ListPayoutsRequest | undefined, options?: RequestOptions, ): Promise> { return unwrapResultIterator(payoutsList( this, request, options, )); } /** * Create a payout * * @remarks * Creates a new payout. */ async create( payoutCreate: components.PayoutCreate, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(payoutsCreate( this, payoutCreate, merchantAccountId, options, )); } /** * Get a payout * * @remarks * Retrieves a payout. */ async get( payoutId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(payoutsGet( this, payoutId, merchantAccountId, options, )); } }